@nimiplatform/nimi-coding 0.2.8 → 0.3.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.
- package/CHANGELOG.md +10 -90
- package/CONTRIBUTING.md +5 -34
- package/README.md +47 -350
- package/README.zh-CN.md +33 -287
- package/cli/commands/start.mjs +48 -688
- package/cli/commands/validate-spec-audit.mjs +1 -5
- package/cli/commands/validate-spec-governance.mjs +20 -0
- package/cli/constants.mjs +9 -417
- package/cli/help.mjs +28 -145
- package/cli/index.mjs +5 -33
- package/cli/lib/blueprint-audit.mjs +5 -12
- package/cli/lib/bootstrap.mjs +0 -9
- package/cli/lib/contracts.mjs +0 -163
- package/cli/lib/doctor.mjs +155 -10
- package/cli/lib/entrypoints.mjs +63 -167
- package/cli/lib/internal/contracts-loaders.mjs +0 -85
- package/cli/lib/internal/contracts-parse.mjs +84 -520
- package/cli/lib/internal/governance/ai/check-agents-freshness.mjs +13 -8
- package/cli/lib/internal/surface-taxonomy-validators.mjs +316 -66
- package/cli/lib/internal/validators-shared.mjs +0 -16
- package/cli/lib/internal/validators-spec-helpers.mjs +7 -140
- package/cli/lib/internal/validators-spec.mjs +103 -342
- package/cli/lib/shared.mjs +1 -42
- package/cli/lib/validators.mjs +0 -48
- package/cli/seeds/seed-policy.yaml +0 -3
- package/config/bootstrap.yaml +4 -4
- package/config/spec-generation-inputs.yaml +6 -12
- package/contracts/domain-admission.schema.yaml +3 -3
- package/contracts/migration-inventory.schema.yaml +12 -75
- package/contracts/negative-fixtures.yaml +19 -99
- package/contracts/placement-contract.schema.yaml +49 -78
- package/contracts/projection-edge.schema.yaml +37 -121
- package/contracts/shared-enums.yaml +4 -8
- package/contracts/spec-generation-inputs.schema.yaml +15 -112
- package/contracts/spec-layout.schema.yaml +32 -0
- package/contracts/surface-taxonomy.schema.yaml +43 -94
- package/contracts/table-family.schema.yaml +1 -1
- package/contracts/tracked-output-admission.schema.yaml +13 -66
- package/methodology/core.yaml +33 -25
- package/methodology/four-closure-policy.yaml +18 -26
- package/methodology/role-separation-policy.yaml +21 -27
- package/methodology/spec-reconstruction.yaml +17 -34
- package/package.json +2 -4
- package/spec/_meta/spec-tree-model.yaml +5 -101
- package/spec/product-scope.yaml +25 -57
- package/adapters/README.md +0 -25
- package/adapters/claude/README.md +0 -89
- package/adapters/claude/profile.yaml +0 -70
- package/adapters/codex/README.md +0 -53
- package/adapters/codex/profile.yaml +0 -78
- package/adapters/oh-my-codex/README.md +0 -184
- package/adapters/oh-my-codex/profile.yaml +0 -46
- package/cli/commands/admit-high-risk-decision.mjs +0 -108
- package/cli/commands/audit-sweep.mjs +0 -364
- package/cli/commands/closeout.mjs +0 -186
- package/cli/commands/decide-high-risk-execution.mjs +0 -124
- package/cli/commands/handoff.mjs +0 -123
- package/cli/commands/ingest-high-risk-execution.mjs +0 -95
- package/cli/commands/review-high-risk-execution.mjs +0 -95
- package/cli/commands/sweep-design.mjs +0 -295
- package/cli/commands/sweep.mjs +0 -22
- package/cli/commands/topic-formatters.mjs +0 -382
- package/cli/commands/topic-goal.mjs +0 -33
- package/cli/commands/topic-options-shared.mjs +0 -27
- package/cli/commands/topic-options-workflow.mjs +0 -767
- package/cli/commands/topic-options.mjs +0 -626
- package/cli/commands/topic-runner.mjs +0 -169
- package/cli/commands/topic.mjs +0 -795
- package/cli/commands/validate-acceptance.mjs +0 -5
- package/cli/commands/validate-execution-packet.mjs +0 -5
- package/cli/commands/validate-orchestration-state.mjs +0 -5
- package/cli/commands/validate-prompt.mjs +0 -5
- package/cli/commands/validate-worker-output.mjs +0 -5
- package/cli/lib/adapter-profiles.mjs +0 -403
- package/cli/lib/audit-execution.mjs +0 -52
- package/cli/lib/audit-sweep-runtime/admissions.mjs +0 -508
- package/cli/lib/audit-sweep-runtime/audit-validity.mjs +0 -356
- package/cli/lib/audit-sweep-runtime/chunks.mjs +0 -697
- package/cli/lib/audit-sweep-runtime/claude-auditor.mjs +0 -658
- package/cli/lib/audit-sweep-runtime/closeout.mjs +0 -144
- package/cli/lib/audit-sweep-runtime/codex-auditor-evidence.mjs +0 -654
- package/cli/lib/audit-sweep-runtime/codex-auditor.mjs +0 -527
- package/cli/lib/audit-sweep-runtime/common.mjs +0 -341
- package/cli/lib/audit-sweep-runtime/coverage-quality.mjs +0 -172
- package/cli/lib/audit-sweep-runtime/evidence-assignment.mjs +0 -155
- package/cli/lib/audit-sweep-runtime/format.mjs +0 -57
- package/cli/lib/audit-sweep-runtime/ingest.mjs +0 -486
- package/cli/lib/audit-sweep-runtime/inventory-spec-chunks.mjs +0 -425
- package/cli/lib/audit-sweep-runtime/inventory.mjs +0 -798
- package/cli/lib/audit-sweep-runtime/ledger.mjs +0 -315
- package/cli/lib/audit-sweep-runtime/p0p1-profile.mjs +0 -101
- package/cli/lib/audit-sweep-runtime/remediation.mjs +0 -349
- package/cli/lib/audit-sweep-runtime/rerun.mjs +0 -129
- package/cli/lib/audit-sweep-runtime/risk-budget.mjs +0 -300
- package/cli/lib/audit-sweep-runtime/status.mjs +0 -62
- package/cli/lib/audit-sweep-runtime/validators-ledger.mjs +0 -215
- package/cli/lib/audit-sweep-runtime/validators.mjs +0 -797
- package/cli/lib/audit-sweep.mjs +0 -19
- package/cli/lib/authority-convergence.mjs +0 -720
- package/cli/lib/closeout.mjs +0 -732
- package/cli/lib/codex-sdk-runner.mjs +0 -76
- package/cli/lib/external-execution.mjs +0 -101
- package/cli/lib/handoff.mjs +0 -812
- package/cli/lib/high-risk-admission.mjs +0 -512
- package/cli/lib/high-risk-decision.mjs +0 -353
- package/cli/lib/high-risk-ingest.mjs +0 -321
- package/cli/lib/high-risk-review.mjs +0 -267
- package/cli/lib/internal/contracts-parse-high-risk.mjs +0 -131
- package/cli/lib/internal/contracts-validators.mjs +0 -399
- package/cli/lib/internal/doctor-bootstrap-surface.mjs +0 -406
- package/cli/lib/internal/doctor-delegated-surface.mjs +0 -256
- package/cli/lib/internal/doctor-finalize.mjs +0 -383
- package/cli/lib/internal/doctor-format.mjs +0 -286
- package/cli/lib/internal/doctor-inspectors.mjs +0 -327
- package/cli/lib/internal/doctor-state.mjs +0 -205
- package/cli/lib/internal/validators-artifacts.mjs +0 -515
- package/cli/lib/sweep-design-runtime/common.mjs +0 -246
- package/cli/lib/sweep-design-runtime/engine.mjs +0 -733
- package/cli/lib/sweep-design-runtime/fix-topic.mjs +0 -414
- package/cli/lib/sweep-design-runtime/lifecycle.mjs +0 -54
- package/cli/lib/sweep-design-runtime/results.mjs +0 -324
- package/cli/lib/sweep-design.mjs +0 -8
- package/cli/lib/topic-artifacts.mjs +0 -186
- package/cli/lib/topic-authority-coverage.mjs +0 -73
- package/cli/lib/topic-closeout.mjs +0 -560
- package/cli/lib/topic-common.mjs +0 -404
- package/cli/lib/topic-decisions.mjs +0 -332
- package/cli/lib/topic-draft-packets.mjs +0 -167
- package/cli/lib/topic-execution.mjs +0 -533
- package/cli/lib/topic-goal.mjs +0 -440
- package/cli/lib/topic-ledger.mjs +0 -281
- package/cli/lib/topic-lifecycle-artifacts.mjs +0 -173
- package/cli/lib/topic-root-validation.mjs +0 -288
- package/cli/lib/topic-runner-commands.mjs +0 -174
- package/cli/lib/topic-runner-deferral.mjs +0 -532
- package/cli/lib/topic-runner-stale-gates.mjs +0 -114
- package/cli/lib/topic-runner-validation.mjs +0 -138
- package/cli/lib/topic-runner.mjs +0 -727
- package/cli/lib/topic-scaffold.mjs +0 -252
- package/cli/lib/topic-waves.mjs +0 -403
- package/cli/lib/topic.mjs +0 -81
- package/config/audit-execution-artifacts.yaml +0 -20
- package/config/external-execution-artifacts.yaml +0 -16
- package/config/host-adapter.yaml +0 -30
- package/config/host-profile.yaml +0 -29
- package/config/installer-evidence.yaml +0 -31
- package/config/skill-installer.yaml +0 -23
- package/config/skill-manifest.yaml +0 -48
- package/config/skills.yaml +0 -30
- package/contracts/acceptance.schema.yaml +0 -16
- package/contracts/admission-checklist.schema.yaml +0 -15
- package/contracts/audit-chunk.schema.yaml +0 -123
- package/contracts/audit-closeout.schema.yaml +0 -51
- package/contracts/audit-finding.schema.yaml +0 -61
- package/contracts/audit-ledger.schema.yaml +0 -138
- package/contracts/audit-plan.schema.yaml +0 -138
- package/contracts/audit-remediation-map.schema.yaml +0 -52
- package/contracts/audit-rerun.schema.yaml +0 -31
- package/contracts/audit-sweep-result.yaml +0 -53
- package/contracts/authority-convergence-audit.schema.yaml +0 -19
- package/contracts/closeout.schema.yaml +0 -25
- package/contracts/decision-review.schema.yaml +0 -16
- package/contracts/doc-spec-audit-result.yaml +0 -19
- package/contracts/execution-packet.schema.yaml +0 -49
- package/contracts/external-host-compatibility.yaml +0 -22
- package/contracts/forbidden-shortcuts.catalog.yaml +0 -23
- package/contracts/high-risk-admission.schema.yaml +0 -23
- package/contracts/high-risk-execution-result.yaml +0 -20
- package/contracts/orchestration-state.schema.yaml +0 -41
- package/contracts/overflow-continuation.schema.yaml +0 -12
- package/contracts/packet.schema.yaml +0 -30
- package/contracts/pending-note.schema.yaml +0 -17
- package/contracts/prompt.schema.yaml +0 -12
- package/contracts/remediation.schema.yaml +0 -16
- package/contracts/result.schema.yaml +0 -24
- package/contracts/spec-reconstruction-result.yaml +0 -41
- package/contracts/sweep-design-result.yaml +0 -349
- package/contracts/topic-goal.schema.yaml +0 -87
- package/contracts/topic-run-ledger.schema.yaml +0 -72
- package/contracts/topic-step-decision.schema.yaml +0 -45
- package/contracts/topic.schema.yaml +0 -65
- package/contracts/true-close.schema.yaml +0 -15
- package/contracts/wave.schema.yaml +0 -29
- package/contracts/worker-output.schema.yaml +0 -15
- package/contracts/workflow-consumer.schema.yaml +0 -110
- package/methodology/audit-sweep-p0p1-recall.yaml +0 -45
- package/methodology/authority-convergence-policy.yaml +0 -42
- package/methodology/overflow-continuation-policy.yaml +0 -14
- package/methodology/skill-exchange-projection.yaml +0 -114
- package/methodology/skill-handoff.yaml +0 -34
- package/methodology/skill-installer-result.yaml +0 -27
- package/methodology/skill-installer-summary-projection.yaml +0 -181
- package/methodology/skill-runtime.yaml +0 -23
- package/methodology/spec-target-truth-profile.yaml +0 -46
- package/methodology/topic-lifecycle-report.yaml +0 -144
- package/methodology/topic-lifecycle.yaml +0 -37
- package/methodology/topic-naming-ontology.yaml +0 -21
- package/methodology/topic-ontology.yaml +0 -38
- package/methodology/topic-validation-policy.yaml +0 -9
- package/methodology/wave-dag-policy.yaml +0 -14
- package/spec/_meta/command-gating-matrix.yaml +0 -143
- package/spec/_meta/generate-drift-migration-checklist.yaml +0 -137
- package/spec/_meta/governance-routing-cutover-checklist.yaml +0 -35
- package/spec/_meta/phase2-impacted-surface-matrix.yaml +0 -44
- package/spec/_meta/spec-authority-cutover-readiness.yaml +0 -102
- package/spec/bootstrap-state.yaml +0 -99
|
@@ -1,70 +1,17 @@
|
|
|
1
|
-
version:
|
|
1
|
+
version: 2
|
|
2
2
|
contract:
|
|
3
|
-
id: nimicoding.tracked-output-admission.
|
|
3
|
+
id: nimicoding.tracked-output-admission.v2
|
|
4
4
|
owner: nimi-coding
|
|
5
|
-
purpose:
|
|
6
|
-
required_top_level_fields:
|
|
7
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
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
|
package/methodology/core.yaml
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
version:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
+
version: 2
|
|
2
2
|
four_closure_policy:
|
|
3
|
+
purpose: Require independent proof that a material change is complete.
|
|
3
4
|
closures:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
version: 2
|
|
2
2
|
role_separation_policy:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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:
|
|
1
|
+
version: 3
|
|
2
2
|
reconstruction:
|
|
3
|
-
|
|
4
|
-
owner:
|
|
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
|
-
-
|
|
15
|
+
- classify_every_input_before_generation
|
|
18
16
|
- keep_product_authority_under_.nimi/spec
|
|
19
17
|
- keep_package_methodology_under_nimi-coding
|
|
20
|
-
-
|
|
21
|
-
-
|
|
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
|
-
|
|
33
|
-
|
|
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
|
|
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
|
-
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "AI-native
|
|
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:
|
|
1
|
+
version: 3
|
|
2
2
|
spec_tree_model:
|
|
3
|
-
profile:
|
|
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
|
-
|
|
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
|
-
-
|
|
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
|
package/spec/product-scope.yaml
CHANGED
|
@@ -1,59 +1,27 @@
|
|
|
1
|
-
version:
|
|
1
|
+
version: 3
|
|
2
2
|
product:
|
|
3
3
|
package_name: "@nimiplatform/nimi-coding"
|
|
4
|
-
mission:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
package/adapters/README.md
DELETED
|
@@ -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.
|