@warpgogol/forge 8.0.4 → 9.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/CHANGELOG.md +56 -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 +209 -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 +18 -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.map +1 -1
- package/dist/os/authority/authority.module.js +2 -10
- package/dist/os/authority/authority.module.js.map +1 -1
- package/dist/os/authority/handlers/delegate.d.ts.map +1 -1
- package/dist/os/authority/handlers/delegate.js +2 -1
- package/dist/os/authority/handlers/delegate.js.map +1 -1
- package/dist/os/authority/index.d.ts.map +1 -1
- package/dist/os/authority/index.js +2 -1
- package/dist/os/authority/index.js.map +1 -1
- 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 +94 -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 +265 -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 +126 -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 +155 -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 +135 -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 +17 -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-docs-scaffold.js +1 -1
- package/dist/os/compass/handlers/compass-header-scaffold.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-header-scaffold.js +10 -3
- 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 +209 -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 +73 -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 +146 -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 +74 -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 +191 -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 +16 -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 +70 -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 +232 -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 +15 -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 +75 -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 +202 -0
- package/dist/os/knowledge/handlers/knowledge-authz-probe.js.map +1 -0
- package/dist/os/knowledge/handlers/knowledge-conflicts-resolve.d.ts +11 -0
- package/dist/os/knowledge/handlers/knowledge-conflicts-resolve.d.ts.map +1 -0
- package/dist/os/knowledge/handlers/knowledge-conflicts-resolve.js +428 -0
- package/dist/os/knowledge/handlers/knowledge-conflicts-resolve.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 +141 -0
- package/dist/os/knowledge/handlers/knowledge-rebuild.js.map +1 -0
- package/dist/os/knowledge/index.d.ts +5 -0
- package/dist/os/knowledge/index.d.ts.map +1 -0
- package/dist/os/knowledge/index.js +17 -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 +95 -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/manifest.d.ts.map +1 -1
- package/dist/os/queue/manifest.js +8 -7
- package/dist/os/queue/manifest.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 +41 -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 +48 -0
- package/dist/os/rfc/handlers/implement-stamp-deviations.d.ts.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp-deviations.js +148 -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 +67 -7
- package/dist/os/rfc/handlers/implement-stamp-origin.js.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp-outcome.d.ts +44 -0
- package/dist/os/rfc/handlers/implement-stamp-outcome.d.ts.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp-outcome.js +104 -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 +262 -56
- 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/lifecycle.d.ts.map +1 -1
- package/dist/os/rfc/handlers/lifecycle.js +13 -6
- package/dist/os/rfc/handlers/lifecycle.js.map +1 -1
- package/dist/os/rfc/handlers/list-create.d.ts.map +1 -1
- package/dist/os/rfc/handlers/list-create.js +144 -13
- 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 +159 -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 +54 -13
- 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 +68 -15
- package/dist/os/rfc/rfc.module.js.map +1 -1
- package/dist/os/rfc/types.d.ts +110 -12
- package/dist/os/rfc/types.d.ts.map +1 -1
- package/dist/os/rfc/types.js +24 -7
- 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 +188 -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 +5 -2
- 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 +82 -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 +269 -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 +60 -0
- package/dist/os/trajectory/handlers/journal-io.d.ts.map +1 -0
- package/dist/os/trajectory/handlers/journal-io.js +179 -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 +145 -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 +449 -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 +179 -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 +16 -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 +98 -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 +56 -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 +28 -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 +46 -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 +34 -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/os/yaml/handlers/scalars-validate.d.ts +28 -0
- package/dist/os/yaml/handlers/scalars-validate.d.ts.map +1 -0
- package/dist/os/yaml/handlers/scalars-validate.js +311 -0
- package/dist/os/yaml/handlers/scalars-validate.js.map +1 -0
- package/dist/os/yaml/index.d.ts +4 -0
- package/dist/os/yaml/index.d.ts.map +1 -0
- package/dist/os/yaml/index.js +15 -0
- package/dist/os/yaml/index.js.map +1 -0
- package/dist/os/yaml/yaml.module.d.ts +3 -0
- package/dist/os/yaml/yaml.module.d.ts.map +1 -0
- package/dist/os/yaml/yaml.module.js +58 -0
- package/dist/os/yaml/yaml.module.js.map +1 -0
- package/dist/src/authority/delegations.d.ts +1 -1
- package/dist/src/authority/delegations.d.ts.map +1 -1
- package/dist/src/authority/delegations.js +6 -3
- package/dist/src/authority/delegations.js.map +1 -1
- package/dist/src/cli-flags.d.ts.map +1 -1
- package/dist/src/cli-flags.js +91 -16
- 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 +219 -0
- package/dist/src/compass/invariant-parser.js.map +1 -0
- package/dist/src/config/forge-config.d.ts +125 -0
- package/dist/src/config/forge-config.d.ts.map +1 -1
- package/dist/src/config/forge-config.js +110 -17
- 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 +141 -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 +17 -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 +451 -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 +97 -0
- package/dist/src/formal/proof-spec.js.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/knowledge/index.d.ts +2 -2
- package/dist/src/knowledge/index.d.ts.map +1 -1
- package/dist/src/knowledge/index.js +4 -3
- package/dist/src/knowledge/index.js.map +1 -1
- package/dist/src/knowledge/parse.d.ts +1 -0
- package/dist/src/knowledge/parse.d.ts.map +1 -1
- package/dist/src/knowledge/parse.js +20 -18
- package/dist/src/knowledge/parse.js.map +1 -1
- 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 +10 -4
- 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/knowledge/sync.d.ts +61 -0
- package/dist/src/knowledge/sync.d.ts.map +1 -1
- package/dist/src/knowledge/sync.js +202 -7
- package/dist/src/knowledge/sync.js.map +1 -1
- package/dist/src/onboarding/agents-generate.d.ts.map +1 -1
- package/dist/src/onboarding/agents-generate.js +18 -3
- package/dist/src/onboarding/agents-generate.js.map +1 -1
- package/dist/src/onboarding/compass-docs/semantic-layer-block.js +1 -1
- package/dist/src/onboarding/doctor.d.ts +2 -0
- package/dist/src/onboarding/doctor.d.ts.map +1 -1
- package/dist/src/onboarding/doctor.js +253 -27
- 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/onboarding/nested-agents-generate.js +1 -1
- package/dist/src/onboarding/nested-agents-templates.js +1 -1
- package/dist/src/onboarding/upgrade.d.ts.map +1 -1
- package/dist/src/onboarding/upgrade.js +18 -10
- package/dist/src/onboarding/upgrade.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 +83 -0
- package/dist/src/reachability/command-mentions.js.map +1 -0
- package/dist/src/registry.d.ts +30 -0
- package/dist/src/registry.d.ts.map +1 -1
- package/dist/src/registry.js +168 -68
- 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/dist/src/validators/skill-validate.d.ts +5 -0
- package/dist/src/validators/skill-validate.d.ts.map +1 -1
- package/dist/src/validators/skill-validate.js +34 -8
- package/dist/src/validators/skill-validate.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 +232 -0
- package/os/agent/index.ts +18 -0
- package/os/agent/invoke-adapter.ts +119 -0
- package/os/authority/authority.module.ts +2 -10
- package/os/authority/handlers/delegate.ts +2 -1
- package/os/authority/index.ts +2 -1
- package/os/checks/checks.module.ts +99 -0
- package/os/checks/handlers/contribution-report.test.ts +250 -0
- package/os/checks/handlers/contribution-report.ts +317 -0
- package/os/checks/handlers/counters-export.test.ts +181 -0
- package/os/checks/handlers/counters-export.ts +174 -0
- package/os/checks/handlers/counters-journal.test.ts +193 -0
- package/os/checks/handlers/counters-journal.ts +180 -0
- package/os/checks/handlers/counters-validate.test.ts +182 -0
- package/os/checks/handlers/counters-validate.ts +163 -0
- package/os/checks/handlers/variant-candidates.test.ts +71 -0
- package/os/checks/index.ts +27 -0
- package/os/compass/compass.module.ts +58 -20
- package/os/compass/handlers/compass-docs-scaffold.ts +1 -1
- package/os/compass/handlers/compass-header-scaffold.ts +10 -3
- package/os/compass/handlers/compass-invariants-generate.ts +294 -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 +78 -0
- package/os/context/handlers/context-assemble.test.ts +95 -0
- package/os/context/handlers/context-assemble.ts +175 -0
- package/os/context/handlers/context-slate-eval.test.ts +70 -0
- package/os/context/handlers/context-slate-eval.ts +90 -0
- package/os/context/handlers/index-build.test.ts +101 -0
- package/os/context/handlers/index-build.ts +214 -0
- package/os/context/handlers/no-model-deps.test.ts +38 -0
- package/os/context/handlers/slate-fill.test.ts +37 -0
- package/os/context/index.ts +16 -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 +82 -0
- package/os/gate/handlers/gate-probe-catalog.ts +89 -0
- package/os/gate/handlers/gate-probe.test.ts +114 -0
- package/os/gate/handlers/gate-probe.ts +256 -0
- package/os/gate/index.ts +15 -0
- package/os/instructions/budget.test.ts +131 -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 +79 -0
- package/os/knowledge/handlers/knowledge-authz-probe.test.ts +107 -0
- package/os/knowledge/handlers/knowledge-authz-probe.ts +240 -0
- package/os/knowledge/handlers/knowledge-conflicts-resolve.ts +571 -0
- package/os/knowledge/handlers/knowledge-rebuild.test.ts +82 -0
- package/os/knowledge/handlers/knowledge-rebuild.ts +167 -0
- package/os/knowledge/index.ts +17 -0
- package/os/knowledge/knowledge.module.ts +100 -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 +71 -1
- package/os/queue/handlers/queue-validate.ts +132 -5
- package/os/queue/manifest.ts +8 -7
- 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 +150 -0
- package/os/resolver/handlers/resolver-doors-audit.ts +281 -0
- package/os/resolver/resolver.module.ts +44 -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 +186 -0
- package/os/rfc/handlers/implement-stamp-formal.test.ts +168 -0
- package/os/rfc/handlers/implement-stamp-origin.ts +97 -13
- package/os/rfc/handlers/implement-stamp-outcome.test.ts +193 -0
- package/os/rfc/handlers/implement-stamp-outcome.ts +148 -0
- package/os/rfc/handlers/implement-stamp-stale.test.ts +2 -1
- package/os/rfc/handlers/implement-stamp.ts +280 -53
- package/os/rfc/handlers/index-graph.ts +66 -4
- package/os/rfc/handlers/lifecycle.test.ts +59 -1
- package/os/rfc/handlers/lifecycle.ts +25 -15
- package/os/rfc/handlers/list-create.test.ts +223 -0
- package/os/rfc/handlers/list-create.ts +173 -13
- 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-rfc1334.test.ts +2 -1
- package/os/rfc/handlers/validate-rules-rfc1453.test.ts +164 -0
- package/os/rfc/handlers/validate-rules-rfc1454.test.ts +137 -0
- package/os/rfc/handlers/validate-rules-rfc1455.test.ts +283 -0
- package/os/rfc/handlers/validate-rules.test.ts +129 -2
- package/os/rfc/handlers/validate-rules.ts +233 -9
- package/os/rfc/handlers/validate.ts +11 -0
- package/os/rfc/outcome-probe.ts +326 -0
- package/os/rfc/reachable-symbol.ts +67 -17
- package/os/rfc/rfc-0000-template.md +20 -0
- package/os/rfc/rfc.module.ts +74 -15
- package/os/rfc/types.ts +139 -14
- 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-1333/imp12-binding.acceptance.test.ts +12 -0
- package/os/rfc/verifier/rfc-1333/imp12-gate.acceptance.test.ts +12 -0
- package/os/rfc/verifier/rfc-1333/skills-and-types.acceptance.test.ts +12 -0
- package/os/rfc/verifier/rfc-1333/verify-workspace.acceptance.test.ts +12 -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 +39 -0
- package/os/rfc/verifier/rfc-1391/fixtures/small-domain.proof.test.ts +45 -0
- package/os/rfc/verifier/rfc-1391/origin-proof-spec-entry.acceptance.test.ts +175 -0
- package/os/rfc/verifier/rfc-1391/support.ts +209 -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 +5 -2
- package/os/session/handlers/session-audit-detectors.test.ts +97 -0
- package/os/session/handlers/session-audit-report.test.ts +70 -0
- package/os/session/handlers/session-audit-report.ts +97 -0
- package/os/session/handlers/session-audit.test.ts +86 -0
- package/os/session/handlers/session-audit.ts +321 -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 +75 -0
- package/os/trajectory/handlers/journal-io.ts +229 -0
- package/os/trajectory/handlers/outcome-record.test.ts +198 -0
- package/os/trajectory/handlers/outcome-record.ts +165 -0
- package/os/trajectory/handlers/producer-trust.test.ts +169 -0
- package/os/trajectory/handlers/trajectory-index.test.ts +275 -0
- package/os/trajectory/handlers/trajectory-index.ts +493 -0
- package/os/trajectory/handlers/trajectory-recall.test.ts +254 -0
- package/os/trajectory/handlers/trajectory-recall.ts +201 -0
- package/os/trajectory/handlers/trajectory.test.ts +100 -0
- package/os/trajectory/handlers/verdict-binding.test.ts +249 -0
- package/os/trajectory/index.ts +16 -0
- package/os/trajectory/trajectory.module.ts +103 -0
- package/os/werkstatt/handlers/session-close.ts +82 -0
- package/os/werkstatt/handlers/session-engine.ts +34 -0
- package/os/werkstatt/handlers/session-open.ts +68 -0
- package/os/werkstatt/handlers/session-status.ts +55 -0
- package/os/werkstatt/werkstatt.module.ts +101 -3
- package/os/yaml/handlers/scalars-validate.ts +343 -0
- package/os/yaml/index.ts +23 -0
- package/os/yaml/scalars.test.ts +152 -0
- package/os/yaml/yaml.module.ts +61 -0
- package/package.json +210 -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 +13 -5
- package/skills/fo/fo-memory-sync/SKILL.md +9 -0
- package/skills/fo/fo-memory-sync/fix-patterns.md +65 -0
- package/skills/fo/fo-memory-sync/learned-principles.md +10 -0
- package/skills/fo/fo-memory-sync/qa-log.md +30 -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-session-save/SKILL.md +2 -0
- 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 +7 -0
- package/skills/shared/grilling/learned-principles.md +7 -0
- package/skills/shared/grilling/qa-log.md +39 -0
- package/skills/shared/writing-great-skills/SKILL.md +12 -9
- package/src/authority/delegations.ts +6 -3
- package/src/cli-flags.ts +111 -16
- package/src/compass/index.ts +37 -0
- package/src/compass/invariant-parser.ts +254 -0
- package/src/config/forge-config.ts +150 -22
- package/src/conformance/index.ts +281 -0
- package/src/formal/exhaustive.test.ts +117 -0
- package/src/formal/exhaustive.ts +183 -0
- package/src/formal/index.ts +27 -0
- package/src/formal/proof-runner.test.ts +310 -0
- package/src/formal/proof-runner.ts +563 -0
- package/src/formal/proof-spec.test.ts +70 -0
- package/src/formal/proof-spec.ts +132 -0
- package/src/index.ts +1 -0
- package/src/knowledge/index.ts +11 -2
- package/src/knowledge/parse.ts +20 -17
- package/src/knowledge/schema.ts +14 -4
- package/src/knowledge/serialize.ts +3 -0
- package/src/knowledge/sync.ts +281 -7
- package/src/onboarding/agents-generate.ts +19 -3
- package/src/onboarding/compass-docs/semantic-layer-block.ts +1 -1
- package/src/onboarding/doctor.ts +277 -27
- package/src/onboarding/init.ts +3 -3
- package/src/onboarding/nested-agents-generate.ts +1 -1
- package/src/onboarding/nested-agents-templates.ts +1 -1
- package/src/onboarding/templates/behavioral-layer-core.md +1 -1
- package/src/onboarding/upgrade.ts +18 -10
- package/src/profiles/profile-schema.ts +10 -2
- package/src/reachability/command-mentions.ts +89 -0
- package/src/registry.ts +197 -76
- package/src/tests/bindings-schema.test.ts +4 -0
- package/src/tests/cli-flags.test.ts +226 -1
- package/src/tests/discover-pack-skills.test.ts +26 -0
- package/src/tests/doctor-autonomy.test.ts +144 -0
- package/src/tests/doctor-dist-freshness.test.ts +24 -0
- package/src/tests/doctor-knowledge-conflicts.test.ts +135 -0
- package/src/tests/doctor-nested-agents.test.ts +30 -1
- 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 +238 -4
- package/src/tests/knowledge-conflicts-resolve.pbt.test.ts +38 -0
- package/src/tests/knowledge-conflicts-resolve.test.ts +648 -0
- package/src/tests/knowledge-parse.test.ts +26 -1
- package/src/tests/rfc-verification-verdict-ingest.test.ts +244 -0
- package/src/tests/session-handlers.test.ts +47 -0
- package/src/tests/session-retro.test.ts +47 -0
- package/src/tests/skill-validate-knowledge.test.ts +93 -2
- package/src/tests/upgrade.test.ts +38 -0
- package/src/types.ts +59 -18
- package/src/utils/sync-fs.ts +2 -0
- package/src/validators/skill-validate.ts +37 -9
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
RFC-1391: the shared proof-check execution path — loads a forge/proof-spec@1
|
|
5
|
+
file, resolves the declared tool (built-in `exhaustive` or a forge.yaml
|
|
6
|
+
`formal.tools` entry), pins the tool version, runs the proof, and returns a
|
|
7
|
+
ProofCheckResult verdict (proved/refuted/unavailable/error). Consumed by the
|
|
8
|
+
`proof.check` command and by `probe: proof` acceptance-probe execution so both
|
|
9
|
+
surfaces share one verdict path.
|
|
10
|
+
</purpose>
|
|
11
|
+
<non-goals>
|
|
12
|
+
<item>Do not decide stamp outcomes — implement-stamp's RFC-IMP-13 consumes these verdicts.</item>
|
|
13
|
+
<item>Do not install or vendor checkers — external tools stay operator-provided via forge.yaml.</item>
|
|
14
|
+
</non-goals>
|
|
15
|
+
</MODULE_CONTRACT>
|
|
16
|
+
<KEY_DECISIONS>
|
|
17
|
+
<item>specSha256/entrySha256 are computed whenever readable — evidence binds to bytes for every verdict.</item>
|
|
18
|
+
<item>`exhaustive` runs via vitest with FORGE_PROOF_REPORT — the report file, not the exit code, carries the verdict.</item>
|
|
19
|
+
<item>External tools map exit 0 → proved, non-zero → refuted (captured output persisted), ENOENT → unavailable, version-regex miss/mismatch → error.</item>
|
|
20
|
+
</KEY_DECISIONS>
|
|
21
|
+
<CHANGE_SUMMARY>
|
|
22
|
+
<item>RFC-1391: make the formal verification tier checker-bound (RFC-1391)</item>
|
|
23
|
+
<item>RFC-1391: close RFC-1391 review r1 findings — evidence freshness, config classification, contract guards
|
|
24
|
+
|
|
25
|
+
REVIEW-CODE-2026-10-24-04 (warning): a stale .cache/proofs report could
|
|
26
|
+
fabricate proved; forge.yaml now resolves inside runProofCheck so a malformed
|
|
27
|
+
config is error not unavailable, and both surfaces share one path; {entry} is
|
|
28
|
+
required in formal.tools.command; spec/entry paths are confined to the
|
|
29
|
+
workspace; the exhaustive entry dispatches per packageManager; proved runs
|
|
30
|
+
record log, counterexample stays the refuted-path record.</item>
|
|
31
|
+
<item>RFC-1391: close RFC-1391 review r2 findings — refresh proof passthrough, log surface
|
|
32
|
+
|
|
33
|
+
REVIEW-CODE-2026-10-24-05 (warning): rfc.verification.refresh stripped the
|
|
34
|
+
proof payload from probe records — a refresh would rewrite an envelope
|
|
35
|
+
without verdict/hashes and trip RFC-IMP-13 on next stamp; mirrored the emit
|
|
36
|
+
spread and pinned it with a regression test. proof.check pretty output now
|
|
37
|
+
prints the persisted log; every exhaustive verdict path carries vitest
|
|
38
|
+
output as log.</item>
|
|
39
|
+
<item>RFC-1391: close RFC-1391 review r3 nits — pin log on exhaustive paths
|
|
40
|
+
|
|
41
|
+
REVIEW-CODE-2026-10-24-06 (approved): log is now asserted on the exhaustive
|
|
42
|
+
refuted and no-report tests; external-tool timedOut persists partial output
|
|
43
|
+
as log (symmetric with exhaustive); log doc comments updated to reflect
|
|
44
|
+
all-post-spawn-verdicts attachment.</item>
|
|
45
|
+
<item>RFC-1485: sweep compass headers — forge-src + forge root eslint</item>
|
|
46
|
+
<history>RFC-1391</history>
|
|
47
|
+
</CHANGE_SUMMARY>
|
|
48
|
+
*/
|
|
49
|
+
import { createHash } from "node:crypto";
|
|
50
|
+
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
51
|
+
import { parse as yamlParse } from "yaml";
|
|
52
|
+
import { loadForgeConfig, } from "../config/forge-config.js";
|
|
53
|
+
import { existsSync, mkdirSync, readFileSync, rmSync, spawn, writeFileSync, } from "../utils/sync-fs.js";
|
|
54
|
+
import { EXHAUSTIVE_TOOL_VERSION, exhaustiveVerdict, FORGE_PROOF_REPORT_ENV, } from "./exhaustive.js";
|
|
55
|
+
import { proofSpecSchema } from "./proof-spec.js";
|
|
56
|
+
/** Default per-run bound when the caller passes no timeoutMs (RFC-1391: 30 min). */
|
|
57
|
+
export const PROOF_CHECK_DEFAULT_TIMEOUT_MS = 30 * 60_000;
|
|
58
|
+
/** Captured checker output is tail-truncated to this many bytes in persisted logs. */
|
|
59
|
+
const OUTPUT_TAIL_BYTES = 64 * 1024;
|
|
60
|
+
function spawnArgv(argv, opts) {
|
|
61
|
+
return new Promise((res) => {
|
|
62
|
+
const child = spawn(argv[0], argv.slice(1), {
|
|
63
|
+
cwd: opts.cwd,
|
|
64
|
+
env: opts.env ?? process.env,
|
|
65
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
66
|
+
});
|
|
67
|
+
let out = "";
|
|
68
|
+
let err = "";
|
|
69
|
+
child.stdout?.on("data", (d) => {
|
|
70
|
+
out += String(d);
|
|
71
|
+
});
|
|
72
|
+
child.stderr?.on("data", (d) => {
|
|
73
|
+
err += String(d);
|
|
74
|
+
});
|
|
75
|
+
let settled = false;
|
|
76
|
+
const timer = setTimeout(() => {
|
|
77
|
+
if (settled)
|
|
78
|
+
return;
|
|
79
|
+
settled = true;
|
|
80
|
+
child.kill();
|
|
81
|
+
res({ exitCode: null, timedOut: true, spawnError: null, stdout: out, stderr: err });
|
|
82
|
+
}, opts.timeoutMs);
|
|
83
|
+
timer.unref?.();
|
|
84
|
+
child.on("close", (code) => {
|
|
85
|
+
if (settled)
|
|
86
|
+
return;
|
|
87
|
+
settled = true;
|
|
88
|
+
clearTimeout(timer);
|
|
89
|
+
res({ exitCode: code, timedOut: false, spawnError: null, stdout: out, stderr: err });
|
|
90
|
+
});
|
|
91
|
+
child.on("error", (e) => {
|
|
92
|
+
if (settled)
|
|
93
|
+
return;
|
|
94
|
+
settled = true;
|
|
95
|
+
clearTimeout(timer);
|
|
96
|
+
res({
|
|
97
|
+
exitCode: null,
|
|
98
|
+
timedOut: false,
|
|
99
|
+
spawnError: e.message,
|
|
100
|
+
stdout: out,
|
|
101
|
+
stderr: err,
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function sha256Hex(content) {
|
|
107
|
+
return createHash("sha256").update(content, "utf8").digest("hex");
|
|
108
|
+
}
|
|
109
|
+
function proofsDir(workspaceRoot) {
|
|
110
|
+
return join(workspaceRoot, ".cache", "proofs");
|
|
111
|
+
}
|
|
112
|
+
function tail(content) {
|
|
113
|
+
return content.length > OUTPUT_TAIL_BYTES ? content.slice(-OUTPUT_TAIL_BYTES) : content;
|
|
114
|
+
}
|
|
115
|
+
/** Persist captured checker output; returns the workspace-relative path or undefined. */
|
|
116
|
+
function persistLog(workspaceRoot, specId, name, content) {
|
|
117
|
+
if (!content.trim())
|
|
118
|
+
return undefined;
|
|
119
|
+
const dir = proofsDir(workspaceRoot);
|
|
120
|
+
mkdirSync(dir, { recursive: true });
|
|
121
|
+
const rel = join(".cache", "proofs", `${specId}.${name}`);
|
|
122
|
+
writeFileSync(join(dir, `${specId}.${name}`), tail(content));
|
|
123
|
+
return rel;
|
|
124
|
+
}
|
|
125
|
+
/** Resolve `rel` under `root`, refusing paths that escape the workspace. */
|
|
126
|
+
function confinedAbsPath(root, rel) {
|
|
127
|
+
const abs = resolve(root, rel);
|
|
128
|
+
const back = relative(root, abs);
|
|
129
|
+
if (back.startsWith("..") || isAbsolute(back))
|
|
130
|
+
return null;
|
|
131
|
+
return abs;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Load forge.yaml for proof-tool resolution. Absent forge.yaml → `{ config:
|
|
135
|
+
* null }` (only `exhaustive` resolves); present-but-malformed →
|
|
136
|
+
* `{ configError }` so the verdict is `error`, not a misleading `unavailable`.
|
|
137
|
+
*/
|
|
138
|
+
function tryLoadForgeConfig(workspaceRoot, forgeRoot) {
|
|
139
|
+
try {
|
|
140
|
+
return { config: loadForgeConfig(workspaceRoot, forgeRoot), configError: null };
|
|
141
|
+
}
|
|
142
|
+
catch (e) {
|
|
143
|
+
if (existsSync(join(workspaceRoot, "forge.yaml"))) {
|
|
144
|
+
return { config: null, configError: e.message };
|
|
145
|
+
}
|
|
146
|
+
return { config: null, configError: null };
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/** The vitest invocation for the built-in `exhaustive` runner, per package manager. */
|
|
150
|
+
function vitestExecArgv(pm, entryAbsPath) {
|
|
151
|
+
switch (pm) {
|
|
152
|
+
case "pnpm":
|
|
153
|
+
return ["pnpm", "exec", "vitest", "run", entryAbsPath];
|
|
154
|
+
case "npm":
|
|
155
|
+
return ["npm", "exec", "--", "vitest", "run", entryAbsPath];
|
|
156
|
+
case "yarn":
|
|
157
|
+
return ["yarn", "vitest", "run", entryAbsPath];
|
|
158
|
+
case "bun":
|
|
159
|
+
return ["bun", "x", "vitest", "run", entryAbsPath];
|
|
160
|
+
case "none":
|
|
161
|
+
return null;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function result(spec, fields) {
|
|
165
|
+
const { specSha256 = "", entrySha256 = "", toolVersion = null, durationMs = 0, ...rest } = fields;
|
|
166
|
+
return {
|
|
167
|
+
specId: spec.id ?? "(invalid-spec)",
|
|
168
|
+
tool: spec.tool ?? "(unknown)",
|
|
169
|
+
toolVersion,
|
|
170
|
+
specSha256,
|
|
171
|
+
entrySha256,
|
|
172
|
+
durationMs,
|
|
173
|
+
...rest,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Run one proof spec end-to-end. Never throws — every failure mode maps onto
|
|
178
|
+
* a verdict (`error` for spec/infra failures, `unavailable` for a missing
|
|
179
|
+
* checker) so callers can record evidence uniformly.
|
|
180
|
+
*/
|
|
181
|
+
export async function runProofCheck(opts) {
|
|
182
|
+
const { workspaceRoot, specRelPath } = opts;
|
|
183
|
+
const spawnFn = opts.spawnFn ?? spawnArgv;
|
|
184
|
+
const startedAt = Date.now();
|
|
185
|
+
const done = (spec, fields) => result(spec, { durationMs: Date.now() - startedAt, ...fields });
|
|
186
|
+
const specAbsPath = confinedAbsPath(workspaceRoot, specRelPath);
|
|
187
|
+
if (specAbsPath === null) {
|
|
188
|
+
return done({}, { verdict: "error", message: `spec path escapes workspaceRoot: ${specRelPath}` });
|
|
189
|
+
}
|
|
190
|
+
let specRaw;
|
|
191
|
+
try {
|
|
192
|
+
specRaw = readFileSync(specAbsPath, "utf8");
|
|
193
|
+
}
|
|
194
|
+
catch {
|
|
195
|
+
return done({}, { verdict: "error", message: `spec file not readable: ${specRelPath}` });
|
|
196
|
+
}
|
|
197
|
+
const specSha256 = sha256Hex(specRaw);
|
|
198
|
+
let spec;
|
|
199
|
+
try {
|
|
200
|
+
const parsed = proofSpecSchema.safeParse(yamlParse(specRaw));
|
|
201
|
+
if (!parsed.success) {
|
|
202
|
+
const issue = parsed.error.issues[0];
|
|
203
|
+
return done({}, {
|
|
204
|
+
verdict: "error",
|
|
205
|
+
message: `spec fails forge/proof-spec@1: ${issue ? `${issue.path.join(".") || "(root)"} — ${issue.message}` : "unknown"}`,
|
|
206
|
+
specSha256,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
spec = parsed.data;
|
|
210
|
+
}
|
|
211
|
+
catch (e) {
|
|
212
|
+
return done({}, {
|
|
213
|
+
verdict: "error",
|
|
214
|
+
message: `spec file is not valid YAML: ${e.message}`,
|
|
215
|
+
specSha256,
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
const entryAbsPath = confinedAbsPath(workspaceRoot, spec.entry);
|
|
219
|
+
if (entryAbsPath === null) {
|
|
220
|
+
return done(spec, {
|
|
221
|
+
verdict: "error",
|
|
222
|
+
message: `entry path escapes workspaceRoot: ${spec.entry}`,
|
|
223
|
+
specSha256,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
let entrySha256 = "";
|
|
227
|
+
if (!existsSync(entryAbsPath)) {
|
|
228
|
+
return done(spec, {
|
|
229
|
+
verdict: "error",
|
|
230
|
+
message: `entry file not found: ${spec.entry}`,
|
|
231
|
+
specSha256,
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
try {
|
|
235
|
+
entrySha256 = sha256Hex(readFileSync(entryAbsPath, "utf8"));
|
|
236
|
+
}
|
|
237
|
+
catch {
|
|
238
|
+
return done(spec, {
|
|
239
|
+
verdict: "error",
|
|
240
|
+
message: `entry file not readable: ${spec.entry}`,
|
|
241
|
+
specSha256,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
// Resolve forge.yaml once, inside the runner — the command and probe
|
|
245
|
+
// surfaces share this exact path. A malformed forge.yaml is an `error`,
|
|
246
|
+
// never a silent "no tools configured".
|
|
247
|
+
let tools = opts.tools;
|
|
248
|
+
let packageManager = opts.packageManager;
|
|
249
|
+
if (tools === undefined || packageManager === undefined) {
|
|
250
|
+
const cfg = tryLoadForgeConfig(workspaceRoot, opts.forgeRoot);
|
|
251
|
+
if (cfg.configError !== null) {
|
|
252
|
+
return done(spec, {
|
|
253
|
+
verdict: "error",
|
|
254
|
+
message: `forge.yaml unresolvable — ${cfg.configError.split("\n")[0]}`,
|
|
255
|
+
specSha256,
|
|
256
|
+
entrySha256,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
tools = tools ?? cfg.config?.formal?.tools ?? {};
|
|
260
|
+
packageManager = packageManager ?? cfg.config?.project.packageManager ?? "pnpm";
|
|
261
|
+
}
|
|
262
|
+
const timeoutMs = opts.timeoutMs ?? PROOF_CHECK_DEFAULT_TIMEOUT_MS;
|
|
263
|
+
if (spec.tool === "exhaustive") {
|
|
264
|
+
if (spec.toolVersion !== EXHAUSTIVE_TOOL_VERSION) {
|
|
265
|
+
return done(spec, {
|
|
266
|
+
verdict: "error",
|
|
267
|
+
message: `exhaustive runner reports version ${EXHAUSTIVE_TOOL_VERSION}, spec pins ${spec.toolVersion}`,
|
|
268
|
+
specSha256,
|
|
269
|
+
entrySha256,
|
|
270
|
+
toolVersion: EXHAUSTIVE_TOOL_VERSION,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
const cardinality = spec.domain?.cardinality;
|
|
274
|
+
if (cardinality === undefined) {
|
|
275
|
+
return done(spec, {
|
|
276
|
+
verdict: "error",
|
|
277
|
+
message: "tool exhaustive requires domain.cardinality in the spec",
|
|
278
|
+
specSha256,
|
|
279
|
+
entrySha256,
|
|
280
|
+
toolVersion: EXHAUSTIVE_TOOL_VERSION,
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
const reportRel = join(".cache", "proofs", `${spec.id}.report.json`);
|
|
284
|
+
const reportAbs = join(workspaceRoot, reportRel);
|
|
285
|
+
const execArgv = vitestExecArgv(packageManager, entryAbsPath);
|
|
286
|
+
if (execArgv === null) {
|
|
287
|
+
return done(spec, {
|
|
288
|
+
verdict: "error",
|
|
289
|
+
message: 'project.packageManager "none" cannot exec vitest — run the entry through a configured external tool instead',
|
|
290
|
+
specSha256,
|
|
291
|
+
entrySha256,
|
|
292
|
+
toolVersion: EXHAUSTIVE_TOOL_VERSION,
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
// Freshness sweep: a stale report from a prior run must never stand in
|
|
296
|
+
// for the current run's checker output (the verdict binds to bytes that
|
|
297
|
+
// may have changed since that report was written).
|
|
298
|
+
rmSync(reportAbs, { force: true });
|
|
299
|
+
const outcome = await spawnFn(execArgv, {
|
|
300
|
+
cwd: workspaceRoot,
|
|
301
|
+
timeoutMs,
|
|
302
|
+
env: { ...process.env, [FORGE_PROOF_REPORT_ENV]: reportAbs },
|
|
303
|
+
});
|
|
304
|
+
const vitestLog = persistLog(workspaceRoot, spec.id, "log", `${outcome.stdout}\n${outcome.stderr}\nexitCode=${String(outcome.exitCode)}`);
|
|
305
|
+
if (outcome.timedOut) {
|
|
306
|
+
return done(spec, {
|
|
307
|
+
verdict: "error",
|
|
308
|
+
message: `exhaustive entry timed out after ${timeoutMs}ms`,
|
|
309
|
+
specSha256,
|
|
310
|
+
entrySha256,
|
|
311
|
+
toolVersion: EXHAUSTIVE_TOOL_VERSION,
|
|
312
|
+
...(vitestLog ? { log: vitestLog } : {}),
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
let report = null;
|
|
316
|
+
try {
|
|
317
|
+
report = JSON.parse(readFileSync(reportAbs, "utf8"));
|
|
318
|
+
}
|
|
319
|
+
catch {
|
|
320
|
+
report = null;
|
|
321
|
+
}
|
|
322
|
+
if (report === null || typeof report.enumerated !== "number") {
|
|
323
|
+
return done(spec, {
|
|
324
|
+
verdict: "error",
|
|
325
|
+
message: `entry produced no readable report (exit ${String(outcome.exitCode ?? "spawn-error")}) — the exhaustive() call may have thrown`,
|
|
326
|
+
specSha256,
|
|
327
|
+
entrySha256,
|
|
328
|
+
toolVersion: EXHAUSTIVE_TOOL_VERSION,
|
|
329
|
+
...(vitestLog ? { log: vitestLog } : {}),
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
const v = exhaustiveVerdict(report, cardinality);
|
|
333
|
+
const counterexample = v.verdict === "refuted"
|
|
334
|
+
? persistLog(workspaceRoot, spec.id, "counterexample.json", JSON.stringify(report.failures, null, 2))
|
|
335
|
+
: undefined;
|
|
336
|
+
return done(spec, {
|
|
337
|
+
verdict: v.verdict,
|
|
338
|
+
message: v.message,
|
|
339
|
+
specSha256,
|
|
340
|
+
entrySha256,
|
|
341
|
+
toolVersion: EXHAUSTIVE_TOOL_VERSION,
|
|
342
|
+
enumerated: report.enumerated,
|
|
343
|
+
...(counterexample ? { counterexample } : {}),
|
|
344
|
+
...(vitestLog ? { log: vitestLog } : {}),
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
// External tool — must be declared in forge.yaml formal.tools.
|
|
348
|
+
const tool = tools[spec.tool];
|
|
349
|
+
if (!tool) {
|
|
350
|
+
return done(spec, {
|
|
351
|
+
verdict: "unavailable",
|
|
352
|
+
message: `tool "${spec.tool}" is not declared in forge.yaml formal.tools — configure it or use the built-in "exhaustive"`,
|
|
353
|
+
specSha256,
|
|
354
|
+
entrySha256,
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
if (!tool.command.includes("{entry}")) {
|
|
358
|
+
return done(spec, {
|
|
359
|
+
verdict: "error",
|
|
360
|
+
message: `formal.tools.${spec.tool}.command must contain the literal "{entry}" token — the checker receives the spec entry path`,
|
|
361
|
+
specSha256,
|
|
362
|
+
entrySha256,
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
const versionRun = await spawnFn(tool.versionCommand, {
|
|
366
|
+
cwd: workspaceRoot,
|
|
367
|
+
timeoutMs,
|
|
368
|
+
});
|
|
369
|
+
if (versionRun.spawnError !== null || versionRun.timedOut) {
|
|
370
|
+
return done(spec, {
|
|
371
|
+
verdict: "unavailable",
|
|
372
|
+
message: `cannot run versionCommand for "${spec.tool}": ${versionRun.spawnError ?? "timed out"}` +
|
|
373
|
+
(tool.installHint ? ` — ${tool.installHint}` : ""),
|
|
374
|
+
specSha256,
|
|
375
|
+
entrySha256,
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
let versionPattern;
|
|
379
|
+
try {
|
|
380
|
+
versionPattern = new RegExp(tool.versionPattern);
|
|
381
|
+
}
|
|
382
|
+
catch {
|
|
383
|
+
return done(spec, {
|
|
384
|
+
verdict: "error",
|
|
385
|
+
message: `versionPattern for "${spec.tool}" is not a valid regex: ${tool.versionPattern}`,
|
|
386
|
+
specSha256,
|
|
387
|
+
entrySha256,
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
const versionMatch = versionPattern.exec(versionRun.stdout + "\n" + versionRun.stderr);
|
|
391
|
+
if (!versionMatch) {
|
|
392
|
+
return done(spec, {
|
|
393
|
+
verdict: "error",
|
|
394
|
+
message: `versionPattern ${tool.versionPattern} matched nothing in versionCommand output`,
|
|
395
|
+
specSha256,
|
|
396
|
+
entrySha256,
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
const observedVersion = (versionMatch[1] ?? versionMatch[0]).trim();
|
|
400
|
+
if (observedVersion !== spec.toolVersion) {
|
|
401
|
+
return done(spec, {
|
|
402
|
+
verdict: "error",
|
|
403
|
+
message: `installed "${spec.tool}" reports version "${observedVersion}", spec pins "${spec.toolVersion}"`,
|
|
404
|
+
specSha256,
|
|
405
|
+
entrySha256,
|
|
406
|
+
toolVersion: observedVersion,
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
const argv = tool.command.map((a) => (a === "{entry}" ? entryAbsPath : a));
|
|
410
|
+
const run = await spawnFn(argv, { cwd: workspaceRoot, timeoutMs });
|
|
411
|
+
if (run.spawnError !== null) {
|
|
412
|
+
return done(spec, {
|
|
413
|
+
verdict: "unavailable",
|
|
414
|
+
message: `cannot run command for "${spec.tool}": ${run.spawnError}` +
|
|
415
|
+
(tool.installHint ? ` — ${tool.installHint}` : ""),
|
|
416
|
+
specSha256,
|
|
417
|
+
entrySha256,
|
|
418
|
+
toolVersion: observedVersion,
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
const log = persistLog(workspaceRoot, spec.id, "log", `${run.stdout}\n${run.stderr}\nexitCode=${String(run.exitCode)}`);
|
|
422
|
+
if (run.timedOut) {
|
|
423
|
+
return done(spec, {
|
|
424
|
+
verdict: "error",
|
|
425
|
+
message: `"${spec.tool}" timed out after ${timeoutMs}ms`,
|
|
426
|
+
specSha256,
|
|
427
|
+
entrySha256,
|
|
428
|
+
toolVersion: observedVersion,
|
|
429
|
+
...(log ? { log } : {}),
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
if (run.exitCode === 0) {
|
|
433
|
+
return done(spec, {
|
|
434
|
+
verdict: "proved",
|
|
435
|
+
message: `"${spec.tool}" accepted the proof (exit 0)`,
|
|
436
|
+
specSha256,
|
|
437
|
+
entrySha256,
|
|
438
|
+
toolVersion: observedVersion,
|
|
439
|
+
...(log ? { log } : {}),
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
return done(spec, {
|
|
443
|
+
verdict: "refuted",
|
|
444
|
+
message: `"${spec.tool}" rejected the proof (exit ${String(run.exitCode)})`,
|
|
445
|
+
specSha256,
|
|
446
|
+
entrySha256,
|
|
447
|
+
toolVersion: observedVersion,
|
|
448
|
+
...(log ? { counterexample: log } : {}),
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
//# sourceMappingURL=proof-runner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proof-runner.js","sourceRoot":"","sources":["../../../src/formal/proof-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MA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,IAAI,IAAI,CAAC,IAAI,qBAAqB,SAAS,IAAI;YACxD,UAAU;YACV,WAAW;YACX,WAAW,EAAE,eAAe;YAC5B,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACxB,CAAC,CAAC;IACL,CAAC;IACD,IAAI,GAAG,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC,IAAI,EAAE;YAChB,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,IAAI,IAAI,CAAC,IAAI,+BAA+B;YACrD,UAAU;YACV,WAAW;YACX,WAAW,EAAE,eAAe;YAC5B,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACxB,CAAC,CAAC;IACL,CAAC;IACD,OAAO,IAAI,CAAC,IAAI,EAAE;QAChB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,IAAI,IAAI,CAAC,IAAI,8BAA8B,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG;QAC3E,UAAU;QACV,WAAW;QACX,WAAW,EAAE,eAAe;QAC5B,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACxC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Schema identifier for the proof-spec contract. */
|
|
3
|
+
export declare const PROOF_SPEC_SCHEMA_ID = "forge/proof-spec@1";
|
|
4
|
+
/**
|
|
5
|
+
* Closed checker set (RFC-1391). `exhaustive` is the built-in forge runner;
|
|
6
|
+
* the rest are external checkers resolved from forge.yaml `formal.tools`.
|
|
7
|
+
* Grows only by RFC.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PROOF_TOOLS: readonly ["tlc", "apalache", "dafny", "lean", "verus", "exhaustive"];
|
|
10
|
+
export type ProofTool = (typeof PROOF_TOOLS)[number];
|
|
11
|
+
/** Verdicts a proof.check run may return. `proved` is the only passing verdict. */
|
|
12
|
+
export type ProofVerdict = "proved" | "refuted" | "unavailable" | "error";
|
|
13
|
+
/**
|
|
14
|
+
* RFC-1391 proof spec. `tool` names either the built-in `exhaustive` runner or
|
|
15
|
+
* a `formal.tools.<tool>` entry in the workshop's forge.yaml. `entry` is a
|
|
16
|
+
* workspace-relative file the checker proves against (a `*.proof.test.ts` for
|
|
17
|
+
* `exhaustive`; a spec module for external tools).
|
|
18
|
+
*/
|
|
19
|
+
export declare const proofSpecSchema: z.ZodObject<{
|
|
20
|
+
schema: z.ZodLiteral<"forge/proof-spec@1">;
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
invariantRefs: z.ZodArray<z.ZodString>;
|
|
23
|
+
statement: z.ZodString;
|
|
24
|
+
tool: z.ZodEnum<{
|
|
25
|
+
tlc: "tlc";
|
|
26
|
+
apalache: "apalache";
|
|
27
|
+
dafny: "dafny";
|
|
28
|
+
lean: "lean";
|
|
29
|
+
verus: "verus";
|
|
30
|
+
exhaustive: "exhaustive";
|
|
31
|
+
}>;
|
|
32
|
+
toolVersion: z.ZodString;
|
|
33
|
+
entry: z.ZodString;
|
|
34
|
+
target: z.ZodString;
|
|
35
|
+
domain: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
description: z.ZodString;
|
|
37
|
+
cardinality: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
assumptions: z.ZodArray<z.ZodString>;
|
|
40
|
+
trustedBase: z.ZodArray<z.ZodString>;
|
|
41
|
+
unverifiedBoundaries: z.ZodArray<z.ZodString>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
export type ProofSpec = z.infer<typeof proofSpecSchema>;
|
|
44
|
+
/**
|
|
45
|
+
* Result of a single proof.check run — carried on the probe result and
|
|
46
|
+
* recorded on the verification envelope for `proof` probes.
|
|
47
|
+
*/
|
|
48
|
+
export interface ProofCheckResult {
|
|
49
|
+
specId: string;
|
|
50
|
+
tool: string;
|
|
51
|
+
/** The version actually observed — `null` when no checker ran. */
|
|
52
|
+
toolVersion: string | null;
|
|
53
|
+
verdict: ProofVerdict;
|
|
54
|
+
/** Human-readable verdict explanation (never empty). */
|
|
55
|
+
message: string;
|
|
56
|
+
/** sha256 of the spec file bytes — binds the verdict to this spec. */
|
|
57
|
+
specSha256: string;
|
|
58
|
+
/** sha256 of the entry file bytes — binds the verdict to the implementation. */
|
|
59
|
+
entrySha256: string;
|
|
60
|
+
/** `exhaustive` only: number of domain inputs actually enumerated. */
|
|
61
|
+
enumerated?: number;
|
|
62
|
+
/** Workspace-relative path to the persisted counterexample — the refuted-path record. */
|
|
63
|
+
counterexample?: string;
|
|
64
|
+
/** Workspace-relative path to the persisted checker log (all post-spawn verdicts). */
|
|
65
|
+
log?: string;
|
|
66
|
+
/** Wall time of the check run (ms). */
|
|
67
|
+
durationMs: number;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=proof-spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proof-spec.d.ts","sourceRoot":"","sources":["../../../src/formal/proof-spec.ts"],"names":[],"mappings":"AAwCA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,uBAAuB,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,WAAW,sEAAuE,CAAC;AAChG,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,mFAAmF;AACnF,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;kBAyCjB,CAAC;AAEZ,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yFAAyF;IACzF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sFAAsF;IACtF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
RFC-1391: forge/proof-spec@1 — the declarative proof-spec contract for
|
|
5
|
+
`probe: proof` acceptance probes and `proof.check`. A spec names the pinned
|
|
6
|
+
checker, the entry file, the exact theorem, its assumptions, and the model/code
|
|
7
|
+
boundary; evidence binds to the spec and entry bytes via sha256.
|
|
8
|
+
</purpose>
|
|
9
|
+
<non-goals>
|
|
10
|
+
<item>Do not execute checkers — os/formal/handlers/proof-check.ts owns tool resolution and verdicts.</item>
|
|
11
|
+
<item>Do not weaken invariants or detect spec drift — weakening detection belongs to RFC-1392.</item>
|
|
12
|
+
</non-goals>
|
|
13
|
+
</MODULE_CONTRACT>
|
|
14
|
+
<KEY_DECISIONS>
|
|
15
|
+
<item>`.strict()` — unknown keys are rejected: a proof spec is evidence, so silent stripping would hide author typos.</item>
|
|
16
|
+
<item>`domain.cardinality` stays schema-optional (external checkers need no declared domain); the `exhaustive` runner errors on its absence.</item>
|
|
17
|
+
<item>`assumptions`, `trustedBase`, `unverifiedBoundaries` are `.min(1)` — prove-everything specs are refused by shape.</item>
|
|
18
|
+
<item>`tool` is the closed ProofTool enum — the set grows only by RFC.</item>
|
|
19
|
+
</KEY_DECISIONS>
|
|
20
|
+
<CHANGE_SUMMARY>
|
|
21
|
+
<item>RFC-1391: forge/proof-spec@1 schema, ProofSpec/ProofTool/ProofVerdict/ProofCheckResult types.</item>
|
|
22
|
+
<item>RFC-1391: make the formal verification tier checker-bound (RFC-1391)</item>
|
|
23
|
+
<item>RFC-1391: close RFC-1391 review r1 findings — evidence freshness, config classification, contract guards
|
|
24
|
+
|
|
25
|
+
REVIEW-CODE-2026-10-24-04 (warning): a stale .cache/proofs report could
|
|
26
|
+
fabricate proved; forge.yaml now resolves inside runProofCheck so a malformed
|
|
27
|
+
config is error not unavailable, and both surfaces share one path; {entry} is
|
|
28
|
+
required in formal.tools.command; spec/entry paths are confined to the
|
|
29
|
+
workspace; the exhaustive entry dispatches per packageManager; proved runs
|
|
30
|
+
record log, counterexample stays the refuted-path record.</item>
|
|
31
|
+
<item>RFC-1391: close RFC-1391 review r3 nits — pin log on exhaustive paths
|
|
32
|
+
|
|
33
|
+
REVIEW-CODE-2026-10-24-06 (approved): log is now asserted on the exhaustive
|
|
34
|
+
refuted and no-report tests; external-tool timedOut persists partial output
|
|
35
|
+
as log (symmetric with exhaustive); log doc comments updated to reflect
|
|
36
|
+
all-post-spawn-verdicts attachment.</item>
|
|
37
|
+
<item>RFC-1485: sweep compass headers — forge-src + forge root eslint</item>
|
|
38
|
+
</CHANGE_SUMMARY>
|
|
39
|
+
*/
|
|
40
|
+
import { z } from "zod";
|
|
41
|
+
/** Schema identifier for the proof-spec contract. */
|
|
42
|
+
export const PROOF_SPEC_SCHEMA_ID = "forge/proof-spec@1";
|
|
43
|
+
/**
|
|
44
|
+
* Closed checker set (RFC-1391). `exhaustive` is the built-in forge runner;
|
|
45
|
+
* the rest are external checkers resolved from forge.yaml `formal.tools`.
|
|
46
|
+
* Grows only by RFC.
|
|
47
|
+
*/
|
|
48
|
+
export const PROOF_TOOLS = ["tlc", "apalache", "dafny", "lean", "verus", "exhaustive"];
|
|
49
|
+
/**
|
|
50
|
+
* RFC-1391 proof spec. `tool` names either the built-in `exhaustive` runner or
|
|
51
|
+
* a `formal.tools.<tool>` entry in the workshop's forge.yaml. `entry` is a
|
|
52
|
+
* workspace-relative file the checker proves against (a `*.proof.test.ts` for
|
|
53
|
+
* `exhaustive`; a spec module for external tools).
|
|
54
|
+
*/
|
|
55
|
+
export const proofSpecSchema = z
|
|
56
|
+
.object({
|
|
57
|
+
schema: z.literal(PROOF_SPEC_SCHEMA_ID),
|
|
58
|
+
/** Spec id — names counterexample/log artifacts under .cache/proofs/. */
|
|
59
|
+
id: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]*$/, "spec id must be a file-safe token"),
|
|
60
|
+
/** Invariant ids (RFC-1390) this proof discharges — structural back-link. */
|
|
61
|
+
invariantRefs: z.array(z.string().min(1)),
|
|
62
|
+
/** The single statement the checker is asked to prove. */
|
|
63
|
+
statement: z.string().min(1),
|
|
64
|
+
/** Checker name — `exhaustive` (built-in) or a forge.yaml `formal.tools` key. */
|
|
65
|
+
tool: z.enum(PROOF_TOOLS),
|
|
66
|
+
/** Exact version string the checker must report; mismatch → `error`. */
|
|
67
|
+
toolVersion: z.string().min(1),
|
|
68
|
+
/** Workspace-relative entry file the checker proves against. */
|
|
69
|
+
entry: z.string().min(1),
|
|
70
|
+
/** Theorem, lemma, invariant, or test name inside `entry`. */
|
|
71
|
+
target: z.string().min(1),
|
|
72
|
+
/**
|
|
73
|
+
* Declared domain the proof covers; `exhaustive` requires `cardinality`
|
|
74
|
+
* for the enumerated-count gate.
|
|
75
|
+
*/
|
|
76
|
+
domain: z
|
|
77
|
+
.object({
|
|
78
|
+
description: z.string().min(1),
|
|
79
|
+
cardinality: z.number().int().positive(),
|
|
80
|
+
})
|
|
81
|
+
.optional(),
|
|
82
|
+
/**
|
|
83
|
+
* Declared assumptions the proof relies on. An empty list is a shape
|
|
84
|
+
* failure — "no assumptions" is itself an assumption and must be written
|
|
85
|
+
* as such (e.g. "no assumptions — closed model").
|
|
86
|
+
*/
|
|
87
|
+
assumptions: z.array(z.string().min(1)).min(1),
|
|
88
|
+
/** What is trusted but not re-verified — checker, runtime, harness. */
|
|
89
|
+
trustedBase: z.array(z.string().min(1)).min(1),
|
|
90
|
+
/**
|
|
91
|
+
* Explicit model/code gaps this proof does NOT cover — must be non-empty
|
|
92
|
+
* so the spec can never read as a whole-system claim.
|
|
93
|
+
*/
|
|
94
|
+
unverifiedBoundaries: z.array(z.string().min(1)).min(1),
|
|
95
|
+
})
|
|
96
|
+
.strict();
|
|
97
|
+
//# sourceMappingURL=proof-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proof-spec.js","sourceRoot":"","sources":["../../../src/formal/proof-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCE;AAEF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,qDAAqD;AACrD,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAU,CAAC;AAMhG;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACvC,yEAAyE;IACzE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,6BAA6B,EAAE,mCAAmC,CAAC;IACxF,6EAA6E;IAC7E,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EA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tomic, type WriteFileAtomicOptions, GENERATED_MARKER, EDITABL
|
|
|
3
3
|
export type { ForgeModule, ForgeModuleRegistry, ForgePipelineStep } from "./forge-module.ts";
|
|
4
4
|
export { skillFrontmatterSchema, type SkillFrontmatter } from "./skill-schema.ts";
|
|
5
5
|
export { FORGE_SKILLS, type ForgeSkillEntry } from "./registry.ts";
|
|
6
|
-
export { forgeConfigSchema, forgeBindingsSchema, defaultForgeConfig, loadForgeConfig, resolveForgeRoot, resolveBinding, resolveTerminology, FORGE_CLI_BINDING_DEFAULTS, PM_RUNNER_MAP, resolvePmRunner, applyCliBindingDefaults, resolvePackageManager, type ForgeConfig, type ForgeBindings, type ForgeCliBindingDefault, type ForgePackageManager, type ForgeMigrationAdapter, } from "./config/forge-config.ts";
|
|
6
|
+
export { forgeConfigSchema, forgeBindingsSchema, defaultForgeConfig, loadForgeConfig, resolveForgeRoot, isForgeSourceCheckout, resolveBinding, resolveTerminology, FORGE_CLI_BINDING_DEFAULTS, PM_RUNNER_MAP, resolvePmRunner, applyCliBindingDefaults, resolvePackageManager, type ForgeConfig, type ForgeBindings, type ForgeCliBindingDefault, type ForgePackageManager, type ForgeMigrationAdapter, } from "./config/forge-config.ts";
|
|
7
7
|
export { stackProfileSchema, loadStackProfile, listStackProfiles, detectStack, type StackProfile, type ProfileFile, } from "./profiles/stack-profile.ts";
|
|
8
8
|
export { stackProfileDomainFieldsSchema, profileArtifactSchema, profileWorkspaceTypeSchema, profileInvariantSchema, UNIVERSAL_TERMINOLOGY_KEYS, TERMINOLOGY_DEFAULTS, type StackProfileDomainFields, type ProfileArtifact, type ProfileWorkspaceType, type ProfileInvariant, } from "./profiles/profile-schema.ts";
|
|
9
9
|
export { parseKnowledgeFile, serializeKnowledgeFile, knowledgeEntryMetaSchema, type KnowledgeLayer, type KnowledgeEntryStatus, type KnowledgeEntryMeta, type KnowledgeEntry, type LegacySection, type ParseIssue, type ParsedKnowledgeFile, } from "./knowledge/index.ts";
|