@warpgogol/forge 8.0.4 → 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 +28 -0
- package/bin/cli.ts +25 -13
- package/dist/bin/cli.js +17 -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.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/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 +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 +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 +90 -12
- package/dist/os/rfc/types.d.ts.map +1 -1
- package/dist/os/rfc/types.js +8 -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 +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/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 +1 -1
- package/dist/src/authority/delegations.d.ts.map +1 -1
- package/dist/src/authority/delegations.js +2 -0
- 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 +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 +2 -10
- 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 +233 -9
- 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 +109 -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-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/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 +194 -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 +2 -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-verification-verdict-ingest.test.ts +244 -0
- package/src/tests/session-retro.test.ts +47 -0
- package/src/types.ts +59 -18
- package/src/utils/sync-fs.ts +2 -0
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-0374: initial forgeWerkstattModule registering 3 werkstatt commands.</item>
|
|
10
|
-
<item>RFC-0556: removed dynamic imports of @warpgogol/site-kernel-handoff and @warpgogol/site-kernel-checks, all handlers now inlined in forge/os/werkstatt/handlers/.</item>
|
|
11
9
|
<item>RFC-1173: declare mutatesState on all kernel commands — collectDeclarationDiagnostics emits error-severity MUTATES-STATE-DECLARED, command.manifest.validate is the blocking consumer in packages.check, sweep declares the flag on every command definition (factories hardcode false for read-only check specs)</item>
|
|
12
10
|
<item>RFC-1231: step 1 — rename supportsAllSites to acceptsAllFlag
|
|
13
11
|
|
|
@@ -16,6 +14,9 @@ follows the parsed selector. Guard renamed assertAllSitesAllowed ->
|
|
|
16
14
|
assertAllFlagAccepted, message updated. 417 declaration sites + type
|
|
17
15
|
surfaces (KernelCommandMetadata, ForgeCommandMetadata) in one atomic pass.</item>
|
|
18
16
|
<item>RFC-1248: VITE-CLIENT-DEP-02 lazy-import gate + SCAN-02 validator reads-root existence check (RFC-1248)</item>
|
|
17
|
+
<item>RFC-1462: isolate parallel agent sessions in per-session git worktrees — session.open/close/status, registry, commit overlap warning</item>
|
|
18
|
+
<item>RFC-1462: repair RFC-1462 session-worktree r1 findings — last-commit status, real inside-worktree skip, loud residue commit</item>
|
|
19
|
+
<history>RFC-0374, RFC-0556, RFC-1360</history>
|
|
19
20
|
</CHANGE_SUMMARY>
|
|
20
21
|
*/
|
|
21
22
|
|
|
@@ -23,6 +24,9 @@ import type { ForgeModule } from "../../src/forge-module.ts";
|
|
|
23
24
|
import { runWerkstattLockStatus } from "./handlers/werkstatt-lock-status.ts";
|
|
24
25
|
import { runWerkstattLockRecover } from "./handlers/werkstatt-lock-recover.ts";
|
|
25
26
|
import { runWerkstattOperationValidate } from "./handlers/werkstatt-operation-validate.ts";
|
|
27
|
+
import { runSessionOpen } from "./handlers/session-open.ts";
|
|
28
|
+
import { runSessionClose } from "./handlers/session-close.ts";
|
|
29
|
+
import { runSessionStatus } from "./handlers/session-status.ts";
|
|
26
30
|
|
|
27
31
|
export const forgeWerkstattModule: ForgeModule = {
|
|
28
32
|
name: "forge-werkstatt",
|
|
@@ -56,7 +60,21 @@ export const forgeWerkstattModule: ForgeModule = {
|
|
|
56
60
|
description: "Remove stale artifacts instead of classifying them.",
|
|
57
61
|
},
|
|
58
62
|
},
|
|
59
|
-
writes: [
|
|
63
|
+
writes: [
|
|
64
|
+
".werkstatt/locks/**",
|
|
65
|
+
"systems/*.tmp",
|
|
66
|
+
"systems/*.staging-*",
|
|
67
|
+
"systems/*.incomplete",
|
|
68
|
+
"systems/*.failed-*",
|
|
69
|
+
"missions/*.tmp",
|
|
70
|
+
"missions/*.staging-*",
|
|
71
|
+
"missions/*.incomplete",
|
|
72
|
+
"missions/*.failed-*",
|
|
73
|
+
"releases/*.tmp",
|
|
74
|
+
"releases/*.staging-*",
|
|
75
|
+
"releases/*.incomplete",
|
|
76
|
+
"releases/*.failed-*",
|
|
77
|
+
],
|
|
60
78
|
generates: [],
|
|
61
79
|
reads: [".werkstatt/locks/**"],
|
|
62
80
|
cacheable: false,
|
|
@@ -75,6 +93,86 @@ export const forgeWerkstattModule: ForgeModule = {
|
|
|
75
93
|
reads: ["packages/werkstatt-engine/src/handoff/**/*.ts"],
|
|
76
94
|
execute: runWerkstattOperationValidate,
|
|
77
95
|
},
|
|
96
|
+
{
|
|
97
|
+
name: "werkstatt.session.open",
|
|
98
|
+
coverage: "operator" as const,
|
|
99
|
+
mutatesState: true,
|
|
100
|
+
description:
|
|
101
|
+
"RFC-1462: open an isolated per-session git worktree at .sessions/<id> on branch session/<id> and register it in the shared gitdir. Flags: --agent <id> (required), --brief, --resume (re-adopt a live session).",
|
|
102
|
+
scope: "workspace",
|
|
103
|
+
acceptsAllFlag: false,
|
|
104
|
+
flags: {
|
|
105
|
+
agent: {
|
|
106
|
+
kind: "string",
|
|
107
|
+
required: true,
|
|
108
|
+
description: "Session/agent id — becomes .sessions/<id> and session/<id>.",
|
|
109
|
+
},
|
|
110
|
+
brief: { kind: "string", description: "Short description of the session's purpose." },
|
|
111
|
+
resume: {
|
|
112
|
+
kind: "boolean",
|
|
113
|
+
description: "Re-adopt an existing live session for the same agent id.",
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
writes: [".sessions/**", ".git/**"],
|
|
117
|
+
generates: [],
|
|
118
|
+
reads: [".git/**"],
|
|
119
|
+
cacheable: false,
|
|
120
|
+
execute: runSessionOpen,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "werkstatt.session.close",
|
|
124
|
+
coverage: "operator" as const,
|
|
125
|
+
mutatesState: true,
|
|
126
|
+
description:
|
|
127
|
+
"RFC-1462: close a session — merge session/<id> into its base branch (default, refuses dirty worktrees and branch retargeting without --allow-dirty/--into) or --discard it. Rerun-safe on an already-closed session.",
|
|
128
|
+
scope: "workspace",
|
|
129
|
+
acceptsAllFlag: false,
|
|
130
|
+
flags: {
|
|
131
|
+
session: {
|
|
132
|
+
kind: "string",
|
|
133
|
+
required: true,
|
|
134
|
+
description: "Session id to close.",
|
|
135
|
+
},
|
|
136
|
+
discard: {
|
|
137
|
+
kind: "boolean",
|
|
138
|
+
description: "Remove the worktree and delete the branch instead of merging.",
|
|
139
|
+
},
|
|
140
|
+
merge: {
|
|
141
|
+
kind: "boolean",
|
|
142
|
+
description: "Merge the session branch (default behavior).",
|
|
143
|
+
},
|
|
144
|
+
"allow-dirty": {
|
|
145
|
+
kind: "boolean",
|
|
146
|
+
description: "Sweep a dirty worktree into a 'chore: session residue' commit before merging.",
|
|
147
|
+
},
|
|
148
|
+
into: {
|
|
149
|
+
kind: "string",
|
|
150
|
+
description: "Retarget the merge to a different base branch.",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
writes: [".sessions/**", ".git/**", "**"],
|
|
154
|
+
generates: [],
|
|
155
|
+
reads: [".git/**"],
|
|
156
|
+
cacheable: false,
|
|
157
|
+
execute: runSessionClose,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: "werkstatt.session.status",
|
|
161
|
+
coverage: "operator" as const,
|
|
162
|
+
mutatesState: false,
|
|
163
|
+
description:
|
|
164
|
+
"RFC-1462: list registered sessions — worktree presence, dirty counts, staleness (default 24h, --stale-after <minutes>). All state is filesystem/gitdir — survives a dead agent.",
|
|
165
|
+
scope: "workspace",
|
|
166
|
+
acceptsAllFlag: false,
|
|
167
|
+
flags: {
|
|
168
|
+
"stale-after": {
|
|
169
|
+
kind: "string",
|
|
170
|
+
description: "Minutes before an open session is marked stale (default 1440).",
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
reads: [".git/**", ".sessions/**"],
|
|
174
|
+
execute: runSessionStatus,
|
|
175
|
+
},
|
|
78
176
|
],
|
|
79
177
|
pipelines: [],
|
|
80
178
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warpgogol/forge",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,6 +44,18 @@
|
|
|
44
44
|
"types": "./src/config/forge-config.ts",
|
|
45
45
|
"default": "./src/config/forge-config.ts"
|
|
46
46
|
},
|
|
47
|
+
"./registry": {
|
|
48
|
+
"types": "./src/registry.ts",
|
|
49
|
+
"default": "./src/registry.ts"
|
|
50
|
+
},
|
|
51
|
+
"./reachability": {
|
|
52
|
+
"types": "./src/reachability/command-mentions.ts",
|
|
53
|
+
"default": "./src/reachability/command-mentions.ts"
|
|
54
|
+
},
|
|
55
|
+
"./compass": {
|
|
56
|
+
"types": "./src/compass/index.ts",
|
|
57
|
+
"default": "./src/compass/index.ts"
|
|
58
|
+
},
|
|
47
59
|
"./os/core": {
|
|
48
60
|
"types": "./os/core/core.module.ts",
|
|
49
61
|
"default": "./os/core/core.module.ts"
|
|
@@ -167,6 +179,94 @@
|
|
|
167
179
|
"./os/authority-module": {
|
|
168
180
|
"types": "./os/authority/authority.module.ts",
|
|
169
181
|
"default": "./os/authority/authority.module.ts"
|
|
182
|
+
},
|
|
183
|
+
"./conformance": {
|
|
184
|
+
"types": "./src/conformance/index.ts",
|
|
185
|
+
"default": "./src/conformance/index.ts"
|
|
186
|
+
},
|
|
187
|
+
"./formal": {
|
|
188
|
+
"types": "./src/formal/index.ts",
|
|
189
|
+
"default": "./src/formal/index.ts"
|
|
190
|
+
},
|
|
191
|
+
"./os/conformance": {
|
|
192
|
+
"types": "./os/conformance/index.ts",
|
|
193
|
+
"default": "./os/conformance/index.ts"
|
|
194
|
+
},
|
|
195
|
+
"./os/conformance-module": {
|
|
196
|
+
"types": "./os/conformance/conformance.module.ts",
|
|
197
|
+
"default": "./os/conformance/conformance.module.ts"
|
|
198
|
+
},
|
|
199
|
+
"./os/formal": {
|
|
200
|
+
"types": "./os/formal/index.ts",
|
|
201
|
+
"default": "./os/formal/index.ts"
|
|
202
|
+
},
|
|
203
|
+
"./os/formal-module": {
|
|
204
|
+
"types": "./os/formal/formal.module.ts",
|
|
205
|
+
"default": "./os/formal/formal.module.ts"
|
|
206
|
+
},
|
|
207
|
+
"./os/friction": {
|
|
208
|
+
"types": "./os/friction/index.ts",
|
|
209
|
+
"default": "./os/friction/index.ts"
|
|
210
|
+
},
|
|
211
|
+
"./os/friction-module": {
|
|
212
|
+
"types": "./os/friction/friction.module.ts",
|
|
213
|
+
"default": "./os/friction/friction.module.ts"
|
|
214
|
+
},
|
|
215
|
+
"./os/resolver-module": {
|
|
216
|
+
"types": "./os/resolver/resolver.module.ts",
|
|
217
|
+
"default": "./os/resolver/resolver.module.ts"
|
|
218
|
+
},
|
|
219
|
+
"./os/instructions-module": {
|
|
220
|
+
"types": "./os/instructions/instructions.module.ts",
|
|
221
|
+
"default": "./os/instructions/instructions.module.ts"
|
|
222
|
+
},
|
|
223
|
+
"./os/agent-module": {
|
|
224
|
+
"types": "./os/agent/agent.module.ts",
|
|
225
|
+
"default": "./os/agent/agent.module.ts"
|
|
226
|
+
},
|
|
227
|
+
"./os/agent": {
|
|
228
|
+
"types": "./os/agent/index.ts",
|
|
229
|
+
"default": "./os/agent/index.ts"
|
|
230
|
+
},
|
|
231
|
+
"./os/knowledge-module": {
|
|
232
|
+
"types": "./os/knowledge/knowledge.module.ts",
|
|
233
|
+
"default": "./os/knowledge/knowledge.module.ts"
|
|
234
|
+
},
|
|
235
|
+
"./os/knowledge": {
|
|
236
|
+
"types": "./os/knowledge/index.ts",
|
|
237
|
+
"default": "./os/knowledge/index.ts"
|
|
238
|
+
},
|
|
239
|
+
"./os/gate-module": {
|
|
240
|
+
"types": "./os/gate/gate.module.ts",
|
|
241
|
+
"default": "./os/gate/gate.module.ts"
|
|
242
|
+
},
|
|
243
|
+
"./os/gate": {
|
|
244
|
+
"types": "./os/gate/index.ts",
|
|
245
|
+
"default": "./os/gate/index.ts"
|
|
246
|
+
},
|
|
247
|
+
"./os/checks-module": {
|
|
248
|
+
"types": "./os/checks/checks.module.ts",
|
|
249
|
+
"default": "./os/checks/checks.module.ts"
|
|
250
|
+
},
|
|
251
|
+
"./os/checks": {
|
|
252
|
+
"types": "./os/checks/index.ts",
|
|
253
|
+
"default": "./os/checks/index.ts"
|
|
254
|
+
},
|
|
255
|
+
"./os/context-module": {
|
|
256
|
+
"types": "./os/context/context.module.ts",
|
|
257
|
+
"default": "./os/context/context.module.ts"
|
|
258
|
+
},
|
|
259
|
+
"./os/context": {
|
|
260
|
+
"types": "./os/context/index.ts",
|
|
261
|
+
"default": "./os/context/index.ts"
|
|
262
|
+
},
|
|
263
|
+
"./os/trajectory-module": {
|
|
264
|
+
"types": "./os/trajectory/trajectory.module.ts",
|
|
265
|
+
"default": "./os/trajectory/trajectory.module.ts"
|
|
266
|
+
},
|
|
267
|
+
"./os/trajectory": {
|
|
268
|
+
"types": "./os/trajectory/index.ts",
|
|
269
|
+
"default": "./os/trajectory/index.ts"
|
|
170
270
|
}
|
|
171
271
|
},
|
|
172
272
|
"files": [
|
|
@@ -199,6 +299,7 @@
|
|
|
199
299
|
"dependencies": {
|
|
200
300
|
"@aws-sdk/client-s3": "^3.1131.0",
|
|
201
301
|
"ajv": "^8.20.0",
|
|
302
|
+
"linkedom": "^0.18.14",
|
|
202
303
|
"picomatch": "^4.0.7",
|
|
203
304
|
"trash": "^10.1.1",
|
|
204
305
|
"yaml": "^2.9.1",
|
|
@@ -241,6 +342,10 @@
|
|
|
241
342
|
"types": "./dist/src/config/forge-config.d.ts",
|
|
242
343
|
"default": "./dist/src/config/forge-config.js"
|
|
243
344
|
},
|
|
345
|
+
"./reachability": {
|
|
346
|
+
"types": "./dist/src/reachability/command-mentions.d.ts",
|
|
347
|
+
"default": "./dist/src/reachability/command-mentions.js"
|
|
348
|
+
},
|
|
244
349
|
"./os/core": {
|
|
245
350
|
"types": "./dist/os/core/core.module.d.ts",
|
|
246
351
|
"default": "./dist/os/core/core.module.js"
|
|
@@ -352,6 +457,94 @@
|
|
|
352
457
|
"./os/queue-module": {
|
|
353
458
|
"types": "./dist/os/queue/queue.module.d.ts",
|
|
354
459
|
"default": "./dist/os/queue/queue.module.js"
|
|
460
|
+
},
|
|
461
|
+
"./conformance": {
|
|
462
|
+
"types": "./dist/src/conformance/index.d.ts",
|
|
463
|
+
"default": "./dist/src/conformance/index.js"
|
|
464
|
+
},
|
|
465
|
+
"./formal": {
|
|
466
|
+
"types": "./dist/src/formal/index.d.ts",
|
|
467
|
+
"default": "./dist/src/formal/index.js"
|
|
468
|
+
},
|
|
469
|
+
"./os/conformance": {
|
|
470
|
+
"types": "./dist/os/conformance/index.d.ts",
|
|
471
|
+
"default": "./dist/os/conformance/index.js"
|
|
472
|
+
},
|
|
473
|
+
"./os/conformance-module": {
|
|
474
|
+
"types": "./dist/os/conformance/conformance.module.d.ts",
|
|
475
|
+
"default": "./dist/os/conformance/conformance.module.js"
|
|
476
|
+
},
|
|
477
|
+
"./os/formal": {
|
|
478
|
+
"types": "./dist/os/formal/index.d.ts",
|
|
479
|
+
"default": "./dist/os/formal/index.js"
|
|
480
|
+
},
|
|
481
|
+
"./os/formal-module": {
|
|
482
|
+
"types": "./dist/os/formal/formal.module.d.ts",
|
|
483
|
+
"default": "./dist/os/formal/formal.module.js"
|
|
484
|
+
},
|
|
485
|
+
"./os/friction": {
|
|
486
|
+
"types": "./dist/os/friction/index.d.ts",
|
|
487
|
+
"default": "./dist/os/friction/index.js"
|
|
488
|
+
},
|
|
489
|
+
"./os/friction-module": {
|
|
490
|
+
"types": "./dist/os/friction/friction.module.d.ts",
|
|
491
|
+
"default": "./dist/os/friction/friction.module.js"
|
|
492
|
+
},
|
|
493
|
+
"./os/resolver-module": {
|
|
494
|
+
"types": "./dist/os/resolver/resolver.module.d.ts",
|
|
495
|
+
"default": "./dist/os/resolver/resolver.module.js"
|
|
496
|
+
},
|
|
497
|
+
"./os/instructions-module": {
|
|
498
|
+
"types": "./dist/os/instructions/instructions.module.d.ts",
|
|
499
|
+
"default": "./dist/os/instructions/instructions.module.js"
|
|
500
|
+
},
|
|
501
|
+
"./os/agent-module": {
|
|
502
|
+
"types": "./dist/os/agent/agent.module.d.ts",
|
|
503
|
+
"default": "./dist/os/agent/agent.module.js"
|
|
504
|
+
},
|
|
505
|
+
"./os/agent": {
|
|
506
|
+
"types": "./dist/os/agent/index.d.ts",
|
|
507
|
+
"default": "./dist/os/agent/index.js"
|
|
508
|
+
},
|
|
509
|
+
"./os/knowledge-module": {
|
|
510
|
+
"types": "./dist/os/knowledge/knowledge.module.d.ts",
|
|
511
|
+
"default": "./dist/os/knowledge/knowledge.module.js"
|
|
512
|
+
},
|
|
513
|
+
"./os/knowledge": {
|
|
514
|
+
"types": "./dist/os/knowledge/index.d.ts",
|
|
515
|
+
"default": "./dist/os/knowledge/index.js"
|
|
516
|
+
},
|
|
517
|
+
"./os/gate-module": {
|
|
518
|
+
"types": "./dist/os/gate/gate.module.d.ts",
|
|
519
|
+
"default": "./dist/os/gate/gate.module.js"
|
|
520
|
+
},
|
|
521
|
+
"./os/gate": {
|
|
522
|
+
"types": "./dist/os/gate/index.d.ts",
|
|
523
|
+
"default": "./dist/os/gate/index.js"
|
|
524
|
+
},
|
|
525
|
+
"./os/checks-module": {
|
|
526
|
+
"types": "./dist/os/checks/checks.module.d.ts",
|
|
527
|
+
"default": "./dist/os/checks/checks.module.js"
|
|
528
|
+
},
|
|
529
|
+
"./os/checks": {
|
|
530
|
+
"types": "./dist/os/checks/index.d.ts",
|
|
531
|
+
"default": "./dist/os/checks/index.js"
|
|
532
|
+
},
|
|
533
|
+
"./os/context-module": {
|
|
534
|
+
"types": "./dist/os/context/context.module.d.ts",
|
|
535
|
+
"default": "./dist/os/context/context.module.js"
|
|
536
|
+
},
|
|
537
|
+
"./os/context": {
|
|
538
|
+
"types": "./dist/os/context/index.d.ts",
|
|
539
|
+
"default": "./dist/os/context/index.js"
|
|
540
|
+
},
|
|
541
|
+
"./os/trajectory-module": {
|
|
542
|
+
"types": "./dist/os/trajectory/trajectory.module.d.ts",
|
|
543
|
+
"default": "./dist/os/trajectory/trajectory.module.js"
|
|
544
|
+
},
|
|
545
|
+
"./os/trajectory": {
|
|
546
|
+
"types": "./dist/os/trajectory/index.d.ts",
|
|
547
|
+
"default": "./dist/os/trajectory/index.js"
|
|
355
548
|
}
|
|
356
549
|
}
|
|
357
550
|
},
|
|
@@ -405,7 +405,8 @@ workspace:
|
|
|
405
405
|
if [ "$dirty" -eq 1 ]; then
|
|
406
406
|
echo -e "$output" | head -40
|
|
407
407
|
echo "---"
|
|
408
|
-
echo "Uncommitted changes detected. Commit
|
|
408
|
+
echo "Uncommitted changes detected. Commit session-attributed changes before"
|
|
409
|
+
echo "session end; leave files you did not produce untouched and report them."
|
|
409
410
|
exit 1
|
|
410
411
|
fi
|
|
411
412
|
exit 0
|
|
@@ -451,6 +452,7 @@ workspace:
|
|
|
451
452
|
from fo-session-retro's report.
|
|
452
453
|
Protocol steps:
|
|
453
454
|
1. Verify clean working trees — run: bash scripts/check-clean-trees.sh
|
|
455
|
+
Commit session-attributed changes; leave unattributed files untouched and report them.
|
|
454
456
|
2. Invoke fo-session-retro via the skill tool
|
|
455
457
|
3. The retro skill's report IS the session-end output
|
|
456
458
|
EOF
|
package/profiles/godot-game.yaml
CHANGED
|
@@ -882,7 +882,8 @@ workspace:
|
|
|
882
882
|
if [ "$dirty" -eq 1 ]; then
|
|
883
883
|
echo -e "$output" | head -40
|
|
884
884
|
echo "---"
|
|
885
|
-
echo "Uncommitted changes detected. Commit
|
|
885
|
+
echo "Uncommitted changes detected. Commit session-attributed changes before"
|
|
886
|
+
echo "session end; leave files you did not produce untouched and report them."
|
|
886
887
|
exit 1
|
|
887
888
|
fi
|
|
888
889
|
exit 0
|
|
@@ -928,6 +929,7 @@ workspace:
|
|
|
928
929
|
from fo-session-retro's report.
|
|
929
930
|
Protocol steps:
|
|
930
931
|
1. Verify clean working trees — run: bash scripts/check-clean-trees.sh
|
|
932
|
+
Commit session-attributed changes; leave unattributed files untouched and report them.
|
|
931
933
|
2. Invoke fo-session-retro via the skill tool
|
|
932
934
|
3. The retro skill's report IS the session-end output
|
|
933
935
|
EOF
|
package/profiles/knowledge.yaml
CHANGED
|
@@ -267,7 +267,8 @@ workspace:
|
|
|
267
267
|
if [ "$dirty" -eq 1 ]; then
|
|
268
268
|
echo -e "$output" | head -40
|
|
269
269
|
echo "---"
|
|
270
|
-
echo "Uncommitted changes detected. Commit
|
|
270
|
+
echo "Uncommitted changes detected. Commit session-attributed changes before"
|
|
271
|
+
echo "session end; leave files you did not produce untouched and report them."
|
|
271
272
|
exit 1
|
|
272
273
|
fi
|
|
273
274
|
exit 0
|
|
@@ -313,6 +314,7 @@ workspace:
|
|
|
313
314
|
from fo-session-retro's report.
|
|
314
315
|
Protocol steps:
|
|
315
316
|
1. Verify clean working trees — run: bash scripts/check-clean-trees.sh
|
|
317
|
+
Commit session-attributed changes; leave unattributed files untouched and report them.
|
|
316
318
|
2. Invoke fo-session-retro via the skill tool
|
|
317
319
|
3. The retro skill's report IS the session-end output
|
|
318
320
|
EOF
|
|
@@ -485,7 +485,8 @@ workspace:
|
|
|
485
485
|
if [ "$dirty" -eq 1 ]; then
|
|
486
486
|
echo -e "$output" | head -40
|
|
487
487
|
echo "---"
|
|
488
|
-
echo "Uncommitted changes detected. Commit
|
|
488
|
+
echo "Uncommitted changes detected. Commit session-attributed changes before"
|
|
489
|
+
echo "session end; leave files you did not produce untouched and report them."
|
|
489
490
|
exit 1
|
|
490
491
|
fi
|
|
491
492
|
exit 0
|
|
@@ -531,6 +532,7 @@ workspace:
|
|
|
531
532
|
from fo-session-retro's report.
|
|
532
533
|
Protocol steps:
|
|
533
534
|
1. Verify clean working trees — run: bash scripts/check-clean-trees.sh
|
|
535
|
+
Commit session-attributed changes; leave unattributed files untouched and report them.
|
|
534
536
|
2. Invoke fo-session-retro via the skill tool
|
|
535
537
|
3. The retro skill's report IS the session-end output
|
|
536
538
|
EOF
|
|
@@ -405,7 +405,8 @@ workspace:
|
|
|
405
405
|
if [ "$dirty" -eq 1 ]; then
|
|
406
406
|
echo -e "$output" | head -40
|
|
407
407
|
echo "---"
|
|
408
|
-
echo "Uncommitted changes detected. Commit
|
|
408
|
+
echo "Uncommitted changes detected. Commit session-attributed changes before"
|
|
409
|
+
echo "session end; leave files you did not produce untouched and report them."
|
|
409
410
|
exit 1
|
|
410
411
|
fi
|
|
411
412
|
exit 0
|
|
@@ -451,6 +452,7 @@ workspace:
|
|
|
451
452
|
from fo-session-retro's report.
|
|
452
453
|
Protocol steps:
|
|
453
454
|
1. Verify clean working trees — run: bash scripts/check-clean-trees.sh
|
|
455
|
+
Commit session-attributed changes; leave unattributed files untouched and report them.
|
|
454
456
|
2. Invoke fo-session-retro via the skill tool
|
|
455
457
|
3. The retro skill's report IS the session-end output
|
|
456
458
|
EOF
|
package/profiles/typescript.yaml
CHANGED
|
@@ -342,7 +342,8 @@ workspace:
|
|
|
342
342
|
if [ "$dirty" -eq 1 ]; then
|
|
343
343
|
echo -e "$output" | head -40
|
|
344
344
|
echo "---"
|
|
345
|
-
echo "Uncommitted changes detected. Commit
|
|
345
|
+
echo "Uncommitted changes detected. Commit session-attributed changes before"
|
|
346
|
+
echo "session end; leave files you did not produce untouched and report them."
|
|
346
347
|
exit 1
|
|
347
348
|
fi
|
|
348
349
|
exit 0
|
|
@@ -388,6 +389,7 @@ workspace:
|
|
|
388
389
|
from fo-session-retro's report.
|
|
389
390
|
Protocol steps:
|
|
390
391
|
1. Verify clean working trees — run: bash scripts/check-clean-trees.sh
|
|
392
|
+
Commit session-attributed changes; leave unattributed files untouched and report them.
|
|
391
393
|
2. Invoke fo-session-retro via the skill tool
|
|
392
394
|
3. The retro skill's report IS the session-end output
|
|
393
395
|
EOF
|
|
@@ -48,7 +48,7 @@ New automated tests need a concrete reason: a protected requirement, a reproduce
|
|
|
48
48
|
|
|
49
49
|
- **STANDARD** — ordinary local changes: relevant existing checks, build/type/static checks, and observed verification of the changed behavior.
|
|
50
50
|
- **HIGH** — security, access rights, contracts, data, migrations, critical integrations, significant external effects: additionally verify negative scenarios, boundaries, invariants, rollback, compatibility. Use independent verification where it genuinely reduces risk (e.g. clean-context review).
|
|
51
|
-
- **FORMAL** — only for important, stable, precisely specifiable properties where formalization cost is justified. Tool by task: Lean (math/inductive), Dafny (algorithm correctness), Verus (supported Rust), TLA+/model checking (protocols/concurrency), property/fuzz (broad input classes without full proof). Not installed globally, never mandatory for ordinary changes; record spec, assumptions, proof scope, tool version, and unverified runtime boundaries — a successful proof does not prove business intent or the whole system.
|
|
51
|
+
- **FORMAL** — only for important, stable, precisely specifiable properties where formalization cost is justified. Tool by task: Lean (math/inductive), Dafny (algorithm correctness), Verus (supported Rust), TLA+/model checking (protocols/concurrency), property/fuzz (broad input classes without full proof). Not installed globally, never mandatory for ordinary changes; record spec, assumptions, proof scope, tool version, and unverified runtime boundaries — a successful proof does not prove business intent or the whole system. Only a mechanical checker verdict (`proof.check` → `proved`, bound to a `forge/proof-spec@1` file) counts as formal-tier evidence — an agent-written argument, a random-sampling property test, or an unavailable checker never does.
|
|
52
52
|
|
|
53
53
|
## 8. Expectation sources
|
|
54
54
|
|
|
@@ -22,6 +22,8 @@ No pauses for recoverable tool errors. If a tool call fails with a recoverable e
|
|
|
22
22
|
|
|
23
23
|
Stage only the files this skill produces or modifies. Another agent may be working in a different session; `git add -A` or `git add .` is forbidden.
|
|
24
24
|
|
|
25
|
+
Never ask the operator whether to commit: session-attributed changes commit unconditionally; unattributed files are left untouched and reported, never prompted about.
|
|
26
|
+
|
|
25
27
|
## Pipeline reference
|
|
26
28
|
|
|
27
29
|
- **RFC pipeline**: create → audit → enhance → plan → implement (includes review → fix)
|
|
@@ -414,7 +416,9 @@ Mode trigger: collect/finalize activate only under an orchestrator run carrying
|
|
|
414
416
|
|
|
415
417
|
## Decision window
|
|
416
418
|
|
|
417
|
-
The decision window is the single scheduled operator interaction of a queue run — placed after maturation, before execution. It doubles as the batch acceptance act: `draft → accepted` transitions happen in the resolution phase that follows the window, so the operator signs off having seen every trade-off at once.
|
|
419
|
+
The decision window is the single scheduled operator interaction of a queue run — placed after maturation, before execution. **It fires only when the ledger carries at least one `open` entry** (parked entries included — they are arbitration the operator owes). When it fires, it doubles as the batch acceptance act: `draft → accepted` transitions happen in the resolution phase that follows the window, so the operator signs off having seen every trade-off at once.
|
|
420
|
+
|
|
421
|
+
**Empty agenda — no window, no question.** When maturation ends with zero `open` entries there is nothing to decide: the window is skipped and the run proceeds straight to the resolution phase. The orchestrator emits a one-line notice (e.g. `decision window — skipped, no open decisions`) and still renders `docs/queues/<id>.briefing.md` when the ledger exists — the resolved-by-inference rows are the run's durable decision record, disputable post-factum like any `auto-resolved` entry. Never substitute an "accept all for execution?" confirmation for the empty agenda — the operator's orchestrator invocation already carries the implement instruction and IS the acceptance authority for the `draft → accepted` transitions the resolution phase commits.
|
|
418
422
|
|
|
419
423
|
Window mechanics:
|
|
420
424
|
|
|
@@ -21,6 +21,14 @@ triggerPhrases: ["write tests for this code", "add unit tests", "add property-ba
|
|
|
21
21
|
|
|
22
22
|
Sweep batch 1: add Compass v2 headers to 45 SKILL.md files (purpose derived from frontmatter description). Fix non-skill-markdown exclusion to check filename not workspace-relative path (packages/AGENTS.md escaped it). Add .coverage to ignoredDirs.</item>
|
|
23
23
|
<item>RFC-1332: step 4 — reason-gated tests in fo-idea-implement, fo-add-tests, fo-fix</item>
|
|
24
|
+
<item>RFC-1440: fo-reproduce skill + pipeline wiring
|
|
25
|
+
|
|
26
|
+
New fo-reproduce skill (bounded 5-attempt reproduction loop, no-source-
|
|
27
|
+
modification boundary, verifier exit, honest inconclusive attempt log);
|
|
28
|
+
wired into fo-idea-implement defect path, fo-fix reproduce-first, fo-triage
|
|
29
|
+
verify step, fo-add-tests defect branch; AGENTS.md reproduction-first rule;
|
|
30
|
+
compass inventory regenerated.</item>
|
|
31
|
+
<item>RFC-1440: apply RFC-1440 review findings — frontmatter budgets, SKILL-17 ids, honest-exit routing</item>
|
|
24
32
|
</CHANGE_SUMMARY>
|
|
25
33
|
-->
|
|
26
34
|
|
|
@@ -220,7 +228,7 @@ Before writing tests, name the reason for each target:
|
|
|
220
228
|
|
|
221
229
|
- When the operator invoked this skill directly for named code, the request counts as `requirement` — record the operator's wording as the reason.
|
|
222
230
|
- Inside a pipeline, exactly one of `requirement <AC-N>`, `defect <ref>`, `invariant <ref>`, `regression <risk>` must apply; with no reason, write no test and say so in the report.
|
|
223
|
-
- A `defect` test must be shown to fail against the pre-fix commit
|
|
231
|
+
- A `defect` test is produced by `fo-reproduce` (reproduction-first): it must be shown to fail against the pre-fix commit via `ref(forge.yaml bindings.commands.verifyReproduction)` before it is committed under that reason.
|
|
224
232
|
- Commit messages that add test files carry `Test-Reason: <reason>` (and `Repro-Verified: <sha>` for defects).
|
|
225
233
|
|
|
226
234
|
## TDD mode
|
|
@@ -164,6 +164,7 @@ test("compareSemver is antisymmetric: compare(a, b) == -compare(b, a)", () => {
|
|
|
164
164
|
- **MUST** add `fast-check` as a dev dependency before writing PBT in a package.
|
|
165
165
|
- **MUST** place PBT in `*.pbt.test.ts` files (not in regular `*.test.ts` files).
|
|
166
166
|
- **MUST** use `fc.assert(fc.property(...))` or `fc.assert(fc.asyncProperty(...))` as the PBT idiom.
|
|
167
|
+
- **MAY** use `fc.asyncModelRun` model-based testing (a pure reference model plus generated command sequences against a real stateful protocol) as an accepted DNA-101 application for stateful machines — journals, resumable pipelines, sweep passes — where the oracle is model equivalence, not a pure-function property.
|
|
167
168
|
- **MUST** set a `numRuns` value when the default 100 is insufficient: `fc.assert(fc.property(...), { numRuns: 1000 })`.
|
|
168
169
|
- **MUST NOT** use PBT for impure functions, I/O-bound code, UI components, or build pipelines.
|
|
169
170
|
- **MUST NOT** replace existing example-based tests with PBT. PBT complements example-based tests.
|
|
@@ -23,6 +23,7 @@ triggerPhrases: ["manage Compass headers", "annotate source files with Compass",
|
|
|
23
23
|
<item>RFC-1097: sweep — SKILL.md headers + classification fixes
|
|
24
24
|
|
|
25
25
|
Sweep batch 1: add Compass v2 headers to 45 SKILL.md files (purpose derived from frontmatter description). Fix non-skill-markdown exclusion to check filename not workspace-relative path (packages/AGENTS.md escaped it). Add .coverage to ignoredDirs.</item>
|
|
26
|
+
<item>RFC-1390: close review findings on invariant binding machinery</item>
|
|
26
27
|
</CHANGE_SUMMARY>
|
|
27
28
|
-->
|
|
28
29
|
|
|
@@ -75,6 +76,7 @@ If the file has no `MODULE_CONTRACT` and no `CHANGE_SUMMARY` block:
|
|
|
75
76
|
4. Create a `CHANGE_SUMMARY` block with a single `<item>` carrying the governing RFC/ADR/ticket ID.
|
|
76
77
|
5. Insert the blocks at the top of the file in canonical order `MODULE_CONTRACT` → `KEY_DECISIONS` → `CHANGE_SUMMARY`, after any existing license/comment header but before imports.
|
|
77
78
|
6. Use `reference/comment-styles.md` to determine the correct comment syntax for the file extension.
|
|
79
|
+
7. If the file's `riskClass` is `high`, add at least one inline `@ai-invariant` comment in the file body using the tagged bound form (see "Invariants" below).
|
|
78
80
|
|
|
79
81
|
#### 2b. Update (file has headers but content has changed)
|
|
80
82
|
|
|
@@ -111,6 +113,22 @@ After processing all files:
|
|
|
111
113
|
2. If any violations are found, attempt to fix them automatically (missing `<non-goals>`, empty `<purpose>`, missing `KEY_DECISIONS` on medium/high-risk files, etc.).
|
|
112
114
|
3. Re-run `compass.validate` to confirm fixes.
|
|
113
115
|
4. If violations persist after 3 retry attempts, report them to the operator.
|
|
116
|
+
5. Run `compass.invariants.generate` to refresh the invariant index projection; a new unbound invariant fails `--shrink` — bind it or tag it before committing.
|
|
117
|
+
|
|
118
|
+
#### Invariants (high-risk files)
|
|
119
|
+
|
|
120
|
+
New `@ai-invariant` statements in `high`-risk files use the tagged bound form:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
@ai-invariant[INV-<scope>-<NN>]: <statement> (checked-by: <kind>:<ref>)
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
(the line lives inside a `//`/`/* */` comment — do not copy a literal `// @ai-invariant[…]` example into a scanned file, the invariant scanner will parse it)
|
|
127
|
+
|
|
128
|
+
- `<scope>` is a short lowercase-kebab domain word; `<NN>` is a 2–3 digit id unique workspace-wide (never reuse an id, even after the invariant is deleted — retired ids live in `docs/invariants.generated.yaml`).
|
|
129
|
+
- `(checked-by: …)` is the trailing parenthesised group of the statement; it may wrap onto consecutive comment lines. Binding kinds: `test:<file>` and `type:<file>` and `proof:<spec>` — the workspace-relative file must exist and contain the invariant id literal; `lint:<RULE-ID>` — the rule id must exist in `docs/validator-inventory.generated.yaml`.
|
|
130
|
+
- The binding is structural: it names the check that enforces the statement. Whether the check semantically enforces it stays a review concern.
|
|
131
|
+
- Legacy untagged `// @ai-invariant: …` lines are grandfathered through `docs/invariants.baseline.generated.yaml` (shrink-only) — do not add new untagged invariants in high-risk files.
|
|
114
132
|
|
|
115
133
|
### 4. Cleanup (optional, with `--cleanup` flag)
|
|
116
134
|
|
|
@@ -27,7 +27,7 @@ Blocks out of this order are a `COMPASS-ORDER-01` violation.
|
|
|
27
27
|
|
|
28
28
|
- `<purpose>` must be specific to this file, under 100 characters, and contain at least one file-derived token (filename stem segment, parent-directory segment for generic stems, or an exported symbol name). Boilerplate openers ("This file…", "Utility…", "TODO…") are `COMPASS-PURPOSE-01`; a purpose with no file-derived token is `COMPASS-PURPOSE-02`.
|
|
29
29
|
- `<non-goals>` must have at least one `<item>`.
|
|
30
|
-
- Do not include `@ai-invariant` lines in `MODULE_CONTRACT` — they are inline comments in the file body.
|
|
30
|
+
- Do not include `@ai-invariant` lines in `MODULE_CONTRACT` — they are inline comments in the file body. On `high`-risk files, write them in the tagged bound form: `// @ai-invariant[INV-<scope>-<NN>]: <statement> (checked-by: test:<file>|type:<file>|lint:<RULE-ID>|proof:<spec>)`.
|
|
31
31
|
|
|
32
32
|
## KEY_DECISIONS
|
|
33
33
|
|
|
@@ -51,6 +51,7 @@ Blocks out of this order are a `COMPASS-ORDER-01` violation.
|
|
|
51
51
|
```
|
|
52
52
|
<CHANGE_SUMMARY>
|
|
53
53
|
<item>RFC-1094: adopted v2 three-block contract.</item>
|
|
54
|
+
<item>RFC-1390: close review findings on invariant binding machinery</item>
|
|
54
55
|
<history>RFC-0348, RFC-0349, RFC-0538</history>
|
|
55
56
|
</CHANGE_SUMMARY>
|
|
56
57
|
```
|
|
@@ -73,7 +74,7 @@ The following legacy Compass blocks are forbidden and must be removed (`COMPASS-
|
|
|
73
74
|
- `MODULE_MAP`, `keywords`, `responsibilities`, `COMPASS_BLOCK` — removed by RFC-0348.
|
|
74
75
|
- `GRACE_MODULE_CONTRACT` — use `MODULE_CONTRACT` instead.
|
|
75
76
|
- `GRACE_CHANGE_SUMMARY` — use `CHANGE_SUMMARY` instead.
|
|
76
|
-
- `AI_INVARIANTS` — use inline `// @ai-invariant` comments instead.
|
|
77
|
+
- `AI_INVARIANTS` — use inline `// @ai-invariant` comments instead (tagged bound form on `high`-risk files).
|
|
77
78
|
- `COMPASS_AUDIT` — use the audit ledger via `compass.audit.record` instead.
|
|
78
79
|
|
|
79
80
|
If `compass.validate` reports a `COMPASS-FORBIDDEN-01` violation, remove the forbidden block and run the `fo-compass-annotate` skill to generate correct headers.
|