@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,70 +1,17 @@
1
- version: 1
1
+ version: 2
2
2
  contract:
3
- id: nimicoding.tracked-output-admission.v1
3
+ id: nimicoding.tracked-output-admission.v2
4
4
  owner: nimi-coding
5
- purpose: Define the only allowed path for tracked non-product artifacts.
6
- required_top_level_fields:
7
- - version
8
- - admissions
9
- - allowed_roots
10
- - privacy_posture_enum
11
- - semantic_constraints
12
- admission_required_fields:
13
- - artifact_class
14
- - root
15
- - owner
16
- - schema_ref
17
- - privacy_posture
18
- - retention
19
- - regeneration_or_review_command
20
- - drift_check_command
21
- - forbidden_fields
22
- - max_size_policy
23
- - non_parallel_truth_basis
24
- shared_enum_ref: shared-enums.yaml
25
- artifact_class_enum:
26
- - derived_manifest
27
- - derived_summary
28
- - state_manifest
29
- - audit_index
30
- - audit_summary
31
- - roadmap_index
32
- - roadmap_summary
5
+ purpose: Make every tracked non-product output explicit and narrow.
6
+ required_top_level_fields: [version, admissions, semantic_constraints]
7
+ admission_required_fields: [root, allowed_artifact_classes, owner, rationale, validation_commands]
33
8
  admissions: []
34
- allowed_roots:
35
- - .nimi/derived/**
36
- - .nimi/state/**
37
- - .nimi/audit/**
38
- - .nimi/roadmap/**
39
- privacy_posture_enum:
40
- - non_private
41
- - redacted
42
- retention_enum:
43
- - compact_manifest
44
- - compact_summary
45
- - compact_index
46
- max_size_policy_required_fields:
47
- - max_files
48
- - max_bytes_per_file
49
- - max_rows_per_file
50
- non_parallel_truth_basis_enum:
51
- - indexes_authority_refs_without_rule_body
52
- - summarizes_redacted_evidence_without_raw_payload
53
- - records_regeneration_metadata_without_generated_body
54
- - records_product_facing_roadmap_without_implementation_authority
55
- forbidden_fields:
56
- - raw_audit_transcript
57
- - private_prompt
58
- - private_finding_detail
59
- - product_rule_body
60
- - package_methodology_body
61
- - current_run_ledger
62
- - raw_evidence_payload
63
- - personal_or_secret_data
9
+ default_policy:
10
+ tracked_non_product_outputs: forbidden_without_explicit_admission
11
+ local_operational_outputs_root: .nimi/local
12
+ generated_views: stdout_only
64
13
  semantic_constraints:
65
- - tracked_non_product_roots_are_disabled_without_admission
66
- - empty_admissions_means_all_tracked_non_product_roots_fail_closed
67
- - admission_must_prove_artifact_is_compact_non_private_and_non_parallel_truth
68
- - audit_raw_materials_are_never_tracked_by_this_contract
69
- - generated_views_must_be_reproducible_if_tracked
70
- - roadmap_records_must_not_authorize_implementation
14
+ - empty_admission_list_is_valid_and_means_no_tracked_non_product_outputs
15
+ - admission_does_not_promote_output_to_product_authority
16
+ - output_root_must_not_overlap_.nimi/spec
17
+ - validation_commands_must_be_deterministic
@@ -1,25 +1,33 @@
1
- version: 1
2
- product:
3
- package_name: "@nimiplatform/nimi-coding"
4
- repository_stage: bootstrap
5
- truth_model:
6
- root: ".nimi"
7
- methodology_in_project: true
8
- ai_native_first: true
9
- human_projection: derived_only
10
- execution_bootstrap:
11
- self_hosting: false
12
- current_governance_mode: main_repo_nimi_coding
13
- local_topic_runtime_admitted: false
14
- methodology_posture:
15
- risk_shape: authority_bearing_or_high_risk_only
16
- execution_default: inline_manager_worker
17
- continuity_model: continuity_agnostic
18
- entry_policy:
19
- high_risk_work_requires_methodology: true
20
- small_low_risk_changes_need_topic: false
21
- deferred_surfaces:
22
- - skill_runtime
23
- - skill_installation_runtime
24
- - self_hosting_execution
25
- - project_local_topic_runtime
1
+ version: 3
2
+ methodology:
3
+ id: nimi-coding
4
+ mission: Preserve explicit product authority while AI-assisted changes are designed, implemented, and verified by the host environment.
5
+ package_boundary:
6
+ owns:
7
+ - methodology_principles
8
+ - spec_construction_contracts
9
+ - managed_methodology_and_contract_projections
10
+ - deterministic_spec_and_governance_validation
11
+ does_not_own:
12
+ - task_planning
13
+ - task_state
14
+ - agent_delegation
15
+ - implementation_execution
16
+ - review_or_approval_state
17
+ - provider_runtime
18
+ principles:
19
+ - authority_before_convenience
20
+ - explicit_complexity_over_ambiguous_simplicity
21
+ - root_cause_over_local_patch
22
+ - no_pseudo_success
23
+ - evidence_must_not_override_authority
24
+ - generated_views_are_never_canonical
25
+ - unresolved_semantic_forks_fail_closed
26
+ authority_order:
27
+ - host_product_spec
28
+ - package_methodology_and_contracts
29
+ - local_non_authority_evidence
30
+ - implementation
31
+ host_integration:
32
+ execution_owner: host_native_capabilities
33
+ constraint: nimi-coding_outputs_may_inform_but_must_not_orchestrate_host_execution
@@ -1,28 +1,20 @@
1
- version: 1
1
+ version: 2
2
2
  four_closure_policy:
3
+ purpose: Require independent proof that a material change is complete.
3
4
  closures:
4
- - authority
5
- - semantic
6
- - consumer
7
- - drift_resistance
8
- rule:
9
- all_four_must_be_explicit_for_wave_closeout: true
10
- wave_closeout_evidence:
11
- require_packet_lineage: true
12
- require_result_lineage: true
13
- true_close_audit_evidence:
14
- require_wave_closeout_for_closed_waves: true
15
- require_packet_lineage_for_closed_waves: true
16
- require_result_lineage_for_closed_waves: true
17
- authority_examples:
18
- - canonical_owner_is_unique
19
- - no_parallel_truth_remains
20
- semantic_examples:
21
- - required_fields_and_failure_modes_are_pinned
22
- - complex_cases_are_not_deferred_as_assumptions
23
- consumer_examples:
24
- - normal_consumers_use_the_correct_seam
25
- - shortcuts_cannot_silently_become_mainline_truth
26
- drift_resistance_examples:
27
- - forbidden_shortcuts_are_explicit
28
- - future_implementers_cannot_easily_thin_the_design
5
+ functional:
6
+ question: Does the implemented behavior satisfy the admitted product rules?
7
+ required_evidence: executable_tests_or_equivalent_deterministic_proof
8
+ negative:
9
+ question: Are forbidden and failure paths explicitly exercised?
10
+ required_evidence: negative_tests_or_contract_refusals
11
+ structural:
12
+ question: Does the result preserve module, dependency, and authority boundaries?
13
+ required_evidence: build_lint_static_checks_and_boundary_validators
14
+ drift_resistance:
15
+ question: Will deterministic checks reject a future divergence?
16
+ required_evidence: committed_validator_or_reproducible_check
17
+ acceptance:
18
+ all_four_must_be_explicit_for_material_change: true
19
+ missing_closure_is_not_success: true
20
+ evidence_format_and_review_process_are_host_owned: true
@@ -1,28 +1,22 @@
1
- version: 1
1
+ version: 2
2
2
  role_separation_policy:
3
- roles:
4
- manager:
5
- owns:
6
- - wave_graph
7
- - packet_admission
8
- - manager_judgement
9
- - closeout_sync
10
- must_not:
11
- - silently_implement_production_scope_while_changing_semantics
12
- worker:
13
- owns:
14
- - one_admitted_packet
15
- - bounded_write_set_execution
16
- must_not:
17
- - widen_owner_domain
18
- - weaken_fail_closed_rules
19
- auditor:
20
- owns:
21
- - structural_review
22
- - drift_detection
23
- - closure_verification
24
- - pre_implementation_authority_convergence_evidence
25
- must_not:
26
- - silently_turn_missing_scope_into_future_follow_up
27
- - mutate_authority_or_implementation_while_auditing
28
- - decide_semantic_acceptance_or_packet_admission
3
+ purpose: Prevent one perspective from silently defining authority, implementation, and acceptance.
4
+ logical_responsibilities:
5
+ authority_authoring:
6
+ owns: [product_intent, normative_rules, explicit_semantic_decisions]
7
+ must_not_self_validate: implementation_conformance
8
+ implementation:
9
+ owns: [code_changes, migrations, executable_tests]
10
+ must_not_self_authorize: product_semantic_changes
11
+ verification:
12
+ owns: [contract_checks, negative_evidence, structural_and_drift_proof]
13
+ must_not_rewrite: product_authority_to_make_results_pass
14
+ separation_rule:
15
+ required: responsibilities_remain_distinguishable_in_evidence_and_decisions
16
+ mechanism: host_owned
17
+ physical_agent_or_session_topology: not_prescribed
18
+ failure_conditions:
19
+ - implementation_invents_missing_authority
20
+ - verification_accepts_pseudo_success
21
+ - generated_evidence_is_promoted_to_authority
22
+ - unresolved_owner_ambiguity_is_silently_resolved
@@ -1,49 +1,32 @@
1
- version: 2
1
+ version: 3
2
2
  reconstruction:
3
- required: true
4
- owner: nimi-coding
3
+ id: spec_reconstruction
4
+ owner: host_product_team
5
+ package_role: contracts_methodology_and_deterministic_validation
6
+ execution_owner: host_native_capabilities
5
7
  generation_inputs_ref: .nimi/config/spec-generation-inputs.yaml
6
8
  surface_taxonomy_ref: .nimi/contracts/surface-taxonomy.schema.yaml
7
9
  placement_contract_ref: .nimi/contracts/placement-contract.schema.yaml
8
10
  table_family_contract_ref: .nimi/contracts/table-family.schema.yaml
9
11
  domain_admission_contract_ref: .nimi/contracts/domain-admission.schema.yaml
10
12
  tracked_output_admission_contract_ref: .nimi/contracts/tracked-output-admission.schema.yaml
11
- spec_tree_model_ref: .nimi/contracts/surface-taxonomy.schema.yaml
12
- result_contract_ref: .nimi/contracts/spec-reconstruction-result.yaml
13
- trigger:
14
- bootstrap_state: bootstrap_only
15
13
  goals:
16
14
  - establish_project_canonical_rule_root
17
- - classify_every_spec_surface_before_generation
15
+ - classify_every_input_before_generation
18
16
  - keep_product_authority_under_.nimi/spec
19
17
  - keep_package_methodology_under_nimi-coding
20
- - keep_generation_audit_state_under_.nimi/local/state/spec-generation
21
- - keep_audit_evidence_under_.nimi/local/audit
18
+ - keep_generation_state_under_.nimi/local/state/spec-generation
19
+ - keep_verification_evidence_under_.nimi/local/audit
22
20
  - separate_product_authority_tables_from_support_registries
23
21
  - reject_generated_views_as_authority_inputs
24
- - reject_lifecycle_state_as_product_authority
25
- - accept_mixed_inputs_only_through_class_filtered_inputs
26
22
  - preserve_authority_explicitness
27
23
  - stop_on_authority_ambiguity
28
24
  target_root: .nimi/spec
29
25
  audit_root: .nimi/local/state/spec-generation/spec-generation-audit.yaml
30
26
  target_tree_shape:
31
- required_surface_classes:
32
- - product_authority
33
- - product_authority_table
34
- - thin_guidance
35
- optional_surface_classes:
36
- - host_projection_anchor
37
- - support_registry
38
- forbidden_surface_classes:
39
- - derived_view
40
- - spec_generation_state
41
- - audit_evidence_state
42
- - operational_local_artifact
43
- - nimicoding_managed_projection
44
- - candidate_roadmap
45
- - lifecycle_progress_state
46
- - methodology_authority
27
+ required_surface_classes: [product_authority, product_authority_table, thin_guidance]
28
+ optional_surface_classes: [host_projection_anchor, support_registry, host_instruction, tracked_derived_projection]
29
+ forbidden_surface_classes: [derived_view, spec_generation_state, audit_evidence_state, operational_local_artifact, nimicoding_managed_projection, methodology_authority]
47
30
  minimal_required_outputs:
48
31
  - .nimi/spec/INDEX.md
49
32
  - .nimi/spec/project/kernel/index.md
@@ -69,18 +52,18 @@ reconstruction:
69
52
  hard_constraints:
70
53
  - no_human_friendly_parallel_truth
71
54
  - no_silent_authority_inference
72
- - no_project_source_mutation_during_reconstruction
73
55
  - write_product_authority_outputs_only_under_.nimi/spec
74
56
  - write_file_level_generation_audit_under_.nimi/local/state/spec-generation
75
- - never_write_generation_audit_under_.nimi/spec/_meta
57
+ - never_write_generation_audit_under_.nimi/spec
76
58
  - every_generated_canonical_file_requires_explicit_source_basis_and_unresolved_gap_tracking
77
59
  - every_input_file_requires_surface_class_before_generation
78
60
  - package_methodology_and_package_spec_must_not_be_promoted_into_.nimi/spec
79
61
  - host_projection_anchors_must_be_minimal_and_admitted
80
62
  - unresolved_ambiguity_must_remain_explicit
81
- - do_not_treat_repo_local_support_files_as_canonical_tree_completion
82
- lifecycle_contract_ref: .nimi/contracts/spec-reconstruction-result.yaml
63
+ - nimi_coding_must_not_create_or_manage_host_execution_state
83
64
  completion_gate:
84
- bootstrap_state_tree_state: canonical_tree_ready
85
- required_profile: surface_taxonomy_v1
65
+ required_profile: surface_taxonomy_v2
86
66
  audit_contract_ref: .nimi/contracts/spec-generation-audit.schema.yaml
67
+ validation_commands:
68
+ - pnpm exec nimicoding validate-spec-tree -- .nimi/spec
69
+ - pnpm exec nimicoding validate-spec-audit -- .nimi/local/state/spec-generation/spec-generation-audit.yaml
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@nimiplatform/nimi-coding",
3
- "version": "0.2.8",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
- "description": "AI-native coding governance toolkit for bootstrapping .nimi/** into arbitrary projects.",
5
+ "description": "AI-native methodology, spec construction, and deterministic governance validation.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://docs.nimi.ai/nimicoding",
8
8
  "repository": {
@@ -38,13 +38,11 @@
38
38
  "nimicoding"
39
39
  ],
40
40
  "dependencies": {
41
- "@openai/codex-sdk": "^0.124.0",
42
41
  "yaml": "^2.8.1"
43
42
  },
44
43
  "files": [
45
44
  "bin",
46
45
  "cli",
47
- "adapters",
48
46
  "config",
49
47
  "contracts",
50
48
  "methodology",
@@ -1,6 +1,6 @@
1
- version: 2
1
+ version: 3
2
2
  spec_tree_model:
3
- profile: surface_taxonomy_v1
3
+ profile: surface_taxonomy_v2
4
4
  product_authority_root: .nimi/spec
5
5
  package_authority_root: package://@nimiplatform/nimi-coding
6
6
  authority_mode: surface_class_validated
@@ -13,118 +13,23 @@ spec_tree_model:
13
13
  domain_admission: package://@nimiplatform/nimi-coding/contracts/domain-admission.schema.yaml
14
14
  tracked_output_admission: package://@nimiplatform/nimi-coding/contracts/tracked-output-admission.schema.yaml
15
15
  migration_inventory: package://@nimiplatform/nimi-coding/contracts/migration-inventory.schema.yaml
16
- workflow_consumer: package://@nimiplatform/nimi-coding/contracts/workflow-consumer.schema.yaml
17
16
  domains:
18
17
  - id: project
19
18
  root: .nimi/spec/project
20
19
  authority_class: active_product
21
20
  allowed_surface_classes: [product_authority, product_authority_table, thin_guidance, support_registry]
22
- product_authority_classes:
23
- - id: product_authority
24
- path_patterns:
25
- - .nimi/spec/**/kernel/*.md
26
- allowed_extensions:
27
- - .md
28
- authority_rank: active_product_canonical
29
- required_admission: domain_admission
30
- - id: product_authority_table
31
- path_patterns:
32
- - .nimi/spec/**/kernel/tables/**/*.yaml
33
- - .nimi/spec/**/kernel/tables/**/*.yml
34
- allowed_extensions:
35
- - .yaml
36
- - .yml
37
- authority_rank: active_product_canonical
38
- required_admission: domain_admission_and_table_family
39
- guidance_classes:
40
- - id: thin_guidance
41
- path_patterns:
42
- - .nimi/spec/**/*.md
43
- excluded_path_patterns:
44
- - .nimi/spec/**/kernel/*.md
45
- must_reference_product_authority_ids: true
46
- must_not_define_rule_body: true
47
- authority_rank: guidance_only
48
- non_authority_classes:
49
- - id: derived_view
50
- allowed_roots:
51
- - stdout_view
52
- forbidden_roots:
53
- - .nimi/spec/**/kernel/generated/**
54
- - .nimi/spec/generated/**
55
- tracking_policy: untracked_stdout_only
56
- - id: spec_generation_state
57
- allowed_roots:
58
- - .nimi/local/state/spec-generation/**
59
- forbidden_roots:
60
- - .nimi/spec/_meta/spec-generation-audit.yaml
61
- - .nimi/spec/_meta/spec-generation-audit/**
62
- tracking_policy: local_only
63
- - id: audit_evidence_state
64
- allowed_roots:
65
- - .nimi/local/audit/**
66
- forbidden_roots:
67
- - .nimi/spec/**
68
- tracking_policy: local_only
69
- - id: lifecycle_progress_state
70
- allowed_roots:
71
- - .nimi/topics/**
72
- - .nimi/local/state/**
73
- forbidden_roots:
74
- - .nimi/spec/**
75
- tracking_policy: local_only
76
- - id: candidate_roadmap
77
- allowed_roots:
78
- - .nimi/topics/**
79
- forbidden_roots:
80
- - .nimi/spec/**
81
- tracking_policy: local_only
82
- package_authority_classes:
83
- - id: methodology_authority
84
- allowed_roots:
85
- - package://@nimiplatform/nimi-coding/spec/**
86
- - package://@nimiplatform/nimi-coding/methodology/**
87
- - package://@nimiplatform/nimi-coding/contracts/**
88
- - package://@nimiplatform/nimi-coding/config/**
89
- forbidden_roots:
90
- - .nimi/spec/**
91
- authority_rank: package_canonical
92
- support_classes:
93
- - id: host_projection_anchor
94
- allowed_roots:
95
- - .nimi/spec/_meta/<package>-admission-anchor.yaml
96
- - .nimi/config/host-overlay.yaml
97
- required_contract: package://@nimiplatform/nimi-coding/contracts/projection-edge.schema.yaml
98
- must_be_minimal: true
99
- - id: nimicoding_managed_projection
100
- allowed_roots:
101
- - .nimi/methodology/**
102
- - .nimi/contracts/**
103
- - .nimi/config/**
104
- required_contract: package://@nimiplatform/nimi-coding/contracts/projection-edge.schema.yaml
105
21
  required_files:
106
- surface_taxonomy_v1:
22
+ surface_taxonomy_v2:
107
23
  - .nimi/spec/INDEX.md
108
24
  - .nimi/spec/project/kernel/index.md
109
25
  - .nimi/spec/project/kernel/core-rules.md
110
26
  - .nimi/spec/project/kernel/tables/rule-catalog.yaml
111
- minimal:
112
- - .nimi/spec/INDEX.md
113
- - .nimi/spec/project/kernel/index.md
114
- - .nimi/spec/project/kernel/core-rules.md
115
- - .nimi/spec/project/kernel/tables/rule-catalog.yaml
116
- standard:
117
- - .nimi/spec/INDEX.md
118
- mature:
119
- - .nimi/spec/INDEX.md
120
27
  generated_pipelines:
121
28
  - id: spec_human_doc
122
- owner_surface: nimi-coding
123
29
  input_contract_ref: package://@nimiplatform/nimi-coding/contracts/spec-generation-inputs.schema.yaml
124
30
  input_config_ref: package://@nimiplatform/nimi-coding/config/spec-generation-inputs.yaml
125
31
  output_class: derived_view
126
- output_roots:
127
- - stdout_view
32
+ output_roots: [stdout_view]
128
33
  audit_output_root: .nimi/local/state/spec-generation
129
34
  generate_command: pnpm exec nimicoding generate-spec-derived-docs --profile nimi --scope spec-human-doc
130
35
  drift_check_command: pnpm exec nimicoding generate-spec-derived-docs --profile nimi --scope spec-human-doc --check
@@ -135,6 +40,5 @@ spec_tree_model:
135
40
  - domain_roots_must_not_escape_product_authority_root
136
41
  - product_authority_table_without_table_family_is_invalid
137
42
  - generated_outputs_must_not_overlap_product_authority_roots
138
- - audit_and_lifecycle_state_must_not_live_under_.nimi/spec
43
+ - operational_and_audit_state_must_not_live_under_.nimi/spec
139
44
  - package_methodology_must_not_be_copied_to_host_product_authority
140
- - future_or_backlog_content_under_.nimi/spec_is_invalid
@@ -1,59 +1,27 @@
1
- version: 2
1
+ version: 3
2
2
  product:
3
3
  package_name: "@nimiplatform/nimi-coding"
4
- mission: ai_native_coding_governance_toolkit
5
- target_experience:
6
- install_step: "npm install -D @nimiplatform/nimi-coding"
7
- bootstrap_step: "npx nimicoding start"
8
- reconstruction_owner: ai_skills
9
- canonical_spec_root: ".nimi/spec"
10
- phase_one_posture: contract_and_checklist_only
11
- methodology_posture:
12
- risk_shape: authority_bearing_or_high_risk_only
13
- execution_default: inline_manager_worker
14
- continuity_model: continuity_agnostic
15
- standalone_completion:
16
- profile: boundary_complete
17
- completed_surfaces:
18
- - bootstrap
19
- - doctor
20
- - handoff
21
- - sweep_audit
22
- - sweep_design
23
- - validators
24
- - topic_lifecycle_report_methodology
25
- - closeout
26
- - ingest
27
- - review
28
- - decision
29
- - admission
30
- - host_overlay_recognition
31
- deferred_execution_surfaces:
32
- - packet_bound_run_kernel
33
- - provider_backed_execution
34
- - scheduler
35
- - notification
36
- - automation_backend
37
- - multi_topic_orchestration
38
- promoted_parity_gap_summary:
39
- - packet_bound_run_kernel
40
- - provider_backed_execution
41
- - scheduler_automation_notification
42
- canonical_spec_model:
43
- state_carrier_ref: package://@nimiplatform/nimi-coding/spec/bootstrap-state.yaml
44
- posture_carrier_ref: package://@nimiplatform/nimi-coding/spec/product-scope.yaml
45
- phase_one_contracts:
46
- - package://@nimiplatform/nimi-coding/spec/_meta/spec-tree-model.yaml
47
- - package://@nimiplatform/nimi-coding/spec/_meta/command-gating-matrix.yaml
48
- - package://@nimiplatform/nimi-coding/spec/_meta/spec-authority-cutover-readiness.yaml
49
- - package://@nimiplatform/nimi-coding/spec/_meta/generate-drift-migration-checklist.yaml
50
- - package://@nimiplatform/nimi-coding/spec/_meta/governance-routing-cutover-checklist.yaml
51
- - package://@nimiplatform/nimi-coding/spec/_meta/phase2-impacted-surface-matrix.yaml
52
- - package://@nimiplatform/nimi-coding/spec/bootstrap-state.yaml
53
- - package://@nimiplatform/nimi-coding/spec/product-scope.yaml
54
- - package://@nimiplatform/nimi-coding/contracts/sweep-design-result.yaml
55
- blocked_until_phase_two:
56
- - command_behavior_rewrites_not_admitted
57
- - authority_cutover_not_admitted
58
- - physical_spec_tree_migration_not_admitted
59
- high_risk_admission_evidence: .nimi/local/high-risk-admissions.yaml
4
+ mission: methodology_spec_construction_and_deterministic_validation
5
+ owned_surfaces:
6
+ - bootstrap_and_sync_of_managed_.nimi_projections
7
+ - methodology_principles
8
+ - spec_surface_taxonomy_and_placement_contracts
9
+ - spec_construction_inputs_and_generation_audit_contracts
10
+ - deterministic_spec_governance_and_ai_governance_checks
11
+ out_of_scope:
12
+ - planning_or_task_lifecycle
13
+ - agent_or_provider_orchestration
14
+ - implementation_execution
15
+ - review_approval_or_completion_state
16
+ - host_prompt_or_context_management
17
+ - scheduling_notifications_and_automation
18
+ integration_contract:
19
+ host_owns_execution: true
20
+ nimi_coding_may_emit_non_mutating_analysis: true
21
+ nimi_coding_may_validate_declared_artifacts: true
22
+ nimi_coding_must_not_create_host_execution_state: true
23
+ canonical_roots:
24
+ package_authority: package://@nimiplatform/nimi-coding
25
+ host_product_authority: .nimi/spec
26
+ managed_projection_roots: [.nimi/config, .nimi/contracts, .nimi/methodology]
27
+ local_non_authority_root: .nimi/local
@@ -1,25 +0,0 @@
1
- # Adapters
2
-
3
- This directory holds optional runtime-adapter guidance for external execution
4
- hosts.
5
-
6
- Adapters in this package do not become methodology owners. They exist to map
7
- project-local `.nimi/**` truth into a host-specific execution surface while
8
- preserving these boundaries:
9
-
10
- - `.nimi/**` remains the semantic owner.
11
- - External hosts may own operational state, transport, routing, and execution
12
- continuity.
13
- - Native host review features may provide evidence or risk signals only.
14
- - External hosts must not redefine acceptance, disposition, or canonical
15
- project truth.
16
-
17
- Admitted adapter sketches:
18
-
19
- - [`codex`](./codex/README.md) — native Codex SDK host via `@openai/codex-sdk`
20
- - [`oh-my-codex`](./oh-my-codex/README.md) — external execution host via JSON handoff
21
- - [`claude`](./claude/README.md) — inline coding host via CLAUDE.md + PreToolUse hooks
22
-
23
- The package-owned host-agnostic baseline for any external host lives in
24
- `.nimi/contracts/external-host-compatibility.yaml`. Named adapter overlays may
25
- specialize that baseline, but they do not replace it.