You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(adopters): document China regulatory coverage in adopter guides (#56)
Updates the three adopter-facing docs (CLI-REFERENCE, ADOPTION-GUIDE,
WORKFLOWS) in EN, ES, and zh-CN to reflect the China regulatory support
shipped in fw-4.3.0 / cli-3.3.0.
CLI-REFERENCE:
- Documents the new --region flag and the six china-* values for
--standard on `devtrail compliance`.
- Documents the four new China DocTypes (pipia, cacfile, tc260ra,
ailabel) on `devtrail new`, marked as opt-in.
- Notes that twelve scope-aware validation rules (CROSS-004..011,
TYPE-003..006) activate when `regional_scope` includes china.
ADOPTION-GUIDE:
- New "China Regulatory Coverage" subsection in Standards Compliance
with a per-framework table (TC260, PIPL, GB 45438, CAC, GB/T 45652,
CSL 2026).
- New "Regional Regulatory Scope" subsection in Configuration showing
the regional_scope YAML and what activates when china is added.
WORKFLOWS:
- New "China Regulatory Workflow" section covering one-time setup,
the document bundle to create when adding a generative AI model,
CSL incident reporting workflow, cross-border data transfer, and
daily compliance checks.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
> Activate by adding `china` to `regional_scope` in `.devtrail/config.yml`. See the *Configuration* section below and the installed `CHINA-REGULATORY-FRAMEWORK.md` guide for details.
160
+
148
161
### Architecture Documentation
149
162
150
163
| Standard | How DevTrail Helps |
@@ -354,6 +367,28 @@ The CLI automatically:
354
367
355
368
## Configuration
356
369
370
+
### Regional Regulatory Scope
371
+
372
+
`.devtrail/config.yml` controls which compliance frameworks are evaluated by `devtrail compliance` and which document types are exposed by `devtrail new`:
373
+
374
+
```yaml
375
+
regional_scope:
376
+
- global # NIST AI RMF + ISO/IEC 42001 (always recommended)
**Default if omitted**: `[global, eu]` — preserves the behavior of every DevTrail version prior to `fw-4.3.0`.
382
+
383
+
When you add `china` to the list:
384
+
385
+
- Four China-specific document types become available via `devtrail new`: `PIPIA`, `CACFILE`, `TC260RA`, `AILABEL`.
386
+
- Six new compliance checkers run with `devtrail compliance` (or via `--region china` / `--standard china-*`).
387
+
- Twelve scope-aware validation rules activate (`CROSS-004` to `CROSS-011`, `TYPE-003` to `TYPE-006`).
388
+
- Five new governance guides are referenced from `.devtrail/00-governance/` (`CHINA-REGULATORY-FRAMEWORK.md`, plus per-framework guides for TC260, PIPL/PIPIA, CAC filing, and GB 45438 labeling) — all available in EN, ES, and zh-CN.
389
+
390
+
A project without `china` in `regional_scope` is unaffected: no new files, no new prompts, no new rules. Adding `china` later is fully reversible.
391
+
357
392
### Customizing Agent Identifiers
358
393
359
394
Each AI platform has its own configuration file that:
Copy file name to clipboardExpand all lines: docs/adopters/CLI-REFERENCE.md
+59-15Lines changed: 59 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -296,6 +296,8 @@ Validate DevTrail documents for compliance and correctness.
296
296
- Sensitive information detection (API keys, passwords)
297
297
- Related document existence
298
298
299
+
When `regional_scope` includes `china`, twelve additional rules activate (`CROSS-004` to `CROSS-011`, `TYPE-003` to `TYPE-006`) covering TC260 review escalation, PIPIA linkage from sensitive-data documents, CACFILE / AILABEL cross-references, CSL severity-to-deadline coherence, and PIPIA 3-year retention. Without `china` in scope, these rules are skipped — no false positives.
300
+
299
301
**Example:**
300
302
301
303
```bash
@@ -321,10 +323,10 @@ Create a new DevTrail document from a template.
If `--doc-type` or `--title` are omitted, the command prompts interactively.
329
+
If `--doc-type` or `--title` are omitted, the command prompts interactively. China-only types are filtered out of the prompt (and rejected from `-t`) when `regional_scope` does not include `china`.
Check regulatory compliance against EU AI Act, ISO/IEC 42001, and NIST AI RMF.
360
+
Check regulatory compliance. By default, evaluates the standards whose region is in `regional_scope` from `.devtrail/config.yml` (default `[global, eu]`). Six Chinese frameworks are available opt-in when `china` is added to `regional_scope`.
> **Activation note**: Chinese frameworks evaluate only when you opt in. Add to `.devtrail/config.yml`:
444
+
>
445
+
> ```yaml
446
+
> regional_scope:
447
+
> - global
448
+
> - eu
449
+
> - china
450
+
> ```
451
+
>
452
+
> Use `--standard china-*` or `--region china` to run them ad-hoc even when not in scope. See the `CHINA-REGULATORY-FRAMEWORK.md` guide installed under `.devtrail/00-governance/`.
`devtrail compliance --region china`confirms the bundle is complete.
195
+
196
+
### When an Incident Occurs
197
+
198
+
The `INC` template includes a *CSL 2026 Incident Reporting* section. Set:
199
+
200
+
```yaml
201
+
csl_severity_level: relatively_major # or particularly_serious | major | general
202
+
csl_report_deadline_hours: 4 # 1 for particularly_serious, 4 for relatively_major
203
+
```
204
+
205
+
`devtrail validate`enforces severity-to-deadline coherence (`CROSS-008`, `CROSS-009`). Major+ incidents must be closed (status `accepted`) within 30 days for the `CSL-003` check to pass.
206
+
207
+
### Cross-Border Data Transfer
208
+
209
+
When a process involves transferring personal information out of mainland China, set `pipl_cross_border_transfer: true` on the PIPIA and document the chosen mechanism (CAC security assessment / certification / standard contract) in the *Cross-Border Transfer Analysis* section. `CROSS-011` will warn if none is documented.
210
+
211
+
### Daily Compliance Check
212
+
213
+
```bash
214
+
# Before merging a feature branch that touches AI services
215
+
devtrail validate # cross-rules including CROSS-004..011
216
+
devtrail compliance --region china # per-framework score
217
+
```
218
+
219
+
---
220
+
160
221
## Understanding Versions
161
222
162
223
DevTrail uses **independent versioning** for its two components:
|**CAC Algorithm Filing**| Plantilla CACFILE con seguimiento de registro simple + dual; cross-checks desde MCARD vía `cac_filing_required`|
170
+
|**GB/T 45652-2025**| Sección de seguridad de datos de entrenamiento en SBOM y MCARD; campo `gb45652_training_data_compliance`|
171
+
|**CSL 2026**| Extensión de INC con `csl_severity_level`, reglas de coherencia de plazos (ventanas 1h / 4h+72h+30d) |
172
+
173
+
> Activar añadiendo `china` a `regional_scope` en `.devtrail/config.yml`. Ver la sección *Configuración* abajo y la guía instalada `CHINA-REGULATORY-FRAMEWORK.md` para detalles.
174
+
162
175
---
163
176
164
177
## Ruta de Adopción A: Proyectos Nuevos
@@ -346,6 +359,28 @@ El CLI automáticamente:
346
359
347
360
## Configuración
348
361
362
+
### Alcance Regulatorio Regional
363
+
364
+
`.devtrail/config.yml` controla qué frameworks de cumplimiento evalúa `devtrail compliance` y qué tipos de documento expone `devtrail new`:
365
+
366
+
```yaml
367
+
regional_scope:
368
+
- global # NIST AI RMF + ISO/IEC 42001 (siempre recomendado)
**Default si se omite**: `[global, eu]` — preserva el comportamiento de toda versión de DevTrail anterior a `fw-4.3.0`.
374
+
375
+
Cuando añades `china` a la lista:
376
+
377
+
- Cuatro tipos de documento específicos de China están disponibles vía `devtrail new`: `PIPIA`, `CACFILE`, `TC260RA`, `AILABEL`.
378
+
- Seis nuevos checkers de cumplimiento se ejecutan con `devtrail compliance` (o vía `--region china` / `--standard china-*`).
379
+
- Doce reglas de validación scope-aware se activan (`CROSS-004` a `CROSS-011`, `TYPE-003` a `TYPE-006`).
380
+
- Cinco nuevas guías de gobernanza referenciadas desde `.devtrail/00-governance/` (`CHINA-REGULATORY-FRAMEWORK.md`, más guías por framework para TC260, PIPL/PIPIA, registro CAC, y etiquetado GB 45438) — todas disponibles en EN, ES y zh-CN.
381
+
382
+
Un proyecto sin `china` en `regional_scope` no se ve afectado: ningún archivo nuevo, ningún prompt nuevo, ninguna regla nueva. Añadir `china` después es totalmente reversible.
383
+
349
384
### Personalizar Identificadores de Agente
350
385
351
386
Cada plataforma de IA tiene su propio archivo de configuración que:
Copy file name to clipboardExpand all lines: docs/i18n/es/adopters/CLI-REFERENCE.md
+44-7Lines changed: 44 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -278,6 +278,8 @@ Valida documentos DevTrail verificando cumplimiento y corrección.
278
278
-`SEC-001`: No contiene información sensible
279
279
-`OBS-001`: Tag observabilidad requiere sección de alcance
280
280
281
+
Cuando `regional_scope` incluye `china`, se activan doce reglas adicionales (`CROSS-004` a `CROSS-011`, `TYPE-003` a `TYPE-006`) que cubren escalado de revisión TC260, vínculo PIPIA desde documentos con datos sensibles, cross-references de CACFILE / AILABEL, coherencia severidad-deadline CSL, y retención de 3 años de PIPIA. Sin `china` en scope, estas reglas se omiten — sin falsos positivos.
282
+
281
283
**Código de salida:** 0 si no hay errores (warnings OK), 1 si hay errores.
282
284
283
285
---
@@ -291,10 +293,10 @@ Crea un nuevo documento DevTrail a partir de una plantilla.
291
293
| Argumento/Flag | Default | Descripción |
292
294
|----------------|---------|-------------|
293
295
|`path`|`.` (directorio actual) | Directorio del proyecto |
294
-
|`--doc-type`, `-t`| — | Tipo de documento: `ailog`, `aidec`, `adr`, `eth`, `req`, `tes`, `inc`, `tde`, `sec`, `mcard`, `sbom`, `dpia`|
296
+
|`--doc-type`, `-t`| — | Tipo de documento. Core (12): `ailog`, `aidec`, `adr`, `eth`, `req`, `tes`, `inc`, `tde`, `sec`, `mcard`, `sbom`, `dpia`. China (4, opt-in): `pipia`, `cacfile`, `tc260ra`, `ailabel`.|
295
297
|`--title`| — | Título del documento |
296
298
297
-
Si no se especifica `--doc-type` o `--title`, se solicitan de forma interactiva.
299
+
Si no se especifica `--doc-type` o `--title`, se solicitan de forma interactiva. Los tipos chinos se filtran del prompt (y se rechazan en `-t`) cuando `regional_scope` no incluye `china`.
298
300
299
301
**Ejemplos:**
300
302
@@ -323,20 +325,55 @@ $ devtrail new -t ailog --title "Refactorizar módulo de pagos"
Verifica cumplimiento regulatorio contra EU AI Act, ISO/IEC 42001 y NIST AI RMF.
330
+
Verifica cumplimiento regulatorio. Por defecto evalúa los estándares cuya región esté incluida en `regional_scope` de `.devtrail/config.yml` (default `[global, eu]`). Seis frameworks chinos disponibles opt-in cuando `china` se añade a `regional_scope`.
329
331
330
332
**Argumentos y flags:**
331
333
332
334
| Argumento/Flag | Default | Descripción |
333
335
|----------------|---------|-------------|
334
336
|`path`|`.` (directorio actual) | Directorio del proyecto |
335
-
|`--standard`| — | Verificar estándar específico: `eu-ai-act`, `iso-42001`, o `nist-ai-rmf`|
-**TC260 v2.0**: existe TC260RA; niveles altos requieren review; los tres criterios (escenario × inteligencia × escala) están completos
347
+
-**PIPL**: PIPIA cuando `pipl_applicable: true`; transferencia transfronteriza documentada; retención ≥ 3 años (Art. 56)
348
+
-**GB 45438**: AILABEL para contenido generativo; estrategia explícita + implícita declaradas; campos de metadata mandatorios
349
+
-**CAC**: CACFILE cuando es requerido; `cac_filing_status` explícito; `cac_filing_number` cuando el estado es `*_approved`
350
+
-**GB/T 45652**: SBOM y MCARD declaran cumplimiento de seguridad de datos de entrenamiento
351
+
-**CSL 2026**: cada INC con `csl_severity_level`; horas coherentes con severidad (1h ↔ particularly_serious, 4h ↔ relatively_major); post-mortem 30 días para incidentes major+
352
+
353
+
**Ejemplos:**
354
+
355
+
```bash
356
+
# Default: solo estándares cuya región esté en regional_scope
357
+
$ devtrail compliance
358
+
359
+
# Los seis frameworks chinos (requiere regional_scope: china)
0 commit comments