@warpgogol/forge 7.0.0 → 8.0.2
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 +24 -0
- package/bin/cli.js +6 -12
- package/bin/resolve-entry.js +24 -0
- package/dist/os/compass/comment-safety.d.ts +83 -0
- package/dist/os/compass/comment-safety.d.ts.map +1 -0
- package/dist/os/compass/comment-safety.js +305 -0
- package/dist/os/compass/comment-safety.js.map +1 -0
- package/dist/os/compass/compass.module.d.ts.map +1 -1
- package/dist/os/compass/compass.module.js +47 -4
- package/dist/os/compass/compass.module.js.map +1 -1
- package/dist/os/compass/handlers/compass-change-summary-handler.d.ts +2 -1
- package/dist/os/compass/handlers/compass-change-summary-handler.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-change-summary-handler.js +34 -10
- package/dist/os/compass/handlers/compass-change-summary-handler.js.map +1 -1
- package/dist/os/compass/handlers/compass-docs-scaffold.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-docs-scaffold.js +54 -17
- package/dist/os/compass/handlers/compass-docs-scaffold.js.map +1 -1
- package/dist/os/compass/handlers/compass-header-scaffold-handler.d.ts +14 -0
- package/dist/os/compass/handlers/compass-header-scaffold-handler.d.ts.map +1 -0
- package/dist/os/compass/handlers/compass-header-scaffold-handler.js +261 -0
- package/dist/os/compass/handlers/compass-header-scaffold-handler.js.map +1 -0
- package/dist/os/compass/handlers/compass-header-scaffold.d.ts +31 -0
- package/dist/os/compass/handlers/compass-header-scaffold.d.ts.map +1 -0
- package/dist/os/compass/handlers/compass-header-scaffold.js +739 -0
- package/dist/os/compass/handlers/compass-header-scaffold.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 +8 -4
- package/dist/os/compass/handlers/compass-inventory-handler.js.map +1 -1
- package/dist/os/compass/handlers/compass-inventory.d.ts +6 -0
- package/dist/os/compass/handlers/compass-inventory.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-inventory.js +28 -13
- package/dist/os/compass/handlers/compass-inventory.js.map +1 -1
- package/dist/os/compass/handlers/compass-migrate-handler.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-migrate-handler.js +12 -26
- package/dist/os/compass/handlers/compass-migrate-handler.js.map +1 -1
- package/dist/os/compass/handlers/compass-migrate.d.ts +15 -2
- package/dist/os/compass/handlers/compass-migrate.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-migrate.js +58 -20
- package/dist/os/compass/handlers/compass-migrate.js.map +1 -1
- package/dist/os/compass/handlers/git-revision.d.ts +10 -0
- package/dist/os/compass/handlers/git-revision.d.ts.map +1 -1
- package/dist/os/compass/handlers/git-revision.js +58 -4
- package/dist/os/compass/handlers/git-revision.js.map +1 -1
- package/dist/os/compass/handlers/summary-record.d.ts +20 -5
- package/dist/os/compass/handlers/summary-record.d.ts.map +1 -1
- package/dist/os/compass/handlers/summary-record.js +175 -44
- package/dist/os/compass/handlers/summary-record.js.map +1 -1
- package/dist/os/compass/index.d.ts +1 -0
- package/dist/os/compass/index.d.ts.map +1 -1
- package/dist/os/compass/index.js +2 -0
- package/dist/os/compass/index.js.map +1 -1
- package/dist/os/compass/policy.d.ts +9 -0
- package/dist/os/compass/policy.d.ts.map +1 -1
- package/dist/os/compass/policy.js +11 -2
- package/dist/os/compass/policy.js.map +1 -1
- package/dist/os/core/core.module.js +1 -1
- package/dist/os/core/handlers/package-health.d.ts.map +1 -1
- package/dist/os/core/handlers/package-health.js +1 -6
- package/dist/os/core/handlers/package-health.js.map +1 -1
- package/dist/os/queue/types.d.ts +2 -0
- package/dist/os/queue/types.d.ts.map +1 -1
- package/dist/os/queue/types.js +3 -1
- package/dist/os/queue/types.js.map +1 -1
- package/dist/os/rfc/acceptance.d.ts.map +1 -1
- package/dist/os/rfc/acceptance.js +51 -1
- package/dist/os/rfc/acceptance.js.map +1 -1
- package/dist/os/rfc/decision-log.d.ts.map +1 -1
- package/dist/os/rfc/decision-log.js +21 -3
- package/dist/os/rfc/decision-log.js.map +1 -1
- package/dist/os/rfc/dna-trace.d.ts +2 -0
- package/dist/os/rfc/dna-trace.d.ts.map +1 -1
- package/dist/os/rfc/dna-trace.js +13 -4
- package/dist/os/rfc/dna-trace.js.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp-origin.d.ts +37 -0
- package/dist/os/rfc/handlers/implement-stamp-origin.d.ts.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp-origin.js +118 -0
- package/dist/os/rfc/handlers/implement-stamp-origin.js.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp.d.ts +41 -1
- package/dist/os/rfc/handlers/implement-stamp.d.ts.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp.js +594 -81
- package/dist/os/rfc/handlers/implement-stamp.js.map +1 -1
- package/dist/os/rfc/handlers/rfc-evidence-sync.d.ts +42 -0
- package/dist/os/rfc/handlers/rfc-evidence-sync.d.ts.map +1 -0
- package/dist/os/rfc/handlers/rfc-evidence-sync.js +147 -0
- package/dist/os/rfc/handlers/rfc-evidence-sync.js.map +1 -0
- package/dist/os/rfc/handlers/validate-rules.d.ts +9 -1
- package/dist/os/rfc/handlers/validate-rules.d.ts.map +1 -1
- package/dist/os/rfc/handlers/validate-rules.js +60 -8
- package/dist/os/rfc/handlers/validate-rules.js.map +1 -1
- package/dist/os/rfc/reachable-symbol.d.ts +17 -0
- package/dist/os/rfc/reachable-symbol.d.ts.map +1 -0
- package/dist/os/rfc/reachable-symbol.js +376 -0
- package/dist/os/rfc/reachable-symbol.js.map +1 -0
- package/dist/os/rfc/rfc.module.d.ts.map +1 -1
- package/dist/os/rfc/rfc.module.js +89 -5
- package/dist/os/rfc/rfc.module.js.map +1 -1
- package/dist/os/rfc/types.d.ts +81 -12
- package/dist/os/rfc/types.d.ts.map +1 -1
- package/dist/os/rfc/types.js +15 -10
- package/dist/os/rfc/types.js.map +1 -1
- package/dist/os/rfc/verification-evidence.d.ts +10 -1
- package/dist/os/rfc/verification-evidence.d.ts.map +1 -1
- package/dist/os/rfc/verification-evidence.js +175 -10
- package/dist/os/rfc/verification-evidence.js.map +1 -1
- package/dist/os/rfc/verification-origin.d.ts +58 -0
- package/dist/os/rfc/verification-origin.d.ts.map +1 -0
- package/dist/os/rfc/verification-origin.js +346 -0
- package/dist/os/rfc/verification-origin.js.map +1 -0
- package/dist/os/rfc/verification-refresh.d.ts.map +1 -1
- package/dist/os/rfc/verification-refresh.js +11 -1
- package/dist/os/rfc/verification-refresh.js.map +1 -1
- package/dist/os/rfc/verify-workspace.d.ts +23 -0
- package/dist/os/rfc/verify-workspace.d.ts.map +1 -0
- package/dist/os/rfc/verify-workspace.js +278 -0
- package/dist/os/rfc/verify-workspace.js.map +1 -0
- package/dist/os/session/handlers/metrics-rfc.d.ts.map +1 -1
- package/dist/os/session/handlers/metrics-rfc.js +3 -0
- package/dist/os/session/handlers/metrics-rfc.js.map +1 -1
- package/dist/os/spec/spec-status.d.ts.map +1 -1
- package/dist/os/spec/spec-status.js +5 -23
- 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 +30 -9
- package/dist/os/spec/spec-validate.js.map +1 -1
- package/dist/os/workflow/handlers.d.ts +0 -4
- package/dist/os/workflow/handlers.d.ts.map +1 -1
- package/dist/os/workflow/handlers.js +9 -36
- package/dist/os/workflow/handlers.js.map +1 -1
- package/dist/os/workflow/index.d.ts +2 -2
- package/dist/os/workflow/index.d.ts.map +1 -1
- package/dist/os/workflow/index.js +1 -1
- package/dist/os/workflow/index.js.map +1 -1
- package/dist/os/workflow/types.d.ts +0 -19
- package/dist/os/workflow/types.d.ts.map +1 -1
- package/dist/os/workflow/types.js +0 -2
- package/dist/os/workflow/types.js.map +1 -1
- package/dist/os/workflow/workflow.module.d.ts.map +1 -1
- package/dist/os/workflow/workflow.module.js +6 -15
- package/dist/os/workflow/workflow.module.js.map +1 -1
- package/dist/src/config/forge-config.d.ts +5 -0
- package/dist/src/config/forge-config.d.ts.map +1 -1
- package/dist/src/config/forge-config.js +5 -2
- package/dist/src/config/forge-config.js.map +1 -1
- package/dist/src/onboarding/agents-generate.js +1 -1
- package/dist/src/onboarding/doctor.js +3 -3
- package/dist/src/onboarding/doctor.js.map +1 -1
- package/dist/src/onboarding/init.js +2 -2
- package/dist/src/onboarding/nested-agents-templates.js +1 -1
- package/dist/src/onboarding/prettierignore.js +1 -1
- package/dist/src/onboarding/upgrade.js +2 -2
- package/dist/src/onboarding/workspace-discovery.js +1 -1
- package/dist/src/profiles/profile-schema.d.ts +2 -0
- package/dist/src/profiles/profile-schema.d.ts.map +1 -1
- package/dist/src/profiles/profile-schema.js +1 -0
- package/dist/src/profiles/profile-schema.js.map +1 -1
- package/dist/src/profiles/stack-profile.d.ts +1 -0
- package/dist/src/profiles/stack-profile.d.ts.map +1 -1
- package/dist/src/types.d.ts +23 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +2 -1
- package/dist/src/types.js.map +1 -1
- package/docs/reference/cli.md +0 -1
- package/docs/reference/programmatic-api.md +1 -1
- package/os/adr/handlers/validate.test.ts +14 -0
- package/os/compass/comment-safety.ts +331 -0
- package/os/compass/compass.module.ts +50 -4
- package/os/compass/handlers/compass-change-summary-handler.ts +41 -11
- package/os/compass/handlers/compass-docs-scaffold.ts +59 -17
- package/os/compass/handlers/compass-game-extensions.test.ts +3 -7
- package/os/compass/handlers/compass-header-scaffold-handler.ts +352 -0
- package/os/compass/handlers/compass-header-scaffold.ts +847 -0
- package/os/compass/handlers/compass-inventory-handler.ts +9 -4
- package/os/compass/handlers/compass-inventory.ts +29 -13
- package/os/compass/handlers/compass-migrate-handler.ts +13 -27
- package/os/compass/handlers/compass-migrate.ts +77 -21
- package/os/compass/handlers/git-revision.ts +59 -4
- package/os/compass/handlers/resolve-scan-root-package.test.ts +14 -0
- package/os/compass/handlers/resolve-scan-root-workpiece.test.ts +14 -0
- package/os/compass/handlers/summary-record.ts +194 -41
- package/os/compass/handlers/tests/compass-audit-plan.test.ts +6 -0
- package/os/compass/handlers/tests/compass-audit-record.test.ts +6 -0
- package/os/compass/handlers/tests/compass-audit-validate.test.ts +6 -0
- package/os/compass/handlers/tests/compass-change-summary-handler.test.ts +131 -0
- package/os/compass/handlers/tests/compass-docs-validate.test.ts +6 -0
- package/os/compass/handlers/tests/compass-header-scaffold.test.ts +896 -0
- package/os/compass/handlers/tests/compass-ledger-scope.test.ts +6 -0
- package/os/compass/handlers/tests/compass-migrate.test.ts +87 -9
- package/os/compass/handlers/tests/compass-policy.test.ts +1 -1
- package/os/compass/handlers/tests/compass-text-safety.test.ts +271 -0
- package/os/compass/handlers/tests/compass-v2-contract.test.ts +52 -3
- package/os/compass/handlers/tests/summary-record.test.ts +324 -3
- package/os/compass/index.ts +15 -0
- package/os/compass/policy.ts +27 -2
- package/os/core/core.module.ts +1 -1
- package/os/core/handlers/invariant-engine.test.ts +3 -1
- package/os/core/handlers/note-frontmatter-validate.test.ts +6 -1
- package/os/core/handlers/note-link-validate.test.ts +6 -1
- package/os/core/handlers/note-orphan-detect.test.ts +6 -1
- package/os/core/handlers/package-health.test.ts +6 -0
- package/os/core/handlers/package-health.ts +1 -6
- package/os/mission/handlers/archive.test.ts +14 -0
- package/os/naming/naming-convention.test.ts +14 -0
- package/os/queue/decision-ledger.test.ts +27 -4
- package/os/queue/queue-validate.test.ts +14 -0
- package/os/queue/types.ts +3 -1
- package/os/rfc/acceptance-reachable.test.ts +146 -0
- package/os/rfc/acceptance.test.ts +25 -0
- package/os/rfc/acceptance.ts +51 -1
- package/os/rfc/decision-log.ts +22 -4
- package/os/rfc/dna-trace.ts +17 -5
- package/os/rfc/frontmatter-io.test.ts +14 -0
- package/os/rfc/handlers/implement-stamp-acceptance-verification.test.ts +81 -0
- package/os/rfc/handlers/implement-stamp-binding.test.ts +79 -0
- package/os/rfc/handlers/implement-stamp-origin.test.ts +132 -0
- package/os/rfc/handlers/implement-stamp-origin.ts +154 -0
- package/os/rfc/handlers/implement-stamp-stale.test.ts +20 -2
- package/os/rfc/handlers/implement-stamp.ts +714 -87
- package/os/rfc/handlers/lifecycle.test.ts +14 -0
- package/os/rfc/handlers/rfc-evidence-sync.ts +221 -0
- package/os/rfc/handlers/validate-rules-rfc0997.test.ts +14 -0
- package/os/rfc/handlers/validate-rules-rfc1006.test.ts +14 -0
- package/os/rfc/handlers/validate-rules-rfc1330.test.ts +120 -0
- package/os/rfc/handlers/validate-rules-rfc1334.test.ts +65 -0
- package/os/rfc/handlers/validate-rules.test.ts +14 -0
- package/os/rfc/handlers/validate-rules.ts +80 -7
- package/os/rfc/handlers/validate.test.ts +4 -3
- package/os/rfc/reachable-symbol.ts +441 -0
- package/os/rfc/rfc-0000-template.md +3 -0
- package/os/rfc/rfc-create-concurrent.test.ts +6 -0
- package/os/rfc/rfc-create-hint.test.ts +6 -0
- package/os/rfc/rfc-read-only-no-side-effects.test.ts +6 -0
- package/os/rfc/rfc.module.ts +95 -5
- package/os/rfc/types.ts +106 -12
- package/os/rfc/verification-emit-check.test.ts +14 -0
- package/os/rfc/verification-emit-freshness.test.ts +415 -0
- package/os/rfc/verification-emit.test.ts +14 -0
- package/os/rfc/verification-evidence.ts +230 -10
- package/os/rfc/verification-normalize.test.ts +14 -0
- package/os/rfc/verification-origin.test.ts +236 -0
- package/os/rfc/verification-origin.ts +417 -0
- package/os/rfc/verification-refresh.test.ts +14 -0
- package/os/rfc/verification-refresh.ts +12 -1
- package/os/rfc/verifier/rfc-1333/imp12-binding.acceptance.test.ts +78 -0
- package/os/rfc/verifier/rfc-1333/imp12-gate.acceptance.test.ts +81 -0
- package/os/rfc/verifier/rfc-1333/skills-and-types.acceptance.test.ts +50 -0
- package/os/rfc/verifier/rfc-1333/verify-workspace.acceptance.test.ts +103 -0
- package/os/rfc/verify-workspace.test.ts +122 -0
- package/os/rfc/verify-workspace.ts +342 -0
- package/os/session/handlers/metrics-rfc.ts +3 -0
- package/os/spec/spec-status.test.ts +130 -0
- package/os/spec/spec-status.ts +5 -18
- package/os/spec/spec-validate.test.ts +76 -1
- package/os/spec/spec-validate.ts +26 -7
- package/os/workflow/handlers.ts +8 -42
- package/os/workflow/index.ts +1 -4
- package/os/workflow/types.ts +0 -22
- package/os/workflow/workflow.module.ts +6 -16
- package/package.json +1 -1
- package/skills/_shared/agent-operating-model.md +1 -1
- package/skills/_shared/fo-pipeline-conventions.md +1 -0
- package/skills/fo/fo-add-tests/SKILL.md +14 -0
- package/skills/fo/fo-fix/SKILL.md +2 -1
- package/skills/fo/fo-handoff/SKILL.md +1 -1
- package/skills/fo/fo-idea-create-rfc/acceptance-criteria-standard.md +8 -0
- package/skills/fo/fo-idea-i-just-want-to-see-the-result/SKILL.md +4 -2
- package/skills/fo/fo-idea-implement/SKILL.md +68 -53
- package/skills/fo/fo-idea-plan/SKILL.md +3 -1
- package/skills/fo/fo-review/SKILL.md +12 -0
- package/skills/fo/fo-session-save/learned-principles.md +13 -0
- package/skills/fo/fo-step-commit/SKILL.md +1 -1
- package/src/bin-entry.test.ts +37 -0
- package/src/compass/contract-registry.test.ts +14 -0
- package/src/compass/types.test.ts +14 -0
- package/src/config/__tests__/resolve-terminology.test.ts +14 -0
- package/src/config/forge-config.test.ts +14 -0
- package/src/config/forge-config.ts +7 -2
- package/src/forge-module.test.ts +14 -0
- package/src/knowledge/__tests__/promote.test.ts +14 -0
- package/src/knowledge/__tests__/serialize.test.ts +14 -0
- package/src/knowledge/__tests__/sync.test.ts +4 -1
- package/src/knowledge/budgets.test.ts +14 -0
- package/src/knowledge/compact.test.ts +14 -0
- package/src/knowledge/parse.test.ts +14 -0
- package/src/knowledge/schema.test.ts +14 -0
- package/src/migration-adapters/__tests__/ignored-files.test.ts +14 -0
- package/src/migration-adapters/__tests__/registry.test.ts +14 -0
- package/src/migration-adapters/__tests__/types.test.ts +14 -0
- package/src/onboarding/__tests__/workspace-discovery.test.ts +14 -0
- package/src/onboarding/agents-generate.ts +1 -1
- package/src/onboarding/compass-docs/semantic-layer-block.test.ts +6 -0
- package/src/onboarding/create.test.ts +14 -0
- package/src/onboarding/doctor-token-check.test.ts +3 -0
- package/src/onboarding/doctor.test.ts +14 -0
- package/src/onboarding/doctor.ts +3 -3
- package/src/onboarding/init.test.ts +14 -0
- package/src/onboarding/init.ts +2 -2
- package/src/onboarding/nested-agents-templates.ts +1 -1
- package/src/onboarding/prettierignore.ts +1 -1
- package/src/onboarding/scaffold.test.ts +14 -0
- package/src/onboarding/site-workshop-profile.test.ts +3 -0
- package/src/onboarding/upgrade.test.ts +14 -0
- package/src/onboarding/upgrade.ts +2 -2
- package/src/onboarding/workspace-discovery.ts +1 -1
- package/src/pipeline-status.test.ts +14 -0
- package/src/plugin/forge-plugin-manifest.test.ts +14 -0
- package/src/profiles/__tests__/profile-schema.test.ts +14 -0
- package/src/profiles/__tests__/stack-profile.test.ts +14 -0
- package/src/profiles/__tests__/terminology-utils.test.ts +14 -0
- package/src/profiles/profile-schema.ts +1 -0
- package/src/tests/acceptance-criteria.test.ts +14 -0
- package/src/tests/acceptance-probe-kinds.test.ts +14 -0
- package/src/tests/adr-implement-stamp.test.ts +14 -0
- package/src/tests/agents-generate-domain.test.ts +3 -0
- package/src/tests/agents-generate.test.ts +3 -0
- package/src/tests/bindings-schema.test.ts +2 -0
- package/src/tests/budgets.test.ts +14 -0
- package/src/tests/compact.test.ts +14 -0
- package/src/tests/compass-docs-flag.test.ts +6 -0
- package/src/tests/compass-docs-scaffold.test.ts +6 -0
- package/src/tests/compass-docs-validate-scope.test.ts +6 -0
- package/src/tests/contract-registry.test.ts +14 -0
- package/src/tests/create.test.ts +3 -0
- package/src/tests/discover-pack-skills.test.ts +14 -0
- package/src/tests/doctor-autonomy.test.ts +3 -0
- package/src/tests/doctor-bindings.test.ts +6 -1
- package/src/tests/doctor-dist-freshness.test.ts +26 -2
- package/src/tests/doctor-domain.test.ts +6 -1
- package/src/tests/doctor-fix.test.ts +3 -0
- package/src/tests/doctor-nested-agents.test.ts +3 -0
- package/src/tests/doctor-profile-id-known.test.ts +3 -0
- package/src/tests/doctor-skills-unmanaged.test.ts +3 -0
- package/src/tests/doctor-version-sync.test.ts +4 -1
- package/src/tests/editable-generated-region.test.ts +6 -3
- package/src/tests/exploration-handlers.test.ts +14 -0
- package/src/tests/file-size-lint.test.ts +6 -1
- package/src/tests/forge-autonomy-validate.test.ts +3 -1
- package/src/tests/forge-config.test.ts +6 -1
- package/src/tests/forge-validate-compass-docs.test.ts +6 -0
- package/src/tests/fs-atomic.test.ts +14 -0
- package/src/tests/fs.test.ts +14 -0
- package/src/tests/generated-marker.test.ts +14 -0
- package/src/tests/hash.test.ts +14 -0
- package/src/tests/implement-stamp.test.ts +476 -10
- package/src/tests/init-bindings.test.ts +6 -1
- package/src/tests/knowledge-parse.test.ts +14 -0
- package/src/tests/knowledge-pbt.test.ts +14 -0
- package/src/tests/markdown-table.test.ts +6 -3
- package/src/tests/memory-compact.test.ts +3 -0
- package/src/tests/memory-scaffold.test.ts +6 -1
- package/src/tests/metrics-rfc-1053.test.ts +14 -0
- package/src/tests/migration-adapters.test.ts +3 -0
- package/src/tests/package-files.test.ts +4 -1
- package/src/tests/package-health-lint-surface.test.ts +3 -0
- package/src/tests/pinned-check.test.ts +14 -0
- package/src/tests/pinned-init.test.ts +14 -0
- package/src/tests/pinned-validate.test.ts +14 -0
- package/src/tests/plugin-manifest.test.ts +14 -0
- package/src/tests/prettierignore-manage.test.ts +3 -0
- package/src/tests/profile-schema.test.ts +6 -1
- package/src/tests/profile-validate.test.ts +6 -1
- package/src/tests/program-lease.test.ts +3 -0
- package/src/tests/program-paths-extended.test.ts +3 -0
- package/src/tests/program-paths.test.ts +3 -0
- package/src/tests/program-property.test.ts +3 -0
- package/src/tests/program-schemas.test.ts +3 -0
- package/src/tests/program-spec-node.test.ts +3 -0
- package/src/tests/promote.test.ts +14 -0
- package/src/tests/public-surface.test.ts +6 -1
- package/src/tests/registry.test.ts +14 -0
- package/src/tests/rfc-evidence-sync.test.ts +347 -0
- package/src/tests/rfc-implement-stamp-governance.test.ts +403 -0
- package/src/tests/scaffold-project.test.ts +3 -0
- package/src/tests/session-handlers.test.ts +14 -0
- package/src/tests/session-pbt.test.ts +14 -0
- package/src/tests/skill-agents-sync.test.ts +3 -4
- package/src/tests/skill-schema.test.ts +14 -0
- package/src/tests/skill-sync-marker.test.ts +3 -0
- package/src/tests/skill-validate-knowledge.test.ts +14 -0
- package/src/tests/skill-validate.test.ts +14 -0
- package/src/tests/stack-profile.test.ts +6 -1
- package/src/tests/string-utils.test.ts +14 -0
- package/src/tests/upgrade.test.ts +6 -1
- package/src/tests/werkstatt-lock.test.ts +14 -0
- package/src/tests/workspace-discovery-domain.test.ts +6 -1
- package/src/tests/workspace-discovery.test.ts +6 -1
- package/src/types.test.ts +14 -0
- package/src/types.ts +30 -1
- package/src/utils/__tests__/fs-idempotent.test.ts +17 -0
- package/src/utils/__tests__/fs-trash.test.ts +17 -0
- package/src/utils/fs-atomic.test.ts +17 -0
- package/src/utils/fs-trash-sync.test.ts +17 -0
- package/src/utils/fs.test.ts +17 -0
- package/src/utils/generated-marker.test.ts +17 -0
- package/src/utils/hash.test.ts +17 -0
- package/src/utils/string-utils.test.ts +17 -0
- package/src/validators/__tests__/note-orphan-detect.test.ts +14 -0
|
@@ -20,7 +20,7 @@ triggerPhrases: ["create a handoff document", "compact conversation for next age
|
|
|
20
20
|
<item>RFC-1097: sweep — SKILL.md headers + classification fixes
|
|
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
|
-
<item>
|
|
23
|
+
<item>RFC-1154: commit references resolve by project type — ecosystem.commit where registered, plain git commit in forge workshops</item>
|
|
24
24
|
</CHANGE_SUMMARY>
|
|
25
25
|
-->
|
|
26
26
|
|
|
@@ -35,6 +35,14 @@ A criterion is a _falsifiable claim about an observable artifact_, not a descrip
|
|
|
35
35
|
|
|
36
36
|
**Self-test before submitting:** hand the criteria set to a hostile reviewer who has _only_ the repo and a shell. If they cannot verify every box without talking to you, the spec is prose, not a spec.
|
|
37
37
|
|
|
38
|
+
## Behavioral criteria need execution probes
|
|
39
|
+
|
|
40
|
+
A criterion in WHEN or IF form describes behavior; bind it to a probe that executes something (`test`, `run`, or `page`). A criterion bound only to presence probes — `file-exists`, `command-registered`, or `file-contains`/`json-schema` over a non-document path — fails V-44. Presence probes stay correct for invariant-form `THE … SHALL` criteria (a type is exported, a rule id is declared) and for document targets. Declare `expectationSource:` honestly: the toolchain derives the origin from git history and rejects declarations it contradicts — tests written during implementation are `self`.
|
|
41
|
+
|
|
42
|
+
## Structural wiring needs a reachable probe
|
|
43
|
+
|
|
44
|
+
Deliverables that are new exported modules or commands get a `probe: reachable` (symbol or command mode) bound to an invariant-form criterion (for example "THE command SHALL be reachable from a pipeline or declared coverage").
|
|
45
|
+
|
|
38
46
|
## Phase separation (RFC-1006)
|
|
39
47
|
|
|
40
48
|
RFCs have two phases of criteria:
|
|
@@ -249,7 +249,9 @@ This fallback ensures review and fix are never skipped, even if `fo-idea-impleme
|
|
|
249
249
|
|
|
250
250
|
### 3. Report and stop
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
**Terminal gate (MANDATORY, before any summary):** run `queue.validate --file <manifest>` and read the derived per-item status. The summary may only report items the validator derives as `implemented` or `skipped` — plus items the batch itself recorded as parked/blocked (ledger `parked: true` or the in-session `blocked` report language). A derived `in-progress` means the item is NOT done: return to Phase 4 instead of reporting. Never derive "done" from commits, passing tests, or a continuation summary — the validator's derivation is the single source of truth. (Retro 2026-10-17: a batch reported all four items implemented while every one of them still needed step 4.8 — `status: accepted`, unchecked criteria, stale envelopes — and only this gate caught it.)
|
|
253
|
+
|
|
254
|
+
After the gate passes, present a single summary in `aiLanguage`. **Translate all labels and headings to `aiLanguage`** — the template below is structural only. Only identifiers (RFC-XXXX, ADR-XXXX, file paths) stay untranslated.
|
|
253
255
|
|
|
254
256
|
```
|
|
255
257
|
## <Pipeline Summary in aiLanguage>
|
|
@@ -278,7 +280,7 @@ If the session was interrupted (agent stopped, context limit, crash, checkpoint
|
|
|
278
280
|
- TODO list with steps like "Step N: ..." or "implement: RFC-XXXX step N" — these are implementation steps from the plan phase, meaning the pipeline was in step 4 (implement).
|
|
279
281
|
- Git log showing `audit:`, `enhance:`, `plan:`, `implement:` commits for the same RFC/ADR — confirming pipeline progress.
|
|
280
282
|
- If any of these are found, this skill IS the active pipeline — resume it, do not start a new one.
|
|
281
|
-
2. **Detect progress** —
|
|
283
|
+
2. **Detect progress** — first run `queue.validate --file <manifest>`; its derived per-item status (`implemented`/`skipped`/`in-progress` + open/parked decision counts) is the authoritative resume point. Then corroborate with artifacts:
|
|
282
284
|
- Document exists in `docs/rfcs/` or `docs/adrs/` (idea creation done)
|
|
283
285
|
- Audit report in `docs/audits/audit-rfc-XXXX-*.md`
|
|
284
286
|
- `enhancedAt` in the RFC frontmatter
|
|
@@ -20,25 +20,12 @@ triggerPhrases: ["implement this RFC", "execute the implementation plan", "reali
|
|
|
20
20
|
</non-goals>
|
|
21
21
|
</MODULE_CONTRACT>
|
|
22
22
|
<CHANGE_SUMMARY>
|
|
23
|
-
<item>RFC-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<item>RFC-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<item>RFC-1224: preserve operator forge.yaml content on upgrade, promote adrImplementStamp binding</item>
|
|
30
|
-
<item>RFC-1250: review wave — QUEUE-07 gates un-parked opens only, ledger binding checks, fail-closed loader
|
|
31
|
-
|
|
32
|
-
REVIEW-RFC-1250-01 findings: QUEUE-07 no longer fires on parked entries
|
|
33
|
-
(the park is the containment — a parked queue stays resumable and the
|
|
34
|
-
decision window arbitrates it); loader fails open only on ENOENT —
|
|
35
|
-
other read errors are QUEUE-01; ledger gains queue/id-stem binding
|
|
36
|
-
(QUEUE-02), Q-N uniqueness (QUEUE-05), and QUEUE-08 hygiene warnings
|
|
37
|
-
(missing answers, foreign doc ids); next excludes QUEUE-07-blocked
|
|
38
|
-
items; top-level decision totals added. Orchestrator pre-flight treats
|
|
39
|
-
QUEUE-07 as the window agenda — structural errors still stop the batch;
|
|
40
|
-
maturation skips parked/deferred items; uncovered imperative ask sites
|
|
41
|
-
gain collect riders (ADR code-trace, NC markers, audit-verdict guard).</item>
|
|
23
|
+
<item>RFC-1317: unblock AC-7 — repair pre-existing fo-idea-implement SKILL-11/SKILL-17 violations (drop hardcoded werkstatt run literal + internal RFC ids), sync .agents copy</item>
|
|
24
|
+
<item>RFC-1322: step 5 — prescribe --check-criteria stamp + single-commit post-shape</item>
|
|
25
|
+
<item>RFC-1332: step 1 — verifyReproduction binding key; drop platform ids from pipeline skill text (SKILL-17)</item>
|
|
26
|
+
<item>RFC-1332: step 4 — reason-gated tests in fo-idea-implement, fo-add-tests, fo-fix</item>
|
|
27
|
+
<item>RFC-1333: step 4 — acceptance verification mode in fo-review, step 4.4b in fo-idea-implement, RFC-IMP-12 docs</item>
|
|
28
|
+
<history>RFC-1097, RFC-1224, RFC-1250, RFC-1310</history>
|
|
42
29
|
</CHANGE_SUMMARY>
|
|
43
30
|
-->
|
|
44
31
|
|
|
@@ -117,16 +104,19 @@ Execute the plan's step sequence in order. For each step:
|
|
|
117
104
|
|
|
118
105
|
1. **Execute** the agent actions described in the step.
|
|
119
106
|
2. **Validate** — run the step's validation command (lightweight only: `rfc.validate`, type checks, unit tests on touched files). Do **not** run heavy checks (`root build`, `build:check`, `astro:check`) during implementation — they run only after all steps are complete.
|
|
120
|
-
3. **Commit** after each step or phase that produces a coherent, complete unit of work:
|
|
107
|
+
3. **Commit** after each step or phase that produces a coherent, complete unit of work — always through `ecosystem.commit` with the RFC id pre-baked into the `--rfc` flag (a governed id in the subject without the flag fails the commit-parity gate COMMIT-GOV-01, and the implementation commit needs the `X-RFC` trailer for the STAMP-GOV-01 provenance check):
|
|
121
108
|
|
|
122
109
|
> Commands below assume RTK is installed. To check, run `rtk --version` (this is the detection command — it is not prefixed with `rtk` because it IS an `rtk` command). If `rtk --version` fails, RTK is not installed — run all commands without the `rtk` prefix.
|
|
123
110
|
|
|
124
|
-
```
|
|
125
|
-
|
|
111
|
+
```sh
|
|
112
|
+
# invoked through the project's command runner — see fo-step-commit
|
|
113
|
+
ecosystem.commit --rfc RFC-XXXX --files <paths> --message "implement: RFC-XXXX step N — <step title>
|
|
126
114
|
|
|
127
|
-
<one-line description of what was done in this step>.
|
|
115
|
+
<one-line description of what was done in this step>."
|
|
128
116
|
```
|
|
129
117
|
|
|
118
|
+
For ADR work substitute `--adr ADR-XXXX`. A conversational id mention that must NOT declare governance (e.g. "revert an earlier RFC's behavior") passes `--allow-unlinked` instead — never drop the flag silently.
|
|
119
|
+
|
|
130
120
|
Stage only the files touched by this step. Do not stage unrelated changes — another agent may be working in a different session.
|
|
131
121
|
|
|
132
122
|
**Implementation principles:**
|
|
@@ -143,9 +133,23 @@ Stage only the files touched by this step. Do not stage unrelated changes — an
|
|
|
143
133
|
- **Compass scaffolding.** New non-trivial source files in `apps/` or `packages/` must carry `MODULE_CONTRACT` and `CHANGE_SUMMARY` scaffolding. Check the project's invariants file for the canonical Compass markup rule.
|
|
144
134
|
- **Compass terminology.** Use Compass (not GRACE) in all new code, documentation, and log messages.
|
|
145
135
|
|
|
146
|
-
#### 4.3b.
|
|
136
|
+
#### 4.3b. Add tests only with a reason
|
|
137
|
+
|
|
138
|
+
After implementing each plan step, add a test only when it has one of the four reasons below. Tests are written for **agents**, not humans — see `fo-add-tests` for the full process and decision tree.
|
|
139
|
+
|
|
140
|
+
**Reason gate.** Decide per change whether a new automated test is warranted. Exactly one named reason allows it:
|
|
141
|
+
|
|
142
|
+
- `requirement <AC-N>` — the test protects an acceptance criterion of the document being implemented;
|
|
143
|
+
- `defect <ref>` — the test reproduces a defect (review finding id, issue file, failing-log reference);
|
|
144
|
+
- `invariant <ref>` — the test guards a significant invariant (DNA entry, `@ai-invariant` file, or a pure function the property-based-test rule covers);
|
|
145
|
+
- `regression <risk>` — a named, concrete regression risk.
|
|
146
|
+
|
|
147
|
+
No reason → no new test: run the existing suite and the document's probes instead. If the adjacency check flags a new source file, add its inline exemption with the reason (`// test-adjacency: exempt — no test reason: <why>`) rather than a stub test.
|
|
148
|
+
|
|
149
|
+
For `defect`: write the test, then run `ref(forge.yaml bindings.commands.verifyReproduction)` with `{test}` = the test file and `{sha}` = the pre-fix commit. Only a `reproduced` verdict lets the test be committed under this reason; `not-reproduced` means the test does not capture the defect — rewrite it; `inconclusive` means it cannot run on the old code — restructure it against the old public surface or change the reason. Without the binding, record the observed red run in the commit body and report `Degraded: commands.verifyReproduction`.
|
|
150
|
+
|
|
151
|
+
Commits that add test files carry `Test-Reason: <reason>` (one line per file, or one shared line), plus `Repro-Verified: <pre-fix-sha>` for defect reasons.
|
|
147
152
|
|
|
148
|
-
After implementing each plan step that produces or modifies code, write tests for the new behavior. Tests are written for **agents**, not humans — see `fo-add-tests` for the full process and decision tree.
|
|
149
153
|
|
|
150
154
|
**Principles:**
|
|
151
155
|
|
|
@@ -189,6 +193,17 @@ Use the `packagesImpacted` and `appsImpacted` frontmatter lists to determine whi
|
|
|
189
193
|
|
|
190
194
|
**Do not run a full root `root build` or `turbo run build`.** The success criterion is that all impacted workspaces pass their scoped checks, not that the entire ecosystem builds. See root AGENTS.md §Build verification discipline.
|
|
191
195
|
|
|
196
|
+
#### 4.4b. Independent acceptance verification
|
|
197
|
+
|
|
198
|
+
Only when the document declares `verificationTier: high`. Run after the implementation is committed and heavy checks pass:
|
|
199
|
+
|
|
200
|
+
1. `rfc.verify.workspace --id RFC-XXXX --candidate <committed-sha>` — a git-free export with your in-range tests and the document's plan/review/session files stripped.
|
|
201
|
+
2. Dispatch `fo-review` in acceptance verification mode on that export (fresh clean-context subagent, artifacts only — never your narrative).
|
|
202
|
+
3. Persist the report the verifier returns; triage each counterexample `confirmed` or `disputed` with a one-line reason.
|
|
203
|
+
4. For every confirmed counterexample: fix the code, then commit the verifier's minimized check **verbatim** (only location/imports may change) as a regression test together with its `probe: test` binding in the document's `acceptance:` block, in a separate commit carrying `X-Expectation-Origin: independent-verifier` and `X-Verifier-Report: <report path>`. Later edits by you to that file make it `self` again.
|
|
204
|
+
5. Disputed counterexamples go to the decision ledger for the operator. Repeat with a fresh verifier at most two fix rounds; a third failure parks the item.
|
|
205
|
+
6. Stamping requires a committed `verdict: pass`, `isolation: subagent` report whose candidate is followed only by verifier-trailer or docs commits.
|
|
206
|
+
|
|
192
207
|
#### 4.5. Fix errors
|
|
193
208
|
|
|
194
209
|
If any check in step 4.4 fails, fix every error:
|
|
@@ -218,56 +233,42 @@ Read the RFC's `## Acceptance criteria` section. For each checkbox:
|
|
|
218
233
|
1. **Verify the criterion is met semantically** — check the code does what the criterion says, run the relevant command, or inspect the artifact. Mechanical existence (command registered, test passes) is NOT sufficient. The criterion must describe observable behavior that the RFC defines, not just that a command exists.
|
|
219
234
|
2. **Check for stubs** — if the code contains TODO, stub, not-implemented, or placeholder logic in the path the criterion covers, the criterion is NOT met. Implement the real logic before marking it.
|
|
220
235
|
3. **If a criterion is not met**, implement the missing work, commit it, and re-verify.
|
|
221
|
-
4. **Annotate every
|
|
236
|
+
4. **Annotate every criterion with inline evidence** — add `(evidence: ...)` to each `## Acceptance criteria` line, pointing to the _checking mechanism_, not just the artifact. Prefer `probe:AC-N` or `test: path/to/file.test.ts`, then `file:line`. This is enforced by the V-27 evidence discipline. **Leave the box unchecked** — `rfc.implement.stamp --check-criteria` flips evidenced `[ ]` lines itself in the same atomic write as the frontmatter mutation. The annotation grammar the stamp resolves is exactly `test:<path>`, `file:<path>`, `<path>:<line>` (path must exist) and `probe:AC-N` (a probe bound to AC-N must pass in the evidence envelope); any other form — free prose, `file:` prose combos, unbound probe refs — aborts with STAMP-CHECK-01.
|
|
222
237
|
5. **If a criterion cannot be met** (e.g., requires an external dependency not yet available, requires a pilot that is not registered), do NOT mark it `[x]` and do NOT stamp `implemented`. Instead, split the deferred work into a follow-up RFC via `rfc.supersede.propose`. An RFC with unchecked `[ ]` criteria cannot transition to `implemented` — this is enforced by V-26.
|
|
223
238
|
6. **Ensure `reviewers` is non-empty** — `rfc.validate` enforces V-25: implemented RFCs with an empty `reviewers` field fail validation. Add at least one reviewer (e.g. `human:<name>`) before stamping `implemented`.
|
|
224
239
|
7. **Check document readiness** — if the RFC has a `## Document readiness` section, verify every `DR-N` checkbox is checked `[x]`. Unchecked `DR-N` items block `accepted`/`implemented` status via V-38. Document readiness criteria cover document quality (sections present, risks described, alternatives considered), not system behavior — they are checked by inspecting the RFC itself, not by running code.
|
|
225
240
|
|
|
226
|
-
Do not proceed to step 4.7 until every
|
|
241
|
+
Do not proceed to step 4.7 until every criterion is verified met and carries a resolvable `(evidence: ...)` annotation, and every document readiness checkbox is checked.
|
|
227
242
|
|
|
228
|
-
#### 4.7.
|
|
243
|
+
#### 4.7. Acceptance probes and evidence envelope
|
|
229
244
|
|
|
230
|
-
If the RFC declares `acceptance:` probes in frontmatter:
|
|
245
|
+
If the RFC declares `acceptance:` probes in frontmatter, sanity-run them once before stamping:
|
|
231
246
|
|
|
232
247
|
```sh
|
|
233
248
|
ref(forge.yaml bindings.commands.validateRfc) --acceptance.run --id RFC-XXXX
|
|
234
249
|
```
|
|
235
250
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
```sh
|
|
239
|
-
ref(forge.yaml bindings.commands.validateRfc) --verification.emit --id RFC-XXXX
|
|
240
|
-
```
|
|
251
|
+
The **evidence envelope is NOT emitted or committed manually** — `rfc.implement.stamp --check-criteria` refreshes a missing/malformed/stale envelope in-process on the committed bytes (emit-if-needed) and re-emits it after the mutation so the committed envelope always describes the stamped file. No `rfc.verification.emit` step, no evidence commit.
|
|
241
252
|
|
|
242
253
|
**Note:** If acceptance probes are commented out (`# acceptance:`) in the RFC frontmatter, `rfc.verification.emit` silently skips creating an evidence file (`filesModified: []`, zero errors). This is expected behavior — RFCs with commented-out probes get no evidence file, and `rfc.implement.stamp` still works without it.
|
|
243
254
|
|
|
244
|
-
Commit the evidence file:
|
|
245
|
-
|
|
246
|
-
```txt
|
|
247
|
-
evidence: RFC-XXXX verification artifact
|
|
248
|
-
|
|
249
|
-
Emit per-RFC verification evidence for RFC-XXXX implementation.
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
Stage `docs/rfcs/verification/rfc-xxxx.generated.json`.
|
|
253
|
-
|
|
254
255
|
#### 4.8. Stamp implemented
|
|
255
256
|
|
|
256
257
|
Transition the RFC to `implemented` using the `rfc.implement.stamp` command. Direct edits to `status`, `implementedAt`, and `updatedAt` are prohibited for all actors.
|
|
257
258
|
|
|
258
|
-
1. Ensure the working tree is clean (all implementation changes committed).
|
|
259
|
+
1. Ensure the working tree is clean (all implementation changes committed — including the RFC file itself carrying the verified, annotated, still-unchecked criteria).
|
|
259
260
|
2. Identify the implementation commit SHA — use the **first** `implement:` commit (the commit where implementation began), not the latest fix or documentation commit. Find it via `git log --oneline` and locate the first commit with an `implement:` prefix after the `plan:` or `rfc: accept` commit.
|
|
260
|
-
3. Run the stamp command:
|
|
261
|
+
3. Run the stamp command **with `--check-criteria`** (the default invocation; the flag auto-checks evidenced criteria, refreshes a missing/stale envelope in-process, and lands flips + frontmatter in one atomic write):
|
|
261
262
|
|
|
262
263
|
```sh
|
|
263
|
-
ref(forge.yaml bindings.commands.implementStamp) --id RFC-XXXX --implementation-commit <sha>
|
|
264
|
+
ref(forge.yaml bindings.commands.implementStamp) --id RFC-XXXX --implementation-commit <sha> --check-criteria
|
|
264
265
|
```
|
|
265
266
|
|
|
266
|
-
The command atomically validates all preconditions (accepted status, checked+evidenced criteria, clean tree, reachable RFC-referencing commit, passing probe evidence) and sets `status: implemented`, `implementedAt`, and `updatedAt` in one atomic write.
|
|
267
|
+
The command atomically validates all preconditions (accepted status, checked+evidenced criteria — flipped in-place when evidenced under the flag, clean tree, reachable RFC-referencing commit, passing probe evidence) and sets `status: implemented`, `implementedAt`, and `updatedAt` in one atomic write. The result reports `criteriaAutoChecked` — the criterion ids the stamp flipped.
|
|
267
268
|
|
|
268
|
-
**Troubleshooting:** If the stamp fails with `Could not parse target RFC` (RFC-IMP-01), the RFC frontmatter has a YAML syntax error — not a missing file. Check for unquoted backtick values in `successSignals`, `nonGoals`, or other list items. YAML plain scalars starting with a backtick must be double-quoted.
|
|
269
|
+
**Troubleshooting:** If the stamp fails with `Could not parse target RFC` (RFC-IMP-01), the RFC frontmatter has a YAML syntax error — not a missing file. Check for unquoted backtick values in `successSignals`, `nonGoals`, or other list items. YAML plain scalars starting with a backtick must be double-quoted. If it fails STAMP-CHECK-01, the named criteria carry no resolvable `(evidence: ...)` annotation — fix the annotation (or verify the criterion is actually met), commit, and re-stamp; the flag never blank-checks.
|
|
269
270
|
|
|
270
|
-
4. Commit the stamped RFC file
|
|
271
|
+
4. Commit the stamped artifacts — **one commit** covering the stamped RFC file, the regenerated `docs/rfcs/verification/rfc-xxxx.generated.yaml` envelope, and `docs/metrics/rfcs/rfc-xxxx.metrics.yaml`:
|
|
271
272
|
|
|
272
273
|
```txt
|
|
273
274
|
rfc: implement RFC-XXXX <short title>
|
|
@@ -276,7 +277,7 @@ Transition the RFC to `implemented` using the `rfc.implement.stamp` command. Dir
|
|
|
276
277
|
All acceptance criteria met, verification evidence emitted, scoped build passes.
|
|
277
278
|
```
|
|
278
279
|
|
|
279
|
-
Stage
|
|
280
|
+
Stage the RFC file and the generated envelope + metrics together. The implementation commit and the stamp commit MUST be separate.
|
|
280
281
|
|
|
281
282
|
#### 4.8b. Regenerate command manifest (MANDATORY)
|
|
282
283
|
|
|
@@ -435,9 +436,23 @@ Read the `## Decision` section and implement it in code. **For each decision poi
|
|
|
435
436
|
|
|
436
437
|
- If a tool call fails with a recoverable error, recover autonomously: split content, use `edit`/`multi_edit`, decompose files, and retry immediately.
|
|
437
438
|
|
|
438
|
-
#### 5.3b.
|
|
439
|
+
#### 5.3b. Add tests only with a reason
|
|
440
|
+
|
|
441
|
+
After implementing the decision, add a test only when it has one of the four reasons below (the same reason classes as step 4.3b). Tests are written for **agents**, not humans — see `fo-add-tests` for the full process and decision tree.
|
|
442
|
+
|
|
443
|
+
**Reason gate.** Decide per change whether a new automated test is warranted. Exactly one named reason allows it:
|
|
444
|
+
|
|
445
|
+
- `requirement <AC-N>` — the test protects an acceptance criterion of the document being implemented;
|
|
446
|
+
- `defect <ref>` — the test reproduces a defect (review finding id, issue file, failing-log reference);
|
|
447
|
+
- `invariant <ref>` — the test guards a significant invariant (DNA entry, `@ai-invariant` file, or a pure function the property-based-test rule covers);
|
|
448
|
+
- `regression <risk>` — a named, concrete regression risk.
|
|
449
|
+
|
|
450
|
+
No reason → no new test: run the existing suite and the document's probes instead. If the adjacency check flags a new source file, add its inline exemption with the reason (`// test-adjacency: exempt — no test reason: <why>`) rather than a stub test.
|
|
451
|
+
|
|
452
|
+
For `defect`: write the test, then run `ref(forge.yaml bindings.commands.verifyReproduction)` with `{test}` = the test file and `{sha}` = the pre-fix commit. Only a `reproduced` verdict lets the test be committed under this reason; `not-reproduced` means the test does not capture the defect — rewrite it; `inconclusive` means it cannot run on the old code — restructure it against the old public surface or change the reason. Without the binding, record the observed red run in the commit body and report `Degraded: commands.verifyReproduction`.
|
|
453
|
+
|
|
454
|
+
Commits that add test files carry `Test-Reason: <reason>` (one line per file, or one shared line), plus `Repro-Verified: <pre-fix-sha>` for defect reasons.
|
|
439
455
|
|
|
440
|
-
After implementing the decision, write tests for the new behavior. Tests are written for **agents**, not humans — see `fo-add-tests` for the full process and decision tree.
|
|
441
456
|
|
|
442
457
|
**Principles:**
|
|
443
458
|
|
|
@@ -39,6 +39,8 @@ items; top-level decision totals added. Orchestrator pre-flight treats
|
|
|
39
39
|
QUEUE-07 as the window agenda — structural errors still stop the batch;
|
|
40
40
|
maturation skips parked/deferred items; uncovered imperative ask sites
|
|
41
41
|
gain collect riders (ADR code-trace, NC markers, audit-verdict guard).</item>
|
|
42
|
+
<item>RFC-1322: resolve fo-review findings — resolver hardening, shared gate evaluator, dry-run JSON</item>
|
|
43
|
+
<item>RFC-1332: step 1 — verifyReproduction binding key; drop platform ids from pipeline skill text (SKILL-17)</item>
|
|
42
44
|
</CHANGE_SUMMARY>
|
|
43
45
|
-->
|
|
44
46
|
|
|
@@ -179,7 +181,7 @@ Step ordering follows the contract-first pattern:
|
|
|
179
181
|
5. **Validation** — run `rfc.validate`, `build:check`, acceptance probes.
|
|
180
182
|
6. **Evidence** — run `rfc.verification.emit`, commit evidence file.
|
|
181
183
|
7. **Review & Fix** — `fo-review` on all session code changes, `fo-fix` if findings (MANDATORY — do not omit from the plan).
|
|
182
|
-
8. **Stamp implemented** — run `rfc.implement.stamp --id RFC-XXXX --implementation-commit <sha
|
|
184
|
+
8. **Stamp implemented** — run `rfc.implement.stamp --id RFC-XXXX --implementation-commit <sha> --check-criteria` to transition `accepted → implemented` (the flag flips evidenced criteria and refreshes a stale envelope in-process). For ADRs, run `adr.implement.stamp --id ADR-XXXX --implementation-commit <sha>` per `fo-idea-implement` step 4.10.
|
|
183
185
|
|
|
184
186
|
Mark **human review points** on steps that:
|
|
185
187
|
|
|
@@ -38,6 +38,7 @@ items; top-level decision totals added. Orchestrator pre-flight treats
|
|
|
38
38
|
QUEUE-07 as the window agenda — structural errors still stop the batch;
|
|
39
39
|
maturation skips parked/deferred items; uncovered imperative ask sites
|
|
40
40
|
gain collect riders (ADR code-trace, NC markers, audit-verdict guard).</item>
|
|
41
|
+
<item>RFC-1333: step 4 — acceptance verification mode in fo-review, step 4.4b in fo-idea-implement, RFC-IMP-12 docs</item>
|
|
41
42
|
</CHANGE_SUMMARY>
|
|
42
43
|
-->
|
|
43
44
|
|
|
@@ -75,6 +76,17 @@ An executor that narrows the reviewer's inputs — passing a self-authored summa
|
|
|
75
76
|
|
|
76
77
|
**Report persistence is the dispatcher's duty in `independent` mode.** A clean-context reviewer may be read-only and never writes files — it returns findings and verdict. The skill run that dispatched it performs steps 6–7 itself: it assembles the report, builds the YAML frontmatter (`reviewer.isolation` records the mode actually used), and writes the file to `docs/reviews/code/`. A persisted review report without the frontmatter block is a contract violation regardless of which side produced the prose.
|
|
77
78
|
|
|
79
|
+
## Acceptance verification mode
|
|
80
|
+
|
|
81
|
+
Invoked as `fo-review --acceptance --rfc <RFC-id> --workspace <path>` by `fo-idea-implement` step 4.4b for documents declaring `verificationTier: high`. The oracle is the document's requirements, not conventions.
|
|
82
|
+
|
|
83
|
+
- **Inputs (artifacts only):** the export path produced by `rfc.verify.workspace --id <RFC-id> --candidate <sha>`, its `VERIFY-BUNDLE.md` (Context, Problem, Decision, Design, Acceptance criteria — and the list of hidden paths), this section as rubric, and earlier-round counterexample lists. Never the plan, the diff narrative, the implementer's tests, review reports, or session text.
|
|
84
|
+
- **Task:** for each acceptance criterion and each normative Design statement, write checks (test files under `.verify/` inside the export, CLI invocations, fixture inputs), run them in the export, and keep only the failing ones.
|
|
85
|
+
- **Minimization:** shrink every counterexample to the smallest input that still fails (property-based shrinking for generated inputs, manual delta reduction otherwise).
|
|
86
|
+
- **Output:** a counterexample list — `id` (CX-N), `criterion`, `input`, `expected` (quoting the document text the expectation follows from), `observed`, `reproCommand` — and a verdict `pass | counterexamples | inconclusive`. The verifier writes nothing in the main checkout; the dispatcher persists `docs/reviews/acceptance/<rfc-id-lower>/acceptance-<YYYY-MM-DD>-r<round>.md` with YAML frontmatter `rfcId, candidateSha, round, isolation, verifierModel, verdict, counterexamples`.
|
|
87
|
+
- **Isolation and model:** dispatch a fresh clean-context subagent per round; record `isolation` truthfully (`subagent | isolated-inline | inline`) and the model actually used. A different vendor model may be requested where the platform allows.
|
|
88
|
+
- **Loop cap:** at most two fix rounds (round 0 verification, then rounds 1 and 2 after fixes). A third failing verdict parks the item for operator arbitration; disputed counterexamples go to the decision ledger, never resolved by the executor.
|
|
89
|
+
|
|
78
90
|
## Process
|
|
79
91
|
|
|
80
92
|
### 1. Identify the diff
|
|
@@ -68,3 +68,16 @@ status: active
|
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
API keys, passwords, PII must be removed from the transcript. Same redaction pattern as `fo-handoff`.
|
|
71
|
+
|
|
72
|
+
### K-0007: Any kernel module's module-level throw kills every command — including session.save
|
|
73
|
+
|
|
74
|
+
```knowledge-entry
|
|
75
|
+
id: K-0007
|
|
76
|
+
layer: L2
|
|
77
|
+
created: 2026-10-13
|
|
78
|
+
lastConfirmedAt: 2026-10-13
|
|
79
|
+
confirmations: 1
|
|
80
|
+
status: active
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
The kernel registry eagerly imports all modules before dispatch (`[registry] loading module <name>` lines). A throw at module top level — e.g. a malformed regex literal in `packages/werkstatt-journal/src/kernel/studio-commands.ts` — aborts the whole CLI, so `session.save` fails before it can process `.raw/` transcripts. When session.save dies during registry load, bisect recently-edited `*/kernel/*.ts` modules; note ripgrep skips files containing raw control bytes as binary — verify suspect regexes with `sed -n '<line>p' <file> | od -c`.
|
|
@@ -28,7 +28,7 @@ triggerPhrases:
|
|
|
28
28
|
|
|
29
29
|
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>
|
|
30
30
|
<item>RFC-1247: triggerPhrases vocabulary sync — mined operator phrasing applied to this skill's trigger set.</item>
|
|
31
|
-
<item>
|
|
31
|
+
<item>RFC-1154: step 5 resolves the commit path by project type — plain git commit in forge workshops where ecosystem.commit is not registered</item>
|
|
32
32
|
</CHANGE_SUMMARY>
|
|
33
33
|
-->
|
|
34
34
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>Prove forge bin entry selection — source checkouts never run a stale dist/ build (RFC-1302).</purpose>
|
|
4
|
+
<non-goals><item>Does not spawn the CLI process.</item></non-goals>
|
|
5
|
+
</MODULE_CONTRACT>
|
|
6
|
+
<CHANGE_SUMMARY>
|
|
7
|
+
<item>RFC-1302: cover source-first entry selection in bin/resolve-entry.js.</item>
|
|
8
|
+
<item>RFC-1302: consumer-aware SPEC-07, narrowed SPEC-10, source-first bin entry (RFC-1302)</item>
|
|
9
|
+
</CHANGE_SUMMARY>
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import path from "node:path";
|
|
13
|
+
import { describe, expect, it } from "vitest";
|
|
14
|
+
// @ts-expect-error -- plain JS bin helper without type declarations
|
|
15
|
+
import { resolveForgeEntry } from "../bin/resolve-entry.js";
|
|
16
|
+
|
|
17
|
+
const all = (): boolean => true;
|
|
18
|
+
|
|
19
|
+
describe("resolveForgeEntry (RFC-1302)", () => {
|
|
20
|
+
it("prefers the TS source in a checkout even when a dist/ build exists", () => {
|
|
21
|
+
const binDir = path.join("/repo", "packages", "forge", "bin");
|
|
22
|
+
expect(resolveForgeEntry(binDir, all)).toEqual({
|
|
23
|
+
kind: "src",
|
|
24
|
+
path: path.join(binDir, "cli.ts"),
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it("uses dist/ inside node_modules", () => {
|
|
29
|
+
const binDir = path.join("/ws", "node_modules", "@warpgogol", "forge", "bin");
|
|
30
|
+
expect(resolveForgeEntry(binDir, all).kind).toBe("dist");
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it("falls back to tsx inside node_modules without dist/", () => {
|
|
34
|
+
const binDir = path.join("/ws", "node_modules", "@warpgogol", "forge", "bin");
|
|
35
|
+
expect(resolveForgeEntry(binDir, () => false).kind).toBe("tsx");
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for contract registry covering contract-registry (load verification). It also guards the documented public contract and regression-sensitive edge cases.
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the contract suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
// @vitest-environment node
|
|
2
16
|
|
|
3
17
|
import { describe, expect, it } from "vitest";
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for compass types covering compass types (load verification).
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the compass suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
// @vitest-environment node
|
|
2
16
|
|
|
3
17
|
import { describe, expect, it } from "vitest";
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for resolve terminology covering resolveTerminology. It also guards the documented public contract and regression-sensitive edge cases.
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the resolve suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
import { describe, it, expect } from "vitest";
|
|
2
16
|
import { resolveTerminology, defaultForgeConfig, type ForgeConfig } from "../forge-config.ts";
|
|
3
17
|
import { TERMINOLOGY_DEFAULTS } from "../../profiles/profile-schema.ts";
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for forge config covering forge-config (load verification). It also guards the documented public contract and regression-sensitive edge cases.
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the forge suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
// @vitest-environment node
|
|
2
16
|
|
|
3
17
|
import { describe, expect, it } from "vitest";
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-0662: added optional knowledge.retentionDays and knowledge.staleDays bindings for compaction overrides.</item>
|
|
10
9
|
<item>RFC-0704: added optional independentVersionPackages field to forgeConfigSchema for packages with autonomous npm versions.</item>
|
|
11
10
|
<item>RFC-1097: step 6 — compass.migrate codemod run
|
|
12
11
|
|
|
@@ -15,7 +14,8 @@ Mechanical v1 to v2 header migration across the workspace: 942 files rewritten
|
|
|
15
14
|
|
|
16
15
|
Sweep batch 2: real KEY_DECISIONS on 10 files, expanded purposes (CONTRACT-02/PURPOSE-02), headers on mission/index + gen-upstreams, sanitizeItemText in summary.record (literal Compass tags corrupted history), excludedPaths for wrangler types, test-fixtures testPattern. forge+services now 0 diagnostics under --mode error.</item>
|
|
17
16
|
<item>RFC-1224: preserve operator forge.yaml content on upgrade, promote adrImplementStamp binding</item>
|
|
18
|
-
<
|
|
17
|
+
<item>RFC-1332: step 1 — verifyReproduction binding key; drop platform ids from pipeline skill text (SKILL-17)</item>
|
|
18
|
+
<history>RFC-0391, RFC-0393, RFC-0537, RFC-0538, RFC-0539, RFC-0540, RFC-0543, RFC-0546, RFC-0639, RFC-0640, RFC-0643, RFC-0661, RFC-0662, RFC-1224</history>
|
|
19
19
|
</CHANGE_SUMMARY>
|
|
20
20
|
*/
|
|
21
21
|
|
|
@@ -53,6 +53,8 @@ export const forgeBindingsSchema = z.object({
|
|
|
53
53
|
verify: z.string().nullable().default(null),
|
|
54
54
|
preview: z.string().nullable().default(null),
|
|
55
55
|
lint: z.string().nullable().default(null),
|
|
56
|
+
// RFC-1332: defect-reproduction verifier ({test}, {sha} placeholders).
|
|
57
|
+
verifyReproduction: z.string().nullable().default(null),
|
|
56
58
|
// RFC-1224: consumer-defined command keys (e.g. createRfc) stay in the
|
|
57
59
|
// parsed config so resolveBinding can resolve them.
|
|
58
60
|
})
|
|
@@ -115,6 +117,8 @@ export interface ForgeBindings {
|
|
|
115
117
|
verify: string | null;
|
|
116
118
|
preview: string | null;
|
|
117
119
|
lint: string | null;
|
|
120
|
+
// RFC-1332: defect-reproduction verifier ({test}, {sha} placeholders).
|
|
121
|
+
verifyReproduction: string | null;
|
|
118
122
|
};
|
|
119
123
|
paths: {
|
|
120
124
|
invariantsFile: string | null;
|
|
@@ -332,6 +336,7 @@ export function applyCliBindingDefaults(pm: string): ForgeBindings["commands"] {
|
|
|
332
336
|
verify: null,
|
|
333
337
|
preview: null,
|
|
334
338
|
lint: null,
|
|
339
|
+
verifyReproduction: null,
|
|
335
340
|
};
|
|
336
341
|
for (const entry of FORGE_CLI_BINDING_DEFAULTS) {
|
|
337
342
|
const bareKey = entry.key.replace("commands.", "") as keyof ForgeBindings["commands"];
|
package/src/forge-module.test.ts
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for forge module covering forge-module (load verification). It also guards the documented public contract and regression-sensitive edge cases.
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the forge suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
// @vitest-environment node
|
|
2
16
|
|
|
3
17
|
import { describe, expect, it } from "vitest";
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for promote covering normalizeTitle; detectDuplicatePrinciples; planPromotion. It also guards the documented public contract and regression-sensitive edge cases.
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the promote suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
import { describe, it, expect } from "vitest";
|
|
2
16
|
import { normalizeTitle, detectDuplicatePrinciples, planPromotion } from "../promote.ts";
|
|
3
17
|
import type {
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for serialize covering serializeKnowledgeFile. It also guards the documented public contract and regression-sensitive edge cases.
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the serialize suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
import { describe, it, expect } from "vitest";
|
|
2
16
|
import { serializeKnowledgeFile } from "../serialize.ts";
|
|
3
17
|
import type { ParsedKnowledgeFile, KnowledgeEntryMeta } from "../schema.ts";
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
<MODULE_CONTRACT>
|
|
3
3
|
<purpose>Unit tests for the append-only knowledge sync (syncKnowledgeFile / planKnowledgeSync) — covers copy, merge by entry-ID union, conflict handling, skip semantics, and directory recursion.</purpose>
|
|
4
|
+
<non-goals>
|
|
5
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
6
|
+
</non-goals>
|
|
4
7
|
</MODULE_CONTRACT>
|
|
5
8
|
<CHANGE_SUMMARY>
|
|
6
|
-
<item>2026-09-24: initial tests for append-only knowledge sync.</item>
|
|
9
|
+
<item>RFC-1311: carried legacy entry — 2026-09-24: initial tests for append-only knowledge sync.</item>
|
|
7
10
|
</CHANGE_SUMMARY>
|
|
8
11
|
*/
|
|
9
12
|
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for budgets covering knowledge budgets (load verification). It also guards the documented public contract and regression-sensitive edge cases.
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the budgets suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
// @vitest-environment node
|
|
2
16
|
|
|
3
17
|
import { describe, expect, it } from "vitest";
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for compact covering knowledge compact (load verification). It also guards the documented public contract and regression-sensitive edge cases.
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the compact suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
// @vitest-environment node
|
|
2
16
|
|
|
3
17
|
import { describe, expect, it } from "vitest";
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
Unit tests for parse covering knowledge parse (load verification). It also guards the documented public contract and regression-sensitive edge cases.
|
|
5
|
+
</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only.</item>
|
|
8
|
+
</non-goals>
|
|
9
|
+
</MODULE_CONTRACT>
|
|
10
|
+
<CHANGE_SUMMARY>
|
|
11
|
+
<item>RFC-1311: Compass header sweep — declares the parse suite's contract for test-file scaffold coverage.</item>
|
|
12
|
+
</CHANGE_SUMMARY>
|
|
13
|
+
*/
|
|
14
|
+
|
|
1
15
|
// @vitest-environment node
|
|
2
16
|
|
|
3
17
|
import { describe, expect, it } from "vitest";
|