@nimiplatform/nimi-coding 0.2.8 → 0.3.0

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 (205) hide show
  1. package/CHANGELOG.md +8 -92
  2. package/CONTRIBUTING.md +5 -34
  3. package/README.md +47 -350
  4. package/README.zh-CN.md +33 -287
  5. package/cli/commands/start.mjs +48 -688
  6. package/cli/commands/validate-spec-audit.mjs +1 -5
  7. package/cli/constants.mjs +9 -417
  8. package/cli/help.mjs +28 -145
  9. package/cli/index.mjs +5 -33
  10. package/cli/lib/blueprint-audit.mjs +5 -12
  11. package/cli/lib/bootstrap.mjs +0 -9
  12. package/cli/lib/contracts.mjs +0 -163
  13. package/cli/lib/doctor.mjs +155 -10
  14. package/cli/lib/entrypoints.mjs +63 -167
  15. package/cli/lib/internal/contracts-loaders.mjs +0 -85
  16. package/cli/lib/internal/contracts-parse.mjs +84 -520
  17. package/cli/lib/internal/governance/ai/check-agents-freshness.mjs +13 -8
  18. package/cli/lib/internal/surface-taxonomy-validators.mjs +316 -66
  19. package/cli/lib/internal/validators-shared.mjs +0 -16
  20. package/cli/lib/internal/validators-spec-helpers.mjs +7 -140
  21. package/cli/lib/internal/validators-spec.mjs +103 -342
  22. package/cli/lib/shared.mjs +1 -42
  23. package/cli/lib/validators.mjs +0 -48
  24. package/cli/seeds/seed-policy.yaml +0 -3
  25. package/config/bootstrap.yaml +4 -4
  26. package/config/spec-generation-inputs.yaml +6 -12
  27. package/contracts/domain-admission.schema.yaml +3 -3
  28. package/contracts/migration-inventory.schema.yaml +12 -75
  29. package/contracts/negative-fixtures.yaml +19 -99
  30. package/contracts/placement-contract.schema.yaml +49 -78
  31. package/contracts/projection-edge.schema.yaml +37 -121
  32. package/contracts/shared-enums.yaml +4 -8
  33. package/contracts/spec-generation-inputs.schema.yaml +15 -112
  34. package/contracts/spec-layout.schema.yaml +32 -0
  35. package/contracts/surface-taxonomy.schema.yaml +43 -94
  36. package/contracts/table-family.schema.yaml +1 -1
  37. package/contracts/tracked-output-admission.schema.yaml +13 -66
  38. package/methodology/core.yaml +33 -25
  39. package/methodology/four-closure-policy.yaml +18 -26
  40. package/methodology/role-separation-policy.yaml +21 -27
  41. package/methodology/spec-reconstruction.yaml +17 -34
  42. package/package.json +2 -4
  43. package/spec/_meta/spec-tree-model.yaml +5 -101
  44. package/spec/product-scope.yaml +25 -57
  45. package/adapters/README.md +0 -25
  46. package/adapters/claude/README.md +0 -89
  47. package/adapters/claude/profile.yaml +0 -70
  48. package/adapters/codex/README.md +0 -53
  49. package/adapters/codex/profile.yaml +0 -78
  50. package/adapters/oh-my-codex/README.md +0 -184
  51. package/adapters/oh-my-codex/profile.yaml +0 -46
  52. package/cli/commands/admit-high-risk-decision.mjs +0 -108
  53. package/cli/commands/audit-sweep.mjs +0 -364
  54. package/cli/commands/closeout.mjs +0 -186
  55. package/cli/commands/decide-high-risk-execution.mjs +0 -124
  56. package/cli/commands/handoff.mjs +0 -123
  57. package/cli/commands/ingest-high-risk-execution.mjs +0 -95
  58. package/cli/commands/review-high-risk-execution.mjs +0 -95
  59. package/cli/commands/sweep-design.mjs +0 -295
  60. package/cli/commands/sweep.mjs +0 -22
  61. package/cli/commands/topic-formatters.mjs +0 -382
  62. package/cli/commands/topic-goal.mjs +0 -33
  63. package/cli/commands/topic-options-shared.mjs +0 -27
  64. package/cli/commands/topic-options-workflow.mjs +0 -767
  65. package/cli/commands/topic-options.mjs +0 -626
  66. package/cli/commands/topic-runner.mjs +0 -169
  67. package/cli/commands/topic.mjs +0 -795
  68. package/cli/commands/validate-acceptance.mjs +0 -5
  69. package/cli/commands/validate-execution-packet.mjs +0 -5
  70. package/cli/commands/validate-orchestration-state.mjs +0 -5
  71. package/cli/commands/validate-prompt.mjs +0 -5
  72. package/cli/commands/validate-worker-output.mjs +0 -5
  73. package/cli/lib/adapter-profiles.mjs +0 -403
  74. package/cli/lib/audit-execution.mjs +0 -52
  75. package/cli/lib/audit-sweep-runtime/admissions.mjs +0 -508
  76. package/cli/lib/audit-sweep-runtime/audit-validity.mjs +0 -356
  77. package/cli/lib/audit-sweep-runtime/chunks.mjs +0 -697
  78. package/cli/lib/audit-sweep-runtime/claude-auditor.mjs +0 -658
  79. package/cli/lib/audit-sweep-runtime/closeout.mjs +0 -144
  80. package/cli/lib/audit-sweep-runtime/codex-auditor-evidence.mjs +0 -654
  81. package/cli/lib/audit-sweep-runtime/codex-auditor.mjs +0 -527
  82. package/cli/lib/audit-sweep-runtime/common.mjs +0 -341
  83. package/cli/lib/audit-sweep-runtime/coverage-quality.mjs +0 -172
  84. package/cli/lib/audit-sweep-runtime/evidence-assignment.mjs +0 -155
  85. package/cli/lib/audit-sweep-runtime/format.mjs +0 -57
  86. package/cli/lib/audit-sweep-runtime/ingest.mjs +0 -486
  87. package/cli/lib/audit-sweep-runtime/inventory-spec-chunks.mjs +0 -425
  88. package/cli/lib/audit-sweep-runtime/inventory.mjs +0 -798
  89. package/cli/lib/audit-sweep-runtime/ledger.mjs +0 -315
  90. package/cli/lib/audit-sweep-runtime/p0p1-profile.mjs +0 -101
  91. package/cli/lib/audit-sweep-runtime/remediation.mjs +0 -349
  92. package/cli/lib/audit-sweep-runtime/rerun.mjs +0 -129
  93. package/cli/lib/audit-sweep-runtime/risk-budget.mjs +0 -300
  94. package/cli/lib/audit-sweep-runtime/status.mjs +0 -62
  95. package/cli/lib/audit-sweep-runtime/validators-ledger.mjs +0 -215
  96. package/cli/lib/audit-sweep-runtime/validators.mjs +0 -797
  97. package/cli/lib/audit-sweep.mjs +0 -19
  98. package/cli/lib/authority-convergence.mjs +0 -720
  99. package/cli/lib/closeout.mjs +0 -732
  100. package/cli/lib/codex-sdk-runner.mjs +0 -76
  101. package/cli/lib/external-execution.mjs +0 -101
  102. package/cli/lib/handoff.mjs +0 -812
  103. package/cli/lib/high-risk-admission.mjs +0 -512
  104. package/cli/lib/high-risk-decision.mjs +0 -353
  105. package/cli/lib/high-risk-ingest.mjs +0 -321
  106. package/cli/lib/high-risk-review.mjs +0 -267
  107. package/cli/lib/internal/contracts-parse-high-risk.mjs +0 -131
  108. package/cli/lib/internal/contracts-validators.mjs +0 -399
  109. package/cli/lib/internal/doctor-bootstrap-surface.mjs +0 -406
  110. package/cli/lib/internal/doctor-delegated-surface.mjs +0 -256
  111. package/cli/lib/internal/doctor-finalize.mjs +0 -383
  112. package/cli/lib/internal/doctor-format.mjs +0 -286
  113. package/cli/lib/internal/doctor-inspectors.mjs +0 -327
  114. package/cli/lib/internal/doctor-state.mjs +0 -205
  115. package/cli/lib/internal/validators-artifacts.mjs +0 -515
  116. package/cli/lib/sweep-design-runtime/common.mjs +0 -246
  117. package/cli/lib/sweep-design-runtime/engine.mjs +0 -733
  118. package/cli/lib/sweep-design-runtime/fix-topic.mjs +0 -414
  119. package/cli/lib/sweep-design-runtime/lifecycle.mjs +0 -54
  120. package/cli/lib/sweep-design-runtime/results.mjs +0 -324
  121. package/cli/lib/sweep-design.mjs +0 -8
  122. package/cli/lib/topic-artifacts.mjs +0 -186
  123. package/cli/lib/topic-authority-coverage.mjs +0 -73
  124. package/cli/lib/topic-closeout.mjs +0 -560
  125. package/cli/lib/topic-common.mjs +0 -404
  126. package/cli/lib/topic-decisions.mjs +0 -332
  127. package/cli/lib/topic-draft-packets.mjs +0 -167
  128. package/cli/lib/topic-execution.mjs +0 -533
  129. package/cli/lib/topic-goal.mjs +0 -440
  130. package/cli/lib/topic-ledger.mjs +0 -281
  131. package/cli/lib/topic-lifecycle-artifacts.mjs +0 -173
  132. package/cli/lib/topic-root-validation.mjs +0 -288
  133. package/cli/lib/topic-runner-commands.mjs +0 -174
  134. package/cli/lib/topic-runner-deferral.mjs +0 -532
  135. package/cli/lib/topic-runner-stale-gates.mjs +0 -114
  136. package/cli/lib/topic-runner-validation.mjs +0 -138
  137. package/cli/lib/topic-runner.mjs +0 -727
  138. package/cli/lib/topic-scaffold.mjs +0 -252
  139. package/cli/lib/topic-waves.mjs +0 -403
  140. package/cli/lib/topic.mjs +0 -81
  141. package/config/audit-execution-artifacts.yaml +0 -20
  142. package/config/external-execution-artifacts.yaml +0 -16
  143. package/config/host-adapter.yaml +0 -30
  144. package/config/host-profile.yaml +0 -29
  145. package/config/installer-evidence.yaml +0 -31
  146. package/config/skill-installer.yaml +0 -23
  147. package/config/skill-manifest.yaml +0 -48
  148. package/config/skills.yaml +0 -30
  149. package/contracts/acceptance.schema.yaml +0 -16
  150. package/contracts/admission-checklist.schema.yaml +0 -15
  151. package/contracts/audit-chunk.schema.yaml +0 -123
  152. package/contracts/audit-closeout.schema.yaml +0 -51
  153. package/contracts/audit-finding.schema.yaml +0 -61
  154. package/contracts/audit-ledger.schema.yaml +0 -138
  155. package/contracts/audit-plan.schema.yaml +0 -138
  156. package/contracts/audit-remediation-map.schema.yaml +0 -52
  157. package/contracts/audit-rerun.schema.yaml +0 -31
  158. package/contracts/audit-sweep-result.yaml +0 -53
  159. package/contracts/authority-convergence-audit.schema.yaml +0 -19
  160. package/contracts/closeout.schema.yaml +0 -25
  161. package/contracts/decision-review.schema.yaml +0 -16
  162. package/contracts/doc-spec-audit-result.yaml +0 -19
  163. package/contracts/execution-packet.schema.yaml +0 -49
  164. package/contracts/external-host-compatibility.yaml +0 -22
  165. package/contracts/forbidden-shortcuts.catalog.yaml +0 -23
  166. package/contracts/high-risk-admission.schema.yaml +0 -23
  167. package/contracts/high-risk-execution-result.yaml +0 -20
  168. package/contracts/orchestration-state.schema.yaml +0 -41
  169. package/contracts/overflow-continuation.schema.yaml +0 -12
  170. package/contracts/packet.schema.yaml +0 -30
  171. package/contracts/pending-note.schema.yaml +0 -17
  172. package/contracts/prompt.schema.yaml +0 -12
  173. package/contracts/remediation.schema.yaml +0 -16
  174. package/contracts/result.schema.yaml +0 -24
  175. package/contracts/spec-reconstruction-result.yaml +0 -41
  176. package/contracts/sweep-design-result.yaml +0 -349
  177. package/contracts/topic-goal.schema.yaml +0 -87
  178. package/contracts/topic-run-ledger.schema.yaml +0 -72
  179. package/contracts/topic-step-decision.schema.yaml +0 -45
  180. package/contracts/topic.schema.yaml +0 -65
  181. package/contracts/true-close.schema.yaml +0 -15
  182. package/contracts/wave.schema.yaml +0 -29
  183. package/contracts/worker-output.schema.yaml +0 -15
  184. package/contracts/workflow-consumer.schema.yaml +0 -110
  185. package/methodology/audit-sweep-p0p1-recall.yaml +0 -45
  186. package/methodology/authority-convergence-policy.yaml +0 -42
  187. package/methodology/overflow-continuation-policy.yaml +0 -14
  188. package/methodology/skill-exchange-projection.yaml +0 -114
  189. package/methodology/skill-handoff.yaml +0 -34
  190. package/methodology/skill-installer-result.yaml +0 -27
  191. package/methodology/skill-installer-summary-projection.yaml +0 -181
  192. package/methodology/skill-runtime.yaml +0 -23
  193. package/methodology/spec-target-truth-profile.yaml +0 -46
  194. package/methodology/topic-lifecycle-report.yaml +0 -144
  195. package/methodology/topic-lifecycle.yaml +0 -37
  196. package/methodology/topic-naming-ontology.yaml +0 -21
  197. package/methodology/topic-ontology.yaml +0 -38
  198. package/methodology/topic-validation-policy.yaml +0 -9
  199. package/methodology/wave-dag-policy.yaml +0 -14
  200. package/spec/_meta/command-gating-matrix.yaml +0 -143
  201. package/spec/_meta/generate-drift-migration-checklist.yaml +0 -137
  202. package/spec/_meta/governance-routing-cutover-checklist.yaml +0 -35
  203. package/spec/_meta/phase2-impacted-surface-matrix.yaml +0 -44
  204. package/spec/_meta/spec-authority-cutover-readiness.yaml +0 -102
  205. package/spec/bootstrap-state.yaml +0 -99
@@ -1,138 +0,0 @@
1
- version: 1
2
- schema:
3
- id: nimi-coding.audit-ledger.v1
4
- kind: audit-ledger
5
- required_top_level_fields:
6
- - version
7
- - kind
8
- - sweep_id
9
- - snapshot_id
10
- - immutable
11
- - plan_ref
12
- - chunk_refs
13
- - findings_ref
14
- - evidence_refs
15
- - run_ledger_ref
16
- - status
17
- - coverage
18
- - coverage_quality
19
- - audit_validity
20
- - finding_count
21
- - finding_cluster_count
22
- - clustered_symptom_count
23
- - remediation_obligation_count
24
- - unresolved_finding_count
25
- - finding_posture
26
- - created_at
27
- status_enum:
28
- - candidate_ready
29
- - partial
30
- - partial_authority_only
31
- - blocked_evidence_incomplete
32
- - blocked
33
- coverage_required_fields:
34
- - total_files
35
- - included_files
36
- - audited_files
37
- - frozen_chunks
38
- - failed_chunks
39
- - skipped_chunks
40
- finding_posture_required_fields:
41
- - open
42
- - remediated
43
- - accepted_risk
44
- - false_positive
45
- - deferred_backlog
46
- coverage_quality_required_fields:
47
- - scope_label
48
- - posture
49
- - authority_chunk_count
50
- - chunks_with_evidence_inventory
51
- - chunks_without_evidence_inventory
52
- - empty_evidence_chunk_ratio
53
- - evidence_file_count
54
- - max_evidence_files_per_chunk
55
- - max_evidence_chunk_id
56
- - evidence_concentration_ratio
57
- - owner_domain_coverage
58
- - warnings
59
- - blockers
60
- coverage_quality_posture_enum:
61
- - strong
62
- - warning
63
- - blocked
64
- audit_validity_required_fields:
65
- - posture
66
- - no_finding_posture
67
- - audited_outcomes_with_implementation_evidence_refs
68
- - audited_outcomes_without_implementation_evidence_refs
69
- - zero_finding_chunk_count
70
- - large_zero_finding_chunk_count
71
- - negative_reasoning_present
72
- - p0p1_recall_required_count
73
- - p0p1_recall_invalid_count
74
- - p0p1_rule_check_count
75
- - auditor_provenance_present
76
- - calibration_expected_defect_count
77
- - calibration_missed_defect_count
78
- - warnings
79
- - blockers
80
- audit_validity_posture_enum:
81
- - trusted
82
- - warning
83
- - invalid
84
- no_finding_posture_enum:
85
- - not_applicable
86
- - explained
87
- - weak
88
- - invalid
89
- run_event_type_enum:
90
- - plan_created
91
- - chunk_dispatched
92
- - chunk_ingested
93
- - chunk_reviewed
94
- - chunk_frozen
95
- - chunk_failed
96
- - chunk_skipped
97
- - chunk_codex_audit_prepared
98
- - chunk_codex_audit_failed
99
- - chunk_codex_auditor_output_rejected
100
- - chunk_codex_auditor_output_accepted
101
- - ledger_snapshot_created
102
- - remediation_map_created
103
- - remediation_map_admitted
104
- - finding_resolved
105
- - closeout_summary_projected
106
- coverage_quality_warning_ids:
107
- - sparse_evidence_inventory
108
- - owner_domain_authority_only
109
- - evidence_fan_in_concentrated
110
- - full_status_scope_is_declared_inventory
111
- coverage_quality_blocker_ids:
112
- - declared_evidence_target_unresolved
113
- - unmapped_evidence_files
114
- - strict_required_owner_domain_missing_evidence
115
- audit_validity_warning_ids:
116
- - zero_findings_on_large_evidence_inventory
117
- - empty_inventory_no_finding_weak
118
- audit_validity_blocker_ids:
119
- - no_finding_evidence_invalid
120
- - audited_outcome_authority_only_evidence_refs
121
- - no_finding_negative_reasoning_missing
122
- - manager_freeze_invalid_no_finding
123
- - calibration_known_defect_missed
124
- - p0p1_negative_reasoning_missing
125
- - p0p1_evidence_refs_out_of_scope
126
- - p0p1_rule_checks_missing_or_invalid
127
- - auditor_provenance_missing
128
- - synthetic_no_finding_evidence
129
- hard_constraints:
130
- - ledger_snapshots_are_immutable
131
- - candidate_ready_requires_all_included_files_audited
132
- - candidate_ready_requires_all_chunks_frozen
133
- - failed_or_skipped_chunks_force_partial_or_blocked
134
- - ledger_must_reference_append_only_run_ledger
135
- - remediation_obligation_count_excludes_clustered_duplicate_symptoms
136
- - coverage_quality_and_audit_validity_must_be_persisted_in_immutable_snapshots
137
- - coverage_quality_and_audit_validity_must_be_nested_objects_not_flattened_root_fields
138
- - partial_authority_only_and_blocked_evidence_incomplete_are_non_candidate_statuses
@@ -1,138 +0,0 @@
1
- version: 1
2
- schema:
3
- id: nimi-coding.audit-plan.v1
4
- kind: audit-plan
5
- required_top_level_fields:
6
- - version
7
- - kind
8
- - sweep_id
9
- - target_root
10
- - inventory_hash
11
- - inventory
12
- - chunks
13
- - coverage
14
- - created_at
15
- - updated_at
16
- optional_top_level_fields:
17
- - planning_basis
18
- - audit_ignore_policy
19
- - risk_budget_policy
20
- - risk_budget_status
21
- - audit_sweep_config_ref
22
- - app_slice_admission_ref
23
- - app_slice_admissions
24
- - audit_evidence_root_refs
25
- - delegated_projection_admission_refs
26
- - delegated_projection_admissions
27
- - package_authority_admission_refs
28
- - package_authority_admissions
29
- - evidence_inventory_hash
30
- - evidence_inventory
31
- - unmapped_evidence_files
32
- - coverage_quality
33
- - audit_validity
34
- inventory_entry_required_fields:
35
- - file_ref
36
- - sha256
37
- - bytes
38
- - extension
39
- - owner_domain
40
- - classification
41
- - included
42
- - exclusion_reason
43
- chunk_required_fields:
44
- - chunk_id
45
- - state
46
- - owner_domain
47
- - criteria
48
- - files
49
- - file_count
50
- chunk_optional_fields:
51
- - planning_basis
52
- - spec_surface
53
- - authority_refs
54
- - authority_kind
55
- - app_id
56
- - package_authority_id
57
- - delegated_projection_id
58
- - admission_ref
59
- - authority_root
60
- - source_authority_root
61
- - evidence_root_admission_refs
62
- - admitted_evidence_roots
63
- - host_authority_projection_refs
64
- - delegated_evidence_roots
65
- - delegated_declared_evidence_prefixes
66
- - delegated_declared_evidence_refs
67
- - declared_evidence_delegation
68
- - required_verification_commands
69
- - declared_evidence_targets
70
- - declared_evidence_unresolved
71
- - evidence_roots
72
- - evidence_inventory
73
- - coverage_contract
74
- - evidence_inventory_status
75
- - evidence_inventory_empty_reason
76
- - calibration_expected_defects
77
- state_enum:
78
- - planned
79
- - dispatched
80
- - ingested
81
- - reviewed
82
- - frozen
83
- - failed
84
- - skipped
85
- coverage_required_fields:
86
- - total_files
87
- - included_files
88
- - excluded_files
89
- - chunk_count
90
- spec_authority_coverage_fields:
91
- - authority_files
92
- - evidence_files
93
- - unmapped_evidence_files
94
- audit_sweep_config_fields:
95
- quality_mode_enum:
96
- - default
97
- - strict
98
- coverage_quality_namespace: audit_sweep.coverage_quality
99
- audit_validity_namespace: audit_sweep.audit_validity
100
- coverage_quality_summary_fields:
101
- - scope_label
102
- - posture
103
- - warnings
104
- - blockers
105
- audit_validity_summary_fields:
106
- - posture
107
- - warnings
108
- - blockers
109
- - no_finding_posture
110
- - p0p1_recall_required_count
111
- - p0p1_recall_invalid_count
112
- - calibration_expected_defect_count
113
- - calibration_missed_defect_count
114
- hard_constraints:
115
- - inventory_hash_must_cover_all_inventory_entries
116
- - every_included_file_must_belong_to_exactly_one_chunk
117
- - excluded_files_must_have_explicit_exclusion_reason
118
- - zero_included_files_cannot_be_candidate_ready
119
- - spec_authority_plans_must_chunk_by_authority_refs_not_file_inventory
120
- - spec_authority_chunk_files_are_authority_refs_and_evidence_roots_define_audit_evidence_scope
121
- - explicit_audit_ignore_policy_must_record_reason_and_ignored_chunks
122
- - ignored_chunks_must_be_skipped_not_counted_as_audited
123
- - risk_budget_pause_must_not_mark_unresolved_findings_as_closed
124
- - risk_budget_pause_blocks_further_dispatch_until_remediation_bundle_or_manager_action
125
- - admitted_package_authority_projection_refs_must_be_explicitly_mapped
126
- - delegated_projection_authority_must_be_explicitly_admitted
127
- - delegated_declared_evidence_must_name_source_authority_boundary
128
- - delegated_projection_is_audit_modeling_only_not_source_repo_execution
129
- - delegated_projection_must_not_resolve_or_mutate_source_authority_refs
130
- - spec_authority_plans_must_materialize_full_evidence_inventory
131
- - spec_authority_chunks_must_assign_evidence_inventory_to_every_matching_authority_chunk
132
- - spec_authority_evidence_inventory_files_may_be_reused_across_chunks_without_creating_parallel_truth
133
- - spec_authority_chunks_with_empty_evidence_inventory_must_declare_explicit_empty_reason
134
- - spec_authority_unmapped_evidence_files_fail_closed_without_explicit_skip_reason
135
- - spec_authority_coverage_must_split_authority_files_from_evidence_files
136
- - spec_authority_audit_evidence_must_report_one_authority_outcome_per_authority_ref
137
- - spec_authority_audit_evidence_must_report_evidence_files_exactly_matching_chunk_inventory
138
- - audit_sweep_quality_mode_must_be_default_unless_strict_is_explicit
@@ -1,52 +0,0 @@
1
- version: 1
2
- schema:
3
- id: nimi-coding.audit-remediation-map.v1
4
- kind: audit-remediation-map
5
- required_top_level_fields:
6
- - version
7
- - kind
8
- - sweep_id
9
- - source_ledger_ref
10
- - source_findings_ref
11
- - grouping_policy
12
- - remediation_bundles
13
- - waves
14
- - unmapped_findings
15
- - created_at
16
- - updated_at
17
- wave_required_fields:
18
- - wave_id
19
- - status
20
- - owner_domain
21
- - priority
22
- - actionability
23
- - finding_ids
24
- - cluster_ids
25
- - clustered_symptom_count
26
- - source_chunks
27
- - files
28
- - write_set
29
- - depends_on
30
- - remediation_bundle
31
- - admission_checklist
32
- remediation_bundle_required_fields:
33
- - bundle_id
34
- - cluster_ids
35
- - representative_finding_ids
36
- - canonical_finding_ids
37
- - duplicate_symptom_count
38
- - source_chunks
39
- - repair_targets
40
- status_enum:
41
- - proposed
42
- - admitted
43
- - superseded
44
- - empty
45
- hard_constraints:
46
- - remediation_map_must_not_mutate_source_ledger
47
- - every_open_finding_must_be_mapped_or_explicitly_unmapped
48
- - duplicate_symptoms_must_remain_traceable_inside_remediation_bundles
49
- - duplicate_symptoms_do_not_count_as_independent_remediation_obligations_by_default
50
- - write_set_conflicts_must_be_visible
51
- - needs_decision_findings_require_manager_decision_admission
52
- - remediation_map_is_not_a_substitute_for_sweep_design_when_fork_review_or_user_decision_is_required
@@ -1,31 +0,0 @@
1
- version: 1
2
- schema:
3
- id: nimi-coding.audit-rerun.v1
4
- kind: audit-rerun
5
- required_top_level_fields:
6
- - finding_id
7
- - source_fingerprint
8
- - disposition
9
- - rerun
10
- - evidence_summary
11
- - verified_at
12
- disposition_enum:
13
- - remediated
14
- - accepted-risk
15
- - false-positive
16
- - deferred-backlog
17
- rerun_required_fields:
18
- - chunk_id
19
- - covered_files
20
- - verdict
21
- - auditor
22
- verdict_enum:
23
- - not_reproduced
24
- - still_reproduced
25
- - manager_accepted
26
- - deferred
27
- hard_constraints:
28
- - remediated_requires_not_reproduced_verdict
29
- - rerun_covered_files_must_include_original_finding_file
30
- - source_fingerprint_must_match_original_finding
31
- - manager_dispositions_require_manager_acceptance_evidence
@@ -1,53 +0,0 @@
1
- version: 1
2
- result_contract:
3
- id: delegated_audit_sweep_result
4
- command_family:
5
- canonical_entrypoint: "nimicoding sweep audit"
6
- removed_entrypoint: "nimicoding audit-sweep"
7
- summary_required_fields:
8
- - plan_ref
9
- - chunk_refs
10
- - ledger_ref
11
- - report_ref
12
- - remediation_map_ref
13
- - audit_closeout_ref
14
- - evidence_refs
15
- - finding_count
16
- - unresolved_finding_count
17
- - status
18
- - coverage_scope
19
- - coverage_quality
20
- - audit_validity
21
- - summary
22
- - verified_at
23
- summary_status_enum:
24
- - candidate_ready
25
- - partial
26
- - partial_authority_only
27
- - blocked_evidence_incomplete
28
- - blocked
29
- coverage_quality_required_fields:
30
- - scope_label
31
- - posture
32
- - warnings
33
- - blockers
34
- audit_validity_required_fields:
35
- - posture
36
- - warnings
37
- - blockers
38
- - no_finding_posture
39
- - p0p1_recall_required_count
40
- - p0p1_recall_invalid_count
41
- - p0p1_rule_check_count
42
- - auditor_provenance_present
43
- - calibration_expected_defect_count
44
- - calibration_missed_defect_count
45
- locality: local_only
46
- semantic_constraints:
47
- - do_not_promote_audit_sweep_summary_to_project_truth
48
- - do_not_treat_external_audit_sweep_summary_as_remediation_or_closure_judgement
49
- - use_sweep_design_for_finding_confirmation_clustering_fork_review_user_decision_and_wave_planning
50
- - candidate_ready_requires_full_authority_and_evidence_coverage
51
- - full_coverage_status_requires_candidate_ready_ledger
52
- - spec_authority_sweeps_must_report_authority_coverage_and_evidence_coverage_separately
53
- - audit_validity_invalid_must_not_be_summarized_as_successful_no_finding_audit
@@ -1,19 +0,0 @@
1
- id: nimicoding.authority-convergence-audit.v1
2
- kind: authority-convergence-audit
3
- required:
4
- - verdict
5
- - blocking_findings
6
- - concerns
7
- - deferred_non_blockers
8
- - authority_refs
9
- - ready_for_implementation
10
- verdict_enum:
11
- - PASS
12
- - NEEDS_REVISION
13
- - FAIL
14
- rules:
15
- - PASS requires blocking_findings to be empty and ready_for_implementation=true
16
- - NEEDS_REVISION or FAIL requires ready_for_implementation=false
17
- - deferred_non_blockers must not hide unresolved authority owner, parallel truth, or downstream vocabulary blockers
18
- - auditor output is candidate evidence until recorded by the nimicoding manager as a topic audit result
19
- - auditor must not edit implementation code, mutate spec truth, or decide semantic acceptance
@@ -1,25 +0,0 @@
1
- id: nimicoding.topic-closeout.v1
2
- kind: topic-closeout
3
- required:
4
- - closeout_id
5
- - topic_id
6
- - scope
7
- - authority_closure
8
- - semantic_closure
9
- - consumer_closure
10
- - drift_resistance_closure
11
- - disposition
12
- scope_enum:
13
- - wave
14
- - topic
15
- closure_enum:
16
- - open
17
- - closed
18
- - blocked
19
- disposition_enum:
20
- - complete
21
- - partial
22
- - deferred
23
- rules:
24
- - wave closeout requires all four closure dimensions to be explicit
25
- - topic closeout must not imply true close unless true-close posture is separately explicit
@@ -1,16 +0,0 @@
1
- id: nimicoding.decision-review.v1
2
- kind: decision-review
3
- required:
4
- - decision_review_id
5
- - topic_id
6
- - date
7
- - decision
8
- - replaced_scope
9
- - active_replacement_scope
10
- disposition_enum:
11
- - retired
12
- - superseded
13
- - unchanged
14
- rules:
15
- - decision review must explicitly state whether prior scope is retired, superseded, or unchanged
16
- - active replacement scope must be machine-identifiable
@@ -1,19 +0,0 @@
1
- version: 1
2
- result_contract:
3
- id: delegated_doc_spec_audit_result
4
- summary_required_fields:
5
- - compared_paths
6
- - finding_count
7
- - status
8
- - summary
9
- - verified_at
10
- summary_status_enum:
11
- - aligned
12
- - drift_detected
13
- - blocked
14
- default_compared_paths:
15
- - README.md
16
- - .nimi/spec
17
- locality: local_only
18
- semantic_constraints:
19
- - do_not_promote_doc_spec_audit_summary_to_project_truth
@@ -1,49 +0,0 @@
1
- id: nimi-coding.execution-packet.v1
2
- kind: execution-packet
3
- required:
4
- - packet_id
5
- - topic_id
6
- - status
7
- - owner
8
- - created_at
9
- - updated_at
10
- - baseline_ref
11
- - entry_phase_id
12
- - phases
13
- - escalation_policy
14
- - notification_settings
15
- - resume_policy
16
- status_enum:
17
- - draft
18
- - frozen
19
- - superseded
20
- - archived
21
- phase_required:
22
- - phase_id
23
- - goal
24
- - authority_refs
25
- - write_scope
26
- - read_scope
27
- - required_checks
28
- - completion_criteria
29
- - escalation_conditions
30
- - next_on_success
31
- - stop_on_failure
32
- phase_stop_on_failure_enum:
33
- - pause
34
- - stop
35
- escalation_policy_required:
36
- - pause_conditions
37
- - manager_decision_required
38
- notification_settings_required:
39
- - on_block
40
- - on_final_completion
41
- - on_progress
42
- resume_policy_required:
43
- - same_revision_resume_allowed_reasons
44
- - new_packet_required_on
45
- rules:
46
- - baseline_ref must resolve to a baseline artifact
47
- - entry_phase_id must exist in phases[].phase_id
48
- - next_on_success must be null or an existing phase_id
49
- - packet must not encode transport secrets, runtime state, or semantic acceptance outcomes
@@ -1,22 +0,0 @@
1
- version: 1
2
- compatibility_contract:
3
- id: external_host_boundary_compatibility
4
- completion_profile: boundary_complete
5
- supported_host_posture:
6
- - host_agnostic_external_host
7
- supported_host_examples:
8
- - oh_my_codex
9
- - codex
10
- - claude
11
- - gemini
12
- required_behavior:
13
- - consume_handoff_json_as_authoritative_contract
14
- - treat_handoff_prompt_as_human_projection_only
15
- - read_project_local_nimi_truth
16
- - route_declared_external_skills
17
- - fail_closed_on_missing_authority
18
- forbidden_behavior:
19
- - assume_packaged_run_kernel
20
- - assume_provider_or_scheduler_ownership
21
- - promote_runtime_state_to_semantic_truth
22
- - redefine_acceptance_disposition_or_finding_judgment
@@ -1,23 +0,0 @@
1
- id: nimicoding.forbidden-shortcuts.v1
2
- kind: forbidden-shortcuts-catalog
3
- entries:
4
- - key: mvp_subset_contract
5
- meaning: do_not_cut_canonical_contract_truth_into_a_temporary_minimum_subset
6
- - key: legacy_alias
7
- meaning: do_not_keep_obsolete_semantics_alive_via_soft_aliases
8
- - key: compat_shim
9
- meaning: do_not_hide_owner_cut_gaps_behind_temporary_compatibility_code
10
- - key: dual_read
11
- meaning: do_not_keep_two_parallel_truth_read_paths_without_explicit_admission
12
- - key: dual_write
13
- meaning: do_not_keep_two_parallel_truth_write_paths_without_explicit_admission
14
- - key: placeholder_success
15
- meaning: do_not_fake_success_or_closure_when_required_truth_is_missing
16
- - key: happy_path_only_closure
17
- meaning: do_not_claim_closure_when_only_the_happy_path_is_closed
18
- - key: time_phased_layering
19
- meaning: do_not_replace_semantic_layering_with_time_sliced_core_contracts
20
- - key: app_local_shadow_truth
21
- meaning: do_not_let_app_local_convenience_state_become_hidden_canonical_truth
22
- - key: silent_owner_cut_reopen
23
- meaning: do_not_reopen_owner_domain_truth_inside_a_downstream_execution_wave
@@ -1,23 +0,0 @@
1
- version: 1
2
- truth_contract:
3
- id: local_high_risk_admission_evidence
4
- top_level_required_keys:
5
- - admissions
6
- - admission_rules
7
- - semantic_constraints
8
- admission_required_fields:
9
- - topic_id
10
- - packet_id
11
- - disposition
12
- - admitted_at
13
- - manager_review_owner
14
- - summary
15
- - source_decision_contract
16
- disposition_enum:
17
- - complete
18
- - partial
19
- - deferred
20
- semantic_constraints:
21
- - local_admission_records_must_not_promote_operational_runtime_state
22
- - local_admission_records_must_not_be_used_as_product_authority
23
- - local_admission_records_must_use_iso_8601_utc_admitted_at
@@ -1,20 +0,0 @@
1
- version: 1
2
- result_contract:
3
- id: delegated_high_risk_execution_result
4
- summary_required_fields:
5
- - packet_ref
6
- - orchestration_state_ref
7
- - prompt_ref
8
- - worker_output_ref
9
- - evidence_refs
10
- - status
11
- - summary
12
- - verified_at
13
- summary_status_enum:
14
- - candidate_ready
15
- - blocked
16
- - failed
17
- locality: local_only
18
- semantic_constraints:
19
- - do_not_promote_high_risk_execution_summary_to_project_truth
20
- - do_not_treat_external_execution_summary_as_acceptance_or_disposition
@@ -1,41 +0,0 @@
1
- id: nimi-coding.orchestration-state.v1
2
- kind: orchestration-state
3
- required:
4
- - state_id
5
- - topic_id
6
- - packet_ref
7
- - run_status
8
- - current_phase_id
9
- - last_completed_phase_id
10
- - awaiting_human_action
11
- - updated_at
12
- - owner
13
- optional:
14
- - pause_reason
15
- - notification_refs
16
- - current_prompt_ref
17
- - latest_worker_output_ref
18
- - latest_acceptance_ref
19
- - latest_evidence_refs
20
- - started_at
21
- run_status_enum:
22
- - running
23
- - paused
24
- - awaiting_confirmation
25
- - completed
26
- - failed
27
- - superseded
28
- notification_ref_required:
29
- - event
30
- - correlation_id
31
- rules:
32
- - packet_ref must resolve to an execution packet artifact
33
- - current_phase_id and last_completed_phase_id must be null or existing packet phase ids
34
- - running state requires current_phase_id
35
- - paused state requires current_phase_id, pause_reason, and awaiting_human_action
36
- - awaiting_confirmation state requires current_phase_id and awaiting_human_action and is legacy-only for older runs
37
- - failed state requires awaiting_human_action
38
- - completed state requires last_completed_phase_id and must not carry current_phase_id, awaiting_human_action, or pause_reason
39
- - resume_token and transport secrets are forbidden
40
- - notification_refs entries may track event/correlation emission refs, but they must not become notification log state ownership
41
- - orchestration state must not encode semantic acceptance or finding judgments
@@ -1,12 +0,0 @@
1
- id: nimicoding.overflow-continuation.v1
2
- kind: overflow-continuation
3
- required:
4
- - topic_id
5
- - wave_id
6
- - overflowed_packet_id
7
- - manager_judgement
8
- - continuation_packet_id
9
- - same_owner_domain
10
- rules:
11
- - overflow continuation must not be used to hide a cross-domain scope expansion
12
- - same_owner_domain must be explicit and true before continuation is admitted