@vedprakash-m/tenet 0.0.0-stage → 0.1.1
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/LICENSE +202 -0
- package/README.md +158 -2
- package/dist/cli.d.ts +53 -0
- package/dist/cli.js +440 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/bless.d.ts +2 -0
- package/dist/commands/bless.js +27 -0
- package/dist/commands/bless.js.map +1 -0
- package/dist/commands/board.d.ts +32 -0
- package/dist/commands/board.js +31 -0
- package/dist/commands/board.js.map +1 -0
- package/dist/commands/check.d.ts +2 -0
- package/dist/commands/check.js +38 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/context.d.ts +53 -0
- package/dist/commands/context.js +50 -0
- package/dist/commands/context.js.map +1 -0
- package/dist/commands/doctor.d.ts +8 -0
- package/dist/commands/doctor.js +47 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/fix.d.ts +2 -0
- package/dist/commands/fix.js +25 -0
- package/dist/commands/fix.js.map +1 -0
- package/dist/commands/index.d.ts +12 -0
- package/dist/commands/index.js +13 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/init.d.ts +11 -0
- package/dist/commands/init.js +303 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/onboard.d.ts +45 -0
- package/dist/commands/onboard.js +132 -0
- package/dist/commands/onboard.js.map +1 -0
- package/dist/commands/remove.d.ts +8 -0
- package/dist/commands/remove.js +56 -0
- package/dist/commands/remove.js.map +1 -0
- package/dist/commands/split.d.ts +2 -0
- package/dist/commands/split.js +20 -0
- package/dist/commands/split.js.map +1 -0
- package/dist/commands/upgrade.d.ts +8 -0
- package/dist/commands/upgrade.js +69 -0
- package/dist/commands/upgrade.js.map +1 -0
- package/dist/commands/verify.d.ts +34 -0
- package/dist/commands/verify.js +293 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/context/index.d.ts +62 -0
- package/dist/context/index.js +504 -0
- package/dist/context/index.js.map +1 -0
- package/dist/core/clock.d.ts +3 -0
- package/dist/core/clock.js +16 -0
- package/dist/core/clock.js.map +1 -0
- package/dist/core/commands.d.ts +38 -0
- package/dist/core/commands.js +2 -0
- package/dist/core/commands.js.map +1 -0
- package/dist/core/fs.d.ts +7 -0
- package/dist/core/fs.js +97 -0
- package/dist/core/fs.js.map +1 -0
- package/dist/core/git.d.ts +11 -0
- package/dist/core/git.js +223 -0
- package/dist/core/git.js.map +1 -0
- package/dist/core/hash.d.ts +6 -0
- package/dist/core/hash.js +123 -0
- package/dist/core/hash.js.map +1 -0
- package/dist/core/messages.d.ts +280 -0
- package/dist/core/messages.js +293 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/output.d.ts +23 -0
- package/dist/core/output.js +78 -0
- package/dist/core/output.js.map +1 -0
- package/dist/core/schema.d.ts +14 -0
- package/dist/core/schema.js +138 -0
- package/dist/core/schema.js.map +1 -0
- package/dist/core/yaml.d.ts +1 -0
- package/dist/core/yaml.js +16 -0
- package/dist/core/yaml.js.map +1 -0
- package/dist/install/doctor.d.ts +3 -0
- package/dist/install/doctor.js +365 -0
- package/dist/install/doctor.js.map +1 -0
- package/dist/install/environment.d.ts +4 -0
- package/dist/install/environment.js +47 -0
- package/dist/install/environment.js.map +1 -0
- package/dist/install/hosts.d.ts +5 -0
- package/dist/install/hosts.js +107 -0
- package/dist/install/hosts.js.map +1 -0
- package/dist/install/init.d.ts +2 -0
- package/dist/install/init.js +81 -0
- package/dist/install/init.js.map +1 -0
- package/dist/install/integrity.d.ts +27 -0
- package/dist/install/integrity.js +224 -0
- package/dist/install/integrity.js.map +1 -0
- package/dist/install/manifest.d.ts +27 -0
- package/dist/install/manifest.js +276 -0
- package/dist/install/manifest.js.map +1 -0
- package/dist/install/preflight.d.ts +3 -0
- package/dist/install/preflight.js +607 -0
- package/dist/install/preflight.js.map +1 -0
- package/dist/install/remove.d.ts +2 -0
- package/dist/install/remove.js +668 -0
- package/dist/install/remove.js.map +1 -0
- package/dist/install/types.d.ts +307 -0
- package/dist/install/types.js +2 -0
- package/dist/install/types.js.map +1 -0
- package/dist/install/upgrade.d.ts +2 -0
- package/dist/install/upgrade.js +451 -0
- package/dist/install/upgrade.js.map +1 -0
- package/dist/install/writes.d.ts +16 -0
- package/dist/install/writes.js +1202 -0
- package/dist/install/writes.js.map +1 -0
- package/dist/mcp/index.d.ts +13 -0
- package/dist/mcp/index.js +437 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/onboard/assignment.d.ts +22 -0
- package/dist/onboard/assignment.js +102 -0
- package/dist/onboard/assignment.js.map +1 -0
- package/dist/onboard/bless.d.ts +110 -0
- package/dist/onboard/bless.js +800 -0
- package/dist/onboard/bless.js.map +1 -0
- package/dist/onboard/card.d.ts +38 -0
- package/dist/onboard/card.js +206 -0
- package/dist/onboard/card.js.map +1 -0
- package/dist/onboard/findings.d.ts +3 -0
- package/dist/onboard/findings.js +185 -0
- package/dist/onboard/findings.js.map +1 -0
- package/dist/onboard/inventory.d.ts +21 -0
- package/dist/onboard/inventory.js +302 -0
- package/dist/onboard/inventory.js.map +1 -0
- package/dist/onboard/preflight.d.ts +32 -0
- package/dist/onboard/preflight.js +156 -0
- package/dist/onboard/preflight.js.map +1 -0
- package/dist/onboard/refresh.d.ts +28 -0
- package/dist/onboard/refresh.js +65 -0
- package/dist/onboard/refresh.js.map +1 -0
- package/dist/policy/errors.d.ts +12 -0
- package/dist/policy/errors.js +25 -0
- package/dist/policy/errors.js.map +1 -0
- package/dist/policy/index.d.ts +4 -0
- package/dist/policy/index.js +4 -0
- package/dist/policy/index.js.map +1 -0
- package/dist/policy/kit.d.ts +12 -0
- package/dist/policy/kit.js +162 -0
- package/dist/policy/kit.js.map +1 -0
- package/dist/policy/load.d.ts +15 -0
- package/dist/policy/load.js +415 -0
- package/dist/policy/load.js.map +1 -0
- package/dist/policy/selectors.d.ts +2 -0
- package/dist/policy/selectors.js +43 -0
- package/dist/policy/selectors.js.map +1 -0
- package/dist/policy/types.d.ts +40 -0
- package/dist/policy/types.js +2 -0
- package/dist/policy/types.js.map +1 -0
- package/dist/reports/acceptance.d.ts +2 -0
- package/dist/reports/acceptance.js +79 -0
- package/dist/reports/acceptance.js.map +1 -0
- package/dist/reports/declared.d.ts +6 -0
- package/dist/reports/declared.js +114 -0
- package/dist/reports/declared.js.map +1 -0
- package/dist/reports/errors.d.ts +8 -0
- package/dist/reports/errors.js +12 -0
- package/dist/reports/errors.js.map +1 -0
- package/dist/reports/index.d.ts +8 -0
- package/dist/reports/index.js +8 -0
- package/dist/reports/index.js.map +1 -0
- package/dist/reports/items.d.ts +6 -0
- package/dist/reports/items.js +85 -0
- package/dist/reports/items.js.map +1 -0
- package/dist/reports/read-types.d.ts +7 -0
- package/dist/reports/read-types.js +2 -0
- package/dist/reports/read-types.js.map +1 -0
- package/dist/reports/read.d.ts +3 -0
- package/dist/reports/read.js +96 -0
- package/dist/reports/read.js.map +1 -0
- package/dist/reports/registry.d.ts +32 -0
- package/dist/reports/registry.js +372 -0
- package/dist/reports/registry.js.map +1 -0
- package/dist/reports/scan.d.ts +23 -0
- package/dist/reports/scan.js +406 -0
- package/dist/reports/scan.js.map +1 -0
- package/dist/reports/tags.d.ts +4 -0
- package/dist/reports/tags.js +53 -0
- package/dist/reports/tags.js.map +1 -0
- package/dist/reports/types.d.ts +90 -0
- package/dist/reports/types.js +2 -0
- package/dist/reports/types.js.map +1 -0
- package/dist/reports/weakening.d.ts +5 -0
- package/dist/reports/weakening.js +260 -0
- package/dist/reports/weakening.js.map +1 -0
- package/dist/sdk.d.ts +8 -0
- package/dist/sdk.js +8 -0
- package/dist/sdk.js.map +1 -0
- package/dist/specs/anchors.d.ts +54 -0
- package/dist/specs/anchors.js +188 -0
- package/dist/specs/anchors.js.map +1 -0
- package/dist/specs/check.d.ts +19 -0
- package/dist/specs/check.js +663 -0
- package/dist/specs/check.js.map +1 -0
- package/dist/specs/citations.d.ts +5 -0
- package/dist/specs/citations.js +65 -0
- package/dist/specs/citations.js.map +1 -0
- package/dist/specs/deltas.d.ts +10 -0
- package/dist/specs/deltas.js +110 -0
- package/dist/specs/deltas.js.map +1 -0
- package/dist/specs/fix.d.ts +11 -0
- package/dist/specs/fix.js +583 -0
- package/dist/specs/fix.js.map +1 -0
- package/dist/specs/flags.d.ts +25 -0
- package/dist/specs/flags.js +100 -0
- package/dist/specs/flags.js.map +1 -0
- package/dist/specs/ladder.d.ts +13 -0
- package/dist/specs/ladder.js +105 -0
- package/dist/specs/ladder.js.map +1 -0
- package/dist/specs/parse.d.ts +61 -0
- package/dist/specs/parse.js +608 -0
- package/dist/specs/parse.js.map +1 -0
- package/dist/specs/sections.d.ts +2 -0
- package/dist/specs/sections.js +36 -0
- package/dist/specs/sections.js.map +1 -0
- package/dist/specs/split.d.ts +8 -0
- package/dist/specs/split.js +264 -0
- package/dist/specs/split.js.map +1 -0
- package/dist/specs/touched.d.ts +11 -0
- package/dist/specs/touched.js +376 -0
- package/dist/specs/touched.js.map +1 -0
- package/dist/types/generated.d.ts +547 -0
- package/dist/types/generated.js +4 -0
- package/dist/types/generated.js.map +1 -0
- package/dist/verify/bundle.d.ts +104 -0
- package/dist/verify/bundle.js +212 -0
- package/dist/verify/bundle.js.map +1 -0
- package/dist/verify/card.d.ts +7 -0
- package/dist/verify/card.js +106 -0
- package/dist/verify/card.js.map +1 -0
- package/dist/verify/forge.d.ts +56 -0
- package/dist/verify/forge.js +173 -0
- package/dist/verify/forge.js.map +1 -0
- package/dist/verify/record.d.ts +63 -0
- package/dist/verify/record.js +560 -0
- package/dist/verify/record.js.map +1 -0
- package/dist/verify/records.d.ts +33 -0
- package/dist/verify/records.js +107 -0
- package/dist/verify/records.js.map +1 -0
- package/dist/verify/run-checks.d.ts +22 -0
- package/dist/verify/run-checks.js +155 -0
- package/dist/verify/run-checks.js.map +1 -0
- package/dist/views/specs-board.d.ts +43 -0
- package/dist/views/specs-board.js +437 -0
- package/dist/views/specs-board.js.map +1 -0
- package/kit/CHANGELOG.md +68 -0
- package/kit/README.md +18 -0
- package/kit/TENET.md +83 -0
- package/kit/agents/drafter.md +78 -0
- package/kit/agents/spec-reviewer.md +75 -0
- package/kit/defaults/tenet.yaml +25 -0
- package/kit/hooks/pre-commit +7 -0
- package/kit/packs/minimal/pack.yaml +54 -0
- package/kit/practices/default.md +6 -0
- package/kit/schemas/agent-card.json +280 -0
- package/kit/schemas/assignment.json +128 -0
- package/kit/schemas/board.json +563 -0
- package/kit/schemas/bundle.json +148 -0
- package/kit/schemas/finding.json +59 -0
- package/kit/schemas/interview.json +48 -0
- package/kit/schemas/inventory.json +409 -0
- package/kit/schemas/lock.json +37 -0
- package/kit/schemas/manifest-local.json +31 -0
- package/kit/schemas/manifest.json +109 -0
- package/kit/schemas/pack.json +190 -0
- package/kit/schemas/packet.json +94 -0
- package/kit/schemas/proof-card.json +526 -0
- package/kit/schemas/results/bless.json +14 -0
- package/kit/schemas/results/board.json +169 -0
- package/kit/schemas/results/check.json +42 -0
- package/kit/schemas/results/context.json +172 -0
- package/kit/schemas/results/doctor.json +22 -0
- package/kit/schemas/results/fix.json +33 -0
- package/kit/schemas/results/init.json +102 -0
- package/kit/schemas/results/mcp.json +173 -0
- package/kit/schemas/results/onboard.json +72 -0
- package/kit/schemas/results/remove.json +34 -0
- package/kit/schemas/results/split.json +21 -0
- package/kit/schemas/results/upgrade.json +23 -0
- package/kit/schemas/results/verify.json +34 -0
- package/kit/schemas/spec-front-matter.json +218 -0
- package/kit/schemas/tenet-yaml.json +356 -0
- package/kit/schemas/test-report.json +77 -0
- package/kit/skills/draft-specs/SKILL.md +38 -0
- package/kit/skills/review-with-findings/SKILL.md +22 -0
- package/kit/skills/work-a-change/SKILL.md +30 -0
- package/kit/templates/agents-block.md +47 -0
- package/kit/templates/design.md +43 -0
- package/kit/templates/escalation.md +34 -0
- package/kit/templates/experience.md +33 -0
- package/kit/templates/intent.md +56 -0
- package/kit/templates/plan.md +35 -0
- package/kit/templates/pull-request.md +27 -0
- package/kit/templates/requirements.md +43 -0
- package/kit/templates/vision.md +69 -0
- package/kit/workflows/existing-ci-step.yml +83 -0
- package/kit/workflows/tenet-tests.yml +88 -0
- package/kit/workflows/tenet.yml +87 -0
- package/package.json +67 -4
- package/pkg/conformance/alg-02/README.md +18 -0
- package/pkg/conformance/alg-02/n01-duplicate-slug/expected.json +5 -0
- package/pkg/conformance/alg-02/n01-duplicate-slug/input.json +5 -0
- package/pkg/conformance/alg-02/n02-ambiguous-rename/expected.json +12 -0
- package/pkg/conformance/alg-02/n02-ambiguous-rename/input.json +20 -0
- package/pkg/conformance/alg-02/n03-missing-front/expected.json +12 -0
- package/pkg/conformance/alg-02/n03-missing-front/input.json +5 -0
- package/pkg/conformance/alg-02/n04-invalid-origin/expected.json +4 -0
- package/pkg/conformance/alg-02/n04-invalid-origin/input.json +9 -0
- package/pkg/conformance/alg-02/p01-leading-preamble/expected.json +15 -0
- package/pkg/conformance/alg-02/p01-leading-preamble/input.json +5 -0
- package/pkg/conformance/alg-02/p02-four-backtick-fence/expected.json +11 -0
- package/pkg/conformance/alg-02/p02-four-backtick-fence/input.json +5 -0
- package/pkg/conformance/alg-02/p03-unicode-and-empty-slug/expected.json +14 -0
- package/pkg/conformance/alg-02/p03-unicode-and-empty-slug/input.json +5 -0
- package/pkg/conformance/alg-02/p04-normalized-bodies/expected.json +6 -0
- package/pkg/conformance/alg-02/p04-normalized-bodies/input.json +7 -0
- package/pkg/conformance/alg-02/p05-rename-digest/expected.json +10 -0
- package/pkg/conformance/alg-02/p05-rename-digest/input.json +16 -0
- package/pkg/conformance/alg-02/p06-requirement-prefix/expected.json +14 -0
- package/pkg/conformance/alg-02/p06-requirement-prefix/input.json +7 -0
- package/pkg/conformance/alg-03/README.md +20 -0
- package/pkg/conformance/alg-03/n01-ambiguous-relocation/expected.json +3 -0
- package/pkg/conformance/alg-03/n01-ambiguous-relocation/input.json +8 -0
- package/pkg/conformance/alg-03/n02-missing-source/expected.json +5 -0
- package/pkg/conformance/alg-03/n02-missing-source/input.json +12 -0
- package/pkg/conformance/alg-03/n03-edited-intent/expected.json +5 -0
- package/pkg/conformance/alg-03/n03-edited-intent/input.json +14 -0
- package/pkg/conformance/alg-03/n04-unblessed-stale-metadata/expected.json +3 -0
- package/pkg/conformance/alg-03/n04-unblessed-stale-metadata/input.json +12 -0
- package/pkg/conformance/alg-03/n05-ambiguous-moved-anchor/expected.json +5 -0
- package/pkg/conformance/alg-03/n05-ambiguous-moved-anchor/input.json +14 -0
- package/pkg/conformance/alg-03/p01-path-anchor/expected.json +8 -0
- package/pkg/conformance/alg-03/p01-path-anchor/input.json +15 -0
- package/pkg/conformance/alg-03/p02-peer-test-anchor/expected.json +8 -0
- package/pkg/conformance/alg-03/p02-peer-test-anchor/input.json +15 -0
- package/pkg/conformance/alg-03/p03-doc-anchor/expected.json +8 -0
- package/pkg/conformance/alg-03/p03-doc-anchor/input.json +15 -0
- package/pkg/conformance/alg-03/p04-unique-relocation/expected.json +4 -0
- package/pkg/conformance/alg-03/p04-unique-relocation/input.json +8 -0
- package/pkg/conformance/alg-03/p05-clean-moved-anchor/expected.json +3 -0
- package/pkg/conformance/alg-03/p05-clean-moved-anchor/input.json +14 -0
- package/pkg/conformance/alg-03/p06-owner-precedence/expected.json +5 -0
- package/pkg/conformance/alg-03/p06-owner-precedence/input.json +7 -0
- package/pkg/conformance/alg-03/p07-owner-last-match/expected.json +6 -0
- package/pkg/conformance/alg-03/p07-owner-last-match/input.json +6 -0
- package/pkg/conformance/alg-04/README.md +19 -0
- package/pkg/conformance/alg-04/n01-missing-file/expected.json +10 -0
- package/pkg/conformance/alg-04/n01-missing-file/input.json +6 -0
- package/pkg/conformance/alg-04/n02-backward-range/expected.json +10 -0
- package/pkg/conformance/alg-04/n02-backward-range/input.json +8 -0
- package/pkg/conformance/alg-04/n03-missing-heading/expected.json +10 -0
- package/pkg/conformance/alg-04/n03-missing-heading/input.json +8 -0
- package/pkg/conformance/alg-04/n04-reversed-test-segments/expected.json +10 -0
- package/pkg/conformance/alg-04/n04-reversed-test-segments/input.json +8 -0
- package/pkg/conformance/alg-04/n05-out-of-range/expected.json +10 -0
- package/pkg/conformance/alg-04/n05-out-of-range/input.json +8 -0
- package/pkg/conformance/alg-04/p01-single-line/expected.json +3 -0
- package/pkg/conformance/alg-04/p01-single-line/input.json +8 -0
- package/pkg/conformance/alg-04/p02-full-range/expected.json +3 -0
- package/pkg/conformance/alg-04/p02-full-range/input.json +8 -0
- package/pkg/conformance/alg-04/p03-doc-heading/expected.json +3 -0
- package/pkg/conformance/alg-04/p03-doc-heading/input.json +8 -0
- package/pkg/conformance/alg-04/p04-nested-test/expected.json +3 -0
- package/pkg/conformance/alg-04/p04-nested-test/input.json +8 -0
- package/pkg/conformance/alg-04/p05-python-test/expected.json +3 -0
- package/pkg/conformance/alg-04/p05-python-test/input.json +8 -0
- package/pkg/conformance/alg-04/p06-go-test/expected.json +3 -0
- package/pkg/conformance/alg-04/p06-go-test/input.json +8 -0
- package/pkg/conformance/alg-08/cases.json +263 -0
- package/pkg/conformance/alg-09/cases.json +95 -0
- package/pkg/conformance/alg-10/README.md +24 -0
- package/pkg/conformance/alg-10/n01-no-blessed-material/expected.json +7 -0
- package/pkg/conformance/alg-10/n01-no-blessed-material/input.json +23 -0
- package/pkg/conformance/alg-10/n02-rejected-section/expected.json +7 -0
- package/pkg/conformance/alg-10/n02-rejected-section/input.json +24 -0
- package/pkg/conformance/alg-10/n03-broken-blessed-copy/expected.json +7 -0
- package/pkg/conformance/alg-10/n03-broken-blessed-copy/input.json +27 -0
- package/pkg/conformance/alg-10/n04-local-omitted/expected.json +12 -0
- package/pkg/conformance/alg-10/n04-local-omitted/input.json +27 -0
- package/pkg/conformance/alg-10/n05-over-budget-explicit-id/expected.json +10 -0
- package/pkg/conformance/alg-10/n05-over-budget-explicit-id/input.json +26 -0
- package/pkg/conformance/alg-10/n06-unknown-method/expected.json +11 -0
- package/pkg/conformance/alg-10/n06-unknown-method/input.json +32 -0
- package/pkg/conformance/alg-10/p01-path-admitted/expected.json +14 -0
- package/pkg/conformance/alg-10/p01-path-admitted/input.json +26 -0
- package/pkg/conformance/alg-10/p02-retry-once-source-changed/expected.json +15 -0
- package/pkg/conformance/alg-10/p02-retry-once-source-changed/input.json +26 -0
- package/pkg/conformance/alg-10/p03-id-and-path-deduplicate/expected.json +13 -0
- package/pkg/conformance/alg-10/p03-id-and-path-deduplicate/input.json +30 -0
- package/pkg/conformance/alg-10/p04-include-draft-with-blessing/expected.json +17 -0
- package/pkg/conformance/alg-10/p04-include-draft-with-blessing/input.json +27 -0
- package/pkg/conformance/alg-10/p05-no-inputs-global-and-index/expected.json +16 -0
- package/pkg/conformance/alg-10/p05-no-inputs-global-and-index/input.json +21 -0
- package/pkg/conformance/alg-10/p06-checked-policy-rule/expected.json +20 -0
- package/pkg/conformance/alg-10/p06-checked-policy-rule/input.json +26 -0
- package/pkg/conformance/alg-10/p07-mcp-session/expected.json +60 -0
- package/pkg/conformance/alg-10/p07-mcp-session/input.json +65 -0
- package/pkg/conformance/alg-10/p08-applies-to-prose/expected.json +12 -0
- package/pkg/conformance/alg-10/p08-applies-to-prose/input.json +25 -0
- package/pkg/conformance/alg-10/p09-global-beyond-reserve/expected.json +14 -0
- package/pkg/conformance/alg-10/p09-global-beyond-reserve/input.json +27 -0
- package/pkg/conformance/alg-10/p10-query-case-insensitive/expected.json +11 -0
- package/pkg/conformance/alg-10/p10-query-case-insensitive/input.json +23 -0
- package/pkg/conformance/alg-11/README.md +29 -0
- package/pkg/conformance/alg-11/n01-no-commits-refused/expected.json +11 -0
- package/pkg/conformance/alg-11/n01-no-commits-refused/input.json +13 -0
- package/pkg/conformance/alg-11/n02-secrets-and-env-skipped/expected.json +153 -0
- package/pkg/conformance/alg-11/n02-secrets-and-env-skipped/input.json +20 -0
- package/pkg/conformance/alg-11/n03-generated-vendored-and-tests-excluded-from-size/expected.json +171 -0
- package/pkg/conformance/alg-11/n03-generated-vendored-and-tests-excluded-from-size/input.json +22 -0
- package/pkg/conformance/alg-11/n04-binary-oversize-and-onboard-exclude-skipped/expected.json +137 -0
- package/pkg/conformance/alg-11/n04-binary-oversize-and-onboard-exclude-skipped/input.json +20 -0
- package/pkg/conformance/alg-11/n05-uncommitted-worktree-source-ignored/expected.json +124 -0
- package/pkg/conformance/alg-11/n05-uncommitted-worktree-source-ignored/input.json +17 -0
- package/pkg/conformance/alg-11/p01-small-one-file-service/expected.json +145 -0
- package/pkg/conformance/alg-11/p01-small-one-file-service/input.json +18 -0
- package/pkg/conformance/alg-11/p02-four-codeowners-areas-separate/expected.json +255 -0
- package/pkg/conformance/alg-11/p02-four-codeowners-areas-separate/input.json +17 -0
- package/pkg/conformance/alg-11/p03-twenty-thousand-lines-separate/expected.json +169 -0
- package/pkg/conformance/alg-11/p03-twenty-thousand-lines-separate/input.json +14 -0
- package/pkg/conformance/alg-11/p04-merge-small-unit-into-neighbor/expected.json +186 -0
- package/pkg/conformance/alg-11/p04-merge-small-unit-into-neighbor/input.json +15 -0
- package/pkg/conformance/alg-11/p05-layout-override/expected.json +128 -0
- package/pkg/conformance/alg-11/p05-layout-override/input.json +14 -0
- package/pkg/conformance/alg-11/p06-cli-kind-and-instruction-files/expected.json +154 -0
- package/pkg/conformance/alg-11/p06-cli-kind-and-instruction-files/input.json +18 -0
- package/pkg/conformance/alg-11/p07-local-test-report-in-observations/expected.json +131 -0
- package/pkg/conformance/alg-11/p07-local-test-report-in-observations/input.json +17 -0
- package/pkg/conformance/alg-11/p08-first-findings-all-four-kinds/expected.json +207 -0
- package/pkg/conformance/alg-11/p08-first-findings-all-four-kinds/input.json +20 -0
- package/pkg/conformance/alg-14/README.md +21 -0
- package/pkg/conformance/alg-14/n01-draft-implements/expected.json +3 -0
- package/pkg/conformance/alg-14/n01-draft-implements/input.json +12 -0
- package/pkg/conformance/alg-14/n02-outside-replacement/expected.json +8 -0
- package/pkg/conformance/alg-14/n02-outside-replacement/input.json +12 -0
- package/pkg/conformance/alg-14/n03-insertion-at-end/expected.json +8 -0
- package/pkg/conformance/alg-14/n03-insertion-at-end/input.json +12 -0
- package/pkg/conformance/alg-14/n04-same-owner-different-rule/expected.json +3 -0
- package/pkg/conformance/alg-14/n04-same-owner-different-rule/input.json +16 -0
- package/pkg/conformance/alg-14/n05-missing-implements/expected.json +3 -0
- package/pkg/conformance/alg-14/n05-missing-implements/input.json +12 -0
- package/pkg/conformance/alg-14/p01-implements-first/expected.json +8 -0
- package/pkg/conformance/alg-14/p01-implements-first/input.json +14 -0
- package/pkg/conformance/alg-14/p02-overlapping-replacement/expected.json +8 -0
- package/pkg/conformance/alg-14/p02-overlapping-replacement/input.json +12 -0
- package/pkg/conformance/alg-14/p03-interior-insertion/expected.json +8 -0
- package/pkg/conformance/alg-14/p03-interior-insertion/input.json +12 -0
- package/pkg/conformance/alg-14/p04-text-changed/expected.json +8 -0
- package/pkg/conformance/alg-14/p04-text-changed/input.json +10 -0
- package/pkg/conformance/alg-14/p05-same-folder/expected.json +8 -0
- package/pkg/conformance/alg-14/p05-same-folder/input.json +14 -0
- package/pkg/conformance/alg-14/p06-codeowners-priority/expected.json +8 -0
- package/pkg/conformance/alg-14/p06-codeowners-priority/input.json +18 -0
- package/pkg/conformance/alg-14/p07-same-area-cap/expected.json +44 -0
- package/pkg/conformance/alg-14/p07-same-area-cap/input.json +14 -0
- package/pkg/conformance/alg-14/p08-deleted-document/expected.json +8 -0
- package/pkg/conformance/alg-14/p08-deleted-document/input.json +13 -0
- package/pkg/conformance/board/README.md +19 -0
- package/pkg/conformance/board/n01-no-specifications/expected.json +8 -0
- package/pkg/conformance/board/n01-no-specifications/expected.md +1 -0
- package/pkg/conformance/board/n01-no-specifications/input.json +19 -0
- package/pkg/conformance/board/n02-broken-citation/expected.json +14 -0
- package/pkg/conformance/board/n02-broken-citation/expected.md +1 -0
- package/pkg/conformance/board/n02-broken-citation/input.json +24 -0
- package/pkg/conformance/board/n03-untested-requirement/expected.json +12 -0
- package/pkg/conformance/board/n03-untested-requirement/expected.md +1 -0
- package/pkg/conformance/board/n03-untested-requirement/input.json +23 -0
- package/pkg/conformance/board/n04-over-budget/expected.json +14 -0
- package/pkg/conformance/board/n04-over-budget/expected.md +1 -0
- package/pkg/conformance/board/n04-over-budget/input.json +20 -0
- package/pkg/conformance/board/p01-fresh-draft/expected.json +22 -0
- package/pkg/conformance/board/p01-fresh-draft/expected.md +2 -0
- package/pkg/conformance/board/p01-fresh-draft/input.json +20 -0
- package/pkg/conformance/board/p02-half-blessed/expected.json +34 -0
- package/pkg/conformance/board/p02-half-blessed/expected.md +3 -0
- package/pkg/conformance/board/p02-half-blessed/input.json +25 -0
- package/pkg/conformance/board/p03-sources-changed/expected.json +18 -0
- package/pkg/conformance/board/p03-sources-changed/expected.md +2 -0
- package/pkg/conformance/board/p03-sources-changed/input.json +24 -0
- package/pkg/conformance/board/p04-clean-all/expected.json +17 -0
- package/pkg/conformance/board/p04-clean-all/expected.md +1 -0
- package/pkg/conformance/board/p04-clean-all/input.json +25 -0
- package/pkg/conformance/board/p05-clean-default/expected.json +7 -0
- package/pkg/conformance/board/p05-clean-default/expected.md +1 -0
- package/pkg/conformance/board/p05-clean-default/input.json +25 -0
- package/pkg/conformance/board/p06-edited-only/expected.json +18 -0
- package/pkg/conformance/board/p06-edited-only/expected.md +2 -0
- package/pkg/conformance/board/p06-edited-only/input.json +23 -0
- package/pkg/conformance/board/p07-ux-part-2/expected.json +47 -0
- package/pkg/conformance/board/p07-ux-part-2/expected.md +8 -0
- package/pkg/conformance/board/p07-ux-part-2/input.json +26 -0
- package/pkg/conformance/card/README.md +34 -0
- package/pkg/conformance/card/n01-no-acceptance-block/expected.json +62 -0
- package/pkg/conformance/card/n01-no-acceptance-block/expected.md +7 -0
- package/pkg/conformance/card/n01-no-acceptance-block/input.json +94 -0
- package/pkg/conformance/card/n02-malformed-acceptance-block/expected.json +64 -0
- package/pkg/conformance/card/n02-malformed-acceptance-block/expected.md +8 -0
- package/pkg/conformance/card/n02-malformed-acceptance-block/input.json +99 -0
- package/pkg/conformance/card/n03-report-missing-not-checked/expected.json +85 -0
- package/pkg/conformance/card/n03-report-missing-not-checked/expected.md +9 -0
- package/pkg/conformance/card/n03-report-missing-not-checked/input.json +97 -0
- package/pkg/conformance/card/n04-nonzero-exit-after-passing-report/expected.json +84 -0
- package/pkg/conformance/card/n04-nonzero-exit-after-passing-report/expected.md +8 -0
- package/pkg/conformance/card/n04-nonzero-exit-after-passing-report/input.json +99 -0
- package/pkg/conformance/card/n05-bundle-refused-and-records-not-kept/expected.json +83 -0
- package/pkg/conformance/card/n05-bundle-refused-and-records-not-kept/expected.md +8 -0
- package/pkg/conformance/card/n05-bundle-refused-and-records-not-kept/input.json +98 -0
- package/pkg/conformance/card/n06-policy-load-failure-fallback/expected.json +93 -0
- package/pkg/conformance/card/n06-policy-load-failure-fallback/expected.md +9 -0
- package/pkg/conformance/card/n06-policy-load-failure-fallback/input.json +105 -0
- package/pkg/conformance/card/p01-clean-pass-success/expected.json +93 -0
- package/pkg/conformance/card/p01-clean-pass-success/expected.md +8 -0
- package/pkg/conformance/card/p01-clean-pass-success/input.json +101 -0
- package/pkg/conformance/card/p02-no-blessed-intent-badge/expected.json +62 -0
- package/pkg/conformance/card/p02-no-blessed-intent-badge/expected.md +5 -0
- package/pkg/conformance/card/p02-no-blessed-intent-badge/input.json +92 -0
- package/pkg/conformance/card/p03-matrix-shards-and-retry-merge/expected.json +93 -0
- package/pkg/conformance/card/p03-matrix-shards-and-retry-merge/expected.md +8 -0
- package/pkg/conformance/card/p03-matrix-shards-and-retry-merge/input.json +137 -0
- package/pkg/conformance/card/p04-blessings-changed-and-requirement-deltas/expected.json +122 -0
- package/pkg/conformance/card/p04-blessings-changed-and-requirement-deltas/expected.md +11 -0
- package/pkg/conformance/card/p04-blessings-changed-and-requirement-deltas/input.json +102 -0
- package/pkg/conformance/card/p05-workflow-and-protected-surfaces-would-block/expected.json +92 -0
- package/pkg/conformance/card/p05-workflow-and-protected-surfaces-would-block/expected.md +8 -0
- package/pkg/conformance/card/p05-workflow-and-protected-surfaces-would-block/input.json +101 -0
- package/pkg/conformance/card/p06-test-weakening-would-block/expected.json +99 -0
- package/pkg/conformance/card/p06-test-weakening-would-block/expected.md +8 -0
- package/pkg/conformance/card/p06-test-weakening-would-block/input.json +101 -0
- package/pkg/conformance/card/p07-only-skipped-cases/expected.json +80 -0
- package/pkg/conformance/card/p07-only-skipped-cases/expected.md +7 -0
- package/pkg/conformance/card/p07-only-skipped-cases/input.json +99 -0
- package/pkg/conformance/card/p08-coverage-not-confirmed/expected.json +80 -0
- package/pkg/conformance/card/p08-coverage-not-confirmed/expected.md +7 -0
- package/pkg/conformance/card/p08-coverage-not-confirmed/input.json +99 -0
- package/pkg/conformance/check/README.md +26 -0
- package/pkg/conformance/check/n01-missing-citation-file/expected.json +15 -0
- package/pkg/conformance/check/n01-missing-citation-file/input.json +25 -0
- package/pkg/conformance/check/n02-citation-out-of-range/expected.json +15 -0
- package/pkg/conformance/check/n02-citation-out-of-range/input.json +26 -0
- package/pkg/conformance/check/n03-missing-citation-heading/expected.json +15 -0
- package/pkg/conformance/check/n03-missing-citation-heading/input.json +26 -0
- package/pkg/conformance/check/n04-missing-citation-test/expected.json +15 -0
- package/pkg/conformance/check/n04-missing-citation-test/input.json +26 -0
- package/pkg/conformance/check/n05-changed-blessed-copy/expected.json +12 -0
- package/pkg/conformance/check/n05-changed-blessed-copy/input.json +29 -0
- package/pkg/conformance/check/n06-missing-blessed-copy/expected.json +12 -0
- package/pkg/conformance/check/n06-missing-blessed-copy/input.json +27 -0
- package/pkg/conformance/check/n07-two-blessed-ids/expected.json +12 -0
- package/pkg/conformance/check/n07-two-blessed-ids/input.json +32 -0
- package/pkg/conformance/check/n08-uncovered-vision/expected.json +8 -0
- package/pkg/conformance/check/n08-uncovered-vision/input.json +27 -0
- package/pkg/conformance/check/n09-ci-budget-crossing/expected.json +13 -0
- package/pkg/conformance/check/n09-ci-budget-crossing/input.json +47 -0
- package/pkg/conformance/check/n10-kit-edited/expected.json +12 -0
- package/pkg/conformance/check/n10-kit-edited/input.json +31 -0
- package/pkg/conformance/check/n11-lock-version-mismatch/expected.json +13 -0
- package/pkg/conformance/check/n11-lock-version-mismatch/input.json +31 -0
- package/pkg/conformance/check/n12-local-budget-warning/expected.json +10 -0
- package/pkg/conformance/check/n12-local-budget-warning/input.json +29 -0
- package/pkg/conformance/check/p01-covered-vision/expected.json +6 -0
- package/pkg/conformance/check/p01-covered-vision/input.json +29 -0
- package/pkg/conformance/check/p02-path-citation/expected.json +6 -0
- package/pkg/conformance/check/p02-path-citation/input.json +26 -0
- package/pkg/conformance/check/p03-doc-and-test-citations/expected.json +6 -0
- package/pkg/conformance/check/p03-doc-and-test-citations/input.json +27 -0
- package/pkg/conformance/check/p04-valid-blessed-copy/expected.json +6 -0
- package/pkg/conformance/check/p04-valid-blessed-copy/input.json +30 -0
- package/pkg/conformance/check/p05-unique-across-documents/expected.json +6 -0
- package/pkg/conformance/check/p05-unique-across-documents/input.json +32 -0
- package/pkg/conformance/check/p06-matching-lock-and-kit/expected.json +6 -0
- package/pkg/conformance/check/p06-matching-lock-and-kit/input.json +31 -0
- package/pkg/conformance/install/.gitattributes +1 -0
- package/pkg/conformance/install/README.md +40 -0
- package/pkg/conformance/install/environment.json +29 -0
- package/pkg/conformance/install/n01-git-executable-missing/args.json +17 -0
- package/pkg/conformance/install/n01-git-executable-missing/before/README.md +1 -0
- package/pkg/conformance/install/n02-not-a-git-repository/args.json +15 -0
- package/pkg/conformance/install/n02-not-a-git-repository/before/README.md +1 -0
- package/pkg/conformance/install/n02-not-a-git-repository/expected/01-init/result.json +4 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/args.json +14 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/before/.tenet/manifest.json +12 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/before/README.md +1 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/before/tenet.yaml +1 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/expected/01-remove/result.json +4 -0
- package/pkg/conformance/install/n04-init-symlink-outside/args.json +22 -0
- package/pkg/conformance/install/n04-init-symlink-outside/before/package-lock.json +15 -0
- package/pkg/conformance/install/n04-init-symlink-outside/before/package.json +11 -0
- package/pkg/conformance/install/n04-init-symlink-outside/before/src/retry.ts +1 -0
- package/pkg/conformance/install/n04-init-symlink-outside/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/n04-init-symlink-outside/expected/01-init/result.json +4 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/args.json +12 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/.github/workflows/tenet.yml +3 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/package-lock.json +15 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/package.json +11 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/src/retry.ts +1 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/expected/01-init/result.json +4 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/args.json +27 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/AGENTS.md +1 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/package-lock.json +15 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/package.json +11 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/src/retry.ts +1 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/args.json +11 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/before/README.md +1 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/before/tenet.yaml +2 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/expected/01-doctor/tree/README.md +1 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/expected/01-doctor/tree/tenet.yaml +2 -0
- package/pkg/conformance/install/n08-preflight-declined/args.json +14 -0
- package/pkg/conformance/install/n08-preflight-declined/before/AGENTS.md +1 -0
- package/pkg/conformance/install/n08-preflight-declined/before/package-lock.json +15 -0
- package/pkg/conformance/install/n08-preflight-declined/before/package.json +11 -0
- package/pkg/conformance/install/n08-preflight-declined/before/src/retry.ts +1 -0
- package/pkg/conformance/install/n08-preflight-declined/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/AGENTS.md +1 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/package-lock.json +15 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/package.json +11 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/src/retry.ts +1 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p01-empty/args.json +15 -0
- package/pkg/conformance/install/p01-empty/before/.gitkeep +0 -0
- package/pkg/conformance/install/p02-node-vitest/args.json +12 -0
- package/pkg/conformance/install/p02-node-vitest/before/.nvmrc +1 -0
- package/pkg/conformance/install/p02-node-vitest/before/package-lock.json +15 -0
- package/pkg/conformance/install/p02-node-vitest/before/package.json +11 -0
- package/pkg/conformance/install/p02-node-vitest/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p02-node-vitest/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p03-node-existing-ci/args.json +12 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/.github/workflows/ci.yml +10 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/package-lock.json +15 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/package.json +11 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p04-node-matrix/args.json +12 -0
- package/pkg/conformance/install/p04-node-matrix/before/.github/workflows/ci.yml +13 -0
- package/pkg/conformance/install/p04-node-matrix/before/package-lock.json +15 -0
- package/pkg/conformance/install/p04-node-matrix/before/package.json +11 -0
- package/pkg/conformance/install/p04-node-matrix/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p04-node-matrix/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p05-python-pytest/args.json +12 -0
- package/pkg/conformance/install/p05-python-pytest/before/.python-version +1 -0
- package/pkg/conformance/install/p05-python-pytest/before/requirements.txt +1 -0
- package/pkg/conformance/install/p05-python-pytest/before/tests/test_retry.py +2 -0
- package/pkg/conformance/install/p06-go/args.json +12 -0
- package/pkg/conformance/install/p06-go/before/go.mod +3 -0
- package/pkg/conformance/install/p06-go/before/retry_test.go +5 -0
- package/pkg/conformance/install/p07-existing-agents-md/args.json +12 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/AGENTS.md +7 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/package-lock.json +15 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/package.json +11 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p08-existing-mcp/args.json +12 -0
- package/pkg/conformance/install/p08-existing-mcp/before/.mcp.json +18 -0
- package/pkg/conformance/install/p08-existing-mcp/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p08-existing-mcp/before/package-lock.json +15 -0
- package/pkg/conformance/install/p08-existing-mcp/before/package.json +11 -0
- package/pkg/conformance/install/p08-existing-mcp/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p08-existing-mcp/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/args.json +33 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/.gitattributes +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/.github/pull_request_template.md +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/.mcp.json +18 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/AGENTS.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/CLAUDE.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/package-lock.json +15 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/package.json +11 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/tenet/intent.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/.gitattributes +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/.github/pull_request_template.md +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/.mcp.json +18 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/AGENTS.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/CLAUDE.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/package-lock.json +15 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/package.json +11 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/src/retry.ts +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/tenet/intent.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/args.json +24 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/.mcp.json +18 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/package-lock.json +15 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/package.json +11 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/tenet/intent.md +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/.mcp.json +16 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/CLAUDE.md +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/package-lock.json +15 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/package.json +11 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/src/retry.ts +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/tenet/intent.md +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/tenet.yaml +2 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/args.json +24 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/.mcp.json +18 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/package-lock.json +15 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/package.json +11 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p12-windows-local-host/args.json +26 -0
- package/pkg/conformance/install/p12-windows-local-host/before/.vscode/mcp.json +10 -0
- package/pkg/conformance/install/p12-windows-local-host/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p12-windows-local-host/before/package-lock.json +15 -0
- package/pkg/conformance/install/p12-windows-local-host/before/package.json +11 -0
- package/pkg/conformance/install/p12-windows-local-host/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p12-windows-local-host/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/args.json +12 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/.github/workflows/ci.yml +16 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/package-lock.json +15 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/package.json +11 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p14-reusable-workflow/args.json +12 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/.github/workflows/ci.yml +5 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/.github/workflows/reusable.yml +10 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/package-lock.json +15 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/package.json +11 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p15-non-github-forge/args.json +15 -0
- package/pkg/conformance/install/p15-non-github-forge/before/package-lock.json +15 -0
- package/pkg/conformance/install/p15-non-github-forge/before/package.json +11 -0
- package/pkg/conformance/install/p15-non-github-forge/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p15-non-github-forge/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/args.json +20 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/before/package-lock.json +15 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/before/package.json +11 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/args.json +24 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/.cursor/mcp.json +10 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/.mcp.json +18 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/package-lock.json +15 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/package.json +11 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/args.json +15 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/.github/workflows/ci.yml +9 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/package-lock.json +15 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/package.json +11 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/test/retry.test.ts +3 -0
- package/pkg/conformance/scenarios/README.md +38 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet/blessed/tenet__intent.md/requirements.md +1 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet/blessed/tenet__intent.md/requirements.md.anchors.json +10 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet/intent.md +7 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/test/retry.test.ts +2 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/expected/04-card.md +9 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/expected/04-verify.json +92 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/steps.json +88 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/src/retry.ts +6 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet/blessed/tenet__intent.md/requirements.md +2 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet/blessed/tenet__intent.md/requirements.md.anchors.json +15 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet/intent.md +8 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/test/retry.test.ts +2 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/expected/04-card.md +9 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/expected/04-verify.json +92 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/expected/05-card.md +10 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/expected/05-verify.json +107 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/steps.json +101 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/before/tenet/intent.md +7 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/before/tenet.yaml +24 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/expected/01-gate-fixture.json +48 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/expected/02-check.json +106 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/steps.json +79 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/blessed/tenet__specs__prd.md/requirements.md +1 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/blessed/tenet__specs__prd.md/requirements.md.anchors.json +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/blessed/tenet__vision.md/vision.md +1 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/blessed/tenet__vision.md/vision.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/specs/prd.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/specs/tech-spec.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/vision.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/02-board.json +72 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/03-context.json +46 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/04-mcp.json +71 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/05-bless.json +13 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/06-context-sdk.json +38 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/steps.json +98 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/src/checkout/pay.ts +1 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/blessed/tenet__specs__prd.md/requirements.md +3 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/blessed/tenet__specs__prd.md/requirements.md.anchors.json +5 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/blessed/tenet__vision.md/vision.md +1 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/blessed/tenet__vision.md/vision.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/specs/prd.md +9 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/specs/tech-spec.md +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/vision.md +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/expected/01-context-tight.json +54 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/expected/02-mcp.json +79 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/expected/03-context-explicit.json +52 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/expected/04-context-zero.json +17 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/steps.json +79 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/CODEOWNERS +2 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/src/api/handler.ts +2007 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/src/billing/charge.ts +2007 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/src/shared/http.ts +3 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet/blessed/tenet__intent.md/requirements.md +2 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet/blessed/tenet__intent.md/requirements.md.anchors.json +11 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet/intent.md +8 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/expected/01-onboard-initial.json +240 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/expected/05-onboard-refresh.json +252 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/expected/06-card.md +8 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/expected/06-verify.json +77 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/steps.json +122 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/.mcp.json +10 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/AGENTS.md +3 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/package.json +11 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/src/index.ts +1 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/test/index.test.ts +2 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/expected/01-interrupted-init.json +4 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/expected/02-init-resume.json +75 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/expected/03-doctor.json +40 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/expected/04-remove.json +44 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/steps.json +56 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/blessed/tenet__specs__prd.md/requirements.md +1 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/blessed/tenet__specs__prd.md/requirements.md.anchors.json +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/blessed/tenet__vision.md/vision.md +1 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/blessed/tenet__vision.md/vision.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/specs/prd.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/specs/tech-spec.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/vision.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/expected/02-context-clean.json +38 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/expected/04-context-drift.json +40 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/expected/05-bless.json +13 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/expected/05-log-entry.json +15 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/steps.json +80 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/blessed/tenet__specs__prd.md/checkout-retries.md +1 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/blessed/tenet__specs__prd.md/checkout-retries.md.anchors.json +5 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/blessed/tenet__vision.md/vision.md +1 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/blessed/tenet__vision.md/vision.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/specs/prd.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/specs/tech-spec.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/vision.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/test/retry.test.ts +2 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/expected/02-fix.json +34 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/expected/03-check.json +14 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/expected/04-board.json +56 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/expected/05-context.json +38 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/steps.json +58 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet/blessed/tenet__intent.md/requirements.md +1 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet/blessed/tenet__intent.md/requirements.md.anchors.json +7 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet/intent.md +7 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/expected/04-card.md +8 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/expected/04-verify.json +77 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/expected/05-verify-closed.json +6 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/steps.json +108 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/before/README.md +3 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/before/package.json +8 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/before/test/retry.test.ts +2 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/01-init.json +75 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/02-onboard-inventory.json +141 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/06-card.md +10 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/06-onboard-card.json +10 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/07-bless.json +13 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/08-remove.json +57 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/steps.json +93 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/.claude/settings.json +1 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/.github/workflows/ci.yml +8 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/CODEOWNERS +1 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/README.md +3 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/docs/adr/0001-retries.md +1 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/docs/adr/0002-timeouts.md +1 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/docs/architecture.md +3 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/package.json +11 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/src/retry.ts +6 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/test/checkout.retry.test.ts +4 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/01-init.json +103 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/02-onboard-inventory.json +233 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/06-card.md +12 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/06-onboard-card.json +10 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/07-bless.json +13 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/08-board.json +34 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/steps.json +98 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/before/.gitkeep +0 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/01-init.json +82 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/04-onboard-inventory.json +188 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/05-card.md +15 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/05-onboard-card.json +10 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/06-bless.json +13 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/steps.json +76 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/README.md +4 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/src/app.ts +6 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/blessed/tenet__specs__plan.md/plan.md +2 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/blessed/tenet__specs__plan.md/plan.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/blessed/tenet__specs__tech-spec.md/design.md +2 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/blessed/tenet__specs__tech-spec.md/design.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/blessed/tenet__specs__ux-spec.md/experience.md +2 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/blessed/tenet__specs__ux-spec.md/experience.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/specs/prd.md +24 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/specs/tech-spec.md +7 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/vision.md +15 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/expected/02-board.json +41 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/expected/09-check.json +19 -0
- package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/steps.json +141 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/README.md +3 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/app/core/x.py +2 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/b/two.py +2 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/pyproject.toml +3 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__specs__prd.md/app-core.md +2 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__specs__prd.md/app-core.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__specs__prd.md/global-rules.md +2 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__specs__prd.md/global-rules.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__specs__prd.md/secondary-module.md +2 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__specs__prd.md/secondary-module.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__specs__tech-spec.md/repo-conventions.md +41 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__specs__tech-spec.md/repo-conventions.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__vision.md/vision.md +2 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/blessed/tenet__vision.md/vision.md.anchors.json +3 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/specs/prd.md +19 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/specs/tech-spec.md +46 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet/vision.md +7 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/expected/01-context-paths.json +27 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/expected/03-context-multi.json +29 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/expected/05-context-drafts.json +19 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/expected/07-mcp-drafts.json +50 -0
- package/pkg/conformance/scenarios/s15-context-paths-ranking/steps.json +133 -0
- package/pkg/conformance/scenarios/s16-verify-local-preview/before/README.md +3 -0
- package/pkg/conformance/scenarios/s16-verify-local-preview/expected/01-init.json +14 -0
- package/pkg/conformance/scenarios/s16-verify-local-preview/expected/14-local-preview.json +7 -0
- package/pkg/conformance/scenarios/s16-verify-local-preview/expected/18-command-change.json +8 -0
- package/pkg/conformance/scenarios/s16-verify-local-preview/steps.json +162 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { git } from "../core/git.js";
|
|
5
|
+
import { loadPolicy } from "../policy/index.js";
|
|
6
|
+
import { scanTests } from "../reports/scan.js";
|
|
7
|
+
import { citationParts } from "../specs/anchors.js";
|
|
8
|
+
import { resolveCitations } from "../specs/citations.js";
|
|
9
|
+
import { flags } from "../specs/flags.js";
|
|
10
|
+
import { ladder } from "../specs/ladder.js";
|
|
11
|
+
import { openItemsFor, parseDoc, specificationBody, } from "../specs/parse.js";
|
|
12
|
+
const renderDetails = new WeakMap();
|
|
13
|
+
const levelValues = new Set(["L0", "L1", "L2", "L3", "L4"]);
|
|
14
|
+
const stateValues = new Set([
|
|
15
|
+
"draft",
|
|
16
|
+
"blessed",
|
|
17
|
+
"rejected",
|
|
18
|
+
"deferred",
|
|
19
|
+
]);
|
|
20
|
+
function portable(value) {
|
|
21
|
+
return value.replaceAll("\\", "/").replace(/^\.\/+/, "");
|
|
22
|
+
}
|
|
23
|
+
function sectionKey(file, section) {
|
|
24
|
+
return `${file}\0${section}`;
|
|
25
|
+
}
|
|
26
|
+
function sectionRecord(doc, slug) {
|
|
27
|
+
const sections = doc.front?.sections;
|
|
28
|
+
if (!sections || typeof sections !== "object" || Array.isArray(sections))
|
|
29
|
+
return {};
|
|
30
|
+
const value = sections[slug];
|
|
31
|
+
return value !== null && typeof value === "object" && !Array.isArray(value)
|
|
32
|
+
? value
|
|
33
|
+
: {};
|
|
34
|
+
}
|
|
35
|
+
function readAt(cwd) {
|
|
36
|
+
return (filename) => {
|
|
37
|
+
try {
|
|
38
|
+
return readFileSync(path.join(cwd, ...portable(filename).split("/")), "utf8");
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
if (error.code === "ENOENT")
|
|
42
|
+
return null;
|
|
43
|
+
throw error;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function defaultBudget(filename) {
|
|
48
|
+
const lower = filename.toLowerCase();
|
|
49
|
+
if (lower === "agents.md")
|
|
50
|
+
return 3_000;
|
|
51
|
+
if (lower.endsWith("/now.md"))
|
|
52
|
+
return 6_000;
|
|
53
|
+
if (lower.endsWith("/vision.md"))
|
|
54
|
+
return 4_000;
|
|
55
|
+
if (lower.endsWith("/prd.md"))
|
|
56
|
+
return 9_000;
|
|
57
|
+
if (lower.includes("/prd/") && lower.endsWith(".md"))
|
|
58
|
+
return 7_000;
|
|
59
|
+
if (lower.endsWith("/catalog.md"))
|
|
60
|
+
return 7_000;
|
|
61
|
+
if (lower.endsWith("/tech-spec.md"))
|
|
62
|
+
return 12_000;
|
|
63
|
+
if (lower.endsWith("/ux-spec.md"))
|
|
64
|
+
return 6_000;
|
|
65
|
+
if (lower.endsWith("/plan.md"))
|
|
66
|
+
return 6_000;
|
|
67
|
+
if (lower.includes("/plan/") && lower.endsWith(".md"))
|
|
68
|
+
return 6_000;
|
|
69
|
+
if (lower.includes("/tech-spec/") && lower.endsWith(".md"))
|
|
70
|
+
return 6_000;
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
function levelOrder(level) {
|
|
74
|
+
if (level === null)
|
|
75
|
+
return 5;
|
|
76
|
+
return /^(L[0-4])$/.test(level) ? Number(level.slice(1)) : 5;
|
|
77
|
+
}
|
|
78
|
+
function asOf(options) {
|
|
79
|
+
const now = options.now === undefined
|
|
80
|
+
? new Date()
|
|
81
|
+
: options.now instanceof Date
|
|
82
|
+
? options.now
|
|
83
|
+
: new Date(options.now);
|
|
84
|
+
return now.toISOString().replace(".000Z", "Z");
|
|
85
|
+
}
|
|
86
|
+
async function revision(cwd) {
|
|
87
|
+
const [full, branch] = await Promise.all([
|
|
88
|
+
git(["rev-parse", "HEAD"], { cwd }).catch(() => ""),
|
|
89
|
+
git(["branch", "--show-current"], { cwd }).catch(() => ""),
|
|
90
|
+
]);
|
|
91
|
+
const sha = full.trim();
|
|
92
|
+
return {
|
|
93
|
+
full: sha || null,
|
|
94
|
+
short: sha ? sha.slice(0, 7) : null,
|
|
95
|
+
branch: branch.trim() || null,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
async function defaultRevision(cwd) {
|
|
99
|
+
const remoteDefault = (await git(["symbolic-ref", "--quiet", "refs/remotes/origin/HEAD"], { cwd }).catch(() => "")).trim();
|
|
100
|
+
const initialBranch = (await git(["config", "--get", "init.defaultBranch"], { cwd }).catch(() => "")).trim();
|
|
101
|
+
const candidates = [
|
|
102
|
+
remoteDefault,
|
|
103
|
+
"refs/remotes/origin/main",
|
|
104
|
+
"refs/heads/main",
|
|
105
|
+
...(initialBranch ? [`refs/heads/${initialBranch}`] : []),
|
|
106
|
+
"refs/remotes/origin/master",
|
|
107
|
+
"refs/heads/master",
|
|
108
|
+
];
|
|
109
|
+
for (const ref of new Set(candidates.filter(Boolean))) {
|
|
110
|
+
const sha = (await git(["rev-parse", "--verify", "--quiet", `${ref}^{commit}`], { cwd }).catch(() => "")).trim();
|
|
111
|
+
if (sha)
|
|
112
|
+
return sha;
|
|
113
|
+
}
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
function isFlag(section, readFile, flag) {
|
|
117
|
+
return flags(section, readFile).includes(flag);
|
|
118
|
+
}
|
|
119
|
+
function changedSource(section, readFile) {
|
|
120
|
+
const changed = [];
|
|
121
|
+
for (const cite of section.requirements.flatMap((item) => item.cites)) {
|
|
122
|
+
const expected = section.anchors[cite];
|
|
123
|
+
if (expected === undefined)
|
|
124
|
+
continue;
|
|
125
|
+
const isolated = {
|
|
126
|
+
...section,
|
|
127
|
+
digest: section.blessed_digest ?? section.digest,
|
|
128
|
+
anchors: { [cite]: expected },
|
|
129
|
+
};
|
|
130
|
+
if (!isFlag(isolated, readFile, "sources-changed"))
|
|
131
|
+
continue;
|
|
132
|
+
const requirement = section.requirements.find((item) => item.cites.includes(cite));
|
|
133
|
+
const parsed = citationParts(cite);
|
|
134
|
+
if (!requirement || !parsed)
|
|
135
|
+
continue;
|
|
136
|
+
changed.push({ id: requirement.id, path: parsed.path });
|
|
137
|
+
}
|
|
138
|
+
const unique = changed.filter((source, index) => changed.findIndex((candidate) => candidate.id === source.id && candidate.path === source.path) === index);
|
|
139
|
+
return unique.length === 1 ? (unique[0] ?? null) : null;
|
|
140
|
+
}
|
|
141
|
+
function citationMessage(heading, cite, code) {
|
|
142
|
+
const parsed = citationParts(cite);
|
|
143
|
+
switch (code) {
|
|
144
|
+
case "TN-CITE-FILE":
|
|
145
|
+
return parsed
|
|
146
|
+
? `${heading} cites ${parsed.path}, which no longer exists`
|
|
147
|
+
: null;
|
|
148
|
+
case "TN-CITE-HEADING":
|
|
149
|
+
return parsed?.kind === "doc"
|
|
150
|
+
? `${heading} cites ${parsed.path}#${parsed.slug}, which has no heading #${parsed.slug}`
|
|
151
|
+
: null;
|
|
152
|
+
case "TN-CITE-TEST":
|
|
153
|
+
return parsed?.kind === "test"
|
|
154
|
+
? `${heading} cites test ${parsed.segments.join(" > ")} in ${parsed.path}, which was not found`
|
|
155
|
+
: null;
|
|
156
|
+
case "TN-CITE-RANGE":
|
|
157
|
+
return `${heading} cites ${cite}, which is out of range`;
|
|
158
|
+
default:
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function debtForBrokenCitations(doc, section, readFile) {
|
|
163
|
+
if (section.state === "rejected")
|
|
164
|
+
return [];
|
|
165
|
+
const result = [];
|
|
166
|
+
const items = [
|
|
167
|
+
...section.requirements,
|
|
168
|
+
...section.vision_items,
|
|
169
|
+
];
|
|
170
|
+
for (const item of items) {
|
|
171
|
+
for (const cite of item.cites) {
|
|
172
|
+
const isolated = {
|
|
173
|
+
...doc,
|
|
174
|
+
sections: [
|
|
175
|
+
{
|
|
176
|
+
...section,
|
|
177
|
+
requirements: [{ ...item, cites: [cite] }],
|
|
178
|
+
vision_items: [],
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
};
|
|
182
|
+
for (const finding of resolveCitations(isolated, readFile)) {
|
|
183
|
+
const message = citationMessage(section.heading, cite, finding.code);
|
|
184
|
+
if (!message)
|
|
185
|
+
continue;
|
|
186
|
+
result.push({
|
|
187
|
+
kind: "broken-citation",
|
|
188
|
+
path: doc.path,
|
|
189
|
+
id: item.id,
|
|
190
|
+
message,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return result;
|
|
196
|
+
}
|
|
197
|
+
function debtOrder(left, right) {
|
|
198
|
+
const kinds = {
|
|
199
|
+
"broken-citation": 0,
|
|
200
|
+
"untested-requirement": 1,
|
|
201
|
+
"over-budget": 2,
|
|
202
|
+
};
|
|
203
|
+
const compare = (a, b) => a < b ? -1 : a > b ? 1 : 0;
|
|
204
|
+
return (kinds[left.kind] - kinds[right.kind] ||
|
|
205
|
+
compare(left.path, right.path) ||
|
|
206
|
+
compare(left.id ?? "", right.id ?? "") ||
|
|
207
|
+
compare(left.message, right.message));
|
|
208
|
+
}
|
|
209
|
+
export async function board(options = {}) {
|
|
210
|
+
const cwd = path.resolve(options.cwd ?? process.cwd());
|
|
211
|
+
const policy = await loadPolicy({ cwd });
|
|
212
|
+
const [subject, main] = await Promise.all([revision(cwd), defaultRevision(cwd)]);
|
|
213
|
+
const readFileAt = readAt(cwd);
|
|
214
|
+
const configured = policy.specs.documents.map((document) => {
|
|
215
|
+
const filename = portable(path.posix.join(policy.paths.records, document.path));
|
|
216
|
+
return {
|
|
217
|
+
path: filename,
|
|
218
|
+
level: document.level,
|
|
219
|
+
budget: document.budget ?? defaultBudget(filename),
|
|
220
|
+
};
|
|
221
|
+
});
|
|
222
|
+
const recordsPath = path.resolve(cwd, ...portable(policy.paths.records).split("/"));
|
|
223
|
+
const discovered = existsSync(recordsPath)
|
|
224
|
+
? await ladder({ cwd, specs_dir: policy.paths.records })
|
|
225
|
+
: [];
|
|
226
|
+
const entries = await Promise.all(discovered.map(async (entry) => ({
|
|
227
|
+
...entry,
|
|
228
|
+
level: configured.find((document) => document.path === entry.path)?.level ??
|
|
229
|
+
entry.level,
|
|
230
|
+
doc: parseDoc(entry.path, await readFile(path.join(cwd, ...entry.path.split("/")), "utf8"), { prefix: policy.specs.id_prefix }),
|
|
231
|
+
})));
|
|
232
|
+
entries.sort((left, right) => levelOrder(left.level) - levelOrder(right.level) ||
|
|
233
|
+
(left.path < right.path ? -1 : left.path > right.path ? 1 : 0));
|
|
234
|
+
const specs = [];
|
|
235
|
+
const pending = [];
|
|
236
|
+
const sectionDetails = new Map();
|
|
237
|
+
let specDebt = [];
|
|
238
|
+
for (const entry of entries) {
|
|
239
|
+
for (const section of entry.doc.sections) {
|
|
240
|
+
if (section.slug === "_preamble" ||
|
|
241
|
+
section.slug === "conflicts" ||
|
|
242
|
+
section.slug === "open-questions")
|
|
243
|
+
continue;
|
|
244
|
+
const configuredLevel = configured.find((document) => document.path === entry.path)?.level;
|
|
245
|
+
const sectionLevel = sectionRecord(entry.doc, section.slug).level;
|
|
246
|
+
const rawLevel = (typeof sectionLevel === "string" ? sectionLevel : configuredLevel) ??
|
|
247
|
+
section.level ??
|
|
248
|
+
entry.level;
|
|
249
|
+
const state = section.state;
|
|
250
|
+
if (!rawLevel ||
|
|
251
|
+
!levelValues.has(rawLevel) ||
|
|
252
|
+
!stateValues.has(state))
|
|
253
|
+
continue;
|
|
254
|
+
const sectionFlags = flags(section, readFileAt);
|
|
255
|
+
const raw = sectionRecord(entry.doc, section.slug);
|
|
256
|
+
const recorded = raw.recorded;
|
|
257
|
+
specs.push({
|
|
258
|
+
path: entry.path,
|
|
259
|
+
section: section.slug,
|
|
260
|
+
level: rawLevel,
|
|
261
|
+
state,
|
|
262
|
+
flags: sectionFlags,
|
|
263
|
+
...(state === "blessed"
|
|
264
|
+
? {
|
|
265
|
+
recorded: recorded === "forge" || recorded === "signed"
|
|
266
|
+
? recorded
|
|
267
|
+
: "self",
|
|
268
|
+
}
|
|
269
|
+
: {}),
|
|
270
|
+
});
|
|
271
|
+
sectionDetails.set(sectionKey(entry.path, section.slug), {
|
|
272
|
+
heading: section.heading,
|
|
273
|
+
body: section.text,
|
|
274
|
+
draftedFrom: typeof entry.doc.front?.tenet
|
|
275
|
+
?.drafted_from === "string",
|
|
276
|
+
changedSource: section.state === "blessed"
|
|
277
|
+
? changedSource(section, readFileAt)
|
|
278
|
+
: null,
|
|
279
|
+
});
|
|
280
|
+
const conflicts = openItemsFor(entry.doc, section, "conflicts").map(({ id }) => id).sort();
|
|
281
|
+
const questions = openItemsFor(entry.doc, section, "questions").map(({ id }) => id).sort();
|
|
282
|
+
if (state === "draft" || sectionFlags.length || conflicts.length || questions.length) {
|
|
283
|
+
pending.push({
|
|
284
|
+
path: entry.path,
|
|
285
|
+
section: section.slug,
|
|
286
|
+
conflicts,
|
|
287
|
+
open_questions: questions,
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
specDebt.push(...debtForBrokenCitations(entry.doc, section, readFileAt));
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
const scan = subject.full
|
|
294
|
+
? await scanTests("HEAD", {
|
|
295
|
+
cwd,
|
|
296
|
+
id_prefix: policy.specs.id_prefix,
|
|
297
|
+
})
|
|
298
|
+
: { declarations: [], skips: [] };
|
|
299
|
+
const tagged = new Set(scan.declarations.flatMap((declaration) => declaration.tags));
|
|
300
|
+
for (const entry of entries) {
|
|
301
|
+
for (const section of entry.doc.sections) {
|
|
302
|
+
if (section.state !== "blessed")
|
|
303
|
+
continue;
|
|
304
|
+
for (const requirement of section.requirements) {
|
|
305
|
+
if (tagged.has(requirement.id))
|
|
306
|
+
continue;
|
|
307
|
+
specDebt.push({
|
|
308
|
+
kind: "untested-requirement",
|
|
309
|
+
path: entry.path,
|
|
310
|
+
id: requirement.id,
|
|
311
|
+
message: `${section.heading} › ${requirement.id} has no tagged test`,
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
const budgeted = new Map();
|
|
317
|
+
for (const entry of entries) {
|
|
318
|
+
const override = configured.find((document) => document.path === entry.path);
|
|
319
|
+
budgeted.set(entry.path, {
|
|
320
|
+
path: entry.path,
|
|
321
|
+
budget: override?.budget !== undefined
|
|
322
|
+
? override.budget
|
|
323
|
+
: defaultBudget(entry.path),
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
for (const document of budgeted.values()) {
|
|
327
|
+
if (document.budget === null)
|
|
328
|
+
continue;
|
|
329
|
+
const text = await readFile(path.join(cwd, ...document.path.split("/")), "utf8").catch((error) => {
|
|
330
|
+
if (error.code === "ENOENT")
|
|
331
|
+
return null;
|
|
332
|
+
throw error;
|
|
333
|
+
});
|
|
334
|
+
if (text === null)
|
|
335
|
+
continue;
|
|
336
|
+
const tokens = Math.ceil(specificationBody(text).length / 4);
|
|
337
|
+
if (tokens > document.budget) {
|
|
338
|
+
specDebt.push({
|
|
339
|
+
kind: "over-budget",
|
|
340
|
+
path: document.path,
|
|
341
|
+
id: null,
|
|
342
|
+
message: `${document.path} is over its token budget (${tokens} > ${document.budget} tokens)`,
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
specDebt = [...specDebt]
|
|
347
|
+
.filter((debt, index, all) => all.findIndex((candidate) => candidate.kind === debt.kind &&
|
|
348
|
+
candidate.path === debt.path &&
|
|
349
|
+
candidate.message === debt.message) === index)
|
|
350
|
+
.sort(debtOrder);
|
|
351
|
+
const output = {
|
|
352
|
+
schema_version: 1,
|
|
353
|
+
as_of: asOf(options),
|
|
354
|
+
read: {
|
|
355
|
+
main,
|
|
356
|
+
branches: [],
|
|
357
|
+
records: null,
|
|
358
|
+
},
|
|
359
|
+
specs,
|
|
360
|
+
pending_blessings: pending,
|
|
361
|
+
spec_debt: specDebt,
|
|
362
|
+
};
|
|
363
|
+
renderDetails.set(output, {
|
|
364
|
+
repository: path.basename(cwd),
|
|
365
|
+
branch: subject.branch,
|
|
366
|
+
commit: subject.short,
|
|
367
|
+
level: policy.level,
|
|
368
|
+
all: options.all === true,
|
|
369
|
+
noSpecifications: entries.length === 0,
|
|
370
|
+
sections: sectionDetails,
|
|
371
|
+
});
|
|
372
|
+
return output;
|
|
373
|
+
}
|
|
374
|
+
function headingFor(spec, details) {
|
|
375
|
+
return (details?.sections.get(sectionKey(spec.path, spec.section))?.heading ??
|
|
376
|
+
spec.section);
|
|
377
|
+
}
|
|
378
|
+
export function renderSpecsBoard(board) {
|
|
379
|
+
const details = renderDetails.get(board);
|
|
380
|
+
if (details?.noSpecifications)
|
|
381
|
+
return "No specifications found · run tenet onboard\n";
|
|
382
|
+
const lines = [];
|
|
383
|
+
if (details) {
|
|
384
|
+
lines.push(`${details.repository} · ${[details.branch, details.commit].filter(Boolean).join(" ")} · level ${details.level}`);
|
|
385
|
+
}
|
|
386
|
+
const counts = [
|
|
387
|
+
["Waiting for your blessing", board.specs.filter(({ state }) => state === "draft").length],
|
|
388
|
+
["Sources changed", board.specs.filter(({ flags }) => flags.includes("sources-changed")).length],
|
|
389
|
+
["Edited", board.specs.filter(({ flags }) => flags.includes("edited")).length],
|
|
390
|
+
["Blessed", details?.all ? board.specs.filter(({ state, flags }) => state === "blessed" && !flags.length).length : 0],
|
|
391
|
+
].filter(([, count]) => count);
|
|
392
|
+
if (counts.length)
|
|
393
|
+
lines.push(counts.map(([label, count]) => `${label} (${count})`).join(" · "));
|
|
394
|
+
const pending = new Map(board.pending_blessings.map((item) => [sectionKey(item.path, item.section), item]));
|
|
395
|
+
let file;
|
|
396
|
+
for (const spec of board.specs) {
|
|
397
|
+
const key = sectionKey(spec.path, spec.section);
|
|
398
|
+
const item = pending.get(key);
|
|
399
|
+
const hasOpenItems = Boolean(item?.conflicts.length || item?.open_questions.length);
|
|
400
|
+
if (spec.state !== "draft" && !spec.flags.length && !hasOpenItems &&
|
|
401
|
+
!(details?.all && spec.state === "blessed"))
|
|
402
|
+
continue;
|
|
403
|
+
if (file !== spec.path) {
|
|
404
|
+
file = spec.path;
|
|
405
|
+
lines.push(file);
|
|
406
|
+
}
|
|
407
|
+
const detail = details?.sections.get(key);
|
|
408
|
+
const heading = headingFor(spec, details);
|
|
409
|
+
if (spec.flags.includes("sources-changed")) {
|
|
410
|
+
const source = detail?.changedSource;
|
|
411
|
+
lines.push(source
|
|
412
|
+
? ` ${heading} › ${source.id} · ${source.path} changed after you blessed it; the blessed text still applies`
|
|
413
|
+
: ` ${heading} · sources changed after you blessed it; the blessed text still applies`);
|
|
414
|
+
}
|
|
415
|
+
if (spec.flags.includes("edited"))
|
|
416
|
+
lines.push(` ${heading} · edited since blessing; the blessed text still applies`);
|
|
417
|
+
if (!spec.flags.length) {
|
|
418
|
+
const onboarding = spec.state === "draft" &&
|
|
419
|
+
(detail?.draftedFrom || /^Undecided since onboarding\.\r?\n?$/i.test(detail?.body ?? ""));
|
|
420
|
+
lines.push(` ${heading} · ${onboarding ? "undecided since onboarding" : spec.state}`);
|
|
421
|
+
}
|
|
422
|
+
if (item?.conflicts.length)
|
|
423
|
+
lines.push(` Open conflicts: ${item.conflicts.join(", ")}`);
|
|
424
|
+
if (item?.open_questions.length)
|
|
425
|
+
lines.push(` Open questions: ${item.open_questions.join(", ")}`);
|
|
426
|
+
}
|
|
427
|
+
if (board.spec_debt.length > 0) {
|
|
428
|
+
lines.push(`Spec debt (${board.spec_debt.length})`);
|
|
429
|
+
for (const debt of board.spec_debt)
|
|
430
|
+
lines.push(` ${debt.message}`);
|
|
431
|
+
}
|
|
432
|
+
if (file === undefined && !board.spec_debt.length)
|
|
433
|
+
lines.push("All blessed specifications are current.");
|
|
434
|
+
return `${lines.join("\n")}\n`;
|
|
435
|
+
}
|
|
436
|
+
export const renderBoard = renderSpecsBoard;
|
|
437
|
+
//# sourceMappingURL=specs-board.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specs-board.js","sourceRoot":"","sources":["../../src/views/specs-board.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAEN,YAAY,EACZ,QAAQ,EAGR,iBAAiB,GACjB,MAAM,mBAAmB,CAAC;AA+D3B,MAAM,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AAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC3F,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM;YAAE,KAAK,CAAC,IAAI,CAAC,uBAAuB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACtG,CAAC;IACD,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChC,KAAK,CAAC,IAAI,CAAC,cAAc,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;QACpD,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IACD,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM;QAAE,KAAK,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;IACzG,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAChC,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC"}
|
package/kit/CHANGELOG.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All changes to the standard and kit. Each release lists added, changed, deprecated and removed rules, and the migrations it ships (PRD R-004).
|
|
4
|
+
|
|
5
|
+
## 0.1.1
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `tenet verify --local` runs your checks on the working tree and prints the proof card a pull request would get, marked as a local preview. It needs no CI event and no network.
|
|
10
|
+
- `bless` asks each open question in a section before blessing it, and "Decide later" on a conflict leaves only that section unblessed while the session carries on.
|
|
11
|
+
- `tenet <command> --help` prints that command's own options. `onboard.exclude` is documented.
|
|
12
|
+
- Install from the GitHub release tarball when a registry mirror doesn't have the package yet.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Every bless session ends with "Blessed N of M sections", also when nothing was blessed. The blessing log records each section's own review time.
|
|
17
|
+
- Token budgets count the section body, not front matter.
|
|
18
|
+
- While the documents that serve a blessed vision are still drafts, `check` reports one grouped warning instead of an error per vision item.
|
|
19
|
+
- The onboarding card lists open questions and says "N citations resolve (file and lines exist)". Plain `board` groups sections by file and shows their conflicts and questions. Statements inside Markdown tables are found when HTML comments sit between rows.
|
|
20
|
+
- `context --paths` ranks sections whose `applies_to` matches the path above catch-all sections, and keeps large catch-all sections within the budget. `--paths` takes commas or a repeated flag. `--include-drafts` selects and budgets drafts like blessed text, marked as drafts.
|
|
21
|
+
- Shipped skills are named `tenet-draft-specs`, `tenet-review-with-findings` and `tenet-work-a-change` everywhere. `init --host claude|cursor|copilot|vscode` adds that host's skill and MCP files; a repository with no agent setup stays agent-neutral.
|
|
22
|
+
- With no test runner detected, `init` asks for the test command, and with `--yes` writes no test check. It never writes `npm test` without a `package.json`.
|
|
23
|
+
- Generated workflows run on pull requests and on pushes to the default branch only. When a pull request changes a check's command, the card notes that the change takes effect after merge.
|
|
24
|
+
- Anchors keep a hash, line range and blessed commit for each citation, never the cited text. Old text is read from git history when needed.
|
|
25
|
+
- Clearer offline and registry messages; no Node deprecation warning on Windows; shorter first findings in `onboard`; `init` says *create* or *edit* per file; path-scoped `check` prints human output.
|
|
26
|
+
|
|
27
|
+
### Migrations
|
|
28
|
+
|
|
29
|
+
- `tenet upgrade` rewrites existing generated workflows to the new triggers, and rewrites existing anchor files without cited text. A same-version upgrade changes nothing else.
|
|
30
|
+
|
|
31
|
+
## 0.1.0
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- Install Tenet in a Git repository with `tenet init`. Review the files it plans to write and choose whether to connect an existing test workflow.
|
|
36
|
+
- Use `tenet onboard` to give your coding agent an inventory and a drafting assignment. Review the result with the onboarding card and put approved sections in force with `tenet bless`.
|
|
37
|
+
- Check specification structure, citations and integrity with `tenet check`. Use `tenet board` to find drafts, edited sections and changed sources.
|
|
38
|
+
- Give agents relevant approved text through `tenet context` or a local MCP server.
|
|
39
|
+
- On GitHub, the installed workflows collect test evidence and post an advisory proof card tied to the tested commit.
|
|
40
|
+
- Use `tenet doctor` to diagnose setup, `tenet upgrade` to refresh it, and `tenet remove` to remove managed setup while keeping project specifications and records.
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- The first public package includes the CLI, SDK, kit and conformance examples for this release.
|
|
45
|
+
- Specification discovery follows the configured documents, or the one-file layout and its split parts when using that layout.
|
|
46
|
+
|
|
47
|
+
### Migrations
|
|
48
|
+
|
|
49
|
+
None.
|
|
50
|
+
|
|
51
|
+
## 0.1.0-draft · 2026-11-22
|
|
52
|
+
|
|
53
|
+
### Added
|
|
54
|
+
|
|
55
|
+
- The standard, derived from the Torus process proposal: documents and ownership gradient, change packets and lanes, thirteen stations in five phases, gates and evidence, the factory floor, flow control, change control, traceability, escalation, verification and holdout, release and observation, agent management, metrics and learning, layout, adoption.
|
|
56
|
+
- §18 Deliverables, distribution and execution: what ships, what a project contains, onboarding, updates, execution modes A–C, conformance, namespace, upstream feedback.
|
|
57
|
+
- Draft schemas: `packet`, `agent`, `tenet-profile`. Default profile.
|
|
58
|
+
- Draft templates, reference agents (shaper, builder, verifier, judge), judge protocol, five criteria files, station loop.
|
|
59
|
+
|
|
60
|
+
### Changed
|
|
61
|
+
|
|
62
|
+
- Renamed from the source: `factory.yaml` → `tenet.yaml`; the `factory` command → `tenet`; commit trailers prefixed `Tenet-`.
|
|
63
|
+
- Project layout (§3.1, §16, §18): records live in one records folder (`tenet/` by default, `paths.records`; visible `tenet/` is the project's, hidden `.tenet/` is the tool's); overlays move to `.tenet/overlays/`; schemas, templates and reference agents are read from `.tenet/kit/` and never copied; `specs/process.md` is replaced by the vendored `TENET.md` with the profile; agent path rules use `${records}`.
|
|
64
|
+
- Package layout: `kit/` is vendored one to one; migrations, conformance, evaluation suites and host formats ship only in the package. Added `tenet doctor` and `tenet eject`; the update bot reads the version from `tenet.lock`.
|
|
65
|
+
|
|
66
|
+
### Migrations
|
|
67
|
+
|
|
68
|
+
None.
|
package/kit/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# The Tenet kit
|
|
2
|
+
|
|
3
|
+
This folder is the kit: everything here ships in `@vedprakash-m/tenet` (`kit/`) and is loaded from the installed package by `tenet.lock` (or copied into `.tenet/kit/` only with `init --vendor`). Content the CLI needs internally or for evaluation lives in [`../pkg/`](../pkg/) and is never vendored.
|
|
4
|
+
|
|
5
|
+
| Path | What | State at 0.1.0-alpha.0 |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| [TENET.md](TENET.md) | The normative standard | In transition (rewritten in M0) |
|
|
8
|
+
| [CHANGELOG.md](CHANGELOG.md) | Added, changed, deprecated and removed rules per release | Started |
|
|
9
|
+
| [schemas/](schemas/) | JSON Schemas (draft 2020-12) | `packet`, `agent`, `tenet-profile` drafted; alpha.0 schemas arrive next |
|
|
10
|
+
| [defaults/tenet.yaml](defaults/tenet.yaml) | Alpha.0 defaults merged under `tenet.yaml` | Alpha.0 |
|
|
11
|
+
| [packs/minimal/pack.yaml](packs/minimal/pack.yaml) | Default pull-request native lifecycle pack | Alpha.0 subset |
|
|
12
|
+
| [practices/default.md](practices/default.md) | Default working rules embedded in `AGENTS.md` | Alpha.0 |
|
|
13
|
+
| [templates/](templates/) | Document and prompt templates (`intent`, `vision`, `requirements`, `design`, `experience`, `plan`, `pull-request`, `agents-block`, `escalation`) | Alpha.0 |
|
|
14
|
+
| [agents/](agents/) | Reference agent cards (`drafter`, `spec-reviewer` in alpha.0; careful-lane cards later) | Alpha.0 |
|
|
15
|
+
| [skills/](skills/) | Open agent-skills (`tenet-draft-specs`, `tenet-work-a-change`, `tenet-review-with-findings`) | Alpha.0 |
|
|
16
|
+
| `kit.json` | Generated at release: version and SHA-256 of every file | Release build |
|
|
17
|
+
|
|
18
|
+
Placeholders such as `<owner>` and `{records}` are filled by each project (`paths.records` defaults to `tenet`).
|