openfeel 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.en.md +7 -0
  2. package/README.zh-CN.md +7 -0
  3. package/dist/commands/dashboard.d.ts.map +1 -1
  4. package/dist/commands/dashboard.js +10 -1
  5. package/dist/commands/dashboard.js.map +1 -1
  6. package/dist/commands/flow.d.ts.map +1 -1
  7. package/dist/commands/flow.js +19 -12
  8. package/dist/commands/flow.js.map +1 -1
  9. package/dist/commands/lint.d.ts +3 -1
  10. package/dist/commands/lint.d.ts.map +1 -1
  11. package/dist/commands/lint.js +279 -2
  12. package/dist/commands/lint.js.map +1 -1
  13. package/dist/commands/req.d.ts.map +1 -1
  14. package/dist/commands/req.js +470 -95
  15. package/dist/commands/req.js.map +1 -1
  16. package/dist/core/adherence.d.ts +135 -0
  17. package/dist/core/adherence.d.ts.map +1 -0
  18. package/dist/core/adherence.js +221 -0
  19. package/dist/core/adherence.js.map +1 -0
  20. package/dist/core/dashboard/aggregate.d.ts +39 -0
  21. package/dist/core/dashboard/aggregate.d.ts.map +1 -1
  22. package/dist/core/dashboard/aggregate.js +64 -5
  23. package/dist/core/dashboard/aggregate.js.map +1 -1
  24. package/dist/core/dashboard/render.d.ts.map +1 -1
  25. package/dist/core/dashboard/render.js +88 -1
  26. package/dist/core/dashboard/render.js.map +1 -1
  27. package/dist/core/errors.d.ts +27 -2
  28. package/dist/core/errors.d.ts.map +1 -1
  29. package/dist/core/errors.js +15 -2
  30. package/dist/core/errors.js.map +1 -1
  31. package/dist/core/flow/gate-override.d.ts +72 -0
  32. package/dist/core/flow/gate-override.d.ts.map +1 -0
  33. package/dist/core/flow/gate-override.js +71 -0
  34. package/dist/core/flow/gate-override.js.map +1 -0
  35. package/dist/core/flow-manager.d.ts +13 -4
  36. package/dist/core/flow-manager.d.ts.map +1 -1
  37. package/dist/core/flow-manager.js +47 -16
  38. package/dist/core/flow-manager.js.map +1 -1
  39. package/dist/core/i18n-data/en.d.ts.map +1 -1
  40. package/dist/core/i18n-data/en.js +45 -6
  41. package/dist/core/i18n-data/en.js.map +1 -1
  42. package/dist/core/i18n-data/zh-CN.d.ts.map +1 -1
  43. package/dist/core/i18n-data/zh-CN.js +45 -6
  44. package/dist/core/i18n-data/zh-CN.js.map +1 -1
  45. package/dist/core/req/body-file.d.ts +37 -0
  46. package/dist/core/req/body-file.d.ts.map +1 -1
  47. package/dist/core/req/body-file.js +39 -2
  48. package/dist/core/req/body-file.js.map +1 -1
  49. package/dist/core/req/plan-file.d.ts +83 -0
  50. package/dist/core/req/plan-file.d.ts.map +1 -0
  51. package/dist/core/req/plan-file.js +205 -0
  52. package/dist/core/req/plan-file.js.map +1 -0
  53. package/dist/core/req/requirement-ops.d.ts +25 -3
  54. package/dist/core/req/requirement-ops.d.ts.map +1 -1
  55. package/dist/core/req/requirement-ops.js +66 -11
  56. package/dist/core/req/requirement-ops.js.map +1 -1
  57. package/dist/core/req/types.d.ts +8 -2
  58. package/dist/core/req/types.d.ts.map +1 -1
  59. package/dist/core/req/types.js +10 -2
  60. package/dist/core/req/types.js.map +1 -1
  61. package/dist/core/template-loader.d.ts.map +1 -1
  62. package/dist/core/template-loader.js +12 -0
  63. package/dist/core/template-loader.js.map +1 -1
  64. package/dist/core/templates.d.ts +1 -1
  65. package/dist/core/templates.d.ts.map +1 -1
  66. package/dist/core/templates.js +18 -0
  67. package/dist/core/templates.js.map +1 -1
  68. package/dsh/ACTION-GUIDE.md +15 -6
  69. package/dsh/ADAPTER.md +62 -1
  70. package/dsh/README.md +13 -11
  71. package/dsh/docs/compat/persistence.md +13 -0
  72. package/dsh/docs/compat/pipeline.md +12 -0
  73. package/dsh/docs/compat/req.md +15 -0
  74. package/dsh/docs/compat/stage.md +12 -0
  75. package/dsh/lib/adapters/dispatch-ledger.js +149 -10
  76. package/dsh/lib/guard.js +685 -22
  77. package/dsh/lib/surface/prompt.js +4 -0
  78. package/dsh/lib/tools/index.js +113 -22
  79. package/dsh/package.json +2 -2
  80. package/package.json +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/core/i18n-data/en.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C,eAAO,MAAM,MAAM,EAAE,UAgCpB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAoZlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAyBlB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,UAmCpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UA8CrB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAyCnB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAsClB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,UAiCvB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAcrB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAAe,CAAC;AAGtC,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,UAAe,CAAC;AAG3C,eAAO,MAAM,IAAI,EAAE,UAoBlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAwalB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,UA+BpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UA4BrB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAqBnB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAkCnB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAUrB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC;AAGF,eAAO,MAAM,GAAG,EAAE,UAmJjB,CAAC;AAGF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,UA4CvB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,CAuBlE,CAAC"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/core/i18n-data/en.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C,eAAO,MAAM,MAAM,EAAE,UAgCpB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAoZlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAyBlB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,UAmCpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UA8CrB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAyCnB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAsClB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,UAiCvB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAcrB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAAe,CAAC;AAGtC,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,UAAe,CAAC;AAG3C,eAAO,MAAM,IAAI,EAAE,UA+BlB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAmblB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,UA+BpB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UA4BrB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAqBnB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAkCnB,CAAC;AAGF,eAAO,MAAM,OAAO,EAAE,UAUrB,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC;AAGF,eAAO,MAAM,GAAG,EAAE,UAqJjB,CAAC;AAGF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,UA2DvB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,CAuBlE,CAAC"}
@@ -688,6 +688,17 @@ export const lint = {
688
688
  'req.suspectTmpl': { key: 'lint.req.suspectTmpl', zh: '', en: 'L{line}: `{span}` → suspected unknown command group (tail `{tail}` is registered)' },
689
689
  'req.argAsCommandTmpl': { key: 'lint.req.argAsCommandTmpl', zh: '', en: 'L{line}: `{span}` → suspected positional argument written as a command name (`{token}` is a registered command name; command path undeterminable)' },
690
690
  'req.unclosedRegionWarn': { key: 'lint.req.unclosedRegionWarn', zh: '', en: '⚠️ {path} L{line}: unclosed ignore-start region (no matching ignore-end); suppressed to end of file' },
691
+ // v1.6.1 / REQ-066 A66.3: adherence metrics (lint adherence; read-only)
692
+ 'adherence.title': { key: 'lint.adherence.title', zh: '', en: 'Adherence (read-only observation; numerator/denominator and sample window of each metric are in its definition)' },
693
+ 'adherence.sampleTmpl': { key: 'lint.adherence.sampleTmpl', zh: '', en: 'Sample: {dispatches} dispatch record(s) / {audit} guard decision(s) / {sessions} session(s) / {requirements} in-progress requirement(s)' },
694
+ 'adherence.mainWriteRatio': { key: 'lint.adherence.mainWriteRatio', zh: '', en: 'Main-session write ratio' },
695
+ 'adherence.subagentPerReq': { key: 'lint.adherence.subagentPerReq', zh: '', en: 'Executor dispatches per requirement' },
696
+ 'adherence.syncGap': { key: 'lint.adherence.syncGap', zh: '', en: 'Ledger sync gap' },
697
+ 'adherence.violationRate': { key: 'lint.adherence.violationRate', zh: '', en: 'Guard denial rate' },
698
+ 'adherence.insufficient': { key: 'lint.adherence.insufficient', zh: '', en: 'insufficient sample (null)' },
699
+ 'adherence.percentTmpl': { key: 'lint.adherence.percentTmpl', zh: '', en: '{percent}% ({count})' },
700
+ 'adherence.decimalTmpl': { key: 'lint.adherence.decimalTmpl', zh: '', en: '{value} ({count})' },
701
+ 'adherence.minutesTmpl': { key: 'lint.adherence.minutesTmpl', zh: '', en: '{minutes} minute(s)' },
691
702
  };
692
703
  /* ==================== help ==================== */
693
704
  export const help = {
@@ -759,12 +770,12 @@ export const help = {
759
770
  'flow.stage.reset.argstageId': { key: 'help.flow.stage.reset.argstageId', zh: '', en: 'Stage ID (e.g. stage-01 or v1.0.0-stage-01)' },
760
771
  'flow.stage.reset.to': { key: 'help.flow.stage.reset.to', zh: '', en: 'Target phase (e.g. review_pending / test_pending / done); valid values: openfeel flow phases' },
761
772
  'flow.stage.reset.dryRun': { key: 'help.flow.stage.reset.dryRun', zh: '', en: 'Preview only; nothing is written' },
762
- 'flow.stage.reset.force': { key: 'help.flow.stage.reset.force', zh: '', en: 'Override the plan gate for entering exec_running (allowed and recorded as gate_overrides/gate_missing in flow.json.log)' },
773
+ 'flow.stage.reset.force': { key: 'help.flow.stage.reset.force', zh: '', en: 'Logged override: bypass the plan gate for entering exec_running and record one audit entry in flow.json.log (missing snapshot + by/reason/from/to/at)' },
763
774
  'flow.advance': { key: 'help.flow.advance', zh: '', en: 'Advance pipeline stage' },
764
775
  'flow.advance.op': { key: 'help.flow.advance.op', zh: '', en: 'Operation ID (e.g. stage-01.op-001), for logging/display only' },
765
776
  'flow.advance.to': { key: 'help.flow.advance.to', zh: '', en: 'Target phase (e.g. exec_running). Valid phases & transitions: openfeel flow phases' },
766
777
  'flow.advance.stage': { key: 'help.flow.advance.stage', zh: '', en: 'Stage ID (e.g. stage-03), required' },
767
- 'flow.advance.force': { key: 'help.flow.advance.force', zh: '', en: 'Force execution (skip invalid phase check and phase jump check, but not REV block check)' },
778
+ 'flow.advance.force': { key: 'help.flow.advance.force', zh: '', en: 'Logged override: skip invalid phase check and phase jump check; gate (plan/dev_sync) passes are always audited and the REV block check cannot be bypassed' },
768
779
  'flow.advance.dryRun': { key: 'help.flow.advance.dryRun', zh: '', en: 'Validate only without modifying (preview output). When combined with --force, skips validation but still does not modify' },
769
780
  'flow.advance.reviewTier': { key: 'help.flow.advance.reviewTier', zh: '', en: 'Review tier (full / lean / skip; default = full (zero pruning); the tier trims review gates only when declared explicitly, and cannot bypass the REV block check)' },
770
781
  'flow.advance.quiet': { key: 'help.flow.advance.quiet', zh: '', en: 'Silence non-error output (no success confirmation or Git warning)' },
@@ -953,6 +964,8 @@ export const help = {
953
964
  'lint.req.json': { key: 'help.lint.req.json', zh: '', en: 'Output { schemaVersion, target, ok, issues, suspects, unknownCount, suspectCount, fill } as JSON' },
954
965
  'lint.fill': { key: 'help.lint.fill', zh: '', en: 'List empty requirement bodies / missing requirement plans / empty stage docs (advisory, exit code unchanged)' },
955
966
  'lint.fill.json': { key: 'help.lint.fill.json', zh: '', en: 'Output { schemaVersion, target, ok, checked, empty, missingPlan, stageDocs } as JSON' },
967
+ 'lint.adherence': { key: 'help.lint.adherence', zh: '', en: 'Adherence metrics (main-session write ratio / executor dispatches per requirement / ledger sync gap / guard denial rate; read-only)' },
968
+ 'lint.adherence.json': { key: 'help.lint.adherence.json', zh: '', en: 'Output { schemaVersion, target, ok, main_write_ratio, subagent_per_req, sync_gap, violation_rate } (each { value, definition }) as JSON' },
956
969
  // migrate (legacy layout migration)
957
970
  'migrate': { key: 'help.migrate', zh: '', en: 'Legacy layout migration (detect/backup/migrate/rollback existing project legacy layout)' },
958
971
  'migrate.dryRun': { key: 'help.migrate.dryRun', zh: '', en: 'Detect and preview only, do not write' },
@@ -1016,6 +1029,7 @@ export const help = {
1016
1029
  'req.complete.independent': { key: 'help.req.complete.independent', zh: '', en: 'Independent review (recommended)' },
1017
1030
  'req.complete.self': { key: 'help.req.complete.self', zh: '', en: 'Self review (non-independent; marked in the archive summary)' },
1018
1031
  'req.complete.force': { key: 'help.req.complete.force', zh: '', en: 'Force gates through with an audit trail (writes body_waiver / plan_waiver + audit; files still need filling in)' },
1032
+ 'req.complete.json': { key: 'help.req.complete.json', zh: '', en: 'Output { schemaVersion, id, from, to, status, gates? } as JSON (v1.6.1 / REQ-063)' },
1019
1033
  'req.list': { key: 'help.req.list', zh: '', en: 'List requirements (filter by status/version/owner; --include-archived merges archived ones)' },
1020
1034
  'req.list.status': { key: 'help.req.list.status', zh: '', en: 'Filter by status (draft/scheduled/in_progress/done/blocked/cancelled/rejected)' },
1021
1035
  'req.list.targetVersion': { key: 'help.req.list.targetVersion', zh: '', en: 'Filter by target version' },
@@ -1029,6 +1043,7 @@ export const help = {
1029
1043
  'req.claim.argid': { key: 'help.req.claim.argid', zh: '', en: 'Requirement ID (e.g. REQ-001)' },
1030
1044
  'req.claim.owner': { key: 'help.req.claim.owner', zh: '', en: 'Owner (default: .openfeel/.info.json user -> git config user.name)' },
1031
1045
  'req.claim.force': { key: 'help.req.claim.force', zh: '', en: 'Kept for compatibility: claim does not check the body (the body gate fires only on ->scheduled / ->in_progress / ->done transitions); this option currently has no effect' },
1046
+ 'req.claim.json': { key: 'help.req.claim.json', zh: '', en: 'Output { schemaVersion, id, from, to, status, gates? } as JSON (v1.6.1 / REQ-063)' },
1032
1047
  'req.release': { key: 'help.req.release', zh: '', en: 'Release claim (no-op success if unclaimed)' },
1033
1048
  'req.release.argid': { key: 'help.req.release.argid', zh: '', en: 'Requirement ID (e.g. REQ-001)' },
1034
1049
  'req.set': { key: 'help.req.set', zh: '', en: 'Update requirement fields (whitelist; transition legality checked by engine)' },
@@ -1045,8 +1060,9 @@ export const help = {
1045
1060
  'req.advance': { key: 'help.req.advance', zh: '', en: 'Advance requirement status (legality by engine transition table; done: allowed with no linked stages, or once every linked stage reaches exec_running or later)' },
1046
1061
  'req.advance.argid': { key: 'help.req.advance.argid', zh: '', en: 'Requirement ID (e.g. REQ-001)' },
1047
1062
  'req.advance.to': { key: 'help.req.advance.to', zh: '', en: 'Target status (legality checked by engine)' },
1048
- 'req.advance.force': { key: 'help.req.advance.force', zh: '', en: 'Force gates through with an audit trail (body/plan gate writes a waiver, plan deviation +1; files still need filling in)' },
1049
- 'req.board': { key: 'help.req.board', zh: '', en: 'Requirement board (grouped by status; 7 fixed groups)' },
1063
+ 'req.advance.force': { key: 'help.req.advance.force', zh: '', en: 'Force gates through with an audit trail (body/plan gate writes a waiver, plan deviation +1, in_progress→done review skip records req_review; files still need filling in)' },
1064
+ 'req.advance.json': { key: 'help.req.advance.json', zh: '', en: 'Output { schemaVersion, id, from, to, status, gates? } as JSON (v1.6.1 / REQ-063)' },
1065
+ 'req.board': { key: 'help.req.board', zh: '', en: 'Requirement board (grouped by status; 8 fixed groups)' },
1050
1066
  'req.board.targetVersion': { key: 'help.req.board.targetVersion', zh: '', en: 'Filter by target version' },
1051
1067
  'req.board.json': { key: 'help.req.board.json', zh: '', en: 'Output JSON { schemaVersion, groups }' },
1052
1068
  'req.next': { key: 'help.req.next', zh: '', en: 'Recommend the next claimable requirement (scheduled & unclaimed; by target version ascending)' },
@@ -1084,12 +1100,18 @@ export const help = {
1084
1100
  // v1.6.0-stage-132 / T2: requirement body write-through (req body) and req add body sections
1085
1101
  'req.body': { key: 'help.req.body', zh: '', en: 'Write a business section of the requirement body (meta sections are protected; every write appends to the change log)' },
1086
1102
  'req.body.argid': { key: 'help.req.body.argid', zh: '', en: 'Requirement ID (e.g. REQ-001)' },
1087
- 'req.body.section': { key: 'help.req.body.section', zh: '', en: 'Section name (e.g. 摘要 / 目标与验收 / 问题 / 初步规划; meta sections are not writable)' },
1103
+ 'req.body.section': { key: 'help.req.body.section', zh: '', en: 'Section name (e.g. 摘要 / 目标与验收 / 问题 / 初步规划; mutually exclusive with --from)' },
1088
1104
  'req.body.text': { key: 'help.req.body.text', zh: '', en: 'Section body (Markdown; mutually exclusive with --file)' },
1089
1105
  'req.body.file': { key: 'help.req.body.file', zh: '', en: 'Read the section body from a file (mutually exclusive with --text; relative paths resolve from the project root)' },
1090
1106
  'req.body.append': { key: 'help.req.body.append', zh: '', en: 'Append to the end of the section (default replaces the whole section)' },
1091
1107
  'req.body.replace': { key: 'help.req.body.replace', zh: '', en: 'Replace the whole section (default; mutually exclusive with --append)' },
1092
1108
  'req.body.json': { key: 'help.req.body.json', zh: '', en: 'Output JSON { schemaVersion, id, section, path, lines, created }' },
1109
+ // v1.6.1 / REQ-064: req body --from + req plan (requirement-level plan generation)
1110
+ 'req.body.from': { key: 'help.req.body.from', zh: '', en: 'Import several business sections at once from a Markdown file split by ## (mutually exclusive with --section/--text/--file)' },
1111
+ 'req.plan': { key: 'help.req.plan', zh: '', en: 'Generate the requirement-level plan skeleton (four sections; refuses to overwrite unless --force)' },
1112
+ 'req.plan.argid': { key: 'help.req.plan.argid', zh: '', en: 'Requirement ID (e.g. REQ-001)' },
1113
+ 'req.plan.force': { key: 'help.req.plan.force', zh: '', en: 'Overwrite an existing plan (discards hand-written content; default refuses and writes nothing)' },
1114
+ 'req.plan.json': { key: 'help.req.plan.json', zh: '', en: 'Output JSON { schemaVersion, id, path, created, overwritten, lines } (adds replaced:true at the end when --force overwrites an existing plan; 7 keys in that case)' },
1093
1115
  'req.add.problem': { key: 'help.req.add.problem', zh: '', en: 'Body section ## 问题 (v1.6.0: filled body)' },
1094
1116
  'req.add.goal': { key: 'help.req.add.goal', zh: '', en: 'Body section ## 目标与验收 -> 目标 subsection (v1.6.0: filled body)' },
1095
1117
  'req.add.acceptance': { key: 'help.req.add.acceptance', zh: '', en: 'Body section ## 目标与验收 -> 验收 subsection (v1.6.0: filled body)' },
@@ -1258,7 +1280,7 @@ export const req = {
1258
1280
  'trivial.noMarkTmpl': { key: 'req.trivial.noMarkTmpl', zh: '', en: '{id} has no trivial mark; nothing to revoke' },
1259
1281
  'trivial.alreadyDoneTmpl': { key: 'req.trivial.alreadyDoneTmpl', zh: '', en: '{id} is already done; cannot mark it trivial' },
1260
1282
  'complete.doneTmpl': { key: 'req.complete.doneTmpl', zh: '', en: '✓ {id} completed: review {result} / verify {kind} → done' },
1261
- 'complete.statusTmpl': { key: 'req.complete.statusTmpl', zh: '', en: '{id} is in status {status}: `req complete` only accepts draft / scheduled / in_progress (handle blocked or terminal states first)' },
1283
+ 'complete.statusTmpl': { key: 'req.complete.statusTmpl', zh: '', en: '{id} is in status {status}: `req complete` only accepts draft / scheduled / in_progress / review_pending (handle blocked or terminal states first)' },
1262
1284
  'add.bodyTmpl': { key: 'req.add.bodyTmpl', zh: '', en: 'Body skeleton: {path}' },
1263
1285
  // shared validation messages
1264
1286
  'invalidIdTmpl': { key: 'req.invalidIdTmpl', zh: '', en: '{input} -> invalid requirement ID (expected REQ-NNN, e.g. REQ-001)' },
@@ -1386,6 +1408,8 @@ export const req = {
1386
1408
  'claim.bodyForcedSuffix': { key: 'req.claim.bodyForcedSuffix', zh: '', en: ' [body gate force-allowed with audit trail: body_waiver + audit requirement_body_forced]' },
1387
1409
  'advance.gateForcedSuffix': { key: 'req.advance.gateForcedSuffix', zh: '', en: ' [gate force-allowed with audit trail: body_waiver / plan_waiver + audit]' },
1388
1410
  'complete.gateForcedSuffix': { key: 'req.complete.gateForcedSuffix', zh: '', en: ' [gate force-allowed with audit trail: body_waiver / plan_waiver + audit]' },
1411
+ // v1.6.1 / REQ-063 A63.1: review phase (in_progress → review_pending → done)
1412
+ 'err.reviewPhaseRequiredTmpl': { key: 'req.err.reviewPhaseRequiredTmpl', zh: '', en: 'Requirement {id} cannot complete directly from in_progress: enter the review phase first with `openfeel req advance {id} --to review_pending`, record review and verification, then `--to done`; to skip the review phase use `--force` (audited as gate_overrides=[req_review])' },
1389
1413
  };
1390
1414
  /* ==================== dashboard domain: dashboard HTML rendering copy (v1.5.10 / stage-125 op-002) ==================== */
1391
1415
  /**
@@ -1437,6 +1461,21 @@ export const dashboard = {
1437
1461
  'jsonOpenConflict': { key: 'dashboard.jsonOpenConflict', zh: '', en: '--json and --open cannot be combined (--json starts no external process)' },
1438
1462
  'outEmpty': { key: 'dashboard.outEmpty', zh: '', en: 'The --out path must not be empty' },
1439
1463
  'outIsDirectory': { key: 'dashboard.outIsDirectory', zh: '', en: 'The --out path is an existing directory: {path}' },
1464
+ // v1.6.1 / REQ-065 A65.2: process-debt panel (4 counts + first 5 items each)
1465
+ 'html.section.flowDebt': { key: 'dashboard.html.section.flowDebt', zh: '', en: 'Process debt' },
1466
+ 'html.debt.emptyBody': { key: 'dashboard.html.debt.emptyBody', zh: '', en: 'Empty bodies' },
1467
+ 'html.debt.missingPlan': { key: 'dashboard.html.debt.missingPlan', zh: '', en: 'Missing requirement plans' },
1468
+ 'html.debt.unstamped': { key: 'dashboard.html.debt.unstamped', zh: '', en: 'Unstamped requirements' },
1469
+ 'html.debt.devStale': { key: 'dashboard.html.debt.devStale', zh: '', en: 'Dev ledger stale' },
1470
+ 'html.debt.due': { key: 'dashboard.html.debt.due', zh: '', en: 'stale' },
1471
+ 'html.debt.fresh': { key: 'dashboard.html.debt.fresh', zh: '', en: 'fresh' },
1472
+ 'html.debt.lastSync': { key: 'dashboard.html.debt.lastSync', zh: '', en: 'Last sync' },
1473
+ 'html.debt.moreTmpl': { key: 'dashboard.html.debt.moreTmpl', zh: '', en: '...and {count} more' },
1474
+ // Command summary line 4 (A65.2 human exit)
1475
+ 'debtTmpl': { key: 'dashboard.debtTmpl', zh: '', en: 'Process debt: empty bodies {emptyBody} / missing plans {missingPlan} / unstamped {unstamped} / dev ledger {devState} (last sync {lastSync})' },
1476
+ 'debtDue': { key: 'dashboard.debtDue', zh: '', en: 'stale' },
1477
+ 'debtFresh': { key: 'dashboard.debtFresh', zh: '', en: 'fresh' },
1478
+ 'debtNever': { key: 'dashboard.debtNever', zh: '', en: 'never synced' },
1440
1479
  };
1441
1480
  /* ==================== 聚合导出 ==================== */
1442
1481
  export const allDomains = [