@warpgogol/forge 8.0.2 → 9.0.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/CHANGELOG.md +37 -0
- package/bin/cli.ts +26 -13
- package/dist/bin/cli.js +18 -13
- package/dist/bin/cli.js.map +1 -1
- package/dist/os/adr/handlers/implement-stamp.d.ts.map +1 -1
- package/dist/os/adr/handlers/implement-stamp.js +1 -0
- package/dist/os/adr/handlers/implement-stamp.js.map +1 -1
- package/dist/os/adr/types.d.ts +2 -0
- package/dist/os/adr/types.d.ts.map +1 -1
- package/dist/os/agent/agent.module.d.ts +3 -0
- package/dist/os/agent/agent.module.d.ts.map +1 -0
- package/dist/os/agent/agent.module.js +60 -0
- package/dist/os/agent/agent.module.js.map +1 -0
- package/dist/os/agent/handlers/agent-delegate.d.ts +29 -0
- package/dist/os/agent/handlers/agent-delegate.d.ts.map +1 -0
- package/dist/os/agent/handlers/agent-delegate.js +187 -0
- package/dist/os/agent/handlers/agent-delegate.js.map +1 -0
- package/dist/os/agent/handlers/agent-tiers-validate.d.ts +15 -0
- package/dist/os/agent/handlers/agent-tiers-validate.d.ts.map +1 -0
- package/dist/os/agent/handlers/agent-tiers-validate.js +205 -0
- package/dist/os/agent/handlers/agent-tiers-validate.js.map +1 -0
- package/dist/os/agent/index.d.ts +5 -0
- package/dist/os/agent/index.d.ts.map +1 -0
- package/dist/os/agent/index.js +14 -0
- package/dist/os/agent/index.js.map +1 -0
- package/dist/os/agent/invoke-adapter.d.ts +43 -0
- package/dist/os/agent/invoke-adapter.d.ts.map +1 -0
- package/dist/os/agent/invoke-adapter.js +83 -0
- package/dist/os/agent/invoke-adapter.js.map +1 -0
- package/dist/os/authority/authority.module.d.ts +3 -0
- package/dist/os/authority/authority.module.d.ts.map +1 -0
- package/dist/os/authority/authority.module.js +161 -0
- package/dist/os/authority/authority.module.js.map +1 -0
- package/dist/os/authority/handlers/delegate-revoke.d.ts +15 -0
- package/dist/os/authority/handlers/delegate-revoke.d.ts.map +1 -0
- package/dist/os/authority/handlers/delegate-revoke.js +91 -0
- package/dist/os/authority/handlers/delegate-revoke.js.map +1 -0
- package/dist/os/authority/handlers/delegate.d.ts +14 -0
- package/dist/os/authority/handlers/delegate.d.ts.map +1 -0
- package/dist/os/authority/handlers/delegate.js +134 -0
- package/dist/os/authority/handlers/delegate.js.map +1 -0
- package/dist/os/authority/handlers/delegation-list.d.ts +12 -0
- package/dist/os/authority/handlers/delegation-list.d.ts.map +1 -0
- package/dist/os/authority/handlers/delegation-list.js +54 -0
- package/dist/os/authority/handlers/delegation-list.js.map +1 -0
- package/dist/os/authority/handlers/delegation-validate.d.ts +11 -0
- package/dist/os/authority/handlers/delegation-validate.d.ts.map +1 -0
- package/dist/os/authority/handlers/delegation-validate.js +132 -0
- package/dist/os/authority/handlers/delegation-validate.js.map +1 -0
- package/dist/os/authority/helpers.d.ts +36 -0
- package/dist/os/authority/helpers.d.ts.map +1 -0
- package/dist/os/authority/helpers.js +83 -0
- package/dist/os/authority/helpers.js.map +1 -0
- package/dist/os/authority/index.d.ts +2 -0
- package/dist/os/authority/index.d.ts.map +1 -0
- package/dist/os/authority/index.js +14 -0
- package/dist/os/authority/index.js.map +1 -0
- package/dist/os/checks/checks.module.d.ts +3 -0
- package/dist/os/checks/checks.module.d.ts.map +1 -0
- package/dist/os/checks/checks.module.js +90 -0
- package/dist/os/checks/checks.module.js.map +1 -0
- package/dist/os/checks/handlers/contribution-report.d.ts +35 -0
- package/dist/os/checks/handlers/contribution-report.d.ts.map +1 -0
- package/dist/os/checks/handlers/contribution-report.js +264 -0
- package/dist/os/checks/handlers/contribution-report.js.map +1 -0
- package/dist/os/checks/handlers/counters-export.d.ts +19 -0
- package/dist/os/checks/handlers/counters-export.d.ts.map +1 -0
- package/dist/os/checks/handlers/counters-export.js +122 -0
- package/dist/os/checks/handlers/counters-export.js.map +1 -0
- package/dist/os/checks/handlers/counters-journal.d.ts +67 -0
- package/dist/os/checks/handlers/counters-journal.d.ts.map +1 -0
- package/dist/os/checks/handlers/counters-journal.js +154 -0
- package/dist/os/checks/handlers/counters-journal.js.map +1 -0
- package/dist/os/checks/handlers/counters-validate.d.ts +11 -0
- package/dist/os/checks/handlers/counters-validate.d.ts.map +1 -0
- package/dist/os/checks/handlers/counters-validate.js +131 -0
- package/dist/os/checks/handlers/counters-validate.js.map +1 -0
- package/dist/os/checks/index.d.ts +6 -0
- package/dist/os/checks/index.d.ts.map +1 -0
- package/dist/os/checks/index.js +6 -0
- package/dist/os/checks/index.js.map +1 -0
- package/dist/os/compass/compass.module.d.ts.map +1 -1
- package/dist/os/compass/compass.module.js +55 -20
- package/dist/os/compass/compass.module.js.map +1 -1
- package/dist/os/compass/handlers/compass-header-scaffold.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-header-scaffold.js +4 -2
- package/dist/os/compass/handlers/compass-header-scaffold.js.map +1 -1
- package/dist/os/compass/handlers/compass-invariants-generate.d.ts +15 -0
- package/dist/os/compass/handlers/compass-invariants-generate.d.ts.map +1 -0
- package/dist/os/compass/handlers/compass-invariants-generate.js +208 -0
- package/dist/os/compass/handlers/compass-invariants-generate.js.map +1 -0
- package/dist/os/compass/handlers/compass-inventory-handler.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-inventory-handler.js +46 -4
- package/dist/os/compass/handlers/compass-inventory-handler.js.map +1 -1
- package/dist/os/compass/handlers/invariant-bindings.d.ts +85 -0
- package/dist/os/compass/handlers/invariant-bindings.d.ts.map +1 -0
- package/dist/os/compass/handlers/invariant-bindings.js +390 -0
- package/dist/os/compass/handlers/invariant-bindings.js.map +1 -0
- package/dist/os/conformance/conformance.module.d.ts +3 -0
- package/dist/os/conformance/conformance.module.d.ts.map +1 -0
- package/dist/os/conformance/conformance.module.js +96 -0
- package/dist/os/conformance/conformance.module.js.map +1 -0
- package/dist/os/conformance/handlers/conformance-run.d.ts +14 -0
- package/dist/os/conformance/handlers/conformance-run.d.ts.map +1 -0
- package/dist/os/conformance/handlers/conformance-run.js +149 -0
- package/dist/os/conformance/handlers/conformance-run.js.map +1 -0
- package/dist/os/conformance/handlers/conformance-validate.d.ts +14 -0
- package/dist/os/conformance/handlers/conformance-validate.d.ts.map +1 -0
- package/dist/os/conformance/handlers/conformance-validate.js +216 -0
- package/dist/os/conformance/handlers/conformance-validate.js.map +1 -0
- package/dist/os/conformance/index.d.ts +6 -0
- package/dist/os/conformance/index.d.ts.map +1 -0
- package/dist/os/conformance/index.js +17 -0
- package/dist/os/conformance/index.js.map +1 -0
- package/dist/os/context/context.module.d.ts +3 -0
- package/dist/os/context/context.module.d.ts.map +1 -0
- package/dist/os/context/context.module.js +68 -0
- package/dist/os/context/context.module.js.map +1 -0
- package/dist/os/context/handlers/context-assemble.d.ts +28 -0
- package/dist/os/context/handlers/context-assemble.d.ts.map +1 -0
- package/dist/os/context/handlers/context-assemble.js +142 -0
- package/dist/os/context/handlers/context-assemble.js.map +1 -0
- package/dist/os/context/handlers/context-slate-eval.d.ts +15 -0
- package/dist/os/context/handlers/context-slate-eval.d.ts.map +1 -0
- package/dist/os/context/handlers/context-slate-eval.js +70 -0
- package/dist/os/context/handlers/context-slate-eval.js.map +1 -0
- package/dist/os/context/handlers/index-build.d.ts +19 -0
- package/dist/os/context/handlers/index-build.d.ts.map +1 -0
- package/dist/os/context/handlers/index-build.js +188 -0
- package/dist/os/context/handlers/index-build.js.map +1 -0
- package/dist/os/context/index.d.ts +5 -0
- package/dist/os/context/index.d.ts.map +1 -0
- package/dist/os/context/index.js +5 -0
- package/dist/os/context/index.js.map +1 -0
- package/dist/os/core/core.module.d.ts.map +1 -1
- package/dist/os/core/core.module.js +34 -11
- package/dist/os/core/core.module.js.map +1 -1
- package/dist/os/formal/formal.module.d.ts +3 -0
- package/dist/os/formal/formal.module.d.ts.map +1 -0
- package/dist/os/formal/formal.module.js +63 -0
- package/dist/os/formal/formal.module.js.map +1 -0
- package/dist/os/formal/handlers/proof-check.d.ts +10 -0
- package/dist/os/formal/handlers/proof-check.d.ts.map +1 -0
- package/dist/os/formal/handlers/proof-check.js +82 -0
- package/dist/os/formal/handlers/proof-check.js.map +1 -0
- package/dist/os/formal/index.d.ts +4 -0
- package/dist/os/formal/index.d.ts.map +1 -0
- package/dist/os/formal/index.js +16 -0
- package/dist/os/formal/index.js.map +1 -0
- package/dist/os/friction/friction.module.d.ts +3 -0
- package/dist/os/friction/friction.module.d.ts.map +1 -0
- package/dist/os/friction/friction.module.js +71 -0
- package/dist/os/friction/friction.module.js.map +1 -0
- package/dist/os/friction/handlers/friction-validate.d.ts +4 -0
- package/dist/os/friction/handlers/friction-validate.d.ts.map +1 -0
- package/dist/os/friction/handlers/friction-validate.js +228 -0
- package/dist/os/friction/handlers/friction-validate.js.map +1 -0
- package/dist/os/friction/index.d.ts +4 -0
- package/dist/os/friction/index.d.ts.map +1 -0
- package/dist/os/friction/index.js +23 -0
- package/dist/os/friction/index.js.map +1 -0
- package/dist/os/friction/types.d.ts +97 -0
- package/dist/os/friction/types.d.ts.map +1 -0
- package/dist/os/friction/types.js +78 -0
- package/dist/os/friction/types.js.map +1 -0
- package/dist/os/gate/gate.module.d.ts +3 -0
- package/dist/os/gate/gate.module.d.ts.map +1 -0
- package/dist/os/gate/gate.module.js +65 -0
- package/dist/os/gate/gate.module.js.map +1 -0
- package/dist/os/gate/handlers/gate-probe-catalog.d.ts +18 -0
- package/dist/os/gate/handlers/gate-probe-catalog.d.ts.map +1 -0
- package/dist/os/gate/handlers/gate-probe-catalog.js +66 -0
- package/dist/os/gate/handlers/gate-probe-catalog.js.map +1 -0
- package/dist/os/gate/handlers/gate-probe.d.ts +32 -0
- package/dist/os/gate/handlers/gate-probe.d.ts.map +1 -0
- package/dist/os/gate/handlers/gate-probe.js +228 -0
- package/dist/os/gate/handlers/gate-probe.js.map +1 -0
- package/dist/os/gate/index.d.ts +4 -0
- package/dist/os/gate/index.d.ts.map +1 -0
- package/dist/os/gate/index.js +4 -0
- package/dist/os/gate/index.js.map +1 -0
- package/dist/os/instructions/handlers/budget-validate.d.ts +29 -0
- package/dist/os/instructions/handlers/budget-validate.d.ts.map +1 -0
- package/dist/os/instructions/handlers/budget-validate.js +164 -0
- package/dist/os/instructions/handlers/budget-validate.js.map +1 -0
- package/dist/os/instructions/handlers/scar-migrate.d.ts +13 -0
- package/dist/os/instructions/handlers/scar-migrate.d.ts.map +1 -0
- package/dist/os/instructions/handlers/scar-migrate.js +270 -0
- package/dist/os/instructions/handlers/scar-migrate.js.map +1 -0
- package/dist/os/instructions/instructions.module.d.ts +3 -0
- package/dist/os/instructions/instructions.module.d.ts.map +1 -0
- package/dist/os/instructions/instructions.module.js +74 -0
- package/dist/os/instructions/instructions.module.js.map +1 -0
- package/dist/os/knowledge/handlers/knowledge-authz-probe.d.ts +16 -0
- package/dist/os/knowledge/handlers/knowledge-authz-probe.d.ts.map +1 -0
- package/dist/os/knowledge/handlers/knowledge-authz-probe.js +198 -0
- package/dist/os/knowledge/handlers/knowledge-authz-probe.js.map +1 -0
- package/dist/os/knowledge/handlers/knowledge-rebuild.d.ts +15 -0
- package/dist/os/knowledge/handlers/knowledge-rebuild.d.ts.map +1 -0
- package/dist/os/knowledge/handlers/knowledge-rebuild.js +137 -0
- package/dist/os/knowledge/handlers/knowledge-rebuild.js.map +1 -0
- package/dist/os/knowledge/index.d.ts +4 -0
- package/dist/os/knowledge/index.d.ts.map +1 -0
- package/dist/os/knowledge/index.js +4 -0
- package/dist/os/knowledge/index.js.map +1 -0
- package/dist/os/knowledge/knowledge.module.d.ts +3 -0
- package/dist/os/knowledge/knowledge.module.d.ts.map +1 -0
- package/dist/os/knowledge/knowledge.module.js +61 -0
- package/dist/os/knowledge/knowledge.module.js.map +1 -0
- package/dist/os/mission/handlers/archive.d.ts.map +1 -1
- package/dist/os/mission/handlers/archive.js +102 -6
- package/dist/os/mission/handlers/archive.js.map +1 -1
- package/dist/os/mission/mission.module.d.ts.map +1 -1
- package/dist/os/mission/mission.module.js +7 -0
- package/dist/os/mission/mission.module.js.map +1 -1
- package/dist/os/naming/naming-convention.d.ts.map +1 -1
- package/dist/os/naming/naming-convention.js +2 -1
- package/dist/os/naming/naming-convention.js.map +1 -1
- package/dist/os/program/schemas.d.ts +5 -5
- package/dist/os/queue/handlers/queue-validate.d.ts.map +1 -1
- package/dist/os/queue/handlers/queue-validate.js +129 -5
- package/dist/os/queue/handlers/queue-validate.js.map +1 -1
- package/dist/os/queue/queue.module.d.ts.map +1 -1
- package/dist/os/queue/queue.module.js +12 -31
- package/dist/os/queue/queue.module.js.map +1 -1
- package/dist/os/queue/types.d.ts +23 -0
- package/dist/os/queue/types.d.ts.map +1 -1
- package/dist/os/queue/types.js +24 -3
- package/dist/os/queue/types.js.map +1 -1
- package/dist/os/resolver/handlers/resolver-doors-audit.d.ts +22 -0
- package/dist/os/resolver/handlers/resolver-doors-audit.d.ts.map +1 -0
- package/dist/os/resolver/handlers/resolver-doors-audit.js +238 -0
- package/dist/os/resolver/handlers/resolver-doors-audit.js.map +1 -0
- package/dist/os/resolver/resolver.module.d.ts +3 -0
- package/dist/os/resolver/resolver.module.d.ts.map +1 -0
- package/dist/os/resolver/resolver.module.js +40 -0
- package/dist/os/resolver/resolver.module.js.map +1 -0
- package/dist/os/rfc/acceptance.d.ts +2 -1
- package/dist/os/rfc/acceptance.d.ts.map +1 -1
- package/dist/os/rfc/acceptance.js +158 -82
- package/dist/os/rfc/acceptance.js.map +1 -1
- package/dist/os/rfc/decision-log.d.ts +10 -0
- package/dist/os/rfc/decision-log.d.ts.map +1 -1
- package/dist/os/rfc/decision-log.js +14 -0
- package/dist/os/rfc/decision-log.js.map +1 -1
- package/dist/os/rfc/handlers/fixed-inputs.d.ts +29 -0
- package/dist/os/rfc/handlers/fixed-inputs.d.ts.map +1 -0
- package/dist/os/rfc/handlers/fixed-inputs.js +214 -0
- package/dist/os/rfc/handlers/fixed-inputs.js.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp-deviations.d.ts +47 -0
- package/dist/os/rfc/handlers/implement-stamp-deviations.d.ts.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp-deviations.js +145 -0
- package/dist/os/rfc/handlers/implement-stamp-deviations.js.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp-origin.d.ts +15 -1
- package/dist/os/rfc/handlers/implement-stamp-origin.d.ts.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp-origin.js +57 -5
- package/dist/os/rfc/handlers/implement-stamp-origin.js.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp-outcome.d.ts +42 -0
- package/dist/os/rfc/handlers/implement-stamp-outcome.d.ts.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp-outcome.js +102 -0
- package/dist/os/rfc/handlers/implement-stamp-outcome.js.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp.d.ts.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp.js +101 -12
- package/dist/os/rfc/handlers/implement-stamp.js.map +1 -1
- package/dist/os/rfc/handlers/index-graph.d.ts +4 -2
- package/dist/os/rfc/handlers/index-graph.d.ts.map +1 -1
- package/dist/os/rfc/handlers/index-graph.js +57 -3
- package/dist/os/rfc/handlers/index-graph.js.map +1 -1
- package/dist/os/rfc/handlers/list-create.d.ts.map +1 -1
- package/dist/os/rfc/handlers/list-create.js +117 -12
- package/dist/os/rfc/handlers/list-create.js.map +1 -1
- package/dist/os/rfc/handlers/supersede-propose.d.ts.map +1 -1
- package/dist/os/rfc/handlers/supersede-propose.js +34 -7
- package/dist/os/rfc/handlers/supersede-propose.js.map +1 -1
- package/dist/os/rfc/handlers/validate-rules.d.ts +4 -1
- package/dist/os/rfc/handlers/validate-rules.d.ts.map +1 -1
- package/dist/os/rfc/handlers/validate-rules.js +188 -11
- package/dist/os/rfc/handlers/validate-rules.js.map +1 -1
- package/dist/os/rfc/handlers/validate.d.ts.map +1 -1
- package/dist/os/rfc/handlers/validate.js +10 -1
- package/dist/os/rfc/handlers/validate.js.map +1 -1
- package/dist/os/rfc/outcome-probe.d.ts +20 -0
- package/dist/os/rfc/outcome-probe.d.ts.map +1 -0
- package/dist/os/rfc/outcome-probe.js +315 -0
- package/dist/os/rfc/outcome-probe.js.map +1 -0
- package/dist/os/rfc/reachable-symbol.d.ts.map +1 -1
- package/dist/os/rfc/reachable-symbol.js +51 -12
- package/dist/os/rfc/reachable-symbol.js.map +1 -1
- package/dist/os/rfc/rfc.module.d.ts.map +1 -1
- package/dist/os/rfc/rfc.module.js +48 -11
- package/dist/os/rfc/rfc.module.js.map +1 -1
- package/dist/os/rfc/types.d.ts +97 -11
- package/dist/os/rfc/types.d.ts.map +1 -1
- package/dist/os/rfc/types.js +9 -6
- package/dist/os/rfc/types.js.map +1 -1
- package/dist/os/rfc/verification-evidence.d.ts +4 -1
- package/dist/os/rfc/verification-evidence.d.ts.map +1 -1
- package/dist/os/rfc/verification-evidence.js +69 -17
- package/dist/os/rfc/verification-evidence.js.map +1 -1
- package/dist/os/rfc/verification-origin.d.ts +8 -0
- package/dist/os/rfc/verification-origin.d.ts.map +1 -1
- package/dist/os/rfc/verification-origin.js +48 -1
- package/dist/os/rfc/verification-origin.js.map +1 -1
- package/dist/os/rfc/verification-refresh.d.ts.map +1 -1
- package/dist/os/rfc/verification-refresh.js +19 -2
- package/dist/os/rfc/verification-refresh.js.map +1 -1
- package/dist/os/rfc/verification-verdicts.d.ts +14 -0
- package/dist/os/rfc/verification-verdicts.d.ts.map +1 -0
- package/dist/os/rfc/verification-verdicts.js +104 -0
- package/dist/os/rfc/verification-verdicts.js.map +1 -0
- package/dist/os/rfc/verifier/rfc-1391/support.d.ts +34 -0
- package/dist/os/rfc/verifier/rfc-1391/support.d.ts.map +1 -0
- package/dist/os/rfc/verifier/rfc-1391/support.js +184 -0
- package/dist/os/rfc/verifier/rfc-1391/support.js.map +1 -0
- package/dist/os/session/frontmatter-io.d.ts +3 -1
- package/dist/os/session/frontmatter-io.d.ts.map +1 -1
- package/dist/os/session/frontmatter-io.js +3 -1
- package/dist/os/session/frontmatter-io.js.map +1 -1
- package/dist/os/session/handlers/save.d.ts.map +1 -1
- package/dist/os/session/handlers/save.js +41 -10
- package/dist/os/session/handlers/save.js.map +1 -1
- package/dist/os/session/handlers/session-audit-report.d.ts +20 -0
- package/dist/os/session/handlers/session-audit-report.d.ts.map +1 -0
- package/dist/os/session/handlers/session-audit-report.js +78 -0
- package/dist/os/session/handlers/session-audit-report.js.map +1 -0
- package/dist/os/session/handlers/session-audit.d.ts +25 -0
- package/dist/os/session/handlers/session-audit.d.ts.map +1 -0
- package/dist/os/session/handlers/session-audit.js +265 -0
- package/dist/os/session/handlers/session-audit.js.map +1 -0
- package/dist/os/session/session.module.d.ts.map +1 -1
- package/dist/os/session/session.module.js +49 -2
- package/dist/os/session/session.module.js.map +1 -1
- package/dist/os/spec/spec-amendments.d.ts +7 -0
- package/dist/os/spec/spec-amendments.d.ts.map +1 -0
- package/dist/os/spec/spec-amendments.js +86 -0
- package/dist/os/spec/spec-amendments.js.map +1 -0
- package/dist/os/spec/spec-materialize.d.ts.map +1 -1
- package/dist/os/spec/spec-materialize.js +22 -24
- package/dist/os/spec/spec-materialize.js.map +1 -1
- package/dist/os/spec/spec-status.d.ts.map +1 -1
- package/dist/os/spec/spec-status.js +25 -29
- package/dist/os/spec/spec-status.js.map +1 -1
- package/dist/os/spec/spec-validate.d.ts.map +1 -1
- package/dist/os/spec/spec-validate.js +9 -29
- package/dist/os/spec/spec-validate.js.map +1 -1
- package/dist/os/spec/spec.module.d.ts.map +1 -1
- package/dist/os/spec/spec.module.js +7 -36
- package/dist/os/spec/spec.module.js.map +1 -1
- package/dist/os/trajectory/handlers/journal-io.d.ts +51 -0
- package/dist/os/trajectory/handlers/journal-io.d.ts.map +1 -0
- package/dist/os/trajectory/handlers/journal-io.js +161 -0
- package/dist/os/trajectory/handlers/journal-io.js.map +1 -0
- package/dist/os/trajectory/handlers/outcome-record.d.ts +16 -0
- package/dist/os/trajectory/handlers/outcome-record.d.ts.map +1 -0
- package/dist/os/trajectory/handlers/outcome-record.js +142 -0
- package/dist/os/trajectory/handlers/outcome-record.js.map +1 -0
- package/dist/os/trajectory/handlers/trajectory-index.d.ts +59 -0
- package/dist/os/trajectory/handlers/trajectory-index.d.ts.map +1 -0
- package/dist/os/trajectory/handlers/trajectory-index.js +427 -0
- package/dist/os/trajectory/handlers/trajectory-index.js.map +1 -0
- package/dist/os/trajectory/handlers/trajectory-recall.d.ts +21 -0
- package/dist/os/trajectory/handlers/trajectory-recall.d.ts.map +1 -0
- package/dist/os/trajectory/handlers/trajectory-recall.js +176 -0
- package/dist/os/trajectory/handlers/trajectory-recall.js.map +1 -0
- package/dist/os/trajectory/index.d.ts +5 -0
- package/dist/os/trajectory/index.d.ts.map +1 -0
- package/dist/os/trajectory/index.js +5 -0
- package/dist/os/trajectory/index.js.map +1 -0
- package/dist/os/trajectory/trajectory.module.d.ts +3 -0
- package/dist/os/trajectory/trajectory.module.d.ts.map +1 -0
- package/dist/os/trajectory/trajectory.module.js +91 -0
- package/dist/os/trajectory/trajectory.module.js.map +1 -0
- package/dist/os/werkstatt/handlers/session-close.d.ts +13 -0
- package/dist/os/werkstatt/handlers/session-close.d.ts.map +1 -0
- package/dist/os/werkstatt/handlers/session-close.js +53 -0
- package/dist/os/werkstatt/handlers/session-close.js.map +1 -0
- package/dist/os/werkstatt/handlers/session-engine.d.ts +3 -0
- package/dist/os/werkstatt/handlers/session-engine.d.ts.map +1 -0
- package/dist/os/werkstatt/handlers/session-engine.js +25 -0
- package/dist/os/werkstatt/handlers/session-engine.js.map +1 -0
- package/dist/os/werkstatt/handlers/session-open.d.ts +10 -0
- package/dist/os/werkstatt/handlers/session-open.d.ts.map +1 -0
- package/dist/os/werkstatt/handlers/session-open.js +43 -0
- package/dist/os/werkstatt/handlers/session-open.js.map +1 -0
- package/dist/os/werkstatt/handlers/session-status.d.ts +9 -0
- package/dist/os/werkstatt/handlers/session-status.d.ts.map +1 -0
- package/dist/os/werkstatt/handlers/session-status.js +31 -0
- package/dist/os/werkstatt/handlers/session-status.js.map +1 -0
- package/dist/os/werkstatt/werkstatt.module.d.ts.map +1 -1
- package/dist/os/werkstatt/werkstatt.module.js +98 -3
- package/dist/os/werkstatt/werkstatt.module.js.map +1 -1
- package/dist/src/authority/delegations.d.ts +108 -0
- package/dist/src/authority/delegations.d.ts.map +1 -0
- package/dist/src/authority/delegations.js +219 -0
- package/dist/src/authority/delegations.js.map +1 -0
- package/dist/src/authority/index.d.ts +3 -0
- package/dist/src/authority/index.d.ts.map +1 -0
- package/dist/src/authority/index.js +17 -0
- package/dist/src/authority/index.js.map +1 -0
- package/dist/src/authority/signing.d.ts +8 -0
- package/dist/src/authority/signing.d.ts.map +1 -0
- package/dist/src/authority/signing.js +72 -0
- package/dist/src/authority/signing.js.map +1 -0
- package/dist/src/cli-flags.d.ts.map +1 -1
- package/dist/src/cli-flags.js +90 -11
- package/dist/src/cli-flags.js.map +1 -1
- package/dist/src/compass/index.d.ts +2 -0
- package/dist/src/compass/index.d.ts.map +1 -0
- package/dist/src/compass/index.js +26 -0
- package/dist/src/compass/index.js.map +1 -0
- package/dist/src/compass/invariant-parser.d.ts +37 -0
- package/dist/src/compass/invariant-parser.d.ts.map +1 -0
- package/dist/src/compass/invariant-parser.js +218 -0
- package/dist/src/compass/invariant-parser.js.map +1 -0
- package/dist/src/config/forge-config.d.ts +108 -0
- package/dist/src/config/forge-config.d.ts.map +1 -1
- package/dist/src/config/forge-config.js +79 -9
- package/dist/src/config/forge-config.js.map +1 -1
- package/dist/src/conformance/index.d.ts +42 -0
- package/dist/src/conformance/index.d.ts.map +1 -0
- package/dist/src/conformance/index.js +193 -0
- package/dist/src/conformance/index.js.map +1 -0
- package/dist/src/formal/exhaustive.d.ts +40 -0
- package/dist/src/formal/exhaustive.d.ts.map +1 -0
- package/dist/src/formal/exhaustive.js +140 -0
- package/dist/src/formal/exhaustive.js.map +1 -0
- package/dist/src/formal/index.d.ts +7 -0
- package/dist/src/formal/index.d.ts.map +1 -0
- package/dist/src/formal/index.js +13 -0
- package/dist/src/formal/index.js.map +1 -0
- package/dist/src/formal/proof-runner.d.ts +51 -0
- package/dist/src/formal/proof-runner.d.ts.map +1 -0
- package/dist/src/formal/proof-runner.js +450 -0
- package/dist/src/formal/proof-runner.js.map +1 -0
- package/dist/src/formal/proof-spec.d.ts +69 -0
- package/dist/src/formal/proof-spec.d.ts.map +1 -0
- package/dist/src/formal/proof-spec.js +96 -0
- package/dist/src/formal/proof-spec.js.map +1 -0
- package/dist/src/knowledge/schema.d.ts +8 -0
- package/dist/src/knowledge/schema.d.ts.map +1 -1
- package/dist/src/knowledge/schema.js +5 -0
- package/dist/src/knowledge/schema.js.map +1 -1
- package/dist/src/knowledge/serialize.d.ts.map +1 -1
- package/dist/src/knowledge/serialize.js +3 -0
- package/dist/src/knowledge/serialize.js.map +1 -1
- package/dist/src/onboarding/agents-generate.d.ts.map +1 -1
- package/dist/src/onboarding/agents-generate.js +17 -2
- package/dist/src/onboarding/agents-generate.js.map +1 -1
- package/dist/src/onboarding/doctor.d.ts.map +1 -1
- package/dist/src/onboarding/doctor.js +87 -1
- package/dist/src/onboarding/doctor.js.map +1 -1
- package/dist/src/onboarding/init.js +3 -3
- package/dist/src/onboarding/init.js.map +1 -1
- package/dist/src/profiles/profile-schema.d.ts +8 -0
- package/dist/src/profiles/profile-schema.d.ts.map +1 -1
- package/dist/src/profiles/profile-schema.js +10 -2
- package/dist/src/profiles/profile-schema.js.map +1 -1
- package/dist/src/profiles/stack-profile.d.ts +4 -0
- package/dist/src/profiles/stack-profile.d.ts.map +1 -1
- package/dist/src/reachability/command-mentions.d.ts +17 -0
- package/dist/src/reachability/command-mentions.d.ts.map +1 -0
- package/dist/src/reachability/command-mentions.js +81 -0
- package/dist/src/reachability/command-mentions.js.map +1 -0
- package/dist/src/registry.d.ts +10 -0
- package/dist/src/registry.d.ts.map +1 -1
- package/dist/src/registry.js +40 -2
- package/dist/src/registry.js.map +1 -1
- package/dist/src/types.d.ts +51 -3
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +11 -14
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/sync-fs.d.ts +1 -1
- package/dist/src/utils/sync-fs.d.ts.map +1 -1
- package/dist/src/utils/sync-fs.js +2 -1
- package/dist/src/utils/sync-fs.js.map +1 -1
- package/docs/reference/forge-yaml.md +20 -0
- package/os/adr/handlers/implement-stamp.ts +2 -0
- package/os/adr/types.ts +2 -0
- package/os/agent/agent.module.ts +64 -0
- package/os/agent/handlers/agent-delegate.ts +227 -0
- package/os/agent/handlers/agent-tiers-validate.ts +228 -0
- package/os/agent/index.ts +14 -0
- package/os/agent/invoke-adapter.ts +119 -0
- package/os/authority/authority.module.ts +175 -0
- package/os/authority/authority.test.ts +328 -0
- package/os/authority/handlers/delegate-revoke.ts +123 -0
- package/os/authority/handlers/delegate.ts +190 -0
- package/os/authority/handlers/delegation-list.ts +80 -0
- package/os/authority/handlers/delegation-validate.ts +231 -0
- package/os/authority/helpers.ts +111 -0
- package/os/authority/index.ts +14 -0
- package/os/checks/checks.module.ts +95 -0
- package/os/checks/handlers/contribution-report.test.ts +244 -0
- package/os/checks/handlers/contribution-report.ts +316 -0
- package/os/checks/handlers/counters-export.test.ts +175 -0
- package/os/checks/handlers/counters-export.ts +170 -0
- package/os/checks/handlers/counters-journal.test.ts +187 -0
- package/os/checks/handlers/counters-journal.ts +179 -0
- package/os/checks/handlers/counters-validate.test.ts +176 -0
- package/os/checks/handlers/counters-validate.ts +159 -0
- package/os/checks/handlers/variant-candidates.test.ts +65 -0
- package/os/checks/index.ts +15 -0
- package/os/compass/compass.module.ts +58 -20
- package/os/compass/handlers/compass-header-scaffold.ts +4 -2
- package/os/compass/handlers/compass-invariants-generate.ts +293 -0
- package/os/compass/handlers/compass-inventory-handler.ts +59 -4
- package/os/compass/handlers/invariant-bindings.ts +526 -0
- package/os/compass/handlers/tests/compass-invariant-binding.test.ts +500 -0
- package/os/compass/handlers/tests/compass-invariants-generate.test.ts +235 -0
- package/os/compass/handlers/tests/compass-migrate.test.ts +5 -3
- package/os/conformance/conformance.module.ts +105 -0
- package/os/conformance/handlers/conformance-run.ts +175 -0
- package/os/conformance/handlers/conformance-validate.ts +334 -0
- package/os/conformance/handlers/tests/conformance.test.ts +657 -0
- package/os/conformance/index.ts +19 -0
- package/os/context/context.module.ts +73 -0
- package/os/context/handlers/context-assemble.test.ts +89 -0
- package/os/context/handlers/context-assemble.ts +171 -0
- package/os/context/handlers/context-slate-eval.test.ts +64 -0
- package/os/context/handlers/context-slate-eval.ts +86 -0
- package/os/context/handlers/index-build.test.ts +68 -0
- package/os/context/handlers/index-build.ts +211 -0
- package/os/context/handlers/no-model-deps.test.ts +32 -0
- package/os/context/handlers/slate-fill.test.ts +31 -0
- package/os/context/index.ts +4 -0
- package/os/core/core.module.ts +34 -11
- package/os/formal/formal.module.ts +67 -0
- package/os/formal/handlers/proof-check.test.ts +337 -0
- package/os/formal/handlers/proof-check.ts +100 -0
- package/os/formal/index.ts +17 -0
- package/os/friction/friction-validate.test.ts +442 -0
- package/os/friction/friction.module.ts +74 -0
- package/os/friction/handlers/friction-validate.ts +349 -0
- package/os/friction/index.ts +30 -0
- package/os/friction/types.ts +113 -0
- package/os/gate/gate.module.ts +69 -0
- package/os/gate/handlers/gate-probe-catalog.test.ts +76 -0
- package/os/gate/handlers/gate-probe-catalog.ts +85 -0
- package/os/gate/handlers/gate-probe.test.ts +108 -0
- package/os/gate/handlers/gate-probe.ts +252 -0
- package/os/gate/index.ts +3 -0
- package/os/instructions/budget.test.ts +125 -0
- package/os/instructions/handlers/budget-validate.ts +197 -0
- package/os/instructions/handlers/scar-migrate.ts +292 -0
- package/os/instructions/instructions.module.ts +78 -0
- package/os/knowledge/handlers/knowledge-authz-probe.test.ts +86 -0
- package/os/knowledge/handlers/knowledge-authz-probe.ts +236 -0
- package/os/knowledge/handlers/knowledge-rebuild.test.ts +76 -0
- package/os/knowledge/handlers/knowledge-rebuild.ts +163 -0
- package/os/knowledge/index.ts +3 -0
- package/os/knowledge/knowledge.module.ts +65 -0
- package/os/mission/handlers/archive.ts +113 -6
- package/os/mission/handlers/ship-inflight-degraded.test.ts +105 -0
- package/os/mission/mission.module.ts +8 -0
- package/os/naming/naming-convention.ts +2 -1
- package/os/queue/decision-ledger.test.ts +39 -0
- package/os/queue/handlers/queue-validate.ts +132 -5
- package/os/queue/queue-validate.test.ts +194 -0
- package/os/queue/queue.module.ts +12 -31
- package/os/queue/types.ts +26 -3
- package/os/resolver/handlers/resolver-doors-audit.test.ts +147 -0
- package/os/resolver/handlers/resolver-doors-audit.ts +281 -0
- package/os/resolver/resolver.module.ts +43 -0
- package/os/rfc/acceptance-reachable.test.ts +78 -0
- package/os/rfc/acceptance.test.ts +229 -1
- package/os/rfc/acceptance.ts +141 -45
- package/os/rfc/decision-log.ts +15 -0
- package/os/rfc/handlers/fixed-inputs.ts +252 -0
- package/os/rfc/handlers/implement-stamp-deviations.test.ts +140 -0
- package/os/rfc/handlers/implement-stamp-deviations.ts +183 -0
- package/os/rfc/handlers/implement-stamp-formal.test.ts +168 -0
- package/os/rfc/handlers/implement-stamp-origin.ts +87 -11
- package/os/rfc/handlers/implement-stamp-outcome.test.ts +193 -0
- package/os/rfc/handlers/implement-stamp-outcome.ts +146 -0
- package/os/rfc/handlers/implement-stamp.ts +107 -10
- package/os/rfc/handlers/index-graph.ts +66 -4
- package/os/rfc/handlers/list-create.test.ts +142 -0
- package/os/rfc/handlers/list-create.ts +140 -12
- package/os/rfc/handlers/supersede-propose.ts +50 -7
- package/os/rfc/handlers/tests/index-graph.test.ts +165 -0
- package/os/rfc/handlers/validate-rules-rfc1453.test.ts +163 -0
- package/os/rfc/handlers/validate-rules-rfc1454.test.ts +136 -0
- package/os/rfc/handlers/validate-rules-rfc1455.test.ts +282 -0
- package/os/rfc/handlers/validate-rules.test.ts +129 -2
- package/os/rfc/handlers/validate-rules.ts +274 -14
- package/os/rfc/handlers/validate.ts +11 -0
- package/os/rfc/outcome-probe.ts +326 -0
- package/os/rfc/reachable-symbol.ts +64 -16
- package/os/rfc/rfc-0000-template.md +4 -0
- package/os/rfc/rfc.module.ts +51 -11
- package/os/rfc/types.ts +118 -13
- package/os/rfc/verification-evidence.ts +74 -14
- package/os/rfc/verification-origin.ts +61 -1
- package/os/rfc/verification-refresh.test.ts +63 -0
- package/os/rfc/verification-refresh.ts +24 -2
- package/os/rfc/verification-verdicts.ts +123 -0
- package/os/rfc/verifier/rfc-1391/ac1-proved-exit-0.acceptance.test.ts +151 -0
- package/os/rfc/verifier/rfc-1391/ac2-unavailable-nonzero.acceptance.test.ts +111 -0
- package/os/rfc/verifier/rfc-1391/ac3-version-mismatch-error.acceptance.test.ts +97 -0
- package/os/rfc/verifier/rfc-1391/ac4-cardinality-mismatch-error.acceptance.test.ts +179 -0
- package/os/rfc/verifier/rfc-1391/ac5-imp13-formal-stamp-block.acceptance.test.ts +295 -0
- package/os/rfc/verifier/rfc-1391/ac6-formal-high-tier-gates.acceptance.test.ts +203 -0
- package/os/rfc/verifier/rfc-1391/ac7-v46-empty-assumptions.acceptance.test.ts +126 -0
- package/os/rfc/verifier/rfc-1391/cx1-emit-proof-envelope.acceptance.test.ts +130 -0
- package/os/rfc/verifier/rfc-1391/fixtures/no-report.proof.test.ts +35 -0
- package/os/rfc/verifier/rfc-1391/fixtures/small-domain.proof.test.ts +41 -0
- package/os/rfc/verifier/rfc-1391/origin-proof-spec-entry.acceptance.test.ts +175 -0
- package/os/rfc/verifier/rfc-1391/support.ts +205 -0
- package/os/session/fixtures/audit/clean.md +7 -0
- package/os/session/fixtures/audit/denied-retry.md +10 -0
- package/os/session/frontmatter-io.ts +3 -1
- package/os/session/handlers/save.ts +43 -9
- package/os/session/handlers/session-audit-detectors.test.ts +91 -0
- package/os/session/handlers/session-audit-report.test.ts +64 -0
- package/os/session/handlers/session-audit-report.ts +93 -0
- package/os/session/handlers/session-audit.test.ts +80 -0
- package/os/session/handlers/session-audit.ts +317 -0
- package/os/session/session.module.ts +51 -2
- package/os/spec/spec-amendments.ts +91 -0
- package/os/spec/spec-materialize.ts +20 -22
- package/os/spec/spec-status.test.ts +17 -1
- package/os/spec/spec-status.ts +23 -29
- package/os/spec/spec-validate.test.ts +45 -0
- package/os/spec/spec-validate.ts +9 -29
- package/os/spec/spec.module.ts +7 -36
- package/os/trajectory/handlers/extract-units.test.ts +69 -0
- package/os/trajectory/handlers/journal-io.ts +211 -0
- package/os/trajectory/handlers/outcome-record.test.ts +192 -0
- package/os/trajectory/handlers/outcome-record.ts +162 -0
- package/os/trajectory/handlers/producer-trust.test.ts +163 -0
- package/os/trajectory/handlers/trajectory-index.test.ts +246 -0
- package/os/trajectory/handlers/trajectory-index.ts +470 -0
- package/os/trajectory/handlers/trajectory-recall.test.ts +227 -0
- package/os/trajectory/handlers/trajectory-recall.ts +198 -0
- package/os/trajectory/handlers/trajectory.test.ts +94 -0
- package/os/trajectory/handlers/verdict-binding.test.ts +209 -0
- package/os/trajectory/index.ts +4 -0
- package/os/trajectory/trajectory.module.ts +96 -0
- package/os/werkstatt/handlers/session-close.ts +79 -0
- package/os/werkstatt/handlers/session-engine.ts +31 -0
- package/os/werkstatt/handlers/session-open.ts +65 -0
- package/os/werkstatt/handlers/session-status.ts +52 -0
- package/os/werkstatt/werkstatt.module.ts +101 -3
- package/package.json +206 -1
- package/profiles/forge-shell.yaml +3 -1
- package/profiles/godot-game.yaml +3 -1
- package/profiles/knowledge.yaml +3 -1
- package/profiles/phaser-game.yaml +3 -1
- package/profiles/site-workshop.yaml +3 -1
- package/profiles/typescript.yaml +3 -1
- package/skills/_shared/agent-operating-model.md +1 -1
- package/skills/_shared/fo-pipeline-conventions.md +5 -1
- package/skills/fo/fo-add-tests/SKILL.md +9 -1
- package/skills/fo/fo-add-tests/pbt-guide.md +1 -0
- package/skills/fo/fo-compass-annotate/SKILL.md +18 -0
- package/skills/fo/fo-compass-annotate/templates/header-format.md +3 -2
- package/skills/fo/fo-fix/SKILL.md +14 -8
- package/skills/fo/fo-idea-create-adr/SKILL.md +5 -3
- package/skills/fo/fo-idea-create-rfc/SKILL.md +20 -8
- package/skills/fo/fo-idea-create-rfc/acceptance-criteria-standard.md +20 -0
- package/skills/fo/fo-idea-i-just-want-to-see-the-result/SKILL.md +31 -13
- package/skills/fo/fo-idea-implement/SKILL.md +20 -14
- package/skills/fo/fo-idea-plan/SKILL.md +1 -1
- package/skills/fo/fo-knowledge-distill/SKILL.md +7 -0
- package/skills/fo/fo-memory-sync/SKILL.md +6 -0
- package/skills/fo/fo-reproduce/SKILL.md +116 -0
- package/skills/fo/fo-review/SKILL.md +11 -5
- package/skills/fo/fo-session-retro/SKILL.md +134 -49
- package/skills/fo/fo-step-commit/SKILL.md +4 -3
- package/skills/fo/fo-triage/SKILL.md +9 -0
- package/skills/shared/grilling/SKILL.md +4 -0
- package/skills/shared/grilling/learned-principles.md +7 -0
- package/skills/shared/grilling/qa-log.md +39 -0
- package/src/authority/delegations.ts +269 -0
- package/src/authority/index.ts +38 -0
- package/src/authority/signing.ts +73 -0
- package/src/cli-flags.ts +110 -11
- package/src/compass/index.ts +37 -0
- package/src/compass/invariant-parser.ts +253 -0
- package/src/config/forge-config.ts +111 -9
- package/src/conformance/index.ts +281 -0
- package/src/formal/exhaustive.test.ts +117 -0
- package/src/formal/exhaustive.ts +182 -0
- package/src/formal/index.ts +23 -0
- package/src/formal/proof-runner.test.ts +310 -0
- package/src/formal/proof-runner.ts +562 -0
- package/src/formal/proof-spec.test.ts +70 -0
- package/src/formal/proof-spec.ts +131 -0
- package/src/knowledge/schema.ts +9 -0
- package/src/knowledge/serialize.ts +3 -0
- package/src/onboarding/agents-generate.ts +18 -2
- package/src/onboarding/doctor.ts +93 -1
- package/src/onboarding/init.ts +3 -3
- package/src/onboarding/templates/behavioral-layer-core.md +1 -1
- package/src/profiles/profile-schema.ts +10 -2
- package/src/reachability/command-mentions.ts +87 -0
- package/src/registry.ts +44 -2
- package/src/tests/bindings-schema.test.ts +4 -0
- package/src/tests/cli-flags.test.ts +225 -0
- package/src/tests/fixtures/agents-generate-business-before.txt +4 -2
- package/src/tests/forge-config.test.ts +5 -2
- package/src/tests/implement-stamp.test.ts +51 -0
- package/src/tests/rfc-validate-delegation.test.ts +178 -0
- package/src/tests/rfc-verification-verdict-ingest.test.ts +244 -0
- package/src/tests/session-handlers.test.ts +65 -0
- package/src/tests/session-retro.test.ts +47 -0
- package/src/types.ts +59 -18
- package/src/utils/sync-fs.ts +2 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
RFC-1470: context.index.build — builds docs/.index/context/ (gitignored pure
|
|
5
|
+
projection, DNA-111): a unit catalog extracted from existing artifacts. Unit
|
|
6
|
+
kinds v1: session-block, knowledge-entry, friction, remediation, rfc-header,
|
|
7
|
+
adr-header, skill-manifest, handoff, decision. Each unit carries id, kind,
|
|
8
|
+
source (path#anchor), tokens, text, meta (dates, entity refs). Drop the dir,
|
|
9
|
+
rebuild from sources — no authority lives in the index.
|
|
10
|
+
</purpose>
|
|
11
|
+
</MODULE_CONTRACT>
|
|
12
|
+
<CHANGE_SUMMARY>
|
|
13
|
+
<item>RFC-1470: context.index.build + context.assemble + context.slate.eval — slate-retrieval projection over the artifact corpus</item>
|
|
14
|
+
<item>RFC-1470: apply r1 repairs — post-fence knowledge prose, devset re-anchored to real unit ids, source-group discount, CTX-01/02, exact-match eval, file-scoped ids, meta fields</item>
|
|
15
|
+
<item>RFC-1470: apply r2 repairs — devset real anchors, CTX-02 watermark staleness, path-scoped K-ids, eval scoring parity</item>
|
|
16
|
+
<item>RFC-1470: apply r3 repair — CTX-02 session-scoped watermark vs path-compare, regression test asserts the warn fires</item>
|
|
17
|
+
<item>RFC-1472: apply r1 repairs — outcomes replay on rebuild, real schema fields, anchored GREEN_RE, shard import, unique recallIds, archive coverage, trajectory kind</item>
|
|
18
|
+
<history>RFC-1470</history>
|
|
19
|
+
</CHANGE_SUMMARY>
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import path from "node:path";
|
|
23
|
+
import { parse as yamlParse, stringify as yamlStringify } from "yaml";
|
|
24
|
+
import { ambientIo, resolveIo } from "../../../src/utils/io.ts";
|
|
25
|
+
import { listSessionFiles, readAndParseSession } from "../../session/frontmatter-io.ts";
|
|
26
|
+
import type {
|
|
27
|
+
ForgeCommandInput,
|
|
28
|
+
ForgeCommandResult,
|
|
29
|
+
ForgeRuntimeContext,
|
|
30
|
+
} from "../../../src/types.ts";
|
|
31
|
+
|
|
32
|
+
export interface ContextUnit {
|
|
33
|
+
id: string;
|
|
34
|
+
kind: "session-block" | "knowledge-entry" | "friction" | "remediation" | "rfc-header" | "adr-header" | "skill-manifest" | "handoff" | "decision" | "trajectory";
|
|
35
|
+
source: string;
|
|
36
|
+
tokens: number;
|
|
37
|
+
text: string;
|
|
38
|
+
meta: Record<string, unknown>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IndexBuildData {
|
|
42
|
+
command: "context.index.build";
|
|
43
|
+
status: "ok";
|
|
44
|
+
units: number;
|
|
45
|
+
byKind: Record<string, number>;
|
|
46
|
+
index: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function estimateTokens(text: string): number {
|
|
50
|
+
return Math.ceil(text.length / 4);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function walk(dir: string, io: ReturnType<typeof resolveIo>, depth = 3): Promise<string[]> {
|
|
54
|
+
if (depth < 0) return [];
|
|
55
|
+
const out: string[] = [];
|
|
56
|
+
for (const e of await io.readdir(dir).catch(() => [] as { name: string; isDirectory: boolean }[])) {
|
|
57
|
+
const abs = path.join(dir, e.name);
|
|
58
|
+
if (e.isDirectory) out.push(...await walk(abs, io, depth - 1));
|
|
59
|
+
else out.push(abs);
|
|
60
|
+
}
|
|
61
|
+
return out;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const KENTRY_RE = /```knowledge-entry\n([\s\S]*?)```/g;
|
|
65
|
+
|
|
66
|
+
export async function runIndexBuild(
|
|
67
|
+
_input: ForgeCommandInput,
|
|
68
|
+
context: ForgeRuntimeContext,
|
|
69
|
+
): Promise<ForgeCommandResult<IndexBuildData>> {
|
|
70
|
+
const io = resolveIo(context.io ?? ambientIo);
|
|
71
|
+
const root = context.workspaceRoot;
|
|
72
|
+
const units: ContextUnit[] = [];
|
|
73
|
+
const push = (u: Omit<ContextUnit, "tokens">) => units.push({ ...u, tokens: estimateTokens(u.text) });
|
|
74
|
+
|
|
75
|
+
// session-block — frontmatter fields as separate units per session.
|
|
76
|
+
const sessionsDir = path.join(root, "docs", "sessions");
|
|
77
|
+
for (const rel of (await listSessionFiles(sessionsDir).catch(() => [])).slice(-200)) {
|
|
78
|
+
const result = await readAndParseSession(sessionsDir, rel).catch(() => null);
|
|
79
|
+
if (!result) continue;
|
|
80
|
+
const fm = result.parsed.frontmatter;
|
|
81
|
+
const id = String(fm.id ?? path.basename(rel, ".md"));
|
|
82
|
+
const fields: [string, unknown][] = [
|
|
83
|
+
["summary", fm.summary],
|
|
84
|
+
["decisions", Array.isArray(fm.decisions) ? fm.decisions.join("\n") : fm.decisions],
|
|
85
|
+
["remainingIssues", Array.isArray(fm.remainingIssues) ? fm.remainingIssues.join("\n") : fm.remainingIssues],
|
|
86
|
+
["systemDelta", Array.isArray(fm.systemDelta) ? fm.systemDelta.join("\n") : fm.systemDelta],
|
|
87
|
+
];
|
|
88
|
+
for (const [field, val] of fields) {
|
|
89
|
+
if (typeof val !== "string" || val.length < 10) continue;
|
|
90
|
+
push({ id: `session-block:${id}:${field}`, kind: "session-block", source: `docs/sessions/${rel}#${field}`, text: `${field}: ${val}`, meta: { sessionId: id, field, date: fm.date } });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// knowledge-entry — K-NNNN blocks in .agents knowledge files + MEMORY.md.
|
|
95
|
+
const kfiles = (await walk(path.join(root, ".agents"), io)).filter((p) => /\.(md)$/.test(p) && /(qa-log|learned-principles|fix-patterns|MEMORY)/.test(p));
|
|
96
|
+
for (const kf of kfiles) {
|
|
97
|
+
const src = await io.readFile(kf).catch(() => null);
|
|
98
|
+
if (src === null) continue;
|
|
99
|
+
const rel = path.relative(root, kf).split(path.sep).join("/");
|
|
100
|
+
for (const m of src.matchAll(KENTRY_RE)) {
|
|
101
|
+
// The fence holds only the YAML sidecar (id/layer/created/status); the
|
|
102
|
+
// retrievable knowledge is the ### K-NNNN heading's prose AFTER the fence.
|
|
103
|
+
const before = src.slice(0, m.index ?? 0);
|
|
104
|
+
const headings = [...before.matchAll(/###\s+(K-\d+)/g)];
|
|
105
|
+
const kid = headings[headings.length - 1]?.[1] ?? `K-${units.length}`;
|
|
106
|
+
const fm = (yamlParse(m[1]!) as Record<string, unknown>) ?? {};
|
|
107
|
+
const prose = src.slice((m.index ?? 0) + m[0].length, undefined).split(/\n###\s/).at(0) ?? "";
|
|
108
|
+
const fileKid = `${rel.split("/").slice(-2).join("/").replace(".md", "")}:${kid}`;
|
|
109
|
+
push({
|
|
110
|
+
id: `knowledge-entry:${fileKid}`,
|
|
111
|
+
kind: "knowledge-entry",
|
|
112
|
+
source: `${rel}#${kid}`,
|
|
113
|
+
text: `${String(fm.id ?? kid)}: ${prose.trim().slice(0, 1500)}`,
|
|
114
|
+
meta: { kId: kid, file: rel, layer: fm.layer, confirmations: fm.confirmations ?? 0, date: fm.created },
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// friction — frictions.yaml rows.
|
|
120
|
+
const frictionsSrc = await io.readFile(path.join(root, "docs", "frictions.yaml")).catch(() => "");
|
|
121
|
+
const frParsed = yamlParse(frictionsSrc) as unknown;
|
|
122
|
+
const frictions = Array.isArray(frParsed) ? frParsed : ((frParsed as { frictions?: unknown[] } | null)?.frictions ?? []);
|
|
123
|
+
for (const fr of frictions as { id?: string; friction?: string; category?: string; recurrences?: number; created?: string; lastSeen?: string }[]) {
|
|
124
|
+
if (!fr.id) continue;
|
|
125
|
+
push({ id: `friction:${fr.id}`, kind: "friction", source: `docs/frictions.yaml#${fr.id}`, text: `${fr.id} [${fr.category ?? "?"}]: ${fr.friction ?? ""}`, meta: { fId: fr.id, category: fr.category, recurrences: fr.recurrences ?? 0, date: (fr as { lastSeen?: string }).lastSeen ?? (fr as { created?: string }).created } });
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// remediation — catalog entries.
|
|
129
|
+
for (const catPath of ["docs/remediation-catalog.generated.yaml", "docs/remediation-catalog.custom.yaml"]) {
|
|
130
|
+
const catSrc = await io.readFile(path.join(root, catPath)).catch(() => null);
|
|
131
|
+
if (catSrc === null) continue;
|
|
132
|
+
const cat = yamlParse(catSrc) as { entries?: { ruleId?: string; action?: string; contract?: string }[] } | null;
|
|
133
|
+
for (const e of cat?.entries ?? []) {
|
|
134
|
+
if (!e.ruleId) continue;
|
|
135
|
+
const cat = path.basename(catPath).replace("remediation-catalog.", "").replace(".yaml", "");
|
|
136
|
+
push({ id: `remediation:${cat}:${e.ruleId}`, kind: "remediation", source: `${catPath}#${e.ruleId}`, text: `${e.ruleId}: ${e.contract ?? ""} — ${e.action ?? ""}`, meta: { ruleId: e.ruleId } });
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// rfc-header / adr-header — frontmatter title + status + successSignals.
|
|
141
|
+
for (const [dir, kind] of [["docs/rfcs", "rfc-header"], ["docs/adrs", "adr-header"]] as const) {
|
|
142
|
+
for (const f of await walk(path.join(root, dir), io).then((p) => p.filter((x) => x.endsWith(".md")))) {
|
|
143
|
+
const src = await io.readFile(f).catch(() => null);
|
|
144
|
+
if (src === null) continue;
|
|
145
|
+
const rel = path.relative(root, f).split(path.sep).join("/");
|
|
146
|
+
const fmMatch = src.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
147
|
+
const fm = fmMatch ? (yamlParse(fmMatch[1]!) as Record<string, unknown>) : {};
|
|
148
|
+
const rid = String(fm.id ?? path.basename(f, ".md").toUpperCase());
|
|
149
|
+
const signals = Array.isArray(fm.successSignals) ? (fm.successSignals as string[]).join(" ") : "";
|
|
150
|
+
push({ id: `${kind}:${rid}`, kind, source: `${rel}#${rid}`, text: `${rid}: ${String(fm.title ?? "")} [${String(fm.status ?? "?")}] ${signals}`.slice(0, 800), meta: { refId: rid, status: fm.status } });
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// skill-manifest — name + description + triggerPhrases.
|
|
155
|
+
for (const sp of await walk(path.join(root, "packages", "forge", "skills"), io).then((p) => p.filter((x) => x.endsWith("SKILL.md")))) {
|
|
156
|
+
const src = await io.readFile(sp).catch(() => null);
|
|
157
|
+
if (src === null) continue;
|
|
158
|
+
const fmMatch = src.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
159
|
+
const fm = fmMatch ? (yamlParse(fmMatch[1]!) as Record<string, unknown>) : {};
|
|
160
|
+
const name = String(fm.name ?? path.basename(path.dirname(sp)));
|
|
161
|
+
const rel = path.relative(root, sp).split(path.sep).join("/");
|
|
162
|
+
push({ id: `skill-manifest:${name}`, kind: "skill-manifest", source: `${rel}#${name}`, text: `${name}: ${String(fm.description ?? "")} ${Array.isArray(fm.triggerPhrases) ? fm.triggerPhrases.join(" ") : ""}`.slice(0, 600), meta: { skill: name } });
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// handoff — docs/handoffs/*.md title + first paragraph.
|
|
166
|
+
for (const hf of await walk(path.join(root, "docs", "handoffs"), io).then((p) => p.filter((x) => x.endsWith(".md")))) {
|
|
167
|
+
const src = await io.readFile(hf).catch(() => null);
|
|
168
|
+
if (src === null) continue;
|
|
169
|
+
const rel = path.relative(root, hf).split(path.sep).join("/");
|
|
170
|
+
const first = src.split("\n").filter((l) => l.trim().length > 0).slice(0, 4).join(" ").slice(0, 500);
|
|
171
|
+
push({ id: `handoff:${path.basename(hf, ".md")}`, kind: "handoff", source: `${rel}#top`, text: first, meta: { file: rel } });
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// decision — session decision-log entries (queue ledger + session decisions).
|
|
175
|
+
for (const dl of await walk(path.join(root, "docs", "queues"), io).then((p) => p.filter((x) => x.endsWith("decisions.yaml")))) {
|
|
176
|
+
const src = await io.readFile(dl).catch(() => null);
|
|
177
|
+
if (src === null) continue;
|
|
178
|
+
const rel = path.relative(root, dl).split(path.sep).join("/");
|
|
179
|
+
const items = (yamlParse(src) as { items?: { id?: string; question?: string; answer?: string }[] } | null)?.items ?? [];
|
|
180
|
+
for (const it of items) {
|
|
181
|
+
if (!it.id) continue;
|
|
182
|
+
push({ id: `decision:${it.id}`, kind: "decision", source: `${rel}#${it.id}`, text: `${it.id}: ${it.question ?? ""} → ${it.answer ?? ""}`, meta: { decisionId: it.id } });
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// trajectory — RFC-1472's procedure units register as a kind in the catalog.
|
|
187
|
+
const trajSrc = await io.readFile(path.join(root, "docs", ".index", "trajectory", "units.yaml")).catch(() => "");
|
|
188
|
+
const trajUnits = (yamlParse(trajSrc) as { units?: { id?: string; situation?: { taskKind?: string }; producer?: { sessionId?: string }; text?: string }[] } | null)?.units ?? [];
|
|
189
|
+
for (const t of trajUnits) {
|
|
190
|
+
if (!t.id) continue;
|
|
191
|
+
push({ id: t.id, kind: "trajectory", source: `docs/.index/trajectory/units.yaml#${t.id}`, text: t.text ?? "", meta: { taskKind: t.situation?.taskKind, sessionId: t.producer?.sessionId } });
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const indexDir = path.join(root, "docs", ".index", "context");
|
|
195
|
+
await io.mkdir(indexDir).catch(() => {});
|
|
196
|
+
const indexRel = "docs/.index/context/index.yaml";
|
|
197
|
+
// Watermark = newest SESSION source path (the corpus the index tracks for
|
|
198
|
+
// staleness) — not the lexical max across all kinds (packages/… always wins).
|
|
199
|
+
const sourceWatermark = units
|
|
200
|
+
.map((u) => u.source.split("#")[0] ?? "")
|
|
201
|
+
.filter((p) => p.startsWith("docs/sessions/"))
|
|
202
|
+
.sort().at(-1) ?? "";
|
|
203
|
+
await io.writeFile(path.join(root, indexRel), yamlStringify({ schema: "forge/context-index@1", sourceWatermark, units }) + "\n");
|
|
204
|
+
const byKind: Record<string, number> = {};
|
|
205
|
+
for (const u of units) byKind[u.kind] = (byKind[u.kind] ?? 0) + 1;
|
|
206
|
+
return {
|
|
207
|
+
data: { command: "context.index.build", status: "ok", units: units.length, byKind, index: indexRel },
|
|
208
|
+
summary: `${units.length} unit(s) across ${Object.keys(byKind).length} kinds → ${indexRel}`,
|
|
209
|
+
exitCode: 0,
|
|
210
|
+
};
|
|
211
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>RFC-1470 AC-7: the assemble path completes with zero model calls — the handlers must not import any model/embedding provider.</purpose>
|
|
4
|
+
</MODULE_CONTRACT>
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { test, expect, describe } from "vitest";
|
|
8
|
+
import { readFileSync, readdirSync } from "node:fs";
|
|
9
|
+
import { join, dirname } from "node:path";
|
|
10
|
+
import { fileURLToPath } from "node:url";
|
|
11
|
+
|
|
12
|
+
const dir = dirname(fileURLToPath(import.meta.url));
|
|
13
|
+
const HANDLERS = readdirSync(dir).filter((f) => f.endsWith(".ts") && !f.endsWith(".test.ts"));
|
|
14
|
+
|
|
15
|
+
const MODEL_PROVIDER_RE = /openai|anthropic|@cf\/|workers-ai|@anthropic|embedding(-|_)?gemma|huggingface|@huggingface|inference\.js|transformers\.js|api\.(openai|anthropic|google)/i;
|
|
16
|
+
|
|
17
|
+
describe("AC-7: assemble path carries zero model-provider imports", () => {
|
|
18
|
+
test("no handler imports a model/embedding provider", () => {
|
|
19
|
+
const offenders: string[] = [];
|
|
20
|
+
for (const f of HANDLERS) {
|
|
21
|
+
const src = readFileSync(join(dir, f), "utf8");
|
|
22
|
+
for (const m of src.matchAll(/(?:import|from|require)\s*\(?\s*['"]([^'"]+)['"]/g)) {
|
|
23
|
+
if (MODEL_PROVIDER_RE.test(m[1]!)) offenders.push(`${f} → ${m[1]}`);
|
|
24
|
+
}
|
|
25
|
+
// No fetch/http calls to model endpoints.
|
|
26
|
+
if (/fetch\(\s*['"]https:\/\/(api\.openai|api\.anthropic|generativelanguage|api-inference)/.test(src)) {
|
|
27
|
+
offenders.push(`${f} → model endpoint fetch`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
expect(offenders).toEqual([]);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>RFC-1470 slate-fill tests — budget enforcement: units fill the token budget in rank order; skipped count is honest; a unit exceeding remaining budget is skipped not truncated.</purpose>
|
|
4
|
+
</MODULE_CONTRACT>
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { test, expect, describe } from "vitest";
|
|
8
|
+
import { scoreUnit } from "./context-assemble.ts";
|
|
9
|
+
import type { ContextUnit } from "./index-build.ts";
|
|
10
|
+
|
|
11
|
+
const u = (id: string, text: string, kind = "friction" as const, tokens = 100): ContextUnit => ({
|
|
12
|
+
id, kind, source: `test#${id}`, tokens, text, meta: {},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
describe("slate fill (RFC-1470)", () => {
|
|
16
|
+
test("task-matching units outscore unrelated units", () => {
|
|
17
|
+
const task = new Set(["friction", "scar", "migrate"]);
|
|
18
|
+
const match = scoreUnit(u("a", "friction scar migrate remediation"), task, new Set());
|
|
19
|
+
const miss = scoreUnit(u("b", "deployment frontend css"), task, new Set());
|
|
20
|
+
expect(match.score).toBeGreaterThan(miss.score);
|
|
21
|
+
expect(match.reasons.some((r) => r.startsWith("lexical"))).toBe(true);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test("path terms boost units from the edited surface", () => {
|
|
25
|
+
const task = new Set(["scar"]);
|
|
26
|
+
const paths = new Set(["packages/forge"]);
|
|
27
|
+
const match = scoreUnit(u("a", "scar", "friction"), task, paths);
|
|
28
|
+
const boosted = { ...u("b", "scar"), source: "packages/forge/AGENTS.md" };
|
|
29
|
+
expect(scoreUnit(boosted, task, paths).score).toBeGreaterThan(match.score);
|
|
30
|
+
});
|
|
31
|
+
});
|
package/os/core/core.module.ts
CHANGED
|
@@ -6,12 +6,20 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<item>RFC-
|
|
13
|
-
<item>RFC-
|
|
14
|
-
|
|
9
|
+
<item>RFC-1351: step 4 — drop stale coverage declarations (COVERAGE-02)
|
|
10
|
+
|
|
11
|
+
Remove coverage/coverageNote from 9 mechanically reachable commands: compass.header.scaffold, forge.agents.generate, journal.binding.validate, leitstand.state.reconcile, leitstand.verify, mission.deploy-preflight, onboarding.intake.validate, test.repro.verify, contract.ripple.apply (last — RFC-1349 acceptance stays green via its AGENTS.md doc edge). Manifest regenerated: 0 warnings.</item>
|
|
12
|
+
<item>RFC-1354: step 4 — CMD-MAN-02 sweep: writes/generates on mutating commands, mutatesState:false on read-only and port/in-memory commands, execOnReadOnly on subprocess commands (0 CMD-MAN-02; 42 ENV-INPUT-02 excluded per Q-1)</item>
|
|
13
|
+
<item>RFC-1360: step 2 — env-input declaration sweep (59 commands)
|
|
14
|
+
|
|
15
|
+
Declare every reachable env read on its owning command across engine/site/
|
|
16
|
+
forge (fresh full-registry replay worklist: 151 ENV-INPUT-01, 60 commands).
|
|
17
|
+
ForgeCommandMetadata gains the mirrored envInputs contract field. The
|
|
18
|
+
npm_execpath ambient read in open-source-page.ts is removed for a
|
|
19
|
+
deterministic PATH spawn (DNA-105) — undeclarable name class, ledger Q-9.</item>
|
|
20
|
+
<item>RFC-1366: kernel resolves mission workpieceEnv + KERNEL-ENV-01 gate on required envInputs</item>
|
|
21
|
+
<item>RFC-1461: declare rules[] severity via CommandRuleDecl workspace-wide (RFC-1461)</item>
|
|
22
|
+
<history>ADR-0021, RFC-0374, RFC-0521, RFC-0539, RFC-0542, RFC-0543, RFC-0544, RFC-0546, RFC-0640, RFC-0662, RFC-0674, RFC-0678, RFC-0679, RFC-0680, RFC-0711, RFC-0733, RFC-0877, RFC-0940, RFC-1080, RFC-1088, RFC-1089, RFC-1097, RFC-1173, RFC-1230, RFC-1231, RFC-1235, RFC-1248, RFC-1251, RFC-1254, RFC-1255</history>
|
|
15
23
|
</CHANGE_SUMMARY>
|
|
16
24
|
*/
|
|
17
25
|
|
|
@@ -257,6 +265,8 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
257
265
|
name: "forge.port.scaffold",
|
|
258
266
|
coverage: "operator" as const,
|
|
259
267
|
mutatesState: true,
|
|
268
|
+
writes: ["packages/forge/skills/**", "packages/forge/os/**"],
|
|
269
|
+
generates: [],
|
|
260
270
|
description: "Generate a skeleton for a new forge skill or command.",
|
|
261
271
|
scope: "workspace",
|
|
262
272
|
acceptsAllFlag: false,
|
|
@@ -310,7 +320,6 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
310
320
|
},
|
|
311
321
|
{
|
|
312
322
|
name: "forge.agents.generate",
|
|
313
|
-
coverage: "operator" as const,
|
|
314
323
|
mutatesState: true,
|
|
315
324
|
description:
|
|
316
325
|
"Regenerate AGENTS.md deterministically from forge.yaml and the skill registry.",
|
|
@@ -327,6 +336,8 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
327
336
|
coverage: "operator" as const,
|
|
328
337
|
coverageNote: "agent memory compaction",
|
|
329
338
|
mutatesState: true,
|
|
339
|
+
writes: [".agents/memory/MEMORY.md"],
|
|
340
|
+
generates: [],
|
|
330
341
|
description:
|
|
331
342
|
"Enforce the MEMORY.md character budget by removing oldest Environment notes bullets (RFC-1151).",
|
|
332
343
|
scope: "workspace",
|
|
@@ -369,6 +380,9 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
369
380
|
name: "forge.scaffold",
|
|
370
381
|
coverage: "operator" as const,
|
|
371
382
|
mutatesState: true,
|
|
383
|
+
writes: ["**"],
|
|
384
|
+
generates: [],
|
|
385
|
+
execOnReadOnly: true,
|
|
372
386
|
description:
|
|
373
387
|
"Create a working pnpm + Turborepo monorepo from a stack profile in an empty directory. Required flags: `--profile`, `--name`.",
|
|
374
388
|
scope: "workspace",
|
|
@@ -392,6 +406,9 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
392
406
|
{
|
|
393
407
|
name: "forge.create",
|
|
394
408
|
mutatesState: true,
|
|
409
|
+
writes: ["**"],
|
|
410
|
+
generates: [],
|
|
411
|
+
execOnReadOnly: true,
|
|
395
412
|
description:
|
|
396
413
|
"Create a forge project in-place: scaffold + init + binding defaults. The target directory must be empty (only .git/ tolerated). Usage: forge create --in-place --profile <profile-id> [--name <name>] [--package-manager pnpm]",
|
|
397
414
|
scope: "workspace",
|
|
@@ -434,6 +451,8 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
434
451
|
{
|
|
435
452
|
name: "forge.init",
|
|
436
453
|
mutatesState: true,
|
|
454
|
+
writes: ["forge.yaml", "PREFERENCES.md", ".agents/skills/**"],
|
|
455
|
+
generates: [],
|
|
437
456
|
description:
|
|
438
457
|
"Deploy forge into a project: create forge.yaml, PREFERENCES.md, copy skills, create docs dirs. Hidden recovery command — normally called by forge.create.",
|
|
439
458
|
scope: "workspace",
|
|
@@ -481,7 +500,8 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
481
500
|
{
|
|
482
501
|
name: "forge.dev",
|
|
483
502
|
coverage: "operator" as const,
|
|
484
|
-
mutatesState:
|
|
503
|
+
mutatesState: false,
|
|
504
|
+
execOnReadOnly: true,
|
|
485
505
|
description:
|
|
486
506
|
"Start the dev/preview server declared in the active stack profile. Use --dry-run to print the resolved command without executing.",
|
|
487
507
|
scope: "workspace",
|
|
@@ -504,7 +524,8 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
504
524
|
{
|
|
505
525
|
name: "forge.build",
|
|
506
526
|
coverage: "operator" as const,
|
|
507
|
-
mutatesState:
|
|
527
|
+
mutatesState: false,
|
|
528
|
+
execOnReadOnly: true,
|
|
508
529
|
description:
|
|
509
530
|
"Execute produce commands for all artifacts declared in the active stack profile. Use --dry-run to print resolved commands.",
|
|
510
531
|
scope: "workspace",
|
|
@@ -663,6 +684,7 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
663
684
|
execute: runReleasePrepare,
|
|
664
685
|
},
|
|
665
686
|
{
|
|
687
|
+
envInputs: [{ name: "R2_AXIOM_ACCESS_KEY_ID", required: false }, { name: "R2_AXIOM_ACCOUNT_ID", required: false }, { name: "R2_AXIOM_SECRET_ACCESS_KEY", required: false }, { name: "S3_ACCESS_KEY_ID", required: false }, { name: "S3_BUCKET", required: false }, { name: "S3_ENDPOINT", required: false }, { name: "S3_SECRET_ACCESS_KEY", required: false }],
|
|
666
688
|
name: "forge.release.publish",
|
|
667
689
|
coverage: "operator" as const,
|
|
668
690
|
coverageNote: "forge release publish step",
|
|
@@ -736,6 +758,7 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
736
758
|
execute: runKnowledgeCompact,
|
|
737
759
|
},
|
|
738
760
|
{
|
|
761
|
+
envInputs: [{ name: "FORGE_PINNED_OVERRIDE", required: false }],
|
|
739
762
|
name: "pinned.validate",
|
|
740
763
|
coverage: "operator" as const,
|
|
741
764
|
coverageNote: "pin-file hygiene",
|
|
@@ -847,7 +870,7 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
847
870
|
"Enforces SURFACE-01..05 rules: README length, Node version match, " +
|
|
848
871
|
"no .tgz in root, docs/ structure, required root files (RFC-1080).",
|
|
849
872
|
contract: "forge",
|
|
850
|
-
rules: ["SURFACE-01", "SURFACE-02", "SURFACE-03", "SURFACE-04", "SURFACE-05"],
|
|
873
|
+
rules: [{ id: "SURFACE-01", severity: "error" }, { id: "SURFACE-02", severity: "error" }, { id: "SURFACE-03", severity: "error" }, { id: "SURFACE-04", severity: "error" }, { id: "SURFACE-05", severity: "error" }],
|
|
851
874
|
scope: "workspace",
|
|
852
875
|
acceptsAllFlag: false,
|
|
853
876
|
reads: ["README.md", "package.json", "docs/**"],
|
|
@@ -859,7 +882,7 @@ export async function createForgeCoreModule(): Promise<ForgeModule> {
|
|
|
859
882
|
name: "file.size.lint",
|
|
860
883
|
mutatesState: true,
|
|
861
884
|
contract: "file",
|
|
862
|
-
rules: ["SIZE-01"],
|
|
885
|
+
rules: [{ id: "SIZE-01", severity: "error" }],
|
|
863
886
|
description:
|
|
864
887
|
"SIZE-01: flags a packages/** .ts/.tsx source file exceeding a 600-line threshold (warning 601-1200, error 1200+), against a shrink-only ratchet baseline. Pass --write-baseline to regenerate the baseline. Pass --baseline-path to override the default baseline location (RFC-1088).",
|
|
865
888
|
scope: "workspace",
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>Register proof.check with the forge kernel registry (RFC-1391) —
|
|
4
|
+
runs a forge/proof-spec@1 spec through the pinned checker and returns the
|
|
5
|
+
mechanical verdict that backs formal-tier acceptance evidence.</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Do not implement verdict logic here — delegate to handlers/proof-check.ts.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1391: forge-formal module with proof.check.</item>
|
|
12
|
+
<item>RFC-1391: make the formal verification tier checker-bound (RFC-1391)</item>
|
|
13
|
+
</CHANGE_SUMMARY>
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import type { ForgeModule } from "../../src/forge-module.ts";
|
|
17
|
+
|
|
18
|
+
export async function createForgeFormalModule(): Promise<ForgeModule> {
|
|
19
|
+
const { runProofCheckCommand } = await import("./handlers/proof-check.ts");
|
|
20
|
+
return {
|
|
21
|
+
name: "forge-formal",
|
|
22
|
+
version: "0.1.0",
|
|
23
|
+
runtime: "autonomous",
|
|
24
|
+
declarations: [],
|
|
25
|
+
commands: [
|
|
26
|
+
{
|
|
27
|
+
name: "proof.check",
|
|
28
|
+
description:
|
|
29
|
+
"Run one forge/proof-spec@1 proof spec through its pinned checker " +
|
|
30
|
+
"(RFC-1391). The built-in `exhaustive` tool enumerates a finite " +
|
|
31
|
+
"domain against a check function in a *.proof.test.ts entry; " +
|
|
32
|
+
"external checkers resolve from forge.yaml formal.tools. Verdicts: " +
|
|
33
|
+
"proved | refuted | unavailable | error — exit 0 only on proved. " +
|
|
34
|
+
"This is the only sanctioned source of formal-tier evidence; an " +
|
|
35
|
+
"agent argument, sampled property test, or absent checker can never " +
|
|
36
|
+
"produce `proved`.",
|
|
37
|
+
scope: "workspace",
|
|
38
|
+
contract: "formal-proof",
|
|
39
|
+
rules: [],
|
|
40
|
+
mutatesState: true,
|
|
41
|
+
execOnReadOnly: true,
|
|
42
|
+
writes: [".cache/proofs/**"],
|
|
43
|
+
generates: [],
|
|
44
|
+
coverage: "operator",
|
|
45
|
+
coverageNote:
|
|
46
|
+
"Operator-facing proof runner — invoked directly and by `probe: proof` " +
|
|
47
|
+
"acceptance probes during rfc.acceptance.run / rfc.verification.emit; " +
|
|
48
|
+
"kept out of the regular build pipeline per RFC-1391.",
|
|
49
|
+
reads: ["forge.yaml", "<spec>", "<spec entry>"],
|
|
50
|
+
cacheable: false,
|
|
51
|
+
flags: {
|
|
52
|
+
spec: {
|
|
53
|
+
kind: "string",
|
|
54
|
+
required: true,
|
|
55
|
+
description: "Workspace-relative path to a forge/proof-spec@1 YAML file.",
|
|
56
|
+
},
|
|
57
|
+
"timeout-ms": {
|
|
58
|
+
kind: "string",
|
|
59
|
+
description: "Per-run checker timeout bound in milliseconds (default 30 min).",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
execute: runProofCheckCommand,
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
pipelines: [],
|
|
66
|
+
};
|
|
67
|
+
}
|