@nimiplatform/nimi-coding 0.1.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.
- package/LICENSE +21 -0
- package/README.md +348 -0
- package/adapters/README.md +25 -0
- package/adapters/claude/README.md +89 -0
- package/adapters/claude/profile.yaml +70 -0
- package/adapters/codex/README.md +53 -0
- package/adapters/codex/profile.yaml +78 -0
- package/adapters/oh-my-codex/README.md +185 -0
- package/adapters/oh-my-codex/profile.yaml +46 -0
- package/bin/nimicoding.mjs +6 -0
- package/cli/commands/admit-high-risk-decision.mjs +108 -0
- package/cli/commands/audit-sweep.mjs +341 -0
- package/cli/commands/blueprint-audit.mjs +91 -0
- package/cli/commands/clear.mjs +168 -0
- package/cli/commands/closeout.mjs +183 -0
- package/cli/commands/decide-high-risk-execution.mjs +124 -0
- package/cli/commands/doctor.mjs +53 -0
- package/cli/commands/generate-spec-derived-docs.mjs +131 -0
- package/cli/commands/handoff.mjs +123 -0
- package/cli/commands/ingest-high-risk-execution.mjs +95 -0
- package/cli/commands/review-high-risk-execution.mjs +95 -0
- package/cli/commands/start.mjs +717 -0
- package/cli/commands/topic-formatters.mjs +382 -0
- package/cli/commands/topic-goal.mjs +33 -0
- package/cli/commands/topic-options-shared.mjs +27 -0
- package/cli/commands/topic-options-workflow.mjs +767 -0
- package/cli/commands/topic-options.mjs +626 -0
- package/cli/commands/topic-runner.mjs +169 -0
- package/cli/commands/topic.mjs +795 -0
- package/cli/commands/validate-acceptance.mjs +5 -0
- package/cli/commands/validate-ai-governance.mjs +214 -0
- package/cli/commands/validate-execution-packet.mjs +5 -0
- package/cli/commands/validate-orchestration-state.mjs +5 -0
- package/cli/commands/validate-prompt.mjs +5 -0
- package/cli/commands/validate-spec-audit.mjs +27 -0
- package/cli/commands/validate-spec-governance.mjs +124 -0
- package/cli/commands/validate-spec-tree.mjs +27 -0
- package/cli/commands/validate-worker-output.mjs +5 -0
- package/cli/constants.mjs +489 -0
- package/cli/help.mjs +134 -0
- package/cli/index.mjs +103 -0
- package/cli/lib/adapter-profiles.mjs +403 -0
- package/cli/lib/audit-execution.mjs +52 -0
- package/cli/lib/audit-sweep-runtime/admissions.mjs +381 -0
- package/cli/lib/audit-sweep-runtime/audit-validity.mjs +333 -0
- package/cli/lib/audit-sweep-runtime/chunks.mjs +697 -0
- package/cli/lib/audit-sweep-runtime/closeout.mjs +144 -0
- package/cli/lib/audit-sweep-runtime/codex-auditor-evidence.mjs +639 -0
- package/cli/lib/audit-sweep-runtime/codex-auditor.mjs +515 -0
- package/cli/lib/audit-sweep-runtime/common.mjs +329 -0
- package/cli/lib/audit-sweep-runtime/coverage-quality.mjs +172 -0
- package/cli/lib/audit-sweep-runtime/evidence-assignment.mjs +152 -0
- package/cli/lib/audit-sweep-runtime/format.mjs +57 -0
- package/cli/lib/audit-sweep-runtime/ingest.mjs +486 -0
- package/cli/lib/audit-sweep-runtime/inventory-spec-chunks.mjs +198 -0
- package/cli/lib/audit-sweep-runtime/inventory.mjs +728 -0
- package/cli/lib/audit-sweep-runtime/ledger.mjs +315 -0
- package/cli/lib/audit-sweep-runtime/p0p1-profile.mjs +101 -0
- package/cli/lib/audit-sweep-runtime/remediation.mjs +349 -0
- package/cli/lib/audit-sweep-runtime/rerun.mjs +129 -0
- package/cli/lib/audit-sweep-runtime/risk-budget.mjs +300 -0
- package/cli/lib/audit-sweep-runtime/status.mjs +62 -0
- package/cli/lib/audit-sweep-runtime/validators-ledger.mjs +215 -0
- package/cli/lib/audit-sweep-runtime/validators.mjs +758 -0
- package/cli/lib/audit-sweep.mjs +18 -0
- package/cli/lib/authority-convergence.mjs +309 -0
- package/cli/lib/blueprint-audit.mjs +370 -0
- package/cli/lib/bootstrap.mjs +228 -0
- package/cli/lib/closeout.mjs +623 -0
- package/cli/lib/codex-sdk-runner.mjs +76 -0
- package/cli/lib/contracts.mjs +180 -0
- package/cli/lib/doctor.mjs +18 -0
- package/cli/lib/entrypoints.mjs +274 -0
- package/cli/lib/external-execution.mjs +101 -0
- package/cli/lib/fs-helpers.mjs +33 -0
- package/cli/lib/handoff.mjs +785 -0
- package/cli/lib/high-risk-admission.mjs +442 -0
- package/cli/lib/high-risk-decision.mjs +324 -0
- package/cli/lib/high-risk-ingest.mjs +317 -0
- package/cli/lib/high-risk-review.mjs +263 -0
- package/cli/lib/internal/contracts-loaders.mjs +132 -0
- package/cli/lib/internal/contracts-parse-high-risk.mjs +131 -0
- package/cli/lib/internal/contracts-parse.mjs +457 -0
- package/cli/lib/internal/contracts-validators.mjs +398 -0
- package/cli/lib/internal/doctor-bootstrap-surface.mjs +359 -0
- package/cli/lib/internal/doctor-delegated-surface.mjs +256 -0
- package/cli/lib/internal/doctor-finalize.mjs +385 -0
- package/cli/lib/internal/doctor-format.mjs +286 -0
- package/cli/lib/internal/doctor-inspectors.mjs +294 -0
- package/cli/lib/internal/doctor-state.mjs +205 -0
- package/cli/lib/internal/governance/ai/ai-context-budget-core.mjs +315 -0
- package/cli/lib/internal/governance/ai/ai-structure-budget-core.mjs +358 -0
- package/cli/lib/internal/governance/ai/check-agents-freshness.mjs +155 -0
- package/cli/lib/internal/governance/ai/check-high-risk-doc-metadata-core.mjs +173 -0
- package/cli/lib/internal/governance/config.mjs +150 -0
- package/cli/lib/internal/governance/runner.mjs +35 -0
- package/cli/lib/internal/governance/shared/read-yaml-with-fragments.mjs +49 -0
- package/cli/lib/internal/validators-artifacts.mjs +515 -0
- package/cli/lib/internal/validators-shared.mjs +28 -0
- package/cli/lib/internal/validators-spec-helpers.mjs +186 -0
- package/cli/lib/internal/validators-spec.mjs +410 -0
- package/cli/lib/shared.mjs +83 -0
- package/cli/lib/topic-draft-packets.mjs +48 -0
- package/cli/lib/topic-goal.mjs +361 -0
- package/cli/lib/topic-runner.mjs +772 -0
- package/cli/lib/topic.mjs +93 -0
- package/cli/lib/ui.mjs +178 -0
- package/cli/lib/validators.mjs +78 -0
- package/cli/lib/value-helpers.mjs +24 -0
- package/cli/lib/yaml-helpers.mjs +133 -0
- package/cli/nimicoding.mjs +1 -0
- package/cli/seeds/bootstrap.mjs +47 -0
- package/config/audit-execution-artifacts.yaml +20 -0
- package/config/bootstrap.yaml +6 -0
- package/config/external-execution-artifacts.yaml +16 -0
- package/config/host-adapter.yaml +30 -0
- package/config/host-profile.yaml +29 -0
- package/config/installer-evidence.yaml +31 -0
- package/config/skill-installer.yaml +23 -0
- package/config/skill-manifest.yaml +46 -0
- package/config/skills.yaml +30 -0
- package/config/spec-generation-inputs.yaml +25 -0
- package/contracts/acceptance.schema.yaml +16 -0
- package/contracts/admission-checklist.schema.yaml +15 -0
- package/contracts/audit-chunk.schema.yaml +110 -0
- package/contracts/audit-closeout.schema.yaml +51 -0
- package/contracts/audit-finding.schema.yaml +61 -0
- package/contracts/audit-ledger.schema.yaml +138 -0
- package/contracts/audit-plan.schema.yaml +123 -0
- package/contracts/audit-remediation-map.schema.yaml +51 -0
- package/contracts/audit-rerun.schema.yaml +31 -0
- package/contracts/audit-sweep-result.yaml +49 -0
- package/contracts/authority-convergence-audit.schema.yaml +19 -0
- package/contracts/closeout.schema.yaml +25 -0
- package/contracts/decision-review.schema.yaml +16 -0
- package/contracts/doc-spec-audit-result.yaml +19 -0
- package/contracts/execution-packet.schema.yaml +49 -0
- package/contracts/external-host-compatibility.yaml +22 -0
- package/contracts/forbidden-shortcuts.catalog.yaml +23 -0
- package/contracts/high-risk-admission.schema.yaml +23 -0
- package/contracts/high-risk-execution-result.yaml +20 -0
- package/contracts/orchestration-state.schema.yaml +41 -0
- package/contracts/overflow-continuation.schema.yaml +12 -0
- package/contracts/packet.schema.yaml +30 -0
- package/contracts/pending-note.schema.yaml +17 -0
- package/contracts/prompt.schema.yaml +12 -0
- package/contracts/remediation.schema.yaml +16 -0
- package/contracts/result.schema.yaml +24 -0
- package/contracts/spec-generation-audit.schema.yaml +31 -0
- package/contracts/spec-generation-inputs.schema.yaml +39 -0
- package/contracts/spec-reconstruction-result.yaml +37 -0
- package/contracts/topic-goal.schema.yaml +78 -0
- package/contracts/topic-run-ledger.schema.yaml +72 -0
- package/contracts/topic-step-decision.schema.yaml +45 -0
- package/contracts/topic.schema.yaml +65 -0
- package/contracts/true-close.schema.yaml +15 -0
- package/contracts/wave.schema.yaml +29 -0
- package/contracts/worker-output.schema.yaml +15 -0
- package/methodology/audit-sweep-p0p1-recall.yaml +45 -0
- package/methodology/authority-convergence-policy.yaml +42 -0
- package/methodology/core.yaml +25 -0
- package/methodology/four-closure-policy.yaml +28 -0
- package/methodology/overflow-continuation-policy.yaml +14 -0
- package/methodology/role-separation-policy.yaml +28 -0
- package/methodology/skill-exchange-projection.yaml +114 -0
- package/methodology/skill-handoff.yaml +34 -0
- package/methodology/skill-installer-result.yaml +27 -0
- package/methodology/skill-installer-summary-projection.yaml +181 -0
- package/methodology/skill-runtime.yaml +23 -0
- package/methodology/spec-reconstruction.yaml +63 -0
- package/methodology/spec-target-truth-profile.yaml +53 -0
- package/methodology/topic-lifecycle-report.yaml +144 -0
- package/methodology/topic-lifecycle.yaml +37 -0
- package/methodology/topic-naming-ontology.yaml +21 -0
- package/methodology/topic-ontology.yaml +38 -0
- package/methodology/topic-validation-policy.yaml +9 -0
- package/methodology/wave-dag-policy.yaml +14 -0
- package/package.json +50 -0
- package/spec/_meta/command-gating-matrix.yaml +110 -0
- package/spec/_meta/generate-drift-migration-checklist.yaml +155 -0
- package/spec/_meta/governance-routing-cutover-checklist.yaml +35 -0
- package/spec/_meta/phase2-impacted-surface-matrix.yaml +44 -0
- package/spec/_meta/spec-authority-cutover-readiness.yaml +104 -0
- package/spec/_meta/spec-tree-model.yaml +72 -0
- package/spec/bootstrap-state.yaml +99 -0
- package/spec/product-scope.yaml +56 -0
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
four_closure_policy:
|
|
3
|
+
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
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
overflow_continuation_policy:
|
|
3
|
+
principles:
|
|
4
|
+
- overflow_is_not_pass
|
|
5
|
+
- overflow_is_not_automatic_rollback
|
|
6
|
+
- continuation_requires_same_owner_domain
|
|
7
|
+
allowed_when:
|
|
8
|
+
- direction_is_still_correct
|
|
9
|
+
- scope_has_not_crossed_into_a_new_owner_domain
|
|
10
|
+
- current_state_is_acceptable_but_packet_boundary_was_too_thin
|
|
11
|
+
reject_when:
|
|
12
|
+
- shadow_truth_was_introduced
|
|
13
|
+
- fallback_or_alias_was_needed
|
|
14
|
+
- packet_crossed_into_a_new_owner_domain
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
version: 1
|
|
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
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
projection_contract:
|
|
3
|
+
id: delegated_skill_exchange_projection
|
|
4
|
+
owner: package_bootstrap_truth
|
|
5
|
+
locality: package_truth
|
|
6
|
+
truth_mode: fail_closed
|
|
7
|
+
exchange_surfaces:
|
|
8
|
+
- handoff
|
|
9
|
+
- closeout
|
|
10
|
+
- decision
|
|
11
|
+
- ingest
|
|
12
|
+
- review
|
|
13
|
+
output_modes:
|
|
14
|
+
- human_readable
|
|
15
|
+
- json
|
|
16
|
+
- prompt
|
|
17
|
+
handoff_payload:
|
|
18
|
+
required_fields:
|
|
19
|
+
- contractVersion
|
|
20
|
+
- projectRoot
|
|
21
|
+
- runtimeOwner
|
|
22
|
+
- triggerMode
|
|
23
|
+
- handoffReady
|
|
24
|
+
- skill.id
|
|
25
|
+
- skill.required
|
|
26
|
+
- skill.source
|
|
27
|
+
- skill.purpose
|
|
28
|
+
- skill.resultContractRef
|
|
29
|
+
- skill.readiness.ok
|
|
30
|
+
- context.orderedPaths
|
|
31
|
+
- constraints
|
|
32
|
+
- expectedResults
|
|
33
|
+
- contracts.exchangeProjectionContractRef
|
|
34
|
+
optional_fields:
|
|
35
|
+
- doctor
|
|
36
|
+
- nextAction
|
|
37
|
+
closeout_payload:
|
|
38
|
+
required_fields:
|
|
39
|
+
- contractVersion
|
|
40
|
+
- projectRoot
|
|
41
|
+
- skill.id
|
|
42
|
+
- outcome
|
|
43
|
+
- verifiedAt
|
|
44
|
+
- localOnly
|
|
45
|
+
- artifactPath
|
|
46
|
+
- readiness.ok
|
|
47
|
+
- contracts.exchangeProjectionContractRef
|
|
48
|
+
optional_fields:
|
|
49
|
+
- doctor
|
|
50
|
+
- nextAction
|
|
51
|
+
- skill.expectedArtifactRoots
|
|
52
|
+
- summary
|
|
53
|
+
ingest_payload:
|
|
54
|
+
required_fields:
|
|
55
|
+
- contractVersion
|
|
56
|
+
- projectRoot
|
|
57
|
+
- sourceCloseoutRef
|
|
58
|
+
- skill.id
|
|
59
|
+
- localOnly
|
|
60
|
+
- artifactPath
|
|
61
|
+
- readiness.ok
|
|
62
|
+
- validations.executionPacket.ok
|
|
63
|
+
- validations.orchestrationState.ok
|
|
64
|
+
- validations.prompt.ok
|
|
65
|
+
- validations.workerOutput.ok
|
|
66
|
+
optional_fields:
|
|
67
|
+
- doctor
|
|
68
|
+
- nextAction
|
|
69
|
+
- artifactRoots
|
|
70
|
+
- summary
|
|
71
|
+
review_payload:
|
|
72
|
+
required_fields:
|
|
73
|
+
- contractVersion
|
|
74
|
+
- projectRoot
|
|
75
|
+
- sourceIngestRef
|
|
76
|
+
- skill.id
|
|
77
|
+
- localOnly
|
|
78
|
+
- artifactPath
|
|
79
|
+
- reviewStatus
|
|
80
|
+
- managerReviewOwner
|
|
81
|
+
- readiness.ok
|
|
82
|
+
- attachmentRefs.packet_ref
|
|
83
|
+
- attachmentRefs.worker_output_ref
|
|
84
|
+
optional_fields:
|
|
85
|
+
- doctor
|
|
86
|
+
- nextAction
|
|
87
|
+
- summary
|
|
88
|
+
- ingestValidations
|
|
89
|
+
decision_payload:
|
|
90
|
+
required_fields:
|
|
91
|
+
- contractVersion
|
|
92
|
+
- projectRoot
|
|
93
|
+
- sourceReviewRef
|
|
94
|
+
- skill.id
|
|
95
|
+
- localOnly
|
|
96
|
+
- artifactPath
|
|
97
|
+
- verifiedAt
|
|
98
|
+
- decisionStatus
|
|
99
|
+
- acceptanceRef
|
|
100
|
+
- acceptanceDisposition
|
|
101
|
+
- acceptanceValidation.ok
|
|
102
|
+
- readiness.ok
|
|
103
|
+
optional_fields:
|
|
104
|
+
- doctor
|
|
105
|
+
- nextAction
|
|
106
|
+
- summary
|
|
107
|
+
- attachmentRefs
|
|
108
|
+
hard_constraints:
|
|
109
|
+
- do_not_promote_projection_payloads_to_semantic_truth
|
|
110
|
+
- imported_closeout_summaries_must_match_current_project
|
|
111
|
+
- missing_required_projection_fields_must_fail_closed
|
|
112
|
+
- completed_projection_claims_must_match_declared_canonical_tree_state
|
|
113
|
+
- review_projection_must_not_decide_acceptance_disposition_or_finding_judgment
|
|
114
|
+
- decision_projection_must_remain_local_only_even_when_manager_owned
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
handoff:
|
|
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
|
+
host_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
|
+
installer_summary_projection_contract_ref: .nimi/methodology/skill-installer-summary-projection.yaml
|
|
10
|
+
exchange_projection_contract_ref: .nimi/methodology/skill-exchange-projection.yaml
|
|
11
|
+
reconstruction_guidance_ref: .nimi/methodology/spec-reconstruction.yaml
|
|
12
|
+
self_hosted_runtime: false
|
|
13
|
+
trigger_mode: explicit
|
|
14
|
+
required_context_order:
|
|
15
|
+
- .nimi/methodology
|
|
16
|
+
- .nimi/spec
|
|
17
|
+
- .nimi/contracts
|
|
18
|
+
- .nimi/config/skill-manifest.yaml
|
|
19
|
+
- .nimi/config/host-profile.yaml
|
|
20
|
+
- .nimi/config/host-adapter.yaml
|
|
21
|
+
- .nimi/config/external-execution-artifacts.yaml
|
|
22
|
+
- .nimi/config/skill-installer.yaml
|
|
23
|
+
- .nimi/methodology/skill-runtime.yaml
|
|
24
|
+
- .nimi/methodology/skill-installer-result.yaml
|
|
25
|
+
- .nimi/methodology/skill-installer-summary-projection.yaml
|
|
26
|
+
- .nimi/methodology/skill-handoff.yaml
|
|
27
|
+
hard_constraints:
|
|
28
|
+
- do_not_assume_runtime_installed
|
|
29
|
+
- do_not_mutate_project_sources_during_bootstrap_handoff
|
|
30
|
+
- unresolved_authority_must_fail_closed
|
|
31
|
+
expected_results:
|
|
32
|
+
- resolve_against_declared_host_profile
|
|
33
|
+
- update_.nimi/spec_truth
|
|
34
|
+
- produce_derived_human_projection_only_when_requested
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
result_contract:
|
|
3
|
+
id: delegated_skill_installer_result_contract
|
|
4
|
+
installer_ref: .nimi/config/skill-installer.yaml
|
|
5
|
+
operational_evidence_home_ref: .nimi/config/installer-evidence.yaml
|
|
6
|
+
summary_projection_contract_ref: .nimi/methodology/skill-installer-summary-projection.yaml
|
|
7
|
+
truth_mode: fail_closed
|
|
8
|
+
semantic_outcome_classes:
|
|
9
|
+
- requested
|
|
10
|
+
- verified_installed
|
|
11
|
+
- verified_unavailable
|
|
12
|
+
- failed
|
|
13
|
+
forbidden_outcomes:
|
|
14
|
+
- installed_without_verification
|
|
15
|
+
- synthetic_success
|
|
16
|
+
verification_requirements:
|
|
17
|
+
- declared_skill_identity_matches_result
|
|
18
|
+
- declared_source_or_version_matches_verified_outcome
|
|
19
|
+
- unresolved_installation_cannot_be_reported_as_installed
|
|
20
|
+
- projected_summary_must_satisfy_summary_projection_contract
|
|
21
|
+
- intermediate_projection_statuses_must_not_be_reported_as_final_result
|
|
22
|
+
operational_only_artifacts:
|
|
23
|
+
- raw_installer_logs
|
|
24
|
+
- package_manager_output
|
|
25
|
+
- temp_paths
|
|
26
|
+
- downloaded_payloads
|
|
27
|
+
- retry_counters
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
summary_projection_contract:
|
|
3
|
+
id: delegated_skill_installer_summary_projection
|
|
4
|
+
lifecycle_owner: external_ai_host
|
|
5
|
+
lifecycle_mode: delegated
|
|
6
|
+
stage_model: collapsed_single_contract
|
|
7
|
+
evidence_home_ref: .nimi/config/installer-evidence.yaml
|
|
8
|
+
result_contract_ref: .nimi/methodology/skill-installer-result.yaml
|
|
9
|
+
truth_mode: fail_closed
|
|
10
|
+
source_summary_path: .nimi/local/installer-evidence/latest-summary.json
|
|
11
|
+
required_projected_fields:
|
|
12
|
+
- skill_id
|
|
13
|
+
- outcome_class
|
|
14
|
+
- verified_at
|
|
15
|
+
optional_projected_fields:
|
|
16
|
+
- requested_source
|
|
17
|
+
- requested_version
|
|
18
|
+
- verifier
|
|
19
|
+
- evidence_run_id
|
|
20
|
+
projection_requirements:
|
|
21
|
+
- local_verified_summary_must_exist_before_projection
|
|
22
|
+
- projected_skill_identity_must_match_declared_manifest
|
|
23
|
+
- projected_outcome_class_must_match_result_contract
|
|
24
|
+
- incomplete_or_ambiguous_summary_must_fail_closed
|
|
25
|
+
forbidden_projection_fields:
|
|
26
|
+
- raw_installer_logs
|
|
27
|
+
- package_manager_output
|
|
28
|
+
- temp_paths
|
|
29
|
+
- downloaded_payloads
|
|
30
|
+
- retry_counters
|
|
31
|
+
- prompts
|
|
32
|
+
lifecycle:
|
|
33
|
+
capture:
|
|
34
|
+
semantic_outcome_classes:
|
|
35
|
+
- verified_summary_ready
|
|
36
|
+
- capture_unavailable
|
|
37
|
+
- capture_failed
|
|
38
|
+
forbidden_outcomes:
|
|
39
|
+
- partial_summary_ready
|
|
40
|
+
- synthetic_verified_summary
|
|
41
|
+
required_fields:
|
|
42
|
+
- skill_id
|
|
43
|
+
- capture_outcome_class
|
|
44
|
+
- verified_at
|
|
45
|
+
optional_fields:
|
|
46
|
+
- requested_source
|
|
47
|
+
- requested_version
|
|
48
|
+
- verifier
|
|
49
|
+
- evidence_run_id
|
|
50
|
+
gate_requirements:
|
|
51
|
+
- complete_verified_summary_must_exist_before_projection
|
|
52
|
+
- capture_result_must_satisfy_summary_projection_contract
|
|
53
|
+
- capture_failure_must_not_imply_projection_success
|
|
54
|
+
operational_only_artifacts:
|
|
55
|
+
- capture_progress
|
|
56
|
+
- retry_counters
|
|
57
|
+
- prompts
|
|
58
|
+
- raw_installer_logs
|
|
59
|
+
- package_manager_output
|
|
60
|
+
- temp_paths
|
|
61
|
+
production:
|
|
62
|
+
semantic_outcome_classes:
|
|
63
|
+
- capture_result_declared
|
|
64
|
+
- production_unavailable
|
|
65
|
+
- production_failed
|
|
66
|
+
forbidden_outcomes:
|
|
67
|
+
- partial_capture_result_declared
|
|
68
|
+
- synthetic_capture_result
|
|
69
|
+
required_fields:
|
|
70
|
+
- skill_id
|
|
71
|
+
- production_outcome_class
|
|
72
|
+
- verified_at
|
|
73
|
+
optional_fields:
|
|
74
|
+
- requested_source
|
|
75
|
+
- requested_version
|
|
76
|
+
- verifier
|
|
77
|
+
- evidence_run_id
|
|
78
|
+
gate_requirements:
|
|
79
|
+
- complete_verified_summary_must_exist_before_capture_result_declaration
|
|
80
|
+
- declared_capture_result_must_satisfy_summary_projection_contract
|
|
81
|
+
- production_failure_must_not_imply_capture_result_success
|
|
82
|
+
operational_only_artifacts:
|
|
83
|
+
- production_progress
|
|
84
|
+
- retry_counters
|
|
85
|
+
- prompts
|
|
86
|
+
- raw_installer_logs
|
|
87
|
+
- package_manager_output
|
|
88
|
+
- temp_paths
|
|
89
|
+
status_declaration:
|
|
90
|
+
semantic_outcome_classes:
|
|
91
|
+
- status_declared
|
|
92
|
+
- status_unavailable
|
|
93
|
+
- status_failed
|
|
94
|
+
forbidden_outcomes:
|
|
95
|
+
- partial_status_declared
|
|
96
|
+
- synthetic_status
|
|
97
|
+
required_fields:
|
|
98
|
+
- skill_id
|
|
99
|
+
- status_outcome_class
|
|
100
|
+
- verified_at
|
|
101
|
+
optional_fields:
|
|
102
|
+
- requested_source
|
|
103
|
+
- requested_version
|
|
104
|
+
- verifier
|
|
105
|
+
- evidence_run_id
|
|
106
|
+
gate_requirements:
|
|
107
|
+
- complete_verified_state_must_exist_before_status_declaration
|
|
108
|
+
- declared_status_must_satisfy_capture_and_production_requirements
|
|
109
|
+
- status_declaration_failure_must_not_imply_semantic_success
|
|
110
|
+
operational_only_artifacts:
|
|
111
|
+
- writing_progress
|
|
112
|
+
- retry_counters
|
|
113
|
+
- prompts
|
|
114
|
+
- raw_installer_logs
|
|
115
|
+
- package_manager_output
|
|
116
|
+
- temp_paths
|
|
117
|
+
semantic_projection:
|
|
118
|
+
semantic_outcome_classes:
|
|
119
|
+
- result_ready_for_projection
|
|
120
|
+
- projection_unavailable
|
|
121
|
+
- projection_failed
|
|
122
|
+
forbidden_outcomes:
|
|
123
|
+
- partial_final_projection
|
|
124
|
+
- synthetic_final_result
|
|
125
|
+
required_fields:
|
|
126
|
+
- skill_id
|
|
127
|
+
- projection_outcome_class
|
|
128
|
+
- verified_at
|
|
129
|
+
optional_fields:
|
|
130
|
+
- requested_source
|
|
131
|
+
- requested_version
|
|
132
|
+
- verifier
|
|
133
|
+
- evidence_run_id
|
|
134
|
+
gate_requirements:
|
|
135
|
+
- complete_verified_state_must_exist_before_semantic_projection
|
|
136
|
+
- projected_final_result_must_satisfy_prior_projection_stages
|
|
137
|
+
- projection_failure_must_not_imply_installer_result_success
|
|
138
|
+
intermediate_only_statuses:
|
|
139
|
+
- status_declared
|
|
140
|
+
- capture_result_declared
|
|
141
|
+
operational_only_artifacts:
|
|
142
|
+
- projection_progress
|
|
143
|
+
- retry_counters
|
|
144
|
+
- prompts
|
|
145
|
+
- raw_installer_logs
|
|
146
|
+
- package_manager_output
|
|
147
|
+
- temp_paths
|
|
148
|
+
final_result_declaration:
|
|
149
|
+
semantic_outcome_classes:
|
|
150
|
+
- installer_result_declared
|
|
151
|
+
- final_result_unavailable
|
|
152
|
+
- final_result_failed
|
|
153
|
+
forbidden_outcomes:
|
|
154
|
+
- partial_installer_result_declared
|
|
155
|
+
- synthetic_installer_result
|
|
156
|
+
required_fields:
|
|
157
|
+
- skill_id
|
|
158
|
+
- final_result_outcome_class
|
|
159
|
+
- verified_at
|
|
160
|
+
optional_fields:
|
|
161
|
+
- installer_result_outcome_class
|
|
162
|
+
- requested_source
|
|
163
|
+
- requested_version
|
|
164
|
+
- verifier
|
|
165
|
+
- evidence_run_id
|
|
166
|
+
gate_requirements:
|
|
167
|
+
- complete_projected_verified_state_must_exist_before_final_result_declaration
|
|
168
|
+
- declared_final_result_must_satisfy_summary_projection_contract
|
|
169
|
+
- declared_final_result_outcome_class_must_satisfy_result_contract
|
|
170
|
+
- final_result_declaration_failure_must_not_imply_installer_result_success
|
|
171
|
+
intermediate_only_outputs:
|
|
172
|
+
- result_ready_for_projection
|
|
173
|
+
- projection_unavailable
|
|
174
|
+
- projection_failed
|
|
175
|
+
operational_only_artifacts:
|
|
176
|
+
- writing_progress
|
|
177
|
+
- retry_counters
|
|
178
|
+
- prompts
|
|
179
|
+
- raw_installer_logs
|
|
180
|
+
- package_manager_output
|
|
181
|
+
- temp_paths
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
runtime_contract:
|
|
3
|
+
id: external_delegated_skill_runtime
|
|
4
|
+
runtime_owner: external_ai_host
|
|
5
|
+
runtime_mode: delegated
|
|
6
|
+
execution_engine: not_packaged
|
|
7
|
+
installer_state: deferred
|
|
8
|
+
self_hosted: false
|
|
9
|
+
manifest_ref: .nimi/config/skill-manifest.yaml
|
|
10
|
+
host_profile_ref: .nimi/config/host-profile.yaml
|
|
11
|
+
installer_ref: .nimi/config/skill-installer.yaml
|
|
12
|
+
installer_result_contract_ref: .nimi/methodology/skill-installer-result.yaml
|
|
13
|
+
handoff_ref: .nimi/methodology/skill-handoff.yaml
|
|
14
|
+
resolution_flow:
|
|
15
|
+
- load_declared_skill_manifest
|
|
16
|
+
- resolve_against_declared_host_profile
|
|
17
|
+
- verify_required_context
|
|
18
|
+
- delegate_explicit_skill_execution
|
|
19
|
+
hard_constraints:
|
|
20
|
+
- do_not_assume_local_runtime_engine
|
|
21
|
+
- do_not_assume_skill_installation
|
|
22
|
+
- do_not_claim_self_hosted_execution
|
|
23
|
+
- unresolved_skill_or_host_capability_must_fail_closed
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
reconstruction:
|
|
3
|
+
required: true
|
|
4
|
+
owner: ai_skills
|
|
5
|
+
generation_inputs_ref: .nimi/config/spec-generation-inputs.yaml
|
|
6
|
+
spec_tree_model_ref: .nimi/spec/_meta/spec-tree-model.yaml
|
|
7
|
+
result_contract_ref: .nimi/contracts/spec-reconstruction-result.yaml
|
|
8
|
+
trigger:
|
|
9
|
+
bootstrap_state: bootstrap_only
|
|
10
|
+
goals:
|
|
11
|
+
- establish_project_canonical_rule_root
|
|
12
|
+
- generate_canonical_tree_under_.nimi/spec
|
|
13
|
+
- generate_file_level_audit_metadata_under_.nimi/spec/_meta
|
|
14
|
+
- separate_normative_derived_and_guidance_surfaces
|
|
15
|
+
- extract_core_rules_without_parallel_truth
|
|
16
|
+
- accept_mixed_inputs_from_code_docs_structure_and_human_notes
|
|
17
|
+
- preserve_semantic_and_structural_parity_when_blueprint_exists
|
|
18
|
+
- preserve_authority_explicitness
|
|
19
|
+
- stop_on_authority_ambiguity
|
|
20
|
+
target_root: .nimi/spec
|
|
21
|
+
audit_root: .nimi/spec/_meta/spec-generation-audit.yaml
|
|
22
|
+
target_tree_shape:
|
|
23
|
+
required_file_classes:
|
|
24
|
+
- index
|
|
25
|
+
- kernel_markdown
|
|
26
|
+
- kernel_tables
|
|
27
|
+
optional_file_classes:
|
|
28
|
+
- kernel_generated
|
|
29
|
+
- domain_guides
|
|
30
|
+
minimal_required_outputs:
|
|
31
|
+
- .nimi/spec/INDEX.md
|
|
32
|
+
- .nimi/spec/project/kernel/index.md
|
|
33
|
+
- .nimi/spec/project/kernel/core-rules.md
|
|
34
|
+
- .nimi/spec/project/kernel/tables/rule-catalog.yaml
|
|
35
|
+
minimum_generation_sequence:
|
|
36
|
+
- .nimi/spec/INDEX.md
|
|
37
|
+
- .nimi/spec/project/kernel/index.md
|
|
38
|
+
- .nimi/spec/project/kernel/core-rules.md
|
|
39
|
+
- .nimi/spec/project/kernel/tables/rule-catalog.yaml
|
|
40
|
+
skeleton_rules:
|
|
41
|
+
- generate_minimal_kernel_before_optional_guides_and_generated_views
|
|
42
|
+
- keep_first_pass_scope_small_and_explicit
|
|
43
|
+
- add_domain_guides_only_after_kernel_markdown_and_tables_exist
|
|
44
|
+
- treat_missing_rules_as_explicit_gaps_not_implicit_completion
|
|
45
|
+
benchmark_acceptance:
|
|
46
|
+
mode: semantic_and_structural_parity_when_blueprint_exists
|
|
47
|
+
blueprint_is_optional: true
|
|
48
|
+
benchmark_reference_ref: .nimi/spec/_meta/blueprint-reference.yaml
|
|
49
|
+
hard_constraints:
|
|
50
|
+
- no_human_friendly_parallel_truth
|
|
51
|
+
- no_silent_authority_inference
|
|
52
|
+
- no_project_source_mutation_during_reconstruction
|
|
53
|
+
- write_only_under_.nimi/spec_for_canonical_generation_outputs
|
|
54
|
+
- write_file_level_generation_audit_under_.nimi/spec/_meta/spec-generation-audit.yaml
|
|
55
|
+
- every_generated_canonical_file_requires_explicit_source_basis_and_unresolved_gap_tracking
|
|
56
|
+
- respect_skill_manifest_installer_runtime_result_contract_host_profile_and_handoff_truth
|
|
57
|
+
- unresolved_ambiguity_must_remain_explicit
|
|
58
|
+
- do_not_treat_repo_local_support_files_as_canonical_tree_completion
|
|
59
|
+
lifecycle_contract_ref: .nimi/spec/bootstrap-state.yaml
|
|
60
|
+
completion_gate:
|
|
61
|
+
bootstrap_state_tree_state: canonical_tree_ready
|
|
62
|
+
required_profile: minimal
|
|
63
|
+
audit_contract_ref: .nimi/contracts/spec-generation-audit.schema.yaml
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
target_truth_profile:
|
|
3
|
+
id: delegated_spec_reconstruction_target_truth_profile
|
|
4
|
+
owner: package_bootstrap_truth
|
|
5
|
+
mode: repo_local_support_only
|
|
6
|
+
generated_files_remain_missing_until_reconstruction: true
|
|
7
|
+
canonical_completion_authority: .nimi/contracts/spec-reconstruction-result.yaml
|
|
8
|
+
default_bootstrap_seeded: false
|
|
9
|
+
posture: historical_transition_note_for_repo_local_governance_support
|
|
10
|
+
profile_scope:
|
|
11
|
+
- .nimi/spec/authority-map.yaml
|
|
12
|
+
- .nimi/spec/boundaries.yaml
|
|
13
|
+
- .nimi/spec/ownership.yaml
|
|
14
|
+
- .nimi/spec/change-policy.yaml
|
|
15
|
+
- .nimi/spec/high-risk-admissions.yaml
|
|
16
|
+
output_profiles:
|
|
17
|
+
- path: .nimi/spec/authority-map.yaml
|
|
18
|
+
purpose: map_project_authority_surfaces_and_declared_owners
|
|
19
|
+
minimum_sections:
|
|
20
|
+
- authorities
|
|
21
|
+
- ownership_rules
|
|
22
|
+
- escalation_paths
|
|
23
|
+
- path: .nimi/spec/boundaries.yaml
|
|
24
|
+
purpose: describe_allowed_and_forbidden_cross-surface_mutation_boundaries
|
|
25
|
+
minimum_sections:
|
|
26
|
+
- boundaries
|
|
27
|
+
- invariants
|
|
28
|
+
- fail_closed_rules
|
|
29
|
+
- path: .nimi/spec/ownership.yaml
|
|
30
|
+
purpose: declare_surface_owners_and_change_approval_modes
|
|
31
|
+
minimum_sections:
|
|
32
|
+
- surfaces
|
|
33
|
+
- ownership_modes
|
|
34
|
+
- approval_requirements
|
|
35
|
+
- path: .nimi/spec/change-policy.yaml
|
|
36
|
+
purpose: define_change_classes_entry_gates_and_parallel_truth_rules
|
|
37
|
+
minimum_sections:
|
|
38
|
+
- work_types
|
|
39
|
+
- authority_gates
|
|
40
|
+
- parallel_truth_policy
|
|
41
|
+
- path: .nimi/spec/high-risk-admissions.yaml
|
|
42
|
+
purpose: record_explicit_high_risk_semantic_admissions_as_canonical_truth
|
|
43
|
+
minimum_sections:
|
|
44
|
+
- admissions
|
|
45
|
+
- admission_rules
|
|
46
|
+
- semantic_constraints
|
|
47
|
+
hard_constraints:
|
|
48
|
+
- do_not_seed_empty_target_truth_files_during_bootstrap
|
|
49
|
+
- do_not_treat_profile_as_canonical_tree_completion
|
|
50
|
+
- do_not_treat_profile_as_generated_project_truth
|
|
51
|
+
- do_not_assume_profile_is_present_in_fresh_host_bootstrap
|
|
52
|
+
- do_not_allow_vendor_specific_output_contracts
|
|
53
|
+
- unresolved_target_shape_must_remain_explicit
|