@vedprakash-m/tenet 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +104 -2
- package/dist/cli.d.ts +53 -0
- package/dist/cli.js +389 -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 +35 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/context.d.ts +45 -0
- package/dist/commands/context.js +49 -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 +215 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/onboard.d.ts +45 -0
- package/dist/commands/onboard.js +66 -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 +33 -0
- package/dist/commands/verify.js +147 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/context/index.d.ts +61 -0
- package/dist/context/index.js +401 -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 +276 -0
- package/dist/core/messages.js +289 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/output.d.ts +22 -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 +105 -0
- package/dist/install/hosts.js.map +1 -0
- package/dist/install/init.d.ts +2 -0
- package/dist/install/init.js +80 -0
- package/dist/install/init.js.map +1 -0
- package/dist/install/integrity.d.ts +24 -0
- package/dist/install/integrity.js +200 -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 +558 -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 +303 -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 +307 -0
- package/dist/install/upgrade.js.map +1 -0
- package/dist/install/writes.d.ts +15 -0
- package/dist/install/writes.js +1200 -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 +104 -0
- package/dist/onboard/bless.js +729 -0
- package/dist/onboard/bless.js.map +1 -0
- package/dist/onboard/card.d.ts +31 -0
- package/dist/onboard/card.js +175 -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 +44 -0
- package/dist/specs/anchors.js +171 -0
- package/dist/specs/anchors.js.map +1 -0
- package/dist/specs/check.d.ts +19 -0
- package/dist/specs/check.js +656 -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 +58 -0
- package/dist/specs/parse.js +565 -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 +105 -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 +539 -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 +149 -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 +427 -0
- package/dist/views/specs-board.js.map +1 -0
- package/kit/CHANGELOG.md +42 -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 +169 -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 +21 -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 +25 -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 +7 -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 +88 -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 +34 -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 +7 -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 +9 -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 +12 -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
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { sha256 } from "../core/hash.js";
|
|
2
|
+
import { anchorBlock, citationParts, relocate } from "./anchors.js";
|
|
3
|
+
export { relocate } from "./anchors.js";
|
|
4
|
+
function field(section, key) {
|
|
5
|
+
return section[key];
|
|
6
|
+
}
|
|
7
|
+
function normalizedRange(file, start, end) {
|
|
8
|
+
const lines = file.replaceAll("\r\n", "\n").replaceAll("\r", "\n").split("\n");
|
|
9
|
+
if (lines.at(-1) === "")
|
|
10
|
+
lines.pop();
|
|
11
|
+
if (start < 1 || end < start || end > lines.length)
|
|
12
|
+
return null;
|
|
13
|
+
return lines.slice(start - 1, end).map((line) => line.replace(/[ \t]+$/, "")).join("\n");
|
|
14
|
+
}
|
|
15
|
+
function pathCitationMoved(cite, expected, file) {
|
|
16
|
+
const parsed = citationParts(cite);
|
|
17
|
+
if (parsed?.kind !== "path")
|
|
18
|
+
return false;
|
|
19
|
+
const normalized = file.replaceAll("\r\n", "\n").replaceAll("\r", "\n");
|
|
20
|
+
const lines = normalized.split("\n");
|
|
21
|
+
if (lines.at(-1) === "")
|
|
22
|
+
lines.pop();
|
|
23
|
+
if (lines.length > 50_000)
|
|
24
|
+
return false;
|
|
25
|
+
const result = relocate({ hash: expected, line_count: parsed.end - parsed.start + 1 }, file);
|
|
26
|
+
return "start" in result;
|
|
27
|
+
}
|
|
28
|
+
export function flags(section, readFile) {
|
|
29
|
+
if (field(section, "state") !== "blessed")
|
|
30
|
+
return [];
|
|
31
|
+
const result = [];
|
|
32
|
+
if (field(section, "digest") !== field(section, "blessed_digest"))
|
|
33
|
+
result.push("edited");
|
|
34
|
+
const anchors = field(section, "anchors");
|
|
35
|
+
if (!anchors || typeof anchors !== "object" || Array.isArray(anchors))
|
|
36
|
+
return result;
|
|
37
|
+
for (const [cite, rawHash] of Object.entries(anchors)) {
|
|
38
|
+
const expected = String(rawHash);
|
|
39
|
+
const parsed = citationParts(cite);
|
|
40
|
+
if (!parsed) {
|
|
41
|
+
result.push("sources-changed");
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
const file = readFile(parsed.path);
|
|
45
|
+
if (file === null) {
|
|
46
|
+
result.push("sources-changed");
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
if (parsed.kind === "path") {
|
|
50
|
+
const actual = normalizedRange(file, parsed.start, parsed.end);
|
|
51
|
+
const hash = actual === null ? null : `sha256:${sha256(actual)}`;
|
|
52
|
+
if (hash !== expected && !pathCitationMoved(cite, expected, file)) {
|
|
53
|
+
result.push("sources-changed");
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const actual = anchorBlock(cite, readFile);
|
|
59
|
+
if (!actual || actual.hash !== expected) {
|
|
60
|
+
result.push("sources-changed");
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
export function matchRenamed(front, sections) {
|
|
67
|
+
const frontSections = front.sections ?? {};
|
|
68
|
+
const existing = new Set(Object.keys(frontSections));
|
|
69
|
+
const candidates = sections.filter((section) => !existing.has(section.slug) &&
|
|
70
|
+
section.slug !== "_preamble" &&
|
|
71
|
+
section.slug !== "conflicts" &&
|
|
72
|
+
section.slug !== "open-questions");
|
|
73
|
+
const renamed = [];
|
|
74
|
+
const ambiguous = [];
|
|
75
|
+
for (const [from, metadata] of Object.entries(frontSections)) {
|
|
76
|
+
if (sections.some((section) => section.slug === from))
|
|
77
|
+
continue;
|
|
78
|
+
let digest = metadata.digest ?? null;
|
|
79
|
+
let matched = digest === null ? [] : candidates.filter((section) => section.digest === digest);
|
|
80
|
+
if (matched.length === 0) {
|
|
81
|
+
digest = metadata.blessed_digest ?? null;
|
|
82
|
+
matched = digest === null ? [] : candidates.filter((section) => section.digest === digest);
|
|
83
|
+
}
|
|
84
|
+
const single = matched[0];
|
|
85
|
+
if (matched.length === 1 && digest !== null && single) {
|
|
86
|
+
renamed.push({ from, to: single.slug, digest });
|
|
87
|
+
}
|
|
88
|
+
else if (matched.length > 1) {
|
|
89
|
+
ambiguous.push({ from, candidates: matched.map((section) => section.slug) });
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const useCounts = new Map();
|
|
93
|
+
for (const item of renamed)
|
|
94
|
+
useCounts.set(item.to, (useCounts.get(item.to) ?? 0) + 1);
|
|
95
|
+
return {
|
|
96
|
+
renamed: renamed.filter((item) => (useCounts.get(item.to) ?? 0) === 1),
|
|
97
|
+
ambiguous,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=flags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../../src/specs/flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAKxC,SAAS,KAAK,CAAC,OAAoB,EAAE,GAAW;IAC9C,OAAQ,OAAmC,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC;AAED,SAAS,eAAe,CAAC,IAAY,EAAE,KAAa,EAAE,GAAW;IAC/D,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/E,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,CAAC,GAAG,EAAE,CAAC;IACrC,IAAI,KAAK,GAAG,CAAC,IAAI,GAAG,GAAG,KAAK,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAChE,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC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|
2
|
+
type LadderOptions = {
|
|
3
|
+
cwd?: string;
|
|
4
|
+
specs_dir?: string;
|
|
5
|
+
files?: string[];
|
|
6
|
+
};
|
|
7
|
+
export type LadderEntry = {
|
|
8
|
+
path: string;
|
|
9
|
+
level: string | null;
|
|
10
|
+
doc: ParsedDoc;
|
|
11
|
+
};
|
|
12
|
+
export declare function ladder(options?: LadderOptions): Promise<LadderEntry[]>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { lstat, readFile, readdir } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { itemLine, parseDoc } from "./parse.js";
|
|
4
|
+
function portable(value) {
|
|
5
|
+
return value.replaceAll("\\", "/");
|
|
6
|
+
}
|
|
7
|
+
function relative(root, filename) {
|
|
8
|
+
return portable(path.relative(root, filename));
|
|
9
|
+
}
|
|
10
|
+
async function walk(root, skipRoot) {
|
|
11
|
+
const files = [];
|
|
12
|
+
for (const entry of await readdir(root, { withFileTypes: true })) {
|
|
13
|
+
if (skipRoot &&
|
|
14
|
+
(entry.name === ".git" ||
|
|
15
|
+
entry.name === ".tenet" ||
|
|
16
|
+
entry.name === "node_modules" ||
|
|
17
|
+
entry.name === "dist" ||
|
|
18
|
+
entry.name === "build"))
|
|
19
|
+
continue;
|
|
20
|
+
const filename = path.join(root, entry.name);
|
|
21
|
+
if (entry.isDirectory())
|
|
22
|
+
files.push(...await walk(filename, skipRoot));
|
|
23
|
+
else if (entry.isFile() && entry.name.endsWith(".md"))
|
|
24
|
+
files.push(filename);
|
|
25
|
+
}
|
|
26
|
+
return files;
|
|
27
|
+
}
|
|
28
|
+
function levelOrder(level) {
|
|
29
|
+
if (level === null)
|
|
30
|
+
return 5;
|
|
31
|
+
return /^(L[0-4])$/.test(level) ? Number(level.slice(1)) : 5;
|
|
32
|
+
}
|
|
33
|
+
function reportProjectDuplicates(entries) {
|
|
34
|
+
const seen = new Map();
|
|
35
|
+
for (const entry of entries) {
|
|
36
|
+
for (const section of entry.doc.sections) {
|
|
37
|
+
const items = [
|
|
38
|
+
...section.requirements,
|
|
39
|
+
...section.vision_items,
|
|
40
|
+
...section.conflicts,
|
|
41
|
+
...section.questions,
|
|
42
|
+
];
|
|
43
|
+
for (const item of items) {
|
|
44
|
+
if (seen.has(item.id)) {
|
|
45
|
+
const problem = {
|
|
46
|
+
code: "TN-SPEC-DUP-ID",
|
|
47
|
+
severity: "error",
|
|
48
|
+
rule: null,
|
|
49
|
+
file: entry.path,
|
|
50
|
+
line: itemLine(item),
|
|
51
|
+
message: `Duplicate specification ID ${item.id}.`,
|
|
52
|
+
fix: `Run \`tenet fix\` to assign a new ID, or remove the duplicate ${item.id} item.`,
|
|
53
|
+
};
|
|
54
|
+
entry.doc.problems.push(problem);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
seen.set(item.id, { path: entry.path, line: itemLine(item) });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export async function ladder(options = {}) {
|
|
64
|
+
const cwd = path.resolve(options.cwd ?? process.cwd());
|
|
65
|
+
const root = options.specs_dir === undefined
|
|
66
|
+
? cwd
|
|
67
|
+
: path.resolve(cwd, options.specs_dir);
|
|
68
|
+
let filenames;
|
|
69
|
+
if (options.files !== undefined) {
|
|
70
|
+
filenames = options.files.map((filename) => path.isAbsolute(filename) ? filename : path.resolve(cwd, filename));
|
|
71
|
+
}
|
|
72
|
+
else if (options.specs_dir !== undefined) {
|
|
73
|
+
filenames = await walk(root, false);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
filenames = await walk(root, true);
|
|
77
|
+
}
|
|
78
|
+
const result = [];
|
|
79
|
+
for (const filename of filenames) {
|
|
80
|
+
try {
|
|
81
|
+
const stat = await lstat(filename);
|
|
82
|
+
if (!stat.isFile() || !filename.endsWith(".md"))
|
|
83
|
+
continue;
|
|
84
|
+
const text = await readFile(filename, "utf8");
|
|
85
|
+
const document = parseDoc(relative(cwd, filename), text);
|
|
86
|
+
if (!document.front || typeof document.front.tenet !== "object")
|
|
87
|
+
continue;
|
|
88
|
+
const tenet = document.front.tenet;
|
|
89
|
+
if (tenet.spec === undefined)
|
|
90
|
+
continue;
|
|
91
|
+
const level = typeof tenet.level === "string" ? tenet.level : null;
|
|
92
|
+
result.push({ path: relative(cwd, filename), level, doc: document });
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
if (error.code === "ENOENT")
|
|
96
|
+
continue;
|
|
97
|
+
throw error;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const sorted = result.sort((left, right) => levelOrder(left.level) - levelOrder(right.level) ||
|
|
101
|
+
(left.path < right.path ? -1 : left.path > right.path ? 1 : 0));
|
|
102
|
+
reportProjectDuplicates(sorted);
|
|
103
|
+
return sorted;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=ladder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ladder.js","sourceRoot":"","sources":["../../src/specs/ladder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAkB,MAAM,YAAY,CAAC;AAKhE,SAAS,QAAQ,CAAC,KAAa;IAC7B,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY,EAAE,QAAgB;IAC9C,OAAO,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjD,CAAC;AAED,KAAK,UAAU,IAAI,CAAC,IAAY,EAAE,QAAiB;IACjD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,KA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,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;QACvE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ;gBAAE,SAAS;YACjE,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACzC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC;QAChD,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAC/D,CAAC;IACF,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Finding } from "../types/generated.js";
|
|
2
|
+
export type Requirement = {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
origin: "observed" | "documented" | "asked" | "inferred" | null;
|
|
6
|
+
cites: string[];
|
|
7
|
+
serves: string[];
|
|
8
|
+
scope: string | null;
|
|
9
|
+
adopted_by: string | null;
|
|
10
|
+
};
|
|
11
|
+
export type ConflictOrQuestion = {
|
|
12
|
+
id: string;
|
|
13
|
+
checked: boolean;
|
|
14
|
+
section: string | null;
|
|
15
|
+
text: string;
|
|
16
|
+
resolution?: string;
|
|
17
|
+
answer?: string;
|
|
18
|
+
};
|
|
19
|
+
export type SpecSection = {
|
|
20
|
+
slug: string;
|
|
21
|
+
heading: string;
|
|
22
|
+
level: string | null;
|
|
23
|
+
text: string;
|
|
24
|
+
digest: string;
|
|
25
|
+
requirements: Requirement[];
|
|
26
|
+
vision_items: Requirement[];
|
|
27
|
+
conflicts: ConflictOrQuestion[];
|
|
28
|
+
questions: ConflictOrQuestion[];
|
|
29
|
+
applies_to: string[];
|
|
30
|
+
state: string;
|
|
31
|
+
blessed_digest: string | null;
|
|
32
|
+
blessed_at_rev: string | null;
|
|
33
|
+
anchors: Record<string, string>;
|
|
34
|
+
blessed_copy: string | null;
|
|
35
|
+
flags: string[];
|
|
36
|
+
owner: string | null;
|
|
37
|
+
};
|
|
38
|
+
export type ParsedDoc = {
|
|
39
|
+
path: string;
|
|
40
|
+
front: Record<string, unknown> | null;
|
|
41
|
+
sections: SpecSection[];
|
|
42
|
+
problems: Finding[];
|
|
43
|
+
};
|
|
44
|
+
type ParseOptions = {
|
|
45
|
+
prefix?: string;
|
|
46
|
+
};
|
|
47
|
+
type RequirementOptions = ParseOptions & {
|
|
48
|
+
line?: number;
|
|
49
|
+
file?: string;
|
|
50
|
+
};
|
|
51
|
+
export declare function parseRequirement(input: string | Record<string, string>, opts?: RequirementOptions): Requirement | Finding;
|
|
52
|
+
export declare function parseDoc(path: string, text: string, opts?: ParseOptions): ParsedDoc;
|
|
53
|
+
export declare function itemLine(item: object): number | null;
|
|
54
|
+
export declare function sectionLocation(section: SpecSection): {
|
|
55
|
+
heading: number;
|
|
56
|
+
start: number;
|
|
57
|
+
};
|
|
58
|
+
export {};
|