@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
package/cli/lib/topic.mjs DELETED
@@ -1,81 +0,0 @@
1
- import { mkdir } from "node:fs/promises";
2
- import path from "node:path";
3
-
4
- import { pathExists } from "./fs-helpers.mjs";
5
- import { formatDate, loadTopicRuntimeAuthority, toPortableRelativePath } from "./topic-common.mjs";
6
- import {
7
- buildCreatePayload,
8
- deriveTopicId,
9
- getTopicStateRoot,
10
- titleFromSlug,
11
- writeTopicScaffold,
12
- } from "./topic-scaffold.mjs";
13
-
14
- export * from "./topic-common.mjs";
15
- export * from "./topic-scaffold.mjs";
16
- export * from "./topic-waves.mjs";
17
- export * from "./topic-artifacts.mjs";
18
- export * from "./topic-decisions.mjs";
19
- export * from "./topic-ledger.mjs";
20
- export * from "./topic-execution.mjs";
21
- export * from "./topic-closeout.mjs";
22
- export * from "./topic-root-validation.mjs";
23
-
24
- export async function createTopic(projectRoot, options) {
25
- const now = options.now ?? new Date();
26
- const topicId = deriveTopicId(options.slug, now);
27
- const today = formatDate(now);
28
- const topicDir = path.join(getTopicStateRoot(projectRoot, "proposal"), topicId);
29
-
30
- if (await pathExists(topicDir)) {
31
- return {
32
- ok: false,
33
- error: `Topic already exists: ${toPortableRelativePath(path.relative(projectRoot, topicDir))}`,
34
- };
35
- }
36
-
37
- await mkdir(getTopicStateRoot(projectRoot, "proposal"), { recursive: true });
38
- const authority = await loadTopicRuntimeAuthority(projectRoot);
39
- const topic = buildCreatePayload(
40
- {
41
- topicId,
42
- today,
43
- title: options.title,
44
- mode: options.mode,
45
- posture: options.posture,
46
- designPolicy: options.designPolicy,
47
- parallelTruth: options.parallelTruth,
48
- layering: options.layering,
49
- risk: options.risk,
50
- applicability: options.applicability,
51
- justification: options.justification,
52
- executionMode: options.executionMode,
53
- },
54
- authority,
55
- );
56
-
57
- await writeTopicScaffold(topicDir, topic);
58
- return {
59
- ok: true,
60
- topicId,
61
- topicDir,
62
- topicRef: toPortableRelativePath(path.relative(projectRoot, topicDir)),
63
- state: "proposal",
64
- title: topic.title,
65
- };
66
- }
67
-
68
- export function deriveCreateDefaults(options) {
69
- const mode = options.mode ?? "greenfield";
70
- const posture = options.posture ?? (mode === "landed" ? "backward_compat" : "no_legacy_hard_cut");
71
- return {
72
- mode,
73
- posture,
74
- designPolicy: options.designPolicy ?? "complete_contract_first",
75
- parallelTruth: options.parallelTruth ?? "forbidden",
76
- layering: options.layering ?? "ontology",
77
- risk: options.risk ?? "high",
78
- applicability: options.applicability ?? "authority_bearing",
79
- executionMode: options.executionMode ?? "manager_worker_auditor",
80
- };
81
- }
@@ -1,20 +0,0 @@
1
- version: 1
2
- audit_execution_artifacts:
3
- skill_id: audit_sweep
4
- host_adapter_ref: .nimi/config/host-adapter.yaml
5
- result_contract_ref: .nimi/contracts/audit-sweep-result.yaml
6
- locality: local_only
7
- artifact_roots:
8
- plan_ref: .nimi/local/audit/plans
9
- chunk_refs: .nimi/local/audit/chunks
10
- ledger_ref: .nimi/local/audit/ledgers
11
- report_ref: .nimi/local/audit/reports
12
- remediation_map_ref: .nimi/local/audit/remediation-maps
13
- audit_closeout_ref: .nimi/local/audit/closeouts
14
- packet_ref: .nimi/local/audit/packets
15
- evidence_refs: .nimi/local/audit/evidence
16
- run_ledger_ref: .nimi/local/audit/runs
17
- hard_constraints:
18
- - audit_execution_artifacts_remain_operational_only
19
- - imported_refs_must_stay_under_declared_local_roots
20
- - candidate_artifacts_must_not_override_semantic_truth
@@ -1,16 +0,0 @@
1
- version: 1
2
- external_execution_artifacts:
3
- skill_id: high_risk_execution
4
- host_adapter_ref: .nimi/config/host-adapter.yaml
5
- result_contract_ref: .nimi/contracts/high-risk-execution-result.yaml
6
- locality: local_only
7
- artifact_roots:
8
- packet_ref: .nimi/local/packets
9
- orchestration_state_ref: .nimi/local/orchestration
10
- prompt_ref: .nimi/local/prompts
11
- worker_output_ref: .nimi/local/outputs
12
- evidence_refs: .nimi/local/evidence
13
- hard_constraints:
14
- - external_execution_artifacts_remain_operational_only
15
- - imported_refs_must_stay_under_declared_local_roots
16
- - candidate_artifacts_must_not_override_semantic_truth
@@ -1,30 +0,0 @@
1
- version: 1
2
- host_adapter:
3
- runtime_owner: external_ai_host
4
- selected_adapter_id: none
5
- admitted_adapter_ids:
6
- - codex
7
- - oh_my_codex
8
- - claude
9
- handoff_mode: prompt_output_evidence_handoff
10
- evidence_mode: candidate_only
11
- semantic_review_owner: nimicoding_manager
12
- admitted_execution_surfaces:
13
- - authority_convergence_audit
14
- host_profile_ref: .nimi/config/host-profile.yaml
15
- manifest_ref: .nimi/config/skill-manifest.yaml
16
- artifact_contract_ref: .nimi/config/external-execution-artifacts.yaml
17
- handoff_ref: .nimi/methodology/skill-handoff.yaml
18
- operational_state_roots:
19
- - .nimi/local
20
- - .nimi/cache
21
- semantic_owner_roots:
22
- - .nimi/methodology
23
- - .nimi/spec
24
- - .nimi/contracts
25
- - .nimi/config
26
- hard_constraints:
27
- - adapter_must_not_override_semantic_truth
28
- - adapter_must_not_define_acceptance_or_disposition
29
- - adapter_runtime_state_must_remain_operational_only
30
- - authority_convergence_subagent_execution_is_adapter_projection_only
@@ -1,29 +0,0 @@
1
- version: 1
2
- host_profile:
3
- id: external_ai_host
4
- host_class: ai_native_coding_host
5
- runtime_contract_ref: .nimi/methodology/skill-runtime.yaml
6
- compatibility_contract_ref: .nimi/contracts/external-host-compatibility.yaml
7
- installer_ref: .nimi/config/skill-installer.yaml
8
- installer_result_contract_ref: .nimi/methodology/skill-installer-result.yaml
9
- ownership_mode: external
10
- execution_mode: delegated
11
- install_state: not_installed
12
- self_hosted: false
13
- required_context:
14
- - .nimi/methodology
15
- - .nimi/spec
16
- - .nimi/contracts
17
- - .nimi/config/skill-manifest.yaml
18
- - .nimi/config/host-profile.yaml
19
- - .nimi/config/host-adapter.yaml
20
- - .nimi/config/external-execution-artifacts.yaml
21
- - .nimi/methodology/skill-handoff.yaml
22
- required_capabilities:
23
- - read_project_local_nimi_truth
24
- - route_declared_external_skills
25
- - fail_closed_on_missing_authority
26
- hard_constraints:
27
- - vendor_neutral_profile_only
28
- - do_not_assume_local_runtime_install
29
- - do_not_claim_packet_orchestration_ownership
@@ -1,31 +0,0 @@
1
- version: 1
2
- evidence_home:
3
- id: local_skill_installer_operational_evidence
4
- locality: local_only
5
- root: .nimi/local/installer-evidence
6
- runs_dir: .nimi/local/installer-evidence/runs
7
- latest_summary_path: .nimi/local/installer-evidence/latest-summary.json
8
- payload_cache_dir: .nimi/local/installer-evidence/payloads
9
- temp_dir: .nimi/local/installer-evidence/temp
10
- retention:
11
- summaries: retain_verified_history
12
- raw_logs: local_prunable
13
- payloads: ephemeral_best_effort
14
- temp_paths: delete_after_run
15
- semantic_projection:
16
- mode: verified_summary_only
17
- contract_ref: .nimi/methodology/skill-installer-summary-projection.yaml
18
- target_result_contract: .nimi/methodology/skill-installer-result.yaml
19
- lifecycle_scope:
20
- owner: external_ai_host
21
- stage_model: collapsed_single_contract
22
- semantic_stages:
23
- - capture
24
- - production
25
- - status_declaration
26
- - semantic_projection
27
- - final_result_declaration
28
- hard_constraints:
29
- - do_not_promote_concrete_evidence_artifacts
30
- - do_not_require_tracked_evidence_files
31
- - missing_local_evidence_must_not_imply_success
@@ -1,23 +0,0 @@
1
- version: 1
2
- installer:
3
- id: external_delegated_skill_installer
4
- installer_owner: external_ai_host
5
- installer_mode: delegated
6
- install_state: not_installed
7
- executable_installation: false
8
- self_hosted: false
9
- manifest_ref: .nimi/config/skill-manifest.yaml
10
- runtime_contract_ref: .nimi/methodology/skill-runtime.yaml
11
- host_profile_ref: .nimi/config/host-profile.yaml
12
- result_contract_ref: .nimi/methodology/skill-installer-result.yaml
13
- evidence_home_ref: .nimi/config/installer-evidence.yaml
14
- install_flow:
15
- - read_declared_skill_manifest
16
- - resolve_against_declared_runtime_contract
17
- - resolve_against_declared_host_profile
18
- - require_explicit_external_install_action
19
- hard_constraints:
20
- - do_not_assume_local_installer_runtime
21
- - do_not_assume_vendor_specific_package_manager
22
- - do_not_claim_self_hosted_installation
23
- - unresolved_install_requirement_must_fail_closed
@@ -1,48 +0,0 @@
1
- version: 1
2
- manifest:
3
- runtime_owner: external_ai_host
4
- runtime_contract_ref: .nimi/methodology/skill-runtime.yaml
5
- host_profile_ref: .nimi/config/host-profile.yaml
6
- installer_ref: .nimi/config/skill-installer.yaml
7
- installer_result_contract_ref: .nimi/methodology/skill-installer-result.yaml
8
- execution_mode: delegated
9
- install_state: not_installed
10
- skills:
11
- - id: spec_reconstruction
12
- source: external
13
- required: true
14
- result_contract_ref: .nimi/contracts/spec-reconstruction-result.yaml
15
- inputs:
16
- - .nimi/config/spec-generation-inputs.yaml
17
- - .nimi/methodology/spec-reconstruction.yaml
18
- - .nimi/contracts/surface-taxonomy.schema.yaml
19
- - .nimi/contracts/placement-contract.schema.yaml
20
- - .nimi/contracts/table-family.schema.yaml
21
- - .nimi/contracts/domain-admission.schema.yaml
22
- - id: doc_spec_audit
23
- source: external
24
- required: true
25
- result_contract_ref: .nimi/contracts/doc-spec-audit-result.yaml
26
- inputs:
27
- - README.md
28
- - .nimi/spec
29
- - id: audit_sweep
30
- source: external
31
- required: false
32
- result_contract_ref: .nimi/contracts/audit-sweep-result.yaml
33
- inputs:
34
- - .nimi/methodology
35
- - .nimi/spec
36
- - .nimi/contracts
37
- - .nimi/local
38
- - .nimi/config/audit-execution-artifacts.yaml
39
- - id: high_risk_execution
40
- source: external
41
- required: false
42
- result_contract_ref: .nimi/contracts/high-risk-execution-result.yaml
43
- inputs:
44
- - .nimi/methodology
45
- - .nimi/spec
46
- - .nimi/contracts
47
- - .nimi/local
48
- - .nimi/config/external-execution-artifacts.yaml
@@ -1,30 +0,0 @@
1
- version: 1
2
- bootstrap:
3
- runtime_installed: false
4
- installation_mode: deferred
5
- canonical_reconstruction_guidance: .nimi/methodology/spec-reconstruction.yaml
6
- canonical_contracts_root: .nimi/contracts
7
- canonical_manifest: .nimi/config/skill-manifest.yaml
8
- canonical_host_profile: .nimi/config/host-profile.yaml
9
- canonical_host_adapter: .nimi/config/host-adapter.yaml
10
- canonical_external_execution_artifacts: .nimi/config/external-execution-artifacts.yaml
11
- canonical_runtime_contract: .nimi/methodology/skill-runtime.yaml
12
- canonical_installer: .nimi/config/skill-installer.yaml
13
- canonical_installer_result_contract: .nimi/methodology/skill-installer-result.yaml
14
- canonical_installer_operational_evidence: .nimi/config/installer-evidence.yaml
15
- canonical_installer_summary_projection_contract: .nimi/methodology/skill-installer-summary-projection.yaml
16
- handoff_contract: .nimi/methodology/skill-handoff.yaml
17
- runtime_owner: external_ai_host
18
- expected_skill_surfaces:
19
- - id: spec_reconstruction
20
- required: true
21
- purpose: reconstruct_project_canonical_tree_into_.nimi/spec
22
- - id: doc_spec_audit
23
- required: true
24
- purpose: compare_human_docs_against_.nimi/spec
25
- - id: audit_sweep
26
- required: false
27
- purpose: perform_full_coverage_audit_sweep_and_emit_frozen_findings_ledger
28
- - id: high_risk_execution
29
- required: false
30
- purpose: packetized_execution_after_project_truth_matures
@@ -1,16 +0,0 @@
1
- id: nimi-coding.acceptance.v1
2
- kind: acceptance
3
- required_order:
4
- - authority alignment
5
- - phase closure
6
- - evidence sufficiency
7
- - disposition
8
- - next step or reopen
9
- disposition_enum:
10
- - complete
11
- - partial
12
- - deferred
13
- required_blocks:
14
- - Findings
15
- - Current Phase Disposition
16
- - Next Step or Reopen Condition
@@ -1,15 +0,0 @@
1
- id: nimicoding.admission-checklist.v1
2
- kind: admission-checklist
3
- required:
4
- - checklist_id
5
- - topic_id
6
- - scope
7
- - gate_items
8
- - stop_phrases
9
- scope_enum:
10
- - topic_entry
11
- - wave_preflight
12
- - implementation_admission
13
- rules:
14
- - every gate item must be answerable as pass or fail
15
- - stop phrases must remain explicit manager stop signals rather than hints
@@ -1,123 +0,0 @@
1
- version: 1
2
- schema:
3
- id: nimi-coding.audit-chunk.v1
4
- kind: audit-chunk
5
- required_top_level_fields:
6
- - version
7
- - kind
8
- - sweep_id
9
- - chunk_id
10
- - state
11
- - owner_domain
12
- - criteria
13
- - files
14
- - file_hashes
15
- - lifecycle
16
- - created_at
17
- - updated_at
18
- optional_top_level_fields:
19
- - planning_basis
20
- - spec_surface
21
- - authority_refs
22
- - authority_kind
23
- - app_id
24
- - package_authority_id
25
- - delegated_projection_id
26
- - admission_ref
27
- - authority_root
28
- - source_authority_root
29
- - evidence_root_admission_refs
30
- - admitted_evidence_roots
31
- - host_authority_projection_refs
32
- - delegated_evidence_roots
33
- - delegated_declared_evidence_prefixes
34
- - delegated_declared_evidence_refs
35
- - declared_evidence_delegation
36
- - required_verification_commands
37
- - declared_evidence_targets
38
- - declared_evidence_unresolved
39
- - evidence_roots
40
- - evidence_inventory
41
- - evidence_inventory_status
42
- - evidence_inventory_empty_reason
43
- - coverage_contract
44
- - evidence_file_hashes
45
- - calibration_expected_defects
46
- - coverage_quality
47
- - audit_validity
48
- state_enum:
49
- - planned
50
- - dispatched
51
- - ingested
52
- - reviewed
53
- - frozen
54
- - failed
55
- - skipped
56
- lifecycle_required_fields:
57
- - planned_at
58
- - dispatched_at
59
- - ingested_at
60
- - reviewed_at
61
- - frozen_at
62
- - failed_at
63
- - skipped_at
64
- hard_constraints:
65
- - chunk_files_must_match_plan_inventory
66
- - spec_authority_chunks_must_declare_authority_refs_and_evidence_roots
67
- - spec_authority_chunks_must_declare_evidence_inventory
68
- - spec_authority_chunks_with_empty_evidence_inventory_must_declare_explicit_empty_reason
69
- - spec_authority_chunks_must_declare_coverage_contract
70
- - spec_authority_chunk_files_remain_authority_refs_only
71
- - admitted_package_authority_projection_refs_must_be_explicitly_mapped
72
- - delegated_projection_authority_must_be_explicitly_admitted
73
- - delegated_declared_evidence_must_name_source_authority_boundary
74
- - delegated_projection_is_audit_modeling_only_not_source_repo_execution
75
- - delegated_projection_must_not_resolve_or_mutate_source_authority_refs
76
- - spec_authority_ingest_requires_one_authority_outcome_per_authority_ref
77
- - spec_authority_ingest_requires_evidence_files_exactly_matching_evidence_inventory
78
- - spec_authority_authority_outcome_evidence_refs_must_belong_to_authority_refs_or_evidence_inventory
79
- - no_finding_audited_outcomes_must_declare_negative_reasoning
80
- - no_finding_audited_outcomes_with_non_empty_evidence_inventory_must_declare_implementation_evidence_refs_or_not_applicable_reason
81
- - p0p1_recall_chunks_without_critical_or_high_findings_must_declare_negative_reasoning_and_implementation_refs
82
- - p0p1_recall_chunks_with_implementation_inventory_must_record_rule_specific_checks
83
- - p0p1_no_finding_evidence_with_implementation_inventory_must_cite_semantic_auditor_provenance
84
- - synthetic_no_finding_generators_must_not_emit_semantic_audit_evidence
85
- - calibration_expected_defects_must_be_satisfied_by_finding_evidence_when_present
86
- - ingest_requires_dispatch
87
- - frozen_requires_manager_review
88
- - failed_or_skipped_requires_explicit_reason
89
- audit_evidence_coverage_fields:
90
- - evidence_files
91
- - authority_outcomes
92
- - no_finding_summary
93
- - p0p1_negative_reasoning
94
- - p0p1_evidence_refs
95
- - p0p1_rule_checks
96
- - p0p1_implementation_not_applicable_reason
97
- auditor_provenance_fields:
98
- required_when_p0p1_no_finding_with_implementation_inventory:
99
- - kind
100
- - packet_ref
101
- - session_ref_or_transcript_ref_or_review_ref
102
- authority_outcome_fields:
103
- required:
104
- - authority_ref
105
- - status
106
- - evidence_refs
107
- optional:
108
- - reason
109
- - negative_reasoning
110
- - implementation_evidence_refs
111
- - implementation_not_applicable_reason
112
- authority_outcome_status_enum:
113
- - audited
114
- - blocked
115
- - not_applicable
116
- calibration_expected_defect_fields:
117
- required:
118
- - id
119
- optional:
120
- - root_cause_key
121
- - location_file
122
- - severity
123
- - category
@@ -1,51 +0,0 @@
1
- version: 1
2
- schema:
3
- id: nimi-coding.audit-closeout.v1
4
- kind: audit-closeout
5
- required_top_level_fields:
6
- - sweep_id
7
- - ledger_ref
8
- - remediation_map_ref
9
- - audit_closeout_ref
10
- - coverage_status
11
- - coverage_scope
12
- - coverage_quality
13
- - audit_validity
14
- - finding_posture
15
- - closeout_posture
16
- - verified_at
17
- coverage_status_enum:
18
- - full
19
- - partial
20
- - blocked
21
- closeout_posture_enum:
22
- - audit_complete_findings_open
23
- - audit_complete_all_findings_postured
24
- - partial_coverage_all_findings_postured
25
- - partial_coverage_findings_open
26
- - audit_invalid_no_finding_evidence
27
- - blocked
28
- coverage_quality_required_fields:
29
- - scope_label
30
- - posture
31
- - warnings
32
- - blockers
33
- audit_validity_required_fields:
34
- - posture
35
- - warnings
36
- - blockers
37
- - no_finding_posture
38
- - p0p1_recall_required_count
39
- - p0p1_recall_invalid_count
40
- - p0p1_rule_check_count
41
- - auditor_provenance_present
42
- - calibration_expected_defect_count
43
- - calibration_missed_defect_count
44
- hard_constraints:
45
- - closeout_requires_latest_ledger_snapshot
46
- - audit_complete_requires_no_active_chunks
47
- - all_open_findings_require_remediation_map_coverage
48
- - all_closed_findings_require_resolution_evidence
49
- - coverage_status_partial_requires_partial_coverage_closeout_posture
50
- - audit_validity_invalid_requires_audit_invalid_no_finding_evidence_posture
51
- - coverage_quality_and_audit_validity_must_be_nested_objects_not_flattened_root_fields
@@ -1,61 +0,0 @@
1
- version: 1
2
- schema:
3
- id: nimi-coding.audit-finding.v1
4
- kind: audit-finding
5
- required_fields:
6
- - id
7
- - sweep_id
8
- - chunk_id
9
- - fingerprint
10
- - severity
11
- - category
12
- - actionability
13
- - confidence
14
- - impact
15
- - location
16
- - title
17
- - description
18
- - evidence
19
- - disposition
20
- - evidence_ref
21
- optional_fields:
22
- - owner_domain
23
- - root_cause
24
- - cluster_id
25
- - detected_at
26
- severity_enum:
27
- - critical
28
- - high
29
- - medium
30
- - low
31
- actionability_enum:
32
- - auto-fix
33
- - needs-decision
34
- - deferred-backlog
35
- confidence_enum:
36
- - high
37
- - medium
38
- - low
39
- disposition_enum:
40
- - open
41
- - remediated
42
- - accepted-risk
43
- - false-positive
44
- - deferred-backlog
45
- location_required_fields:
46
- - file
47
- evidence_required_fields:
48
- - summary
49
- - auditor_reasoning
50
- root_cause_optional_fields:
51
- - key
52
- - authority_ref
53
- - evidence_root
54
- - contract_seam
55
- - repair_target
56
- hard_constraints:
57
- - finding_location_file_must_belong_to_source_chunk_or_declared_spec_authority_evidence_roots
58
- - finding_fingerprint_must_be_stable_over_semantically_identical_evidence
59
- - non_open_disposition_requires_resolution_evidence
60
- - duplicate_symptoms_may_cluster_only_when_root_cause_key_and_authority_context_match
61
- - unique_critical_or_high_root_causes_must_remain_canonical_findings