@dommaker/harness 1.14.0 → 1.16.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 +19 -0
- package/README.md +4 -2
- package/bin/harness.js +6 -0
- package/dist/cli/command-contract.d.ts +4 -4
- package/dist/cli/command-contract.d.ts.map +1 -1
- package/dist/cli/commands/command.d.ts.map +1 -1
- package/dist/cli/commands/command.js +5 -5
- package/dist/cli/commands/command.js.map +1 -1
- package/dist/cli/commands/constraints-disable.d.ts +44 -0
- package/dist/cli/commands/constraints-disable.d.ts.map +1 -0
- package/dist/cli/commands/constraints-disable.js +84 -0
- package/dist/cli/commands/constraints-disable.js.map +1 -0
- package/dist/cli/commands/constraints-pack-proposal.d.ts +8 -21
- package/dist/cli/commands/constraints-pack-proposal.d.ts.map +1 -1
- package/dist/cli/commands/constraints-pack-proposal.js +22 -130
- package/dist/cli/commands/constraints-pack-proposal.js.map +1 -1
- package/dist/cli/commands/constraints-reactivate.d.ts +8 -20
- package/dist/cli/commands/constraints-reactivate.d.ts.map +1 -1
- package/dist/cli/commands/constraints-reactivate.js +11 -103
- package/dist/cli/commands/constraints-reactivate.js.map +1 -1
- package/dist/cli/commands/constraints-retire.d.ts +14 -60
- package/dist/cli/commands/constraints-retire.d.ts.map +1 -1
- package/dist/cli/commands/constraints-retire.js +22 -195
- package/dist/cli/commands/constraints-retire.js.map +1 -1
- package/dist/cli/commands/constraints.d.ts +7 -10
- package/dist/cli/commands/constraints.d.ts.map +1 -1
- package/dist/cli/commands/constraints.js +8 -22
- package/dist/cli/commands/constraints.js.map +1 -1
- package/dist/cli/commands/definitions.d.ts.map +1 -1
- package/dist/cli/commands/definitions.js +16 -1
- package/dist/cli/commands/definitions.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +4 -19
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/knowledge-view.d.ts +3 -3
- package/dist/cli/commands/knowledge-view.js +4 -4
- package/dist/cli/commands/knowledge-view.js.map +1 -1
- package/dist/cli/commands/knowledge.js +1 -1
- package/dist/cli/commands/knowledge.js.map +1 -1
- package/dist/cli/commands/release.d.ts +2 -2
- package/dist/cli/commands/release.js +2 -2
- package/dist/cli/commands/scaffold-templates.d.ts +7 -0
- package/dist/cli/commands/scaffold-templates.d.ts.map +1 -1
- package/dist/cli/commands/scaffold-templates.js +21 -1
- package/dist/cli/commands/scaffold-templates.js.map +1 -1
- package/dist/cli/commands/sync-docs/agents-syncer.js +2 -4
- package/dist/cli/commands/sync-docs/agents-syncer.js.map +1 -1
- package/dist/cli/commands/sync-docs/context-syncer.d.ts +13 -0
- package/dist/cli/commands/sync-docs/context-syncer.d.ts.map +1 -1
- package/dist/cli/commands/sync-docs/context-syncer.js +30 -0
- package/dist/cli/commands/sync-docs/context-syncer.js.map +1 -1
- package/dist/cli/commands/sync-docs/head-gate.d.ts +34 -0
- package/dist/cli/commands/sync-docs/head-gate.d.ts.map +1 -0
- package/dist/cli/commands/sync-docs/head-gate.js +86 -0
- package/dist/cli/commands/sync-docs/head-gate.js.map +1 -0
- package/dist/cli/commands/sync-docs/index.d.ts +8 -1
- package/dist/cli/commands/sync-docs/index.d.ts.map +1 -1
- package/dist/cli/commands/sync-docs/index.js +81 -5
- package/dist/cli/commands/sync-docs/index.js.map +1 -1
- package/dist/cli/commands/sync-docs/project-reader.d.ts +5 -0
- package/dist/cli/commands/sync-docs/project-reader.d.ts.map +1 -1
- package/dist/cli/commands/sync-docs/project-reader.js.map +1 -1
- package/dist/cli/commands/validate.d.ts.map +1 -1
- package/dist/cli/commands/validate.js +7 -0
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/gate-command.js +1 -1
- package/dist/cli/gate-command.js.map +1 -1
- package/dist/completion-checkers/contract-presence.d.ts +1 -1
- package/dist/completion-checkers/contract-presence.js +1 -1
- package/dist/completion-checkers/glob-match.d.ts +1 -1
- package/dist/completion-checkers/glob-match.d.ts.map +1 -1
- package/dist/completion-checkers/glob-match.js +3 -38
- package/dist/completion-checkers/glob-match.js.map +1 -1
- package/dist/context/index.d.ts +2 -3
- package/dist/context/index.d.ts.map +1 -1
- package/dist/context/index.js +2 -6
- package/dist/context/index.js.map +1 -1
- package/dist/context/knowledge-injector.d.ts.map +1 -1
- package/dist/context/knowledge-injector.js +3 -4
- package/dist/context/knowledge-injector.js.map +1 -1
- package/dist/context/session-manager.d.ts +0 -6
- package/dist/context/session-manager.d.ts.map +1 -1
- package/dist/context/session-manager.js +0 -9
- package/dist/context/session-manager.js.map +1 -1
- package/dist/context/types.d.ts +0 -24
- package/dist/context/types.d.ts.map +1 -1
- package/dist/core/config-files.d.ts +21 -0
- package/dist/core/config-files.d.ts.map +1 -0
- package/dist/core/config-files.js +75 -0
- package/dist/core/config-files.js.map +1 -0
- package/dist/core/constraint-lifecycle.d.ts +127 -0
- package/dist/core/constraint-lifecycle.d.ts.map +1 -0
- package/dist/core/constraint-lifecycle.js +306 -0
- package/dist/core/constraint-lifecycle.js.map +1 -0
- package/dist/core/constraints/capabilities-parser.js +1 -1
- package/dist/core/constraints/check-cache.d.ts +1 -1
- package/dist/core/constraints/check-cache.js +1 -1
- package/dist/core/constraints/checker.d.ts +9 -1
- package/dist/core/constraints/checker.d.ts.map +1 -1
- package/dist/core/constraints/checker.js +18 -0
- package/dist/core/constraints/checker.js.map +1 -1
- package/dist/core/constraints/checkers/capability-sync.d.ts +1 -1
- package/dist/core/constraints/checkers/capability-sync.js +1 -1
- package/dist/core/constraints/checkers/docs-freshness.js +1 -1
- package/dist/core/constraints/checkers/docs-freshness.js.map +1 -1
- package/dist/core/constraints/checkers/governance-presence.d.ts +1 -1
- package/dist/core/constraints/checkers/governance-presence.js +1 -1
- package/dist/core/constraints/checkers/index.d.ts.map +1 -1
- package/dist/core/constraints/checkers/index.js +2 -2
- package/dist/core/constraints/checkers/index.js.map +1 -1
- package/dist/core/constraints/checkers/no-completion-without-verification.d.ts +39 -0
- package/dist/core/constraints/checkers/no-completion-without-verification.d.ts.map +1 -0
- package/dist/core/constraints/checkers/no-completion-without-verification.js +173 -0
- package/dist/core/constraints/checkers/no-completion-without-verification.js.map +1 -0
- package/dist/core/constraints/checkers/no-hardcoded-credentials.d.ts +3 -2
- package/dist/core/constraints/checkers/no-hardcoded-credentials.d.ts.map +1 -1
- package/dist/core/constraints/checkers/no-hardcoded-credentials.js +19 -7
- package/dist/core/constraints/checkers/no-hardcoded-credentials.js.map +1 -1
- package/dist/core/constraints/checkers/templated/file-exists.js +1 -1
- package/dist/core/constraints/checkers/templated/file-exists.js.map +1 -1
- package/dist/core/constraints/checkers/templated/glob.d.ts +2 -3
- package/dist/core/constraints/checkers/templated/glob.d.ts.map +1 -1
- package/dist/core/constraints/checkers/templated/glob.js +4 -40
- package/dist/core/constraints/checkers/templated/glob.js.map +1 -1
- package/dist/core/constraints/checkers/types.d.ts +1 -1
- package/dist/core/constraints/checkers/types.js +1 -1
- package/dist/core/constraints/construction-sites.d.ts +56 -0
- package/dist/core/constraints/construction-sites.d.ts.map +1 -0
- package/dist/core/constraints/construction-sites.js +75 -0
- package/dist/core/constraints/construction-sites.js.map +1 -0
- package/dist/core/constraints/context-builder.d.ts.map +1 -1
- package/dist/core/constraints/context-builder.js +0 -17
- package/dist/core/constraints/context-builder.js.map +1 -1
- package/dist/core/constraints/definitions/guidelines.js +1 -1
- package/dist/core/constraints/definitions/iron-laws.js +2 -2
- package/dist/core/constraints/definitions/iron-laws.js.map +1 -1
- package/dist/core/constraints/definitions.d.ts +1 -1
- package/dist/core/constraints/definitions.js +1 -1
- package/dist/core/constraints/doc-freshness/runner.d.ts.map +1 -1
- package/dist/core/constraints/doc-freshness/runner.js +3 -1
- package/dist/core/constraints/doc-freshness/runner.js.map +1 -1
- package/dist/core/constraints/index.d.ts +1 -3
- package/dist/core/constraints/index.d.ts.map +1 -1
- package/dist/core/constraints/index.js +1 -4
- package/dist/core/constraints/index.js.map +1 -1
- package/dist/core/constraints/meta.d.ts +18 -0
- package/dist/core/constraints/meta.d.ts.map +1 -0
- package/dist/core/constraints/meta.js +31 -0
- package/dist/core/constraints/meta.js.map +1 -0
- package/dist/core/constraints/pack-proposal.d.ts +66 -0
- package/dist/core/constraints/pack-proposal.d.ts.map +1 -0
- package/dist/core/constraints/pack-proposal.js +181 -0
- package/dist/core/constraints/pack-proposal.js.map +1 -0
- package/dist/core/constraints/run-env.d.ts +3 -2
- package/dist/core/constraints/run-env.d.ts.map +1 -1
- package/dist/core/constraints/run-env.js +5 -4
- package/dist/core/constraints/run-env.js.map +1 -1
- package/dist/core/constraints/usage-report.d.ts +3 -6
- package/dist/core/constraints/usage-report.d.ts.map +1 -1
- package/dist/core/constraints/usage-report.js +6 -13
- package/dist/core/constraints/usage-report.js.map +1 -1
- package/dist/core/effective-constraints.d.ts +7 -7
- package/dist/core/effective-constraints.d.ts.map +1 -1
- package/dist/core/effective-constraints.js +7 -7
- package/dist/core/effective-constraints.js.map +1 -1
- package/dist/core/index.d.ts +3 -6
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -6
- package/dist/core/index.js.map +1 -1
- package/dist/core/retired-constraints.d.ts +66 -0
- package/dist/core/retired-constraints.d.ts.map +1 -0
- package/dist/core/retired-constraints.js +52 -0
- package/dist/core/retired-constraints.js.map +1 -0
- package/dist/core/validators/check-handlers/command.d.ts.map +1 -1
- package/dist/core/validators/check-handlers/command.js +42 -4
- package/dist/core/validators/check-handlers/command.js.map +1 -1
- package/dist/core/validators/checkpoint.d.ts +4 -2
- package/dist/core/validators/checkpoint.d.ts.map +1 -1
- package/dist/core/validators/checkpoint.js +4 -2
- package/dist/core/validators/checkpoint.js.map +1 -1
- package/dist/core/validators/passes-gate.d.ts +2 -2
- package/dist/core/validators/passes-gate.d.ts.map +1 -1
- package/dist/core/validators/passes-gate.js +4 -3
- package/dist/core/validators/passes-gate.js.map +1 -1
- package/dist/gates/checker-gate.d.ts +4 -3
- package/dist/gates/checker-gate.d.ts.map +1 -1
- package/dist/gates/checker-gate.js +4 -3
- package/dist/gates/checker-gate.js.map +1 -1
- package/dist/gates/command.d.ts +3 -20
- package/dist/gates/command.d.ts.map +1 -1
- package/dist/gates/command.js +2 -35
- package/dist/gates/command.js.map +1 -1
- package/dist/gates/definitions.d.ts +1 -1
- package/dist/gates/definitions.d.ts.map +1 -1
- package/dist/gates/definitions.js +1 -1
- package/dist/gates/definitions.js.map +1 -1
- package/dist/gates/index.d.ts +6 -40
- package/dist/gates/index.d.ts.map +1 -1
- package/dist/gates/index.js +5 -79
- package/dist/gates/index.js.map +1 -1
- package/dist/gates/registry.js +1 -1
- package/dist/gates/registry.js.map +1 -1
- package/dist/gates/types.d.ts +10 -3
- package/dist/gates/types.d.ts.map +1 -1
- package/dist/index.d.ts +19 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -67
- package/dist/index.js.map +1 -1
- package/dist/knowledge/audit-scoring.js +1 -1
- package/dist/knowledge/audit-scoring.js.map +1 -1
- package/dist/knowledge/index.d.ts +1 -3
- package/dist/knowledge/index.d.ts.map +1 -1
- package/dist/knowledge/index.js +3 -5
- package/dist/knowledge/index.js.map +1 -1
- package/dist/knowledge/query.d.ts +1 -1
- package/dist/knowledge/query.d.ts.map +1 -1
- package/dist/knowledge/query.js +12 -15
- package/dist/knowledge/query.js.map +1 -1
- package/dist/knowledge/token-estimate.d.ts +14 -0
- package/dist/knowledge/token-estimate.d.ts.map +1 -0
- package/dist/knowledge/token-estimate.js +31 -0
- package/dist/knowledge/token-estimate.js.map +1 -0
- package/dist/monitoring/analyzer-base.d.ts +0 -8
- package/dist/monitoring/analyzer-base.d.ts.map +1 -1
- package/dist/monitoring/analyzer-base.js +0 -20
- package/dist/monitoring/analyzer-base.js.map +1 -1
- package/dist/monitoring/index.d.ts +2 -7
- package/dist/monitoring/index.d.ts.map +1 -1
- package/dist/monitoring/index.js +2 -9
- package/dist/monitoring/index.js.map +1 -1
- package/dist/monitoring/trace-analyzer.d.ts +2 -6
- package/dist/monitoring/trace-analyzer.d.ts.map +1 -1
- package/dist/monitoring/trace-analyzer.js +2 -11
- package/dist/monitoring/trace-analyzer.js.map +1 -1
- package/dist/monitoring/traces.d.ts +15 -11
- package/dist/monitoring/traces.d.ts.map +1 -1
- package/dist/monitoring/traces.js +44 -48
- package/dist/monitoring/traces.js.map +1 -1
- package/dist/pretool-use-hook.d.ts +1 -1
- package/dist/pretool-use-hook.d.ts.map +1 -1
- package/dist/pretool-use-hook.js +7 -7
- package/dist/pretool-use-hook.js.map +1 -1
- package/dist/release/integrity.d.ts +4 -4
- package/dist/release/integrity.d.ts.map +1 -1
- package/dist/release/integrity.js +4 -6
- package/dist/release/integrity.js.map +1 -1
- package/dist/test-setup/jsonl-fake-fs.d.ts +1 -1
- package/dist/test-setup/jsonl-fake-fs.js +1 -1
- package/dist/test-setup/mkdtemp-cleanup.js +1 -1
- package/dist/types/constraint.d.ts +1 -7
- package/dist/types/constraint.d.ts.map +1 -1
- package/dist/types/constraint.js.map +1 -1
- package/dist/types/passes-gate.d.ts +7 -0
- package/dist/types/passes-gate.d.ts.map +1 -1
- package/dist/types/passes-gate.js +8 -0
- package/dist/types/passes-gate.js.map +1 -1
- package/dist/utils/detect-source-roots.d.ts +1 -1
- package/dist/utils/detect-source-roots.d.ts.map +1 -1
- package/dist/utils/detect-source-roots.js +2 -21
- package/dist/utils/detect-source-roots.js.map +1 -1
- package/dist/utils/glob-match.d.ts +10 -0
- package/dist/utils/glob-match.d.ts.map +1 -0
- package/dist/utils/glob-match.js +47 -0
- package/dist/utils/glob-match.js.map +1 -0
- package/dist/utils/jsonl.d.ts +1 -1
- package/dist/utils/jsonl.js +1 -1
- package/dist/utils/yaml-edit.d.ts +26 -0
- package/dist/utils/yaml-edit.d.ts.map +1 -0
- package/dist/utils/yaml-edit.js +98 -0
- package/dist/utils/yaml-edit.js.map +1 -0
- package/package.json +2 -3
- package/src/CONTEXT.md +14 -7
- package/src/__tests__/acceptance-gate.test.ts +2 -4
- package/src/__tests__/checker-extra.test.ts +32 -9
- package/src/__tests__/checker-primitives-sdk.test.ts +2 -2
- package/src/__tests__/checker.test.ts +16 -14
- package/src/__tests__/detect-source-roots.test.ts +5 -4
- package/src/__tests__/effective-constraints.test.ts +16 -0
- package/src/__tests__/exec-checker-full-chain.test.ts +3 -3
- package/src/__tests__/iron-laws.test.ts +13 -20
- package/src/__tests__/layering.test.ts +2 -3
- package/src/__tests__/no-studio-references.test.ts +62 -0
- package/src/__tests__/passes-gate-check.test.ts +1 -1
- package/src/__tests__/pretool-use-hook.test.ts +5 -5
- package/src/__tests__/public-exports.test.ts +196 -41
- package/src/__tests__/public-type-surface.test.ts +27 -67
- package/src/__tests__/public-value-surface.test.ts +13 -36
- package/src/__tests__/retired-constraints.test.ts +99 -0
- package/src/__tests__/skip-semantics.test.ts +16 -33
- package/src/__tests__/trace-analyzer-extra.test.ts +1 -13
- package/src/__tests__/usage-report-public-export.test.ts +3 -3
- package/src/agents/CONTEXT.md +4 -4
- package/src/cli/__tests__/gate-command.test.ts +1 -1
- package/src/cli/command-contract.ts +4 -4
- package/src/cli/commands/CONTEXT.md +10 -9
- package/src/cli/commands/__tests__/check-read-count.test.ts +3 -0
- package/src/cli/commands/__tests__/check.test.ts +33 -6
- package/src/cli/commands/__tests__/command.test.ts +2 -2
- package/src/cli/commands/__tests__/constraints-disable.test.ts +229 -0
- package/src/cli/commands/__tests__/constraints-report-json-flag.test.ts +1 -1
- package/src/cli/commands/__tests__/constraints-report.test.ts +4 -4
- package/src/cli/commands/__tests__/knowledge-flywheel-consistency.test.ts +1 -1
- package/src/cli/commands/__tests__/knowledge-view.test.ts +1 -1
- package/src/cli/commands/__tests__/knowledge.test.ts +3 -3
- package/src/cli/commands/__tests__/project-path-anchoring.test.ts +4 -1
- package/src/cli/commands/__tests__/project-path-convention.test.ts +4 -36
- package/src/cli/commands/__tests__/spec-baseline-index-cap.test.ts +1 -1
- package/src/cli/commands/__tests__/sync-docs-agents.test.ts +1 -24
- package/src/cli/commands/__tests__/sync-docs-construction-sites.test.ts +175 -0
- package/src/cli/commands/__tests__/sync-docs-gate.test.ts +154 -0
- package/src/cli/commands/__tests__/sync-docs-table-layout.test.ts +1 -1
- package/src/cli/commands/__tests__/sync-docs.test.ts +3 -3
- package/src/cli/commands/__tests__/validate.test.ts +49 -0
- package/src/cli/commands/command.ts +2 -1
- package/src/cli/commands/constraints-disable.ts +94 -0
- package/src/cli/commands/constraints-pack-proposal.ts +27 -122
- package/src/cli/commands/constraints-reactivate.ts +22 -111
- package/src/cli/commands/constraints-retire.ts +33 -270
- package/src/cli/commands/constraints.ts +7 -31
- package/src/cli/commands/definitions.ts +16 -1
- package/src/cli/commands/init.ts +5 -19
- package/src/cli/commands/knowledge-view.ts +4 -4
- package/src/cli/commands/knowledge.ts +1 -1
- package/src/cli/commands/release.ts +2 -2
- package/src/cli/commands/scaffold-templates.ts +23 -0
- package/src/cli/commands/security.ts +1 -1
- package/src/cli/commands/sync-docs/__tests__/construction-site-count.test.ts +49 -0
- package/src/cli/commands/sync-docs/agents-syncer.ts +2 -4
- package/src/cli/commands/sync-docs/context-syncer.ts +43 -1
- package/src/cli/commands/sync-docs/head-gate.ts +87 -0
- package/src/cli/commands/sync-docs/index.ts +103 -6
- package/src/cli/commands/sync-docs/project-reader.ts +5 -0
- package/src/cli/commands/validate.ts +7 -0
- package/src/cli/gate-command.ts +1 -1
- package/src/completion-checkers/CONTEXT.md +3 -3
- package/src/completion-checkers/contract-presence.ts +1 -1
- package/src/completion-checkers/glob-match.ts +3 -35
- package/src/context/CONTEXT.md +5 -8
- package/src/context/__tests__/knowledge-injector.test.ts +21 -2
- package/src/context/__tests__/session-manager.test.ts +0 -7
- package/src/context/index.ts +1 -5
- package/src/context/knowledge-injector.ts +3 -4
- package/src/context/session-manager.ts +0 -10
- package/src/context/types.ts +0 -20
- package/src/core/CONTEXT.md +13 -7
- package/src/core/__tests__/config-files.test.ts +88 -0
- package/src/core/__tests__/constraint-lifecycle.test.ts +255 -0
- package/src/core/__tests__/constraints-meta.test.ts +26 -0
- package/src/core/__tests__/pack-proposal.test.ts +95 -0
- package/src/core/config-files.ts +39 -0
- package/src/core/constraint-lifecycle.ts +435 -0
- package/src/core/constraints/__tests__/capabilities-reconcile.test.ts +1 -1
- package/src/core/constraints/__tests__/check-cache.test.ts +1 -8
- package/src/core/constraints/__tests__/collect-constraints.test.ts +67 -18
- package/src/core/constraints/__tests__/construction-sites.test.ts +147 -0
- package/src/core/constraints/__tests__/context-reconcile.test.ts +16 -16
- package/src/core/constraints/__tests__/run-env.test.ts +7 -7
- package/src/core/constraints/__tests__/trace-injection.test.ts +22 -17
- package/src/core/constraints/__tests__/usage-report.test.ts +9 -0
- package/src/core/constraints/capabilities-parser.ts +1 -1
- package/src/core/constraints/check-cache.ts +1 -1
- package/src/core/constraints/checker.ts +20 -1
- package/src/core/constraints/checkers/__tests__/fixtures/public-repo-sanitization.mjs +1 -1
- package/src/core/constraints/checkers/__tests__/governance-presence.test.ts +1 -1
- package/src/core/constraints/checkers/__tests__/input-contract.test.ts +3 -3
- package/src/core/constraints/checkers/__tests__/no-completion-without-verification.test.ts +227 -0
- package/src/core/constraints/checkers/__tests__/no-hardcoded-credentials.test.ts +68 -36
- package/src/core/constraints/checkers/capability-sync.ts +1 -1
- package/src/core/constraints/checkers/docs-freshness.ts +1 -1
- package/src/core/constraints/checkers/governance-presence.ts +1 -1
- package/src/core/constraints/checkers/index.ts +1 -3
- package/src/core/constraints/checkers/no-completion-without-verification.ts +141 -0
- package/src/core/constraints/checkers/no-hardcoded-credentials.ts +20 -7
- package/src/core/constraints/checkers/templated/file-exists.ts +1 -1
- package/src/core/constraints/checkers/templated/glob.ts +3 -36
- package/src/core/constraints/checkers/types.ts +1 -1
- package/src/core/constraints/construction-sites.ts +95 -0
- package/src/core/constraints/context-builder.ts +0 -18
- package/src/core/constraints/definitions/guidelines.ts +1 -1
- package/src/core/constraints/definitions/iron-laws.ts +2 -2
- package/src/core/constraints/definitions.ts +1 -1
- package/src/core/constraints/doc-freshness/__tests__/runner.test.ts +3 -3
- package/src/core/constraints/doc-freshness/runner.ts +4 -1
- package/src/core/constraints/index.ts +0 -5
- package/src/core/constraints/meta.ts +40 -0
- package/src/core/constraints/pack-proposal.ts +179 -0
- package/src/core/constraints/run-env.ts +6 -5
- package/src/core/constraints/usage-report.ts +5 -13
- package/src/core/effective-constraints.ts +7 -7
- package/src/core/index.ts +0 -16
- package/src/core/retired-constraints.ts +77 -0
- package/src/core/validators/__tests__/command-success-output.test.ts +56 -0
- package/src/core/validators/check-handlers/command.ts +44 -4
- package/src/core/validators/checkpoint.ts +4 -2
- package/src/core/validators/passes-gate.ts +4 -3
- package/src/gates/CONTEXT.md +22 -14
- package/src/gates/__tests__/acceptance-types-single-source.test.ts +7 -6
- package/src/gates/__tests__/acceptance.test.ts +3 -5
- package/src/gates/__tests__/checker-gate.test.ts +3 -3
- package/src/gates/__tests__/command.test.ts +1 -13
- package/src/gates/__tests__/decision.test.ts +35 -0
- package/src/gates/checker-gate.ts +4 -3
- package/src/gates/command.ts +4 -38
- package/src/gates/definitions.ts +2 -2
- package/src/gates/index.ts +8 -95
- package/src/gates/registry.ts +1 -1
- package/src/gates/types.ts +11 -3
- package/src/hooks/CONTEXT.md +3 -3
- package/src/index.ts +59 -98
- package/src/knowledge/CONTEXT.md +8 -6
- package/src/knowledge/__tests__/audit.test.ts +1 -1
- package/src/knowledge/__tests__/flywheel-metrics.test.ts +1 -1
- package/src/knowledge/__tests__/token-estimate.test.ts +54 -0
- package/src/knowledge/audit-scoring.ts +1 -1
- package/src/knowledge/index.ts +1 -3
- package/src/knowledge/query.ts +13 -14
- package/src/knowledge/token-estimate.ts +27 -0
- package/src/monitoring/CONTEXT.md +7 -9
- package/src/monitoring/__tests__/prune-trace-logs.test.ts +76 -0
- package/src/monitoring/__tests__/skipped-lines-report.test.ts +2 -2
- package/src/monitoring/__tests__/traces.test.ts +2 -18
- package/src/monitoring/analyzer-base.ts +0 -18
- package/src/monitoring/index.ts +2 -7
- package/src/monitoring/trace-analyzer.ts +2 -10
- package/src/monitoring/traces.ts +54 -54
- package/src/pretool-use-hook.ts +7 -7
- package/src/release/CONTEXT.md +4 -4
- package/src/release/__tests__/integrity.test.ts +3 -5
- package/src/release/integrity.ts +4 -6
- package/src/test-setup/__tests__/mkdtemp-cleanup.test.ts +1 -1
- package/src/test-setup/jsonl-fake-fs.ts +1 -1
- package/src/test-setup/mkdtemp-cleanup.ts +1 -1
- package/src/types/constraint.ts +1 -8
- package/src/types/passes-gate.ts +8 -0
- package/src/utils/__tests__/glob-match.test.ts +52 -0
- package/src/utils/__tests__/jsonl-skip-disposition.test.ts +0 -1
- package/src/utils/__tests__/yaml-edit.test.ts +62 -0
- package/src/utils/detect-source-roots.ts +2 -20
- package/src/utils/glob-match.ts +41 -0
- package/src/utils/jsonl.ts +1 -1
- package/src/utils/yaml-edit.ts +67 -0
- package/bin/harness-knowledge-track.sh +0 -47
- package/bin/harness-sensitive-check.sh +0 -67
- package/dist/context/token-budget.d.ts +0 -115
- package/dist/context/token-budget.d.ts.map +0 -1
- package/dist/context/token-budget.js +0 -200
- package/dist/context/token-budget.js.map +0 -1
- package/dist/core/constraints/checkers/iron-flags.d.ts +0 -12
- package/dist/core/constraints/checkers/iron-flags.d.ts.map +0 -1
- package/dist/core/constraints/checkers/iron-flags.js +0 -16
- package/dist/core/constraints/checkers/iron-flags.js.map +0 -1
- package/dist/gates/runner.d.ts +0 -30
- package/dist/gates/runner.d.ts.map +0 -1
- package/dist/gates/runner.js +0 -38
- package/dist/gates/runner.js.map +0 -1
- package/dist/knowledge/primitives/code-structure.d.ts +0 -37
- package/dist/knowledge/primitives/code-structure.d.ts.map +0 -1
- package/dist/knowledge/primitives/code-structure.js +0 -185
- package/dist/knowledge/primitives/code-structure.js.map +0 -1
- package/dist/monitoring/context-tracker.d.ts +0 -38
- package/dist/monitoring/context-tracker.d.ts.map +0 -1
- package/dist/monitoring/context-tracker.js +0 -153
- package/dist/monitoring/context-tracker.js.map +0 -1
- package/dist/tools/definitions/core/code/fingerprint.sh +0 -273
- package/dist/tools/definitions/core/code/fingerprint.yml +0 -72
- package/dist/tools/definitions/core/code/parse.yml +0 -68
- package/dist/tools/definitions/core/code/register-language.sh +0 -475
- package/dist/tools/definitions/core/code/register-language.yml +0 -74
- package/dist/tools/definitions/core/docker/build.yml +0 -73
- package/dist/tools/definitions/core/docker/run.yml +0 -81
- package/dist/tools/definitions/core/file/copy.yml +0 -88
- package/dist/tools/definitions/core/file/read.yml +0 -69
- package/dist/tools/definitions/core/file/write.yml +0 -75
- package/dist/tools/definitions/core/git/branch.yml +0 -61
- package/dist/tools/definitions/core/git/cleanup-worktree.yml +0 -50
- package/dist/tools/definitions/core/git/clone.yml +0 -69
- package/dist/tools/definitions/core/git/commit.yml +0 -65
- package/dist/tools/definitions/core/git/push.yml +0 -79
- package/dist/tools/definitions/core/git/worktree.yml +0 -96
- package/dist/tools/definitions/core/notification/notify.sh +0 -152
- package/dist/tools/definitions/core/notification/notify.yml +0 -60
- package/dist/tools/definitions/core/npm/build.yml +0 -75
- package/dist/tools/definitions/core/npm/install.yml +0 -58
- package/dist/tools/definitions/core/npm/test.yml +0 -75
- package/dist/tools/definitions/core/validation/check-reuse.yml +0 -170
- package/dist/tools/definitions/core/validation/validate-handlers.yml +0 -118
- package/dist/tools/definitions/core/validation/validate-readme-stats.yml +0 -155
- package/dist/tools/definitions/core/validation/validate-yaml-syntax.yml +0 -134
- package/dist/tools/definitions/ext/browser/browser-automate.sh +0 -255
- package/dist/tools/definitions/ext/browser/browser-automate.yml +0 -166
- package/dist/tools/definitions/ext/browser/browser-close.sh +0 -104
- package/dist/tools/definitions/ext/browser/browser-close.yml +0 -55
- package/dist/tools/definitions/ext/browser/browser-mcp-debug.sh +0 -682
- package/dist/tools/definitions/ext/browser/browser-mcp-debug.yml +0 -167
- package/dist/tools/definitions/ext/browser/browser-start.sh +0 -101
- package/dist/tools/definitions/ext/browser/browser-start.yml +0 -62
- package/dist/tools/definitions/registry.json +0 -795
- package/dist/tools/definitions/std/README.md +0 -350
- package/dist/tools/definitions/std/analysis/analyze-codebase.yml +0 -72
- package/dist/tools/definitions/std/analysis/analyze-diff.yml +0 -182
- package/dist/tools/definitions/std/analysis/analyze-git-diff.yml +0 -70
- package/dist/tools/definitions/std/analysis/analyze-impact.yml +0 -78
- package/dist/tools/definitions/std/analysis/analyze-requirements.yml +0 -105
- package/dist/tools/definitions/std/analysis/brainstorm-options.yml +0 -106
- package/dist/tools/definitions/std/analysis/build-graph.yml +0 -154
- package/dist/tools/definitions/std/analysis/clarify-requirements.yml +0 -90
- package/dist/tools/definitions/std/analysis/detect-context.yml +0 -109
- package/dist/tools/definitions/std/analysis/detect-layers.yml +0 -125
- package/dist/tools/definitions/std/analysis/generate-tour.yml +0 -102
- package/dist/tools/definitions/std/analysis/search-enhance.yml +0 -105
- package/dist/tools/definitions/std/backlog/add.yml +0 -51
- package/dist/tools/definitions/std/backlog/decide.yml +0 -39
- package/dist/tools/definitions/std/backlog/github-sync.yml +0 -161
- package/dist/tools/definitions/std/backlog/list.yml +0 -53
- package/dist/tools/definitions/std/backlog/load.yml +0 -46
- package/dist/tools/definitions/std/backlog/resolve.yml +0 -37
- package/dist/tools/definitions/std/backlog/update.yml +0 -42
- package/dist/tools/definitions/std/bugfix/diagnose.yml +0 -68
- package/dist/tools/definitions/std/bugfix/fix.yml +0 -66
- package/dist/tools/definitions/std/bugfix/verify.yml +0 -69
- package/dist/tools/definitions/std/constraint/check-decomposition.yml +0 -103
- package/dist/tools/definitions/std/constraint/check-feature-list.yml +0 -77
- package/dist/tools/definitions/std/constraint/check-progress.yml +0 -97
- package/dist/tools/definitions/std/constraint/generate-report.yml +0 -147
- package/dist/tools/definitions/std/deploy/commit-push.yml +0 -33
- package/dist/tools/definitions/std/deploy/deploy-backend.yml +0 -37
- package/dist/tools/definitions/std/deploy/deploy-frontend.yml +0 -37
- package/dist/tools/definitions/std/deploy/rollback.yml +0 -148
- package/dist/tools/definitions/std/design/analyze-architecture-impact.yml +0 -113
- package/dist/tools/definitions/std/design/design-api.yml +0 -55
- package/dist/tools/definitions/std/design/design-architecture.yml +0 -97
- package/dist/tools/definitions/std/design/design-db.yml +0 -81
- package/dist/tools/definitions/std/design/generate-spec.yml +0 -182
- package/dist/tools/definitions/std/development/develop-api.yml +0 -85
- package/dist/tools/definitions/std/development/develop-backend.yml +0 -88
- package/dist/tools/definitions/std/development/develop-frontend.yml +0 -87
- package/dist/tools/definitions/std/development/develop-shared-types.yml +0 -74
- package/dist/tools/definitions/std/development/develop-task.yml +0 -122
- package/dist/tools/definitions/std/development/develop-tests.yml +0 -76
- package/dist/tools/definitions/std/development/execute-batch.yml +0 -152
- package/dist/tools/definitions/std/development/fix-issues.yml +0 -100
- package/dist/tools/definitions/std/development/implement-task.yml +0 -124
- package/dist/tools/definitions/std/development/review-fix-cycle.yml +0 -232
- package/dist/tools/definitions/std/evolution/implement.yml +0 -125
- package/dist/tools/definitions/std/evolution/prioritize.yml +0 -112
- package/dist/tools/definitions/std/evolution/report-gap.yml +0 -166
- package/dist/tools/definitions/std/file/read.yml +0 -21
- package/dist/tools/definitions/std/governance/aggregate-opinions.sh +0 -201
- package/dist/tools/definitions/std/governance/aggregate-opinions.yml +0 -79
- package/dist/tools/definitions/std/governance/audit-task.yml +0 -178
- package/dist/tools/definitions/std/governance/cast-vote.yml +0 -129
- package/dist/tools/definitions/std/governance/collect-issues.yml +0 -16
- package/dist/tools/definitions/std/governance/create-signed-document.yml +0 -23
- package/dist/tools/definitions/std/governance/create-voting-session.yml +0 -101
- package/dist/tools/definitions/std/governance/define-stance.sh +0 -243
- package/dist/tools/definitions/std/governance/define-stance.yml +0 -82
- package/dist/tools/definitions/std/governance/generate-review-report.yml +0 -23
- package/dist/tools/definitions/std/governance/impeach.yml +0 -179
- package/dist/tools/definitions/std/governance/multi-stance-review.yml +0 -154
- package/dist/tools/definitions/std/governance/prepare-artifact.yml +0 -20
- package/dist/tools/definitions/std/governance/review-spec-approval.yml +0 -262
- package/dist/tools/definitions/std/governance/rollback.yml +0 -186
- package/dist/tools/definitions/std/governance/stance-review.yml +0 -149
- package/dist/tools/definitions/std/governance/track-effect.yml +0 -199
- package/dist/tools/definitions/std/governance/vote-tally.yml +0 -144
- package/dist/tools/definitions/std/patch/execute.yml +0 -51
- package/dist/tools/definitions/std/planning/generate-tasks.yml +0 -36
- package/dist/tools/definitions/std/planning/load-tasks.yml +0 -44
- package/dist/tools/definitions/std/planning/split-batch.yml +0 -481
- package/dist/tools/definitions/std/planning/split-tasks.yml +0 -359
- package/dist/tools/definitions/std/planning/update-tasks.yml +0 -51
- package/dist/tools/definitions/std/planning/validate-tasks.yml +0 -46
- package/dist/tools/definitions/std/project/decide-next-workflow.yml +0 -38
- package/dist/tools/definitions/std/project/load-state.yml +0 -31
- package/dist/tools/definitions/std/project/save-state.yml +0 -32
- package/dist/tools/definitions/std/quality/check-quality.yml +0 -241
- package/dist/tools/definitions/std/quality/debug-systematic.yml +0 -163
- package/dist/tools/definitions/std/quality/handle-feedback.yml +0 -108
- package/dist/tools/definitions/std/quality/review-code.yml +0 -128
- package/dist/tools/definitions/std/quality/review-spec.yml +0 -140
- package/dist/tools/definitions/std/quality/review-task.yml +0 -190
- package/dist/tools/definitions/std/quality/run-tests.yml +0 -80
- package/dist/tools/definitions/std/quick/analyze.yml +0 -56
- package/dist/tools/definitions/std/quick/implement.yml +0 -67
- package/dist/tools/definitions/std/quick/verify.yml +0 -71
- package/dist/tools/definitions/std/verification/verify_completion.yml +0 -113
- package/dist/tools/definitions/std/verification/wait-condition.yml +0 -107
- package/dist/tools/index.d.ts +0 -5
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -10
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/paths.d.ts +0 -9
- package/dist/tools/paths.d.ts.map +0 -1
- package/dist/tools/paths.js +0 -51
- package/dist/tools/paths.js.map +0 -1
- package/src/__tests__/token-budget.test.ts +0 -252
- package/src/context/__tests__/token-budget.test.ts +0 -258
- package/src/context/token-budget.ts +0 -222
- package/src/core/constraints/checkers/__tests__/iron-flags.test.ts +0 -43
- package/src/core/constraints/checkers/iron-flags.ts +0 -17
- package/src/gates/__tests__/runner.test.ts +0 -81
- package/src/gates/runner.ts +0 -57
- package/src/knowledge/primitives/__tests__/code-structure-degrade.test.ts +0 -24
- package/src/knowledge/primitives/__tests__/code-structure.test.ts +0 -120
- package/src/knowledge/primitives/code-structure.ts +0 -185
- package/src/monitoring/__tests__/context-tracker.test.ts +0 -180
- package/src/monitoring/context-tracker.ts +0 -136
- package/src/tools/CONTEXT.md +0 -24
- package/src/tools/__tests__/registry.test.ts +0 -221
- package/src/tools/definitions/core/code/fingerprint.sh +0 -273
- package/src/tools/definitions/core/code/fingerprint.yml +0 -72
- package/src/tools/definitions/core/code/parse.yml +0 -68
- package/src/tools/definitions/core/code/register-language.sh +0 -475
- package/src/tools/definitions/core/code/register-language.yml +0 -74
- package/src/tools/definitions/core/docker/build.yml +0 -73
- package/src/tools/definitions/core/docker/run.yml +0 -81
- package/src/tools/definitions/core/file/copy.yml +0 -88
- package/src/tools/definitions/core/file/read.yml +0 -69
- package/src/tools/definitions/core/file/write.yml +0 -75
- package/src/tools/definitions/core/git/branch.yml +0 -61
- package/src/tools/definitions/core/git/cleanup-worktree.yml +0 -50
- package/src/tools/definitions/core/git/clone.yml +0 -69
- package/src/tools/definitions/core/git/commit.yml +0 -65
- package/src/tools/definitions/core/git/push.yml +0 -79
- package/src/tools/definitions/core/git/worktree.yml +0 -96
- package/src/tools/definitions/core/notification/notify.sh +0 -152
- package/src/tools/definitions/core/notification/notify.yml +0 -60
- package/src/tools/definitions/core/npm/build.yml +0 -75
- package/src/tools/definitions/core/npm/install.yml +0 -58
- package/src/tools/definitions/core/npm/test.yml +0 -75
- package/src/tools/definitions/core/validation/check-reuse.yml +0 -170
- package/src/tools/definitions/core/validation/validate-handlers.yml +0 -118
- package/src/tools/definitions/core/validation/validate-readme-stats.yml +0 -155
- package/src/tools/definitions/core/validation/validate-yaml-syntax.yml +0 -134
- package/src/tools/definitions/ext/browser/browser-automate.sh +0 -255
- package/src/tools/definitions/ext/browser/browser-automate.yml +0 -166
- package/src/tools/definitions/ext/browser/browser-close.sh +0 -104
- package/src/tools/definitions/ext/browser/browser-close.yml +0 -55
- package/src/tools/definitions/ext/browser/browser-mcp-debug.sh +0 -682
- package/src/tools/definitions/ext/browser/browser-mcp-debug.yml +0 -167
- package/src/tools/definitions/ext/browser/browser-start.sh +0 -101
- package/src/tools/definitions/ext/browser/browser-start.yml +0 -62
- package/src/tools/definitions/registry.json +0 -795
- package/src/tools/definitions/std/README.md +0 -350
- package/src/tools/definitions/std/analysis/analyze-codebase.yml +0 -72
- package/src/tools/definitions/std/analysis/analyze-diff.yml +0 -182
- package/src/tools/definitions/std/analysis/analyze-git-diff.yml +0 -70
- package/src/tools/definitions/std/analysis/analyze-impact.yml +0 -78
- package/src/tools/definitions/std/analysis/analyze-requirements.yml +0 -105
- package/src/tools/definitions/std/analysis/brainstorm-options.yml +0 -106
- package/src/tools/definitions/std/analysis/build-graph.yml +0 -154
- package/src/tools/definitions/std/analysis/clarify-requirements.yml +0 -90
- package/src/tools/definitions/std/analysis/detect-context.yml +0 -109
- package/src/tools/definitions/std/analysis/detect-layers.yml +0 -125
- package/src/tools/definitions/std/analysis/generate-tour.yml +0 -102
- package/src/tools/definitions/std/analysis/search-enhance.yml +0 -105
- package/src/tools/definitions/std/backlog/add.yml +0 -51
- package/src/tools/definitions/std/backlog/decide.yml +0 -39
- package/src/tools/definitions/std/backlog/github-sync.yml +0 -161
- package/src/tools/definitions/std/backlog/list.yml +0 -53
- package/src/tools/definitions/std/backlog/load.yml +0 -46
- package/src/tools/definitions/std/backlog/resolve.yml +0 -37
- package/src/tools/definitions/std/backlog/update.yml +0 -42
- package/src/tools/definitions/std/bugfix/diagnose.yml +0 -68
- package/src/tools/definitions/std/bugfix/fix.yml +0 -66
- package/src/tools/definitions/std/bugfix/verify.yml +0 -69
- package/src/tools/definitions/std/constraint/check-decomposition.yml +0 -103
- package/src/tools/definitions/std/constraint/check-feature-list.yml +0 -77
- package/src/tools/definitions/std/constraint/check-progress.yml +0 -97
- package/src/tools/definitions/std/constraint/generate-report.yml +0 -147
- package/src/tools/definitions/std/deploy/commit-push.yml +0 -33
- package/src/tools/definitions/std/deploy/deploy-backend.yml +0 -37
- package/src/tools/definitions/std/deploy/deploy-frontend.yml +0 -37
- package/src/tools/definitions/std/deploy/rollback.yml +0 -148
- package/src/tools/definitions/std/design/analyze-architecture-impact.yml +0 -113
- package/src/tools/definitions/std/design/design-api.yml +0 -55
- package/src/tools/definitions/std/design/design-architecture.yml +0 -97
- package/src/tools/definitions/std/design/design-db.yml +0 -81
- package/src/tools/definitions/std/design/generate-spec.yml +0 -182
- package/src/tools/definitions/std/development/develop-api.yml +0 -85
- package/src/tools/definitions/std/development/develop-backend.yml +0 -88
- package/src/tools/definitions/std/development/develop-frontend.yml +0 -87
- package/src/tools/definitions/std/development/develop-shared-types.yml +0 -74
- package/src/tools/definitions/std/development/develop-task.yml +0 -122
- package/src/tools/definitions/std/development/develop-tests.yml +0 -76
- package/src/tools/definitions/std/development/execute-batch.yml +0 -152
- package/src/tools/definitions/std/development/fix-issues.yml +0 -100
- package/src/tools/definitions/std/development/implement-task.yml +0 -124
- package/src/tools/definitions/std/development/review-fix-cycle.yml +0 -232
- package/src/tools/definitions/std/evolution/implement.yml +0 -125
- package/src/tools/definitions/std/evolution/prioritize.yml +0 -112
- package/src/tools/definitions/std/evolution/report-gap.yml +0 -166
- package/src/tools/definitions/std/file/read.yml +0 -21
- package/src/tools/definitions/std/governance/aggregate-opinions.sh +0 -201
- package/src/tools/definitions/std/governance/aggregate-opinions.yml +0 -79
- package/src/tools/definitions/std/governance/audit-task.yml +0 -178
- package/src/tools/definitions/std/governance/cast-vote.yml +0 -129
- package/src/tools/definitions/std/governance/collect-issues.yml +0 -16
- package/src/tools/definitions/std/governance/create-signed-document.yml +0 -23
- package/src/tools/definitions/std/governance/create-voting-session.yml +0 -101
- package/src/tools/definitions/std/governance/define-stance.sh +0 -243
- package/src/tools/definitions/std/governance/define-stance.yml +0 -82
- package/src/tools/definitions/std/governance/generate-review-report.yml +0 -23
- package/src/tools/definitions/std/governance/impeach.yml +0 -179
- package/src/tools/definitions/std/governance/multi-stance-review.yml +0 -154
- package/src/tools/definitions/std/governance/prepare-artifact.yml +0 -20
- package/src/tools/definitions/std/governance/review-spec-approval.yml +0 -262
- package/src/tools/definitions/std/governance/rollback.yml +0 -186
- package/src/tools/definitions/std/governance/stance-review.yml +0 -149
- package/src/tools/definitions/std/governance/track-effect.yml +0 -199
- package/src/tools/definitions/std/governance/vote-tally.yml +0 -144
- package/src/tools/definitions/std/patch/execute.yml +0 -51
- package/src/tools/definitions/std/planning/generate-tasks.yml +0 -36
- package/src/tools/definitions/std/planning/load-tasks.yml +0 -44
- package/src/tools/definitions/std/planning/split-batch.yml +0 -481
- package/src/tools/definitions/std/planning/split-tasks.yml +0 -359
- package/src/tools/definitions/std/planning/update-tasks.yml +0 -51
- package/src/tools/definitions/std/planning/validate-tasks.yml +0 -46
- package/src/tools/definitions/std/project/decide-next-workflow.yml +0 -38
- package/src/tools/definitions/std/project/load-state.yml +0 -31
- package/src/tools/definitions/std/project/save-state.yml +0 -32
- package/src/tools/definitions/std/quality/check-quality.yml +0 -241
- package/src/tools/definitions/std/quality/debug-systematic.yml +0 -163
- package/src/tools/definitions/std/quality/handle-feedback.yml +0 -108
- package/src/tools/definitions/std/quality/review-code.yml +0 -128
- package/src/tools/definitions/std/quality/review-spec.yml +0 -140
- package/src/tools/definitions/std/quality/review-task.yml +0 -190
- package/src/tools/definitions/std/quality/run-tests.yml +0 -80
- package/src/tools/definitions/std/quick/analyze.yml +0 -56
- package/src/tools/definitions/std/quick/implement.yml +0 -67
- package/src/tools/definitions/std/quick/verify.yml +0 -71
- package/src/tools/definitions/std/verification/verify_completion.yml +0 -113
- package/src/tools/definitions/std/verification/wait-condition.yml +0 -107
- package/src/tools/index.ts +0 -5
- package/src/tools/paths.ts +0 -15
- package/templates/nextjs-app/.github/workflows/ci.yml +0 -39
- package/templates/node-api/.github/workflows/ci.yml +0 -36
- package/templates/node-api/package.json +0 -23
- package/templates/node-api/src/index.ts +0 -2
- package/templates/node-api/tsconfig.json +0 -19
- package/templates/python-api/.github/workflows/ci.yml +0 -39
|
@@ -97,7 +97,7 @@ describe('PassesGate.check()', () => {
|
|
|
97
97
|
/**
|
|
98
98
|
* AC-007(ADR-0022 改写):零消费者方法已从公共面删除
|
|
99
99
|
*
|
|
100
|
-
* 原用例断言「保留 setPasses()
|
|
100
|
+
* 原用例断言「保留 setPasses() 向后兼容」——兼容对象经双仓
|
|
101
101
|
* 核实不存在,ADR-0022 明确推翻该 AC。`@ts-expect-error` 在编译期钉住删除,
|
|
102
102
|
* 运行期断言同时钉住形状(方法不存在于原型)。
|
|
103
103
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* pretool-use-hook
|
|
2
|
+
* pretool-use-hook 测试
|
|
3
3
|
*
|
|
4
|
-
* 验收口径:block/warn/audit
|
|
4
|
+
* 验收口径:block/warn/audit 行为与下游消费方生成版脚本一致——
|
|
5
5
|
* block 级 exit 2 阻断,warn/audit 放行,坏输入 fail-open。
|
|
6
6
|
*
|
|
7
|
-
* P1-7(ADR-0031
|
|
7
|
+
* P1-7(ADR-0031,票08):命中留痕走 traces 通道——整个套件 chdir 到
|
|
8
8
|
* tmp 目录运行(TraceCollector 缺省按 cwd 解析 projectPath),断言 JSONL 行;
|
|
9
9
|
* 留痕失败不挡拦截主路径。
|
|
10
10
|
*/
|
|
@@ -233,14 +233,14 @@ describe('pretool-use-hook', () => {
|
|
|
233
233
|
|
|
234
234
|
it('MCP 工具事件放行并留痕', () => {
|
|
235
235
|
const stdin = JSON.stringify({
|
|
236
|
-
tool_name: '
|
|
236
|
+
tool_name: 'mcp__example__query_documents',
|
|
237
237
|
tool_input: { query: 'x' },
|
|
238
238
|
});
|
|
239
239
|
expect(runPreToolUseHook(stdin)).toBe(0);
|
|
240
240
|
|
|
241
241
|
const traces = readTraces();
|
|
242
242
|
expect(traces).toHaveLength(1);
|
|
243
|
-
expect(traces[0].constraintId).toBe('tool-event:
|
|
243
|
+
expect(traces[0].constraintId).toBe('tool-event:mcp__example__query_documents');
|
|
244
244
|
});
|
|
245
245
|
|
|
246
246
|
it('非 Bash 事件即使 tool_input 带危险 command 字段也不拦(判定面只认 Bash)', () => {
|
|
@@ -22,15 +22,10 @@ const EXPECTED_RUNTIME_EXPORTS = [
|
|
|
22
22
|
'CANDIDATE_KIND_LABEL',
|
|
23
23
|
'CONSTRAINTS',
|
|
24
24
|
'CSOValidator',
|
|
25
|
-
'CheckCache',
|
|
26
25
|
'CheckpointValidator',
|
|
27
26
|
'ColdStartImporter',
|
|
28
|
-
'CommandGate',
|
|
29
27
|
'ConstraintViolationError',
|
|
30
|
-
'ContextTracker',
|
|
31
|
-
'ContractGate',
|
|
32
28
|
'DEFAULT_CLASSIFICATION_RULES',
|
|
33
|
-
'DEFAULT_COMMAND_BLACKLIST',
|
|
34
29
|
'DEFAULT_DECAY_CONFIG',
|
|
35
30
|
'DEFAULT_DIAGNOSE_THRESHOLDS',
|
|
36
31
|
'DEFAULT_FAILURE_LOG_FILE',
|
|
@@ -43,7 +38,7 @@ const EXPECTED_RUNTIME_EXPORTS = [
|
|
|
43
38
|
'FailureLevel',
|
|
44
39
|
'FailureRecorder',
|
|
45
40
|
'FileKnowledgeStore',
|
|
46
|
-
'
|
|
41
|
+
'HARNESS_CONFIG_FILES',
|
|
47
42
|
'KnowledgeAudit',
|
|
48
43
|
'KnowledgeHealthScorer',
|
|
49
44
|
'KnowledgeIngest',
|
|
@@ -51,22 +46,13 @@ const EXPECTED_RUNTIME_EXPORTS = [
|
|
|
51
46
|
'KnowledgeLifecycle',
|
|
52
47
|
'KnowledgeLinter',
|
|
53
48
|
'KnowledgeQuery',
|
|
54
|
-
'PHASE_SUBJECT_RE',
|
|
55
|
-
'PassesGate',
|
|
56
|
-
'PerformanceGate',
|
|
49
|
+
'PHASE_SUBJECT_RE', 'PassesGate',
|
|
57
50
|
'ReferenceTracker',
|
|
58
|
-
'ReviewGate',
|
|
59
|
-
'SecurityGate',
|
|
60
51
|
'SessionManager',
|
|
61
|
-
'SpecAcceptanceGate',
|
|
62
|
-
'SpecValidator',
|
|
63
52
|
'TESTED_BY_RE',
|
|
64
53
|
'TESTS_NONE_RE',
|
|
65
|
-
'TokenBudget',
|
|
66
|
-
'TokenEstimator',
|
|
67
54
|
'TraceAnalyzer',
|
|
68
55
|
'TraceCollector',
|
|
69
|
-
'assertGateRegistryClosed',
|
|
70
56
|
'bootstrapHarness',
|
|
71
57
|
'bootstrapHarnessSync',
|
|
72
58
|
'buildCheckEnv',
|
|
@@ -76,52 +62,40 @@ const EXPECTED_RUNTIME_EXPORTS = [
|
|
|
76
62
|
'checkConstraints',
|
|
77
63
|
'classifyCommitFiles',
|
|
78
64
|
'classifyError',
|
|
65
|
+
'collectConstraints',
|
|
66
|
+
'collectProposalMaterial',
|
|
79
67
|
'collectUsageByConstraint',
|
|
80
|
-
'configureTraceCollector',
|
|
81
68
|
'contextEvidenceFlag',
|
|
82
69
|
'contextFlag',
|
|
83
|
-
'createAnalyzer',
|
|
84
|
-
'createCheckerGate',
|
|
85
|
-
'createCommandGate',
|
|
86
|
-
'createContractGate',
|
|
87
70
|
'createErrorClassifier',
|
|
88
71
|
'createFailureRecorder',
|
|
89
72
|
'createPassesGate',
|
|
90
|
-
'createPerformanceGate',
|
|
91
|
-
'createReviewGate',
|
|
92
|
-
'createSecurityGate',
|
|
93
|
-
'createSpecAcceptanceGate',
|
|
94
|
-
'decisionFromResult',
|
|
95
73
|
'diagnoseRetireCandidates',
|
|
96
|
-
'
|
|
74
|
+
'disableConstraint',
|
|
75
|
+
'estimateTokens',
|
|
97
76
|
'findConstraintsByTrigger',
|
|
98
77
|
'formatEvidence',
|
|
99
78
|
'getAllConstraints',
|
|
100
|
-
'getCommandGate',
|
|
101
|
-
'getCommandRiskLevel',
|
|
102
79
|
'getConstraint',
|
|
80
|
+
'getConstraintsMeta',
|
|
103
81
|
'getCriticalArtifacts',
|
|
104
82
|
'getEffectiveConstraints',
|
|
105
83
|
'getFailureLevel',
|
|
106
|
-
'
|
|
107
|
-
'getRegistryPath',
|
|
108
|
-
'getToolsDir',
|
|
109
|
-
'getTraceCollector',
|
|
110
|
-
'isCommandAllowed',
|
|
111
|
-
'lintEffectiveConfig',
|
|
112
|
-
'listRegisteredGates',
|
|
84
|
+
'listRetiredConstraints',
|
|
113
85
|
'matchAnyGlob',
|
|
114
86
|
'matchGlob',
|
|
115
|
-
'migrateKnowledgeEntries',
|
|
116
87
|
'normalizeCheckOutcome',
|
|
88
|
+
'packProposal',
|
|
89
|
+
'propagateConfig',
|
|
90
|
+
'proposalMaterialPath',
|
|
91
|
+
'pruneTraceLogs',
|
|
92
|
+
'reactivateConstraint',
|
|
117
93
|
'readProjectTraces',
|
|
118
94
|
'readProjectTracesReport',
|
|
119
|
-
'
|
|
95
|
+
'renderProposalMarkdown',
|
|
120
96
|
'resolveGlobs',
|
|
121
|
-
'
|
|
97
|
+
'retireConstraint',
|
|
122
98
|
'sanitizeExternalContent',
|
|
123
|
-
'validateAllSpecs',
|
|
124
|
-
'validateSpec',
|
|
125
99
|
'verifyContractPresence',
|
|
126
100
|
'verifyPhaseFormat',
|
|
127
101
|
'verifyReleaseArtifacts',
|
|
@@ -221,4 +195,185 @@ describe('包根类型面(ADR-0022 关联类型随迁)', () => {
|
|
|
221
195
|
expect(ADR0027_DELETED_SYMBOLS.filter((name) => source.includes(name))).toEqual([]);
|
|
222
196
|
});
|
|
223
197
|
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* #199(ADR-0038「CLI 可达 ≠ 导出理由」)公共面复评第三轮的可达性负钉。
|
|
201
|
+
* A 桶 = 实现连删;B 桶 = 实现保留、仅收回公共导出(内部经实现文件直引)。
|
|
202
|
+
* 机制同上:编译期 `@ts-expect-error` 钉包根类型面 + 源形状钉 barrel 不再提名。
|
|
203
|
+
*/
|
|
204
|
+
const ISSUE199_A_DELETED_SYMBOLS = [
|
|
205
|
+
'TokenBudget',
|
|
206
|
+
'ContextTracker',
|
|
207
|
+
'ContextAverages',
|
|
208
|
+
'ContextUsageSnapshot',
|
|
209
|
+
'extractCodeStructure',
|
|
210
|
+
'CodeStructure',
|
|
211
|
+
'DeclarationInfo',
|
|
212
|
+
'ImportInfo',
|
|
213
|
+
'runGates',
|
|
214
|
+
'GateRunResult',
|
|
215
|
+
'getCommandGate',
|
|
216
|
+
'isCommandAllowed',
|
|
217
|
+
'getCommandRiskLevel',
|
|
218
|
+
'getTraceCollector',
|
|
219
|
+
'configureTraceCollector',
|
|
220
|
+
'createAnalyzer',
|
|
221
|
+
];
|
|
222
|
+
|
|
223
|
+
const ISSUE199_B_RETRACTED_SYMBOLS = [
|
|
224
|
+
'decisionFromResult',
|
|
225
|
+
'GATE_DEFINITIONS',
|
|
226
|
+
'getGate',
|
|
227
|
+
'listRegisteredGates',
|
|
228
|
+
'registeredGateCount',
|
|
229
|
+
'assertGateRegistryClosed',
|
|
230
|
+
'createCheckerGate',
|
|
231
|
+
'ReviewGate',
|
|
232
|
+
'SecurityGate',
|
|
233
|
+
'PerformanceGate',
|
|
234
|
+
'ContractGate',
|
|
235
|
+
'SpecAcceptanceGate',
|
|
236
|
+
'CommandGate',
|
|
237
|
+
'createCommandGate',
|
|
238
|
+
'DEFAULT_COMMAND_BLACKLIST',
|
|
239
|
+
'createReviewGate',
|
|
240
|
+
'createSecurityGate',
|
|
241
|
+
'createPerformanceGate',
|
|
242
|
+
'createContractGate',
|
|
243
|
+
'createSpecAcceptanceGate',
|
|
244
|
+
'GateResult',
|
|
245
|
+
'GateContext',
|
|
246
|
+
'GateDecision',
|
|
247
|
+
'GateDecisionStatus',
|
|
248
|
+
'GateDefinition',
|
|
249
|
+
'PerformanceThresholds',
|
|
250
|
+
'ReviewGateConfig',
|
|
251
|
+
'SecurityGateConfig',
|
|
252
|
+
'PerformanceGateConfig',
|
|
253
|
+
'ContractGateConfig',
|
|
254
|
+
'SpecAcceptanceGateConfig',
|
|
255
|
+
'AcceptanceGateContext',
|
|
256
|
+
'AcceptanceCriteria',
|
|
257
|
+
'CommandBlacklistRule',
|
|
258
|
+
'CommandGateConfig',
|
|
259
|
+
'lintEffectiveConfig',
|
|
260
|
+
'EffectiveConfigLint',
|
|
261
|
+
'CheckCache',
|
|
262
|
+
'CheckCacheConfig',
|
|
263
|
+
'CheckSamplingConfig',
|
|
264
|
+
'SpecValidator',
|
|
265
|
+
'validateSpec',
|
|
266
|
+
'validateAllSpecs',
|
|
267
|
+
'SpecValidatorConfig',
|
|
268
|
+
'SpecValidationResult',
|
|
269
|
+
'BatchSpecValidationResult',
|
|
270
|
+
'SpecSchemaDefinition',
|
|
271
|
+
'SpecType',
|
|
272
|
+
'SpecValidationError',
|
|
273
|
+
'SchemaLoader',
|
|
274
|
+
'migrateKnowledgeEntries',
|
|
275
|
+
];
|
|
276
|
+
|
|
277
|
+
it('包根 barrel 不再提及 #199 A 桶(删除)与 B 桶(收回)符号', () => {
|
|
278
|
+
const source = fs.readFileSync(path.join(__dirname, '../index.ts'), 'utf-8');
|
|
279
|
+
const all = [...ISSUE199_A_DELETED_SYMBOLS, ...ISSUE199_B_RETRACTED_SYMBOLS];
|
|
280
|
+
// 子串扫描的误报面逐个核过:留存符号(PassesGateCheckResult 等)不含上列任一名称
|
|
281
|
+
expect(all.filter((name) => source.includes(name))).toEqual([]);
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
it('#199 A 桶删除的类型不再是包根可导入类型(编译期钉)', () => {
|
|
285
|
+
// @ts-expect-error 随 ContextTracker 连删(#199 A2)
|
|
286
|
+
const t1: import('../index').ContextAverages | undefined = undefined;
|
|
287
|
+
// @ts-expect-error 随 ContextTracker 连删(#199 A2)
|
|
288
|
+
const t2: import('../index').ContextUsageSnapshot | undefined = undefined;
|
|
289
|
+
// @ts-expect-error 随 extractCodeStructure 连删(#199 A3)
|
|
290
|
+
const t3: import('../index').CodeStructure | undefined = undefined;
|
|
291
|
+
// @ts-expect-error 随 extractCodeStructure 连删(#199 A3)
|
|
292
|
+
const t4: import('../index').DeclarationInfo | undefined = undefined;
|
|
293
|
+
// @ts-expect-error 随 extractCodeStructure 连删(#199 A3)
|
|
294
|
+
const t5: import('../index').ImportInfo | undefined = undefined;
|
|
295
|
+
// @ts-expect-error 随 runGates 连删(#199 A4)
|
|
296
|
+
const t6: import('../index').GateRunResult | undefined = undefined;
|
|
297
|
+
expect([t1, t2, t3, t4, t5, t6]).toEqual(Array(6).fill(undefined));
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
it('#199 B 桶收回的类型不再是包根可导入类型(编译期钉;实现保留,CLI 直引)', () => {
|
|
301
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
302
|
+
const t1: import('../index').GateResult | undefined = undefined;
|
|
303
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
304
|
+
const t2: import('../index').GateContext | undefined = undefined;
|
|
305
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
306
|
+
const t3: import('../index').Gate | undefined = undefined;
|
|
307
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
308
|
+
const t4: import('../index').GateDecision | undefined = undefined;
|
|
309
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
310
|
+
const t5: import('../index').GateDecisionStatus | undefined = undefined;
|
|
311
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
312
|
+
const t6: import('../index').GateDefinition | undefined = undefined;
|
|
313
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
314
|
+
const t7: import('../index').PerformanceThresholds | undefined = undefined;
|
|
315
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
316
|
+
const t8: import('../index').ReviewGateConfig | undefined = undefined;
|
|
317
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
318
|
+
const t9: import('../index').SecurityGateConfig | undefined = undefined;
|
|
319
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
320
|
+
const t10: import('../index').PerformanceGateConfig | undefined = undefined;
|
|
321
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
322
|
+
const t11: import('../index').ContractGateConfig | undefined = undefined;
|
|
323
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
324
|
+
const t12: import('../index').SpecAcceptanceGateConfig | undefined = undefined;
|
|
325
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
326
|
+
const t13: import('../index').AcceptanceGateContext | undefined = undefined;
|
|
327
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
328
|
+
const t14: import('../index').AcceptanceCriteria | undefined = undefined;
|
|
329
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
330
|
+
const t15: import('../index').CommandBlacklistRule | undefined = undefined;
|
|
331
|
+
// @ts-expect-error gates 面收回(#199 B)
|
|
332
|
+
const t16: import('../index').CommandGateConfig | undefined = undefined;
|
|
333
|
+
// @ts-expect-error 随 lintEffectiveConfig 收回(#199 B)
|
|
334
|
+
const t17: import('../index').EffectiveConfigLint | undefined = undefined;
|
|
335
|
+
// @ts-expect-error 随 CheckCache 收回(#199 B)
|
|
336
|
+
const t18: import('../index').CheckCacheConfig | undefined = undefined;
|
|
337
|
+
// @ts-expect-error 随 CheckCache 收回(#199 B)
|
|
338
|
+
const t19: import('../index').CheckSamplingConfig | undefined = undefined;
|
|
339
|
+
// @ts-expect-error 随 SpecValidator 收回(#199 B)
|
|
340
|
+
const t20: import('../index').SpecValidatorConfig | undefined = undefined;
|
|
341
|
+
// @ts-expect-error 随 SpecValidator 收回(#199 B)
|
|
342
|
+
const t21: import('../index').SpecValidationResult | undefined = undefined;
|
|
343
|
+
// @ts-expect-error 随 SpecValidator 收回(#199 B)
|
|
344
|
+
const t22: import('../index').BatchSpecValidationResult | undefined = undefined;
|
|
345
|
+
// @ts-expect-error 随 SpecValidator 收回(#199 B)
|
|
346
|
+
const t23: import('../index').SpecSchemaDefinition | undefined = undefined;
|
|
347
|
+
// @ts-expect-error 随 SpecValidator 收回(#199 B)
|
|
348
|
+
const t24: import('../index').SpecType | undefined = undefined;
|
|
349
|
+
// @ts-expect-error 随 SpecValidator 收回(#199 B)
|
|
350
|
+
const t25: import('../index').SpecValidationError | undefined = undefined;
|
|
351
|
+
// @ts-expect-error 随 SpecValidator 收回(#199 B)
|
|
352
|
+
const t26: import('../index').SchemaLoader | undefined = undefined;
|
|
353
|
+
expect([t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13]).toEqual(Array(13).fill(undefined));
|
|
354
|
+
expect([t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24, t25, t26]).toEqual(Array(13).fill(undefined));
|
|
355
|
+
});
|
|
356
|
+
|
|
357
|
+
it('#199 保留面仍可经包根导入(防止删多:下游仓真实消费的三类 + spec 面相邻活类型)', () => {
|
|
358
|
+
const liveCollector: import('../index').TraceCollectorConfig = {};
|
|
359
|
+
const liveAnalyzer: import('../index').TraceAnalyzerConfig = { summaryFile: 'x', periodMs: 1 };
|
|
360
|
+
const liveTrace: import('../index').ExecutionTrace = {
|
|
361
|
+
constraintId: 'c',
|
|
362
|
+
severity: 'error',
|
|
363
|
+
timestamp: 0,
|
|
364
|
+
result: 'pass',
|
|
365
|
+
};
|
|
366
|
+
expect(liveCollector).toEqual({});
|
|
367
|
+
expect(liveAnalyzer.periodMs).toBe(1);
|
|
368
|
+
expect(liveTrace.result).toBe('pass');
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* #196(ADR-0037 workflow 引擎资产终局)删除符号的可达性负钉:
|
|
373
|
+
* `src/tools/` 整目录连删,机制同 ADR-0027 钉(barrel 源形状钉)。
|
|
374
|
+
*/
|
|
375
|
+
it('包根 barrel 不再提及 #196 已删的 tools 路径函数', () => {
|
|
376
|
+
const source = fs.readFileSync(path.join(__dirname, '../index.ts'), 'utf-8');
|
|
377
|
+
expect(['getRegistryPath', 'getToolsDir'].filter((name) => source.includes(name))).toEqual([]);
|
|
378
|
+
});
|
|
224
379
|
});
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
* 哪个符号。
|
|
23
23
|
*
|
|
24
24
|
* 清单来源不是手抄:五个入口的 `src` 解析结果与 tsc 产物(各自 exports 的 types 指向,如
|
|
25
|
-
* `dist/core/index.d.ts`)逐项对撞,
|
|
25
|
+
* `dist/core/index.d.ts`)逐项对撞,140/35/1/11/0 全部逐字一致,产物侧同时零 `export *`
|
|
26
|
+
* (`./gates` 自 #199 起为空面入口,见清单内注释)。
|
|
26
27
|
* 改动入口清单文件时同步改本文件对应条目,diff 即 PR 评审材料;增删符号属公共面 breaking,
|
|
27
28
|
* 须按 ADR-0003/0022 走发布级别裁决。
|
|
28
29
|
*/
|
|
@@ -37,8 +38,8 @@ const REPO_ROOT = path.join(__dirname, '../..');
|
|
|
37
38
|
* ① `export { 值 } from '...'`;② `export type { 类型 } from '...'`;③ 内联值声明
|
|
38
39
|
* `export function|const|let|var`(如 `src/gates/index.ts` 的 5 个 `create*Gate`)——纯值面,
|
|
39
40
|
* 不属类型清单管辖。
|
|
40
|
-
* 清单归类按**说明符自身**而非块形式:`export {
|
|
41
|
-
* `
|
|
41
|
+
* 清单归类按**说明符自身**而非块形式:`export { GATE_DEFINITIONS, type GateDefinition }` 里的
|
|
42
|
+
* `GateDefinition` 按 TS 语义就是类型导出,必须进类型清单(本闸的职责是如实刻画公开面,不是管写法)。
|
|
42
43
|
* 其余行首 `export` 一律记为违禁而非跳过:`export *` / `export type *` 会让按名字扫描静默
|
|
43
44
|
* 漏算;内联 `export interface|type|enum|class|declare` 更必须红——它绕过类型清单,而
|
|
44
45
|
* `enum`/`class` 同时占值面与类型面,按单一分类必错一面。这正是 B1「公开面的定义比现实窄」
|
|
@@ -100,8 +101,6 @@ const ENTRY_SUBPATHS: string[] = Object.keys(EXPORTS_MAP);
|
|
|
100
101
|
/** 每个已发布入口的类型面全量清单。增删任一项即公共面 breaking,见文件头。 */
|
|
101
102
|
const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
102
103
|
'.': [
|
|
103
|
-
'AcceptanceCriteria',
|
|
104
|
-
'AcceptanceGateContext',
|
|
105
104
|
'AgentConfig',
|
|
106
105
|
'AgentEvent',
|
|
107
106
|
'AgentState',
|
|
@@ -112,13 +111,11 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
112
111
|
'AuditOptions',
|
|
113
112
|
'AuditReport',
|
|
114
113
|
'AuditRuleName',
|
|
115
|
-
'BatchSpecValidationResult',
|
|
116
114
|
'CSOIssue',
|
|
117
115
|
'CSOValidationResult',
|
|
118
116
|
'CapabilitiesConfig',
|
|
119
117
|
'ChangelogConfig',
|
|
120
118
|
'ChangelogVersionCheck',
|
|
121
|
-
'CheckCacheConfig',
|
|
122
119
|
'CheckConfig',
|
|
123
120
|
'CheckConstraintsOptions',
|
|
124
121
|
'CheckDetail',
|
|
@@ -127,7 +124,6 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
127
124
|
'CheckInputNeeds',
|
|
128
125
|
'CheckOutcome',
|
|
129
126
|
'CheckResult',
|
|
130
|
-
'CheckSamplingConfig',
|
|
131
127
|
'CheckSkip',
|
|
132
128
|
'CheckType',
|
|
133
129
|
'CheckerVerdict',
|
|
@@ -136,9 +132,6 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
136
132
|
'CheckpointContext',
|
|
137
133
|
'CheckpointResult',
|
|
138
134
|
'ClassificationResult',
|
|
139
|
-
'CodeStructure',
|
|
140
|
-
'CommandBlacklistRule',
|
|
141
|
-
'CommandGateConfig',
|
|
142
135
|
'CommitFileClassification',
|
|
143
136
|
'CommitInput',
|
|
144
137
|
'CommitVerdict',
|
|
@@ -157,30 +150,28 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
157
150
|
'ConstraintResult',
|
|
158
151
|
'ConstraintTrigger',
|
|
159
152
|
'ConstraintUsageStats',
|
|
153
|
+
'ConstraintsMeta',
|
|
160
154
|
'ConstraintsUsageReport',
|
|
161
155
|
'ConsumptionEvent',
|
|
162
156
|
'ConsumptionMode',
|
|
163
|
-
'ContextAverages',
|
|
164
157
|
'ContextDocsCheck',
|
|
165
158
|
'ContextEvidenceFlag',
|
|
166
159
|
'ContextFilesConfig',
|
|
167
160
|
'ContextSource',
|
|
168
161
|
'ContextSourceType',
|
|
169
|
-
'ContextUsageSnapshot',
|
|
170
|
-
'ContractGateConfig',
|
|
171
162
|
'ContractPresenceContext',
|
|
172
163
|
'ContractPresenceResult',
|
|
173
164
|
'DecayConfig',
|
|
174
165
|
'DecisionRecord',
|
|
175
|
-
'DeclarationInfo',
|
|
176
166
|
'DiagnoseThresholds',
|
|
177
167
|
'DirCountActual',
|
|
168
|
+
'DisableResult',
|
|
169
|
+
'DisableStatus',
|
|
178
170
|
'DocDirCheck',
|
|
179
171
|
'DocFreshnessCheck',
|
|
180
172
|
'DocFreshnessConfig',
|
|
181
173
|
'DocRegexCountCheck',
|
|
182
174
|
'DocsSyncConfig',
|
|
183
|
-
'EffectiveConfigLint',
|
|
184
175
|
'ErrorClassificationRule',
|
|
185
176
|
'ErrorClassifierConfig',
|
|
186
177
|
'EvidenceProviders',
|
|
@@ -190,61 +181,53 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
190
181
|
'FailureRecord',
|
|
191
182
|
'FailureRecorderConfig',
|
|
192
183
|
'FallbackStrategy',
|
|
193
|
-
'Gate',
|
|
194
|
-
'GateContext',
|
|
195
|
-
'GateDecision',
|
|
196
|
-
'GateDecisionStatus',
|
|
197
|
-
'GateDefinition',
|
|
198
|
-
'GateResult',
|
|
199
|
-
'GateRunResult',
|
|
200
184
|
'GovernanceConfig',
|
|
201
185
|
'GrepCountActual',
|
|
202
186
|
'HarnessBootstrap',
|
|
203
|
-
'ImportInfo',
|
|
204
187
|
'IndexEntry',
|
|
205
188
|
'IngestOptions',
|
|
206
189
|
'InjectionConfig',
|
|
207
190
|
'InjectionResult',
|
|
208
|
-
'IronLawContext',
|
|
209
191
|
'KnowledgeEntry',
|
|
210
192
|
'KnowledgeOrigin',
|
|
211
193
|
'KnowledgeReference',
|
|
212
194
|
'KnowledgeStore',
|
|
213
195
|
'KnowledgeSubsystem',
|
|
196
|
+
'LifecycleKnowledgeSink',
|
|
214
197
|
'LintIssue',
|
|
215
198
|
'LintIssueType',
|
|
216
199
|
'MaturityChange',
|
|
217
200
|
'MaturityLevel',
|
|
218
201
|
'MergedConstraintsConfig',
|
|
219
202
|
'NormalizedOutcome',
|
|
203
|
+
'PackProposalResult',
|
|
220
204
|
'PassesGateCheckResult',
|
|
221
205
|
'PassesGateConfig',
|
|
222
206
|
'PassesGateViolation',
|
|
223
|
-
'PerformanceGateConfig',
|
|
224
|
-
'PerformanceThresholds',
|
|
225
207
|
'PhaseFormatResult',
|
|
226
208
|
'ProjectConfig',
|
|
209
|
+
'ProposalMaterial',
|
|
227
210
|
'QueryBudget',
|
|
228
211
|
'QueryFilter',
|
|
229
212
|
'QueryResult',
|
|
213
|
+
'ReactivateExecuteOptions',
|
|
214
|
+
'ReactivateResult',
|
|
215
|
+
'ReactivateStatus',
|
|
230
216
|
'ReferenceRecord',
|
|
231
217
|
'RetireCandidate',
|
|
232
218
|
'RetireCandidateKind',
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'
|
|
219
|
+
'RetireExecuteOptions',
|
|
220
|
+
'RetireResult',
|
|
221
|
+
'RetireStatus',
|
|
222
|
+
'RetireTargetInfo',
|
|
223
|
+
'RetiredConstraintEntry',
|
|
224
|
+
'RetiredConstraintMeta',
|
|
236
225
|
'SessionCheckpoint',
|
|
237
226
|
'SessionEvent',
|
|
238
227
|
'SessionEventType',
|
|
239
228
|
'SessionHandle',
|
|
240
229
|
'SessionMessage',
|
|
241
230
|
'SourceRef',
|
|
242
|
-
'SpecAcceptanceGateConfig',
|
|
243
|
-
'SpecSchemaDefinition',
|
|
244
|
-
'SpecType',
|
|
245
|
-
'SpecValidationError',
|
|
246
|
-
'SpecValidationResult',
|
|
247
|
-
'SpecValidatorConfig',
|
|
248
231
|
'StepMeta',
|
|
249
232
|
'StorageLayer',
|
|
250
233
|
'TaskTestResult',
|
|
@@ -260,11 +243,9 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
260
243
|
'WorkflowMeta',
|
|
261
244
|
],
|
|
262
245
|
'./core': [
|
|
263
|
-
'BatchSpecValidationResult',
|
|
264
246
|
'CSOIssue',
|
|
265
247
|
'CSOValidationResult',
|
|
266
248
|
'CapabilitiesMode',
|
|
267
|
-
'CheckCacheConfig',
|
|
268
249
|
'CheckConfig',
|
|
269
250
|
'CheckConstraintsOptions',
|
|
270
251
|
'CheckDetail',
|
|
@@ -273,7 +254,6 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
273
254
|
'CheckInputNeeds',
|
|
274
255
|
'CheckOutcome',
|
|
275
256
|
'CheckResult',
|
|
276
|
-
'CheckSamplingConfig',
|
|
277
257
|
'CheckSkip',
|
|
278
258
|
'CheckType',
|
|
279
259
|
'Checkpoint',
|
|
@@ -292,17 +272,11 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
292
272
|
'ConstraintTrigger',
|
|
293
273
|
'ContextEvidenceFlag',
|
|
294
274
|
'ContextFilesResolution',
|
|
295
|
-
'EffectiveConfigLint',
|
|
296
275
|
'EvidenceProviders',
|
|
297
|
-
'IronLawContext',
|
|
298
276
|
'NormalizedOutcome',
|
|
299
277
|
'PassesGateConfig',
|
|
300
278
|
'RunEnv',
|
|
301
279
|
'RunTarget',
|
|
302
|
-
'SpecSchemaDefinition',
|
|
303
|
-
'SpecType',
|
|
304
|
-
'SpecValidationResult',
|
|
305
|
-
'SpecValidatorConfig',
|
|
306
280
|
'TaskTestResult',
|
|
307
281
|
],
|
|
308
282
|
'./presets': [
|
|
@@ -313,7 +287,6 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
313
287
|
'CompactionLevel',
|
|
314
288
|
'ContextSource',
|
|
315
289
|
'ContextSourceType',
|
|
316
|
-
'ContextUsageSnapshot',
|
|
317
290
|
'InjectionConfig',
|
|
318
291
|
'InjectionResult',
|
|
319
292
|
'SessionCheckpoint',
|
|
@@ -322,25 +295,9 @@ const PUBLISHED_ENTRY_TYPES: Record<string, string[]> = {
|
|
|
322
295
|
'SessionHandle',
|
|
323
296
|
'SessionMessage',
|
|
324
297
|
],
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
'CommandBlacklistRule',
|
|
329
|
-
'CommandGateConfig',
|
|
330
|
-
'ContractGateConfig',
|
|
331
|
-
'Gate',
|
|
332
|
-
'GateContext',
|
|
333
|
-
'GateDecision',
|
|
334
|
-
'GateDecisionStatus',
|
|
335
|
-
'GateDefinition',
|
|
336
|
-
'GateResult',
|
|
337
|
-
'GateRunResult',
|
|
338
|
-
'PerformanceGateConfig',
|
|
339
|
-
'PerformanceThresholds',
|
|
340
|
-
'ReviewGateConfig',
|
|
341
|
-
'SecurityGateConfig',
|
|
342
|
-
'SpecAcceptanceGateConfig',
|
|
343
|
-
],
|
|
298
|
+
// #199(ADR-0038):./gates 面整体收回(双仓零编程消费者),入口本身保留、
|
|
299
|
+
// 以空清单显式冻结——复活任一类型导出即红
|
|
300
|
+
'./gates': [],
|
|
344
301
|
};
|
|
345
302
|
|
|
346
303
|
describe('已发布类型面全量冻结(ADR-0022 追记 4)', () => {
|
|
@@ -367,8 +324,11 @@ describe('已发布类型面全量冻结(ADR-0022 追记 4)', () => {
|
|
|
367
324
|
});
|
|
368
325
|
|
|
369
326
|
it('类型清单与冻结集逐字一致(增删即 breaking,需发布级别裁决)', () => {
|
|
370
|
-
//
|
|
371
|
-
|
|
327
|
+
// 解析塌掉不得退化成空集合假绿;唯一例外是 ./gates——#199(ADR-0038)面整体收回、
|
|
328
|
+
// 入口保留,以空清单显式冻结
|
|
329
|
+
if (PUBLISHED_ENTRY_TYPES[sub].length > 0) {
|
|
330
|
+
expect(surface.types.length).toBeGreaterThan(0);
|
|
331
|
+
}
|
|
372
332
|
expect([...surface.types].sort()).toEqual([...PUBLISHED_ENTRY_TYPES[sub]].sort());
|
|
373
333
|
});
|
|
374
334
|
});
|