@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,608 @@
|
|
|
1
|
+
import { parseDocument } from "yaml";
|
|
2
|
+
import { sectionDigest, slugFor } from "./sections.js";
|
|
3
|
+
const lineLocations = new WeakMap();
|
|
4
|
+
const sectionLocations = new WeakMap();
|
|
5
|
+
const messageByCode = {
|
|
6
|
+
"TN-SPEC-DUP-ID": [
|
|
7
|
+
"Duplicate specification ID {id}.",
|
|
8
|
+
"Run `tenet fix` to assign a new ID, or remove the duplicate {id} item.",
|
|
9
|
+
],
|
|
10
|
+
"TN-SPEC-DUP-SECTION": [
|
|
11
|
+
"Duplicate section slug {slug}.",
|
|
12
|
+
"Rename or merge the repeated {slug} heading.",
|
|
13
|
+
],
|
|
14
|
+
"TN-SPEC-MISSING-ID": [
|
|
15
|
+
"Specification line needs an ID.",
|
|
16
|
+
"Run `tenet fix` or prefix the line with an unused ID.",
|
|
17
|
+
],
|
|
18
|
+
"TN-SPEC-NO-FRONT": [
|
|
19
|
+
"Specification file has no valid YAML front matter.",
|
|
20
|
+
"Add YAML front matter (`---`) with `tenet` and `sections`, or run `tenet fix`.",
|
|
21
|
+
],
|
|
22
|
+
"TN-SPEC-REQ-META": [
|
|
23
|
+
"Requirement metadata is malformed: check closing braces, allowed keys, and origin.",
|
|
24
|
+
"Fix the `{…}` metadata block with allowed keys and valid origin.",
|
|
25
|
+
],
|
|
26
|
+
};
|
|
27
|
+
function finding(code, file, line, values = {}) {
|
|
28
|
+
const templates = messageByCode[code] ?? ["", ""];
|
|
29
|
+
const fill = (template) => template.replace(/\{(\w+)\}/g, (_, key) => values[key] ?? `{${key}}`);
|
|
30
|
+
return {
|
|
31
|
+
code,
|
|
32
|
+
severity: "error",
|
|
33
|
+
rule: null,
|
|
34
|
+
file,
|
|
35
|
+
line,
|
|
36
|
+
message: fill(templates[0]),
|
|
37
|
+
fix: fill(templates[1]),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function portable(path) {
|
|
41
|
+
return path.replaceAll("\\", "/").replace(/^\.\/+/, "");
|
|
42
|
+
}
|
|
43
|
+
function nullable(value) {
|
|
44
|
+
if (value === null || value === undefined)
|
|
45
|
+
return null;
|
|
46
|
+
const text = String(value).trim();
|
|
47
|
+
return text === "" || text === "-" || text === "—" ? null : text;
|
|
48
|
+
}
|
|
49
|
+
function nonEmptyText(value) {
|
|
50
|
+
if (value === null || value === undefined)
|
|
51
|
+
return null;
|
|
52
|
+
const text = String(value).trim();
|
|
53
|
+
return text === "" ? null : text;
|
|
54
|
+
}
|
|
55
|
+
function commaList(value) {
|
|
56
|
+
const text = nullable(value);
|
|
57
|
+
if (text === null)
|
|
58
|
+
return [];
|
|
59
|
+
return text.split(",").map((part) => part.trim()).filter(Boolean);
|
|
60
|
+
}
|
|
61
|
+
function metadataList(value) {
|
|
62
|
+
const text = nonEmptyText(value);
|
|
63
|
+
if (text === null)
|
|
64
|
+
return [];
|
|
65
|
+
return text.split(",").map((part) => part.trim()).filter(Boolean);
|
|
66
|
+
}
|
|
67
|
+
function record(value) {
|
|
68
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
69
|
+
}
|
|
70
|
+
function keyLookup(row, key) {
|
|
71
|
+
const expected = key.toLowerCase().replace(/[_\s]+/g, "");
|
|
72
|
+
for (const [candidate, value] of Object.entries(row)) {
|
|
73
|
+
if (candidate.toLowerCase().replace(/[_\s]+/g, "") === expected)
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
function isOrigin(value) {
|
|
79
|
+
return value === "observed" || value === "documented" || value === "asked" || value === "inferred";
|
|
80
|
+
}
|
|
81
|
+
function outsideInlineCode(value) {
|
|
82
|
+
const output = [...value];
|
|
83
|
+
for (let index = 0; index < value.length;) {
|
|
84
|
+
if (value[index] !== "`") {
|
|
85
|
+
index += 1;
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
let length = 1;
|
|
89
|
+
while (value[index + length] === "`")
|
|
90
|
+
length += 1;
|
|
91
|
+
const delimiter = "`".repeat(length);
|
|
92
|
+
let close = value.indexOf(delimiter, index + length);
|
|
93
|
+
while (close >= 0 && (value[close - 1] === "`" || value[close + length] === "`")) {
|
|
94
|
+
close = value.indexOf(delimiter, close + 1);
|
|
95
|
+
}
|
|
96
|
+
if (close < 0) {
|
|
97
|
+
index += length;
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
for (let cursor = index; cursor < close + length; cursor += 1)
|
|
101
|
+
output[cursor] = " ";
|
|
102
|
+
index = close + length;
|
|
103
|
+
}
|
|
104
|
+
return output.join("");
|
|
105
|
+
}
|
|
106
|
+
function metadataRange(value) {
|
|
107
|
+
const outside = outsideInlineCode(value);
|
|
108
|
+
const trimmed = outside.trimEnd();
|
|
109
|
+
const close = trimmed.length - 1;
|
|
110
|
+
if (close < 0)
|
|
111
|
+
return null;
|
|
112
|
+
const open = trimmed.lastIndexOf("{");
|
|
113
|
+
if (trimmed[close] === "}") {
|
|
114
|
+
if (open >= 0 && open < close)
|
|
115
|
+
return { kind: "block", open, close };
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
const completedMidLine = open >= 0 ? trimmed.indexOf("}", open + 1) : -1;
|
|
119
|
+
if (open >= 0 && completedMidLine < 0 && /:/.test(trimmed.slice(open + 1))) {
|
|
120
|
+
return { kind: "malformed" };
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
function hasTrailingMetadata(value) {
|
|
125
|
+
const outside = outsideInlineCode(value);
|
|
126
|
+
const range = metadataRange(value);
|
|
127
|
+
if (range === null)
|
|
128
|
+
return false;
|
|
129
|
+
if (range.kind === "malformed") {
|
|
130
|
+
const body = outside.slice(outside.lastIndexOf("{") + 1);
|
|
131
|
+
return /(?:^|\s|;)(?:origin|cites|serves|scope|adopted_by|adopted by)\s*:/.test(body);
|
|
132
|
+
}
|
|
133
|
+
const body = outside.slice(range.open + 1, range.close);
|
|
134
|
+
return /(?:^|\s|;)(?:origin|cites|serves|scope|adopted_by|adopted by)\s*:/.test(body);
|
|
135
|
+
}
|
|
136
|
+
function parseMetadata(raw, prefix, initial = {}) {
|
|
137
|
+
const grouped = prefix === "V" ? "(?:[A-Z]+)?" : "";
|
|
138
|
+
const idMatch = new RegExp(`^(${escapeRegExp(prefix)}-${grouped}\\d+)(?:\\s+(.*))?$`).exec(raw.trim());
|
|
139
|
+
if (!idMatch)
|
|
140
|
+
return null;
|
|
141
|
+
const id = idMatch[1] ?? "";
|
|
142
|
+
let text = (idMatch[2] ?? "").trim();
|
|
143
|
+
let metadata;
|
|
144
|
+
const range = metadataRange(text);
|
|
145
|
+
if (range?.kind === "malformed")
|
|
146
|
+
return requirementMetadataFinding();
|
|
147
|
+
if (range?.kind === "block") {
|
|
148
|
+
const { open, close } = range;
|
|
149
|
+
metadata = {};
|
|
150
|
+
const body = text.slice(open + 1, close);
|
|
151
|
+
text = text.slice(0, open).trim();
|
|
152
|
+
if (/(?:^|\s)(?:origin|cites|serves|scope|adopted_by|adopted by)\s*:/.test(outsideInlineCode(text))) {
|
|
153
|
+
return requirementMetadataFinding();
|
|
154
|
+
}
|
|
155
|
+
for (const field of body.split(";")) {
|
|
156
|
+
const pair = /^([^:]+):([\s\S]*)$/.exec(field.trim());
|
|
157
|
+
if (!pair)
|
|
158
|
+
return requirementMetadataFinding();
|
|
159
|
+
const key = pair[1]?.trim().toLowerCase().replace(/\s+/g, "_");
|
|
160
|
+
const value = pair[2]?.trim() ?? "";
|
|
161
|
+
if (!key || !["origin", "cites", "serves", "scope", "adopted_by"].includes(key)) {
|
|
162
|
+
return requirementMetadataFinding();
|
|
163
|
+
}
|
|
164
|
+
metadata[key] = value;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
else if (/(?:^|\s)(?:origin|cites|serves|scope|adopted_by|adopted by)\s*:/.test(outsideInlineCode(text))) {
|
|
168
|
+
return requirementMetadataFinding();
|
|
169
|
+
}
|
|
170
|
+
let origin = initial.origin ?? null;
|
|
171
|
+
if (metadata?.origin !== undefined) {
|
|
172
|
+
if (!isOrigin(metadata.origin))
|
|
173
|
+
return requirementMetadataFinding();
|
|
174
|
+
origin = metadata.origin;
|
|
175
|
+
}
|
|
176
|
+
const cites = initial.cites ?? metadataList(metadata?.cites);
|
|
177
|
+
const serves = initial.serves ?? metadataList(metadata?.serves);
|
|
178
|
+
const scope = initial.scope === undefined ? nonEmptyText(metadata?.scope) : initial.scope;
|
|
179
|
+
const adopted = initial.adopted_by === undefined ? nonEmptyText(metadata?.adopted_by) : initial.adopted_by;
|
|
180
|
+
return { id, text, origin, cites, serves, scope, adopted_by: adopted };
|
|
181
|
+
}
|
|
182
|
+
function requirementMetadataFinding() {
|
|
183
|
+
return finding("TN-SPEC-REQ-META", null, null);
|
|
184
|
+
}
|
|
185
|
+
function escapeRegExp(value) {
|
|
186
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
187
|
+
}
|
|
188
|
+
export function parseRequirement(input, opts = {}) {
|
|
189
|
+
const prefix = opts.prefix ?? "R";
|
|
190
|
+
const file = opts.file === undefined ? null : portable(opts.file);
|
|
191
|
+
const line = opts.line ?? null;
|
|
192
|
+
if (typeof input !== "string") {
|
|
193
|
+
const id = nullable(keyLookup(input, "id"));
|
|
194
|
+
if (id === null)
|
|
195
|
+
return finding("TN-SPEC-MISSING-ID", file, line);
|
|
196
|
+
const excluded = new Set([
|
|
197
|
+
"id", "origin", "cites", "serves", "scope", "adoptedby", "adopted_by",
|
|
198
|
+
]);
|
|
199
|
+
let selected = nullable(keyLookup(input, "requirement"));
|
|
200
|
+
if (selected === null)
|
|
201
|
+
selected = nullable(keyLookup(input, "rule"));
|
|
202
|
+
if (selected === null) {
|
|
203
|
+
for (const [key, value] of Object.entries(input)) {
|
|
204
|
+
const clean = key.toLowerCase().replace(/[\s_]+/g, "");
|
|
205
|
+
if (!excluded.has(clean) && !/^release$|^guarantee$|^status$/.test(clean)) {
|
|
206
|
+
const candidate = nullable(value);
|
|
207
|
+
if (candidate !== null) {
|
|
208
|
+
selected = candidate;
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const parsed = parseMetadata(`${id} ${selected ?? ""}`.trim(), prefix);
|
|
215
|
+
if (parsed === null || "code" in parsed) {
|
|
216
|
+
return parsed === null
|
|
217
|
+
? finding("TN-SPEC-MISSING-ID", file, line)
|
|
218
|
+
: { ...parsed, file, line };
|
|
219
|
+
}
|
|
220
|
+
const overrides = {};
|
|
221
|
+
const origin = keyLookup(input, "origin");
|
|
222
|
+
const cleanOrigin = nullable(origin);
|
|
223
|
+
if (cleanOrigin !== null) {
|
|
224
|
+
if (!isOrigin(cleanOrigin))
|
|
225
|
+
return finding("TN-SPEC-REQ-META", file, line);
|
|
226
|
+
overrides.origin = cleanOrigin;
|
|
227
|
+
}
|
|
228
|
+
const cites = keyLookup(input, "cites");
|
|
229
|
+
if (nullable(cites) !== null)
|
|
230
|
+
overrides.cites = commaList(cites);
|
|
231
|
+
const serves = keyLookup(input, "serves");
|
|
232
|
+
if (nullable(serves) !== null)
|
|
233
|
+
overrides.serves = commaList(serves);
|
|
234
|
+
const scope = keyLookup(input, "scope");
|
|
235
|
+
if (nullable(scope) !== null)
|
|
236
|
+
overrides.scope = nullable(scope);
|
|
237
|
+
const adopted = keyLookup(input, "adopted by") ?? keyLookup(input, "adopted_by");
|
|
238
|
+
if (nullable(adopted) !== null)
|
|
239
|
+
overrides.adopted_by = nullable(adopted);
|
|
240
|
+
return { ...parsed, ...overrides };
|
|
241
|
+
}
|
|
242
|
+
const withoutBullet = input.trim().replace(/^[-*+]\s+(?:\[[ xX]\]\s+)?/, "");
|
|
243
|
+
const parsed = parseMetadata(withoutBullet, prefix);
|
|
244
|
+
if (parsed === null)
|
|
245
|
+
return finding("TN-SPEC-MISSING-ID", file, line);
|
|
246
|
+
if ("code" in parsed)
|
|
247
|
+
return { ...parsed, file, line };
|
|
248
|
+
lineLocations.set(parsed, line ?? 0);
|
|
249
|
+
return parsed;
|
|
250
|
+
}
|
|
251
|
+
function frontMatterLines(text) {
|
|
252
|
+
const normalized = text.replaceAll("\r\n", "\n").replaceAll("\r", "\n");
|
|
253
|
+
const lines = normalized.split("\n");
|
|
254
|
+
const end = lines[0]?.trim() === "---" ? lines.findIndex((line, index) => index > 0 && line.trim() === "---") : -1;
|
|
255
|
+
return { normalized, lines, end };
|
|
256
|
+
}
|
|
257
|
+
function splitFront(text) {
|
|
258
|
+
const { normalized, lines, end } = frontMatterLines(text);
|
|
259
|
+
if (end < 0)
|
|
260
|
+
return { front: null, body: normalized, bodyLine: 1 };
|
|
261
|
+
const yaml = lines.slice(1, end).join("\n");
|
|
262
|
+
try {
|
|
263
|
+
const document = parseDocument(yaml, { merge: false, prettyErrors: true, uniqueKeys: true });
|
|
264
|
+
if (document.errors.length > 0)
|
|
265
|
+
return { front: null, body: lines.slice(end + 1).join("\n"), bodyLine: end + 2 };
|
|
266
|
+
const parsed = document.toJS({ maxAliasCount: 100 });
|
|
267
|
+
const top = record(parsed);
|
|
268
|
+
const tenet = record(top?.tenet);
|
|
269
|
+
if (!top || !tenet)
|
|
270
|
+
return { front: null, body: lines.slice(end + 1).join("\n"), bodyLine: end + 2 };
|
|
271
|
+
if (top.sections === undefined)
|
|
272
|
+
top.sections = {};
|
|
273
|
+
return { front: top, body: lines.slice(end + 1).join("\n"), bodyLine: end + 2 };
|
|
274
|
+
}
|
|
275
|
+
catch {
|
|
276
|
+
return { front: null, body: lines.slice(end + 1).join("\n"), bodyLine: end + 2 };
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
export function specificationBody(text) {
|
|
280
|
+
const { normalized, lines, end } = frontMatterLines(text);
|
|
281
|
+
return end < 0 ? normalized : lines.slice(end + 1).join("\n");
|
|
282
|
+
}
|
|
283
|
+
export function isOpenSpecItem(item, field) {
|
|
284
|
+
if (field === "questions" && !/^Q-\d+$/.test(item.id))
|
|
285
|
+
return false;
|
|
286
|
+
return !item.checked || !(field === "conflicts" ? item.resolution : item.answer);
|
|
287
|
+
}
|
|
288
|
+
export function openItemsFor(doc, section, field) {
|
|
289
|
+
return doc.sections.flatMap((part) => part[field]).filter((item) => isOpenSpecItem(item, field) &&
|
|
290
|
+
(item.section === null || item.section === section.slug || item.section === section.heading ||
|
|
291
|
+
item.section === `${doc.path}#${section.slug}`));
|
|
292
|
+
}
|
|
293
|
+
function fenceStart(line) {
|
|
294
|
+
const backticks = /^(?: {0,3})(`{3,})([^`]*)$/.exec(line);
|
|
295
|
+
if (backticks?.[1]) {
|
|
296
|
+
return { character: "`", length: backticks[1].length };
|
|
297
|
+
}
|
|
298
|
+
const tildes = /^(?: {0,3})(~{3,})(.*)$/.exec(line);
|
|
299
|
+
if (tildes?.[1]) {
|
|
300
|
+
return { character: "~", length: tildes[1].length };
|
|
301
|
+
}
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
function fenceEnd(line, fence) {
|
|
305
|
+
const escaped = fence.character === "`" ? "`" : "~";
|
|
306
|
+
return new RegExp(`^ {0,3}${escaped}{${String(fence.length)},}\\s*$`).test(line);
|
|
307
|
+
}
|
|
308
|
+
function sectionRecord(front, slug) {
|
|
309
|
+
const sections = record(front?.sections);
|
|
310
|
+
if (!sections)
|
|
311
|
+
return {};
|
|
312
|
+
const direct = record(sections[slug]);
|
|
313
|
+
if (direct)
|
|
314
|
+
return direct;
|
|
315
|
+
const folded = slug.toLowerCase();
|
|
316
|
+
for (const [candidate, value] of Object.entries(sections)) {
|
|
317
|
+
if (candidate.toLowerCase() === folded)
|
|
318
|
+
return record(value) ?? {};
|
|
319
|
+
}
|
|
320
|
+
return {};
|
|
321
|
+
}
|
|
322
|
+
function makeSection(slug, heading, body, front, startLine, headingLine) {
|
|
323
|
+
const meta = sectionRecord(front, slug);
|
|
324
|
+
const tenet = record(front?.tenet);
|
|
325
|
+
const level = nullable(meta.level) ?? nullable(tenet?.level);
|
|
326
|
+
const state = nullable(meta.state) ?? "draft";
|
|
327
|
+
const normalized = body.replaceAll("\r\n", "\n").replaceAll("\r", "\n");
|
|
328
|
+
const text = normalized && !normalized.endsWith("\n") ? `${normalized}\n` : normalized;
|
|
329
|
+
const section = {
|
|
330
|
+
slug,
|
|
331
|
+
heading,
|
|
332
|
+
level,
|
|
333
|
+
text,
|
|
334
|
+
digest: sectionDigest(normalized),
|
|
335
|
+
requirements: [],
|
|
336
|
+
vision_items: [],
|
|
337
|
+
conflicts: [],
|
|
338
|
+
questions: [],
|
|
339
|
+
applies_to: Array.isArray(meta.applies_to)
|
|
340
|
+
? meta.applies_to.map(String)
|
|
341
|
+
: [],
|
|
342
|
+
state,
|
|
343
|
+
blessed_digest: nullable(meta.blessed_digest),
|
|
344
|
+
blessed_at_rev: nullable(meta.blessed_at_rev),
|
|
345
|
+
anchors: record(meta.anchors)
|
|
346
|
+
? Object.fromEntries(Object.entries(meta.anchors).map(([key, value]) => [key, String(value)]))
|
|
347
|
+
: {},
|
|
348
|
+
blessed_copy: nullable(meta.blessed_copy),
|
|
349
|
+
flags: Array.isArray(meta.flags) ? meta.flags.map(String) : [],
|
|
350
|
+
owner: nullable(meta.owner) ?? nullable(tenet?.owner),
|
|
351
|
+
};
|
|
352
|
+
sectionLocations.set(section, { heading: headingLine, start: startLine });
|
|
353
|
+
return section;
|
|
354
|
+
}
|
|
355
|
+
function skipStandaloneComments(lines, start) {
|
|
356
|
+
let index = start;
|
|
357
|
+
while (lines[index]?.trimStart().startsWith("<!--")) {
|
|
358
|
+
let closingLine = index;
|
|
359
|
+
let close = -1;
|
|
360
|
+
for (; closingLine < lines.length; closingLine += 1) {
|
|
361
|
+
const source = lines[closingLine] ?? "";
|
|
362
|
+
close = source.indexOf("-->");
|
|
363
|
+
if (close !== -1)
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
if (closingLine === lines.length)
|
|
367
|
+
return closingLine;
|
|
368
|
+
if (lines[closingLine]?.slice(close + 3).trim())
|
|
369
|
+
break;
|
|
370
|
+
index = closingLine + 1;
|
|
371
|
+
}
|
|
372
|
+
return index;
|
|
373
|
+
}
|
|
374
|
+
function isTableSeparator(line) {
|
|
375
|
+
const cells = tableCells(line);
|
|
376
|
+
return cells.length > 0 && cells.every((cell) => /^:?-{3,}:?$/.test(cell.trim()));
|
|
377
|
+
}
|
|
378
|
+
function tableCells(line) {
|
|
379
|
+
let text = line.trim();
|
|
380
|
+
if (text.startsWith("|"))
|
|
381
|
+
text = text.slice(1);
|
|
382
|
+
if (text.endsWith("|"))
|
|
383
|
+
text = text.slice(0, -1);
|
|
384
|
+
return text.split(/(?<!\\)\|/).map((cell) => cell.trim().replace(/\\\|/g, "|"));
|
|
385
|
+
}
|
|
386
|
+
function rowRecord(headers, line) {
|
|
387
|
+
const values = tableCells(line);
|
|
388
|
+
return Object.fromEntries(headers.map((header, index) => [header, values[index] ?? ""]));
|
|
389
|
+
}
|
|
390
|
+
function parseSpecial(section, line, lineNumber, conflicts, questions, seen, problems, path) {
|
|
391
|
+
const match = /^\s*[-*+]\s+(?:\[([ xX])\]\s+)?([A-Z]+-\d+)\b(.*)$/.exec(line);
|
|
392
|
+
if (!match?.[2])
|
|
393
|
+
return;
|
|
394
|
+
const id = match[2];
|
|
395
|
+
if (seen.has(id)) {
|
|
396
|
+
problems.push(finding("TN-SPEC-DUP-ID", path, lineNumber, { id }));
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
seen.add(id);
|
|
400
|
+
const isQuestion = section.heading === "Open questions";
|
|
401
|
+
let tail = match[3]?.trim() ?? "";
|
|
402
|
+
let namedSection = null;
|
|
403
|
+
const sectionMatch = /^\(section:\s*([^)]+)\)\s*/.exec(tail);
|
|
404
|
+
if (sectionMatch?.[1]) {
|
|
405
|
+
namedSection = sectionMatch[1].trim() || null;
|
|
406
|
+
tail = tail.slice(sectionMatch[0].length);
|
|
407
|
+
}
|
|
408
|
+
const field = /(?:^|[\s;|])(resolution|answer):\s*([\s\S]+)$/i.exec(tail);
|
|
409
|
+
const fieldName = field?.[1]?.toLowerCase();
|
|
410
|
+
let value;
|
|
411
|
+
if (field?.[1] && field[2]) {
|
|
412
|
+
value = field[2].trim() || undefined;
|
|
413
|
+
tail = tail.slice(0, field.index).trim().replace(/[;|]\s*$/, "").trim();
|
|
414
|
+
}
|
|
415
|
+
const option = /\s*\|\s*\d+:\s*[\s\S]*$/.exec(tail);
|
|
416
|
+
if (option?.index !== undefined)
|
|
417
|
+
tail = tail.slice(0, option.index).trim();
|
|
418
|
+
const parsed = {
|
|
419
|
+
id,
|
|
420
|
+
checked: match[1]?.toLowerCase() === "x",
|
|
421
|
+
section: namedSection,
|
|
422
|
+
text: tail,
|
|
423
|
+
...(fieldName === "resolution" && value ? { resolution: value } : {}),
|
|
424
|
+
...(fieldName === "answer" && value ? { answer: value } : {}),
|
|
425
|
+
};
|
|
426
|
+
lineLocations.set(parsed, lineNumber);
|
|
427
|
+
(isQuestion ? questions : conflicts).push(parsed);
|
|
428
|
+
}
|
|
429
|
+
function addItem(result, section, vision, seen, problems, path, line) {
|
|
430
|
+
if ("code" in result) {
|
|
431
|
+
problems.push(result);
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
if (seen.has(result.id)) {
|
|
435
|
+
problems.push(finding("TN-SPEC-DUP-ID", path, line, { id: result.id }));
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
438
|
+
seen.add(result.id);
|
|
439
|
+
lineLocations.set(result, line);
|
|
440
|
+
(vision ? section.vision_items : section.requirements).push(result);
|
|
441
|
+
}
|
|
442
|
+
function parseStatements(section, prefix, seen, problems, path) {
|
|
443
|
+
const lines = section.text ? section.text.replace(/\n$/, "").split("\n") : [];
|
|
444
|
+
const vision = section.level === "L0" ||
|
|
445
|
+
section.slug === "vision" ||
|
|
446
|
+
/\bvision\b/i.test(section.heading);
|
|
447
|
+
const governed = vision ||
|
|
448
|
+
section.slug === "requirements" ||
|
|
449
|
+
/\brequirements?\b/i.test(section.heading);
|
|
450
|
+
const special = section.heading === "Conflicts" || section.heading === "Open questions";
|
|
451
|
+
const location = sectionLocations.get(section) ?? { start: 0, heading: 0 };
|
|
452
|
+
let fence = null;
|
|
453
|
+
for (let index = 0; index < lines.length; index += 1) {
|
|
454
|
+
const source = lines[index] ?? "";
|
|
455
|
+
const line = location.start + index;
|
|
456
|
+
if (fence) {
|
|
457
|
+
if (fenceEnd(source, fence))
|
|
458
|
+
fence = null;
|
|
459
|
+
continue;
|
|
460
|
+
}
|
|
461
|
+
const nextFence = fenceStart(source);
|
|
462
|
+
if (nextFence) {
|
|
463
|
+
fence = nextFence;
|
|
464
|
+
continue;
|
|
465
|
+
}
|
|
466
|
+
const nextContent = skipStandaloneComments(lines, index);
|
|
467
|
+
if (nextContent !== index) {
|
|
468
|
+
index = nextContent - 1;
|
|
469
|
+
continue;
|
|
470
|
+
}
|
|
471
|
+
if (special) {
|
|
472
|
+
parseSpecial(section, source, line, section.conflicts, section.questions, seen, problems, path);
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
if (source.includes("|") && index + 1 < lines.length) {
|
|
476
|
+
const headers = tableCells(source);
|
|
477
|
+
const separator = skipStandaloneComments(lines, index + 1);
|
|
478
|
+
if (headers[0]?.toLowerCase().replace(/\s+/g, "") === "id" &&
|
|
479
|
+
isTableSeparator(lines[separator] ?? "")) {
|
|
480
|
+
index = separator + 1;
|
|
481
|
+
for (; index < lines.length; index += 1) {
|
|
482
|
+
index = skipStandaloneComments(lines, index);
|
|
483
|
+
const candidate = lines[index] ?? "";
|
|
484
|
+
if (!candidate.trim() || !candidate.includes("|"))
|
|
485
|
+
break;
|
|
486
|
+
const row = rowRecord(headers, candidate);
|
|
487
|
+
const rowLine = location.start + index;
|
|
488
|
+
const item = parseRequirement(row, { prefix: vision ? "V" : prefix, file: path, line: rowLine });
|
|
489
|
+
addItem(item, section, vision, seen, problems, path, rowLine);
|
|
490
|
+
}
|
|
491
|
+
index -= 1;
|
|
492
|
+
continue;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
const bullet = /^\s*[-*+]\s+/.test(source);
|
|
496
|
+
const itemPrefix = vision ? "V" : prefix;
|
|
497
|
+
const item = /^\s*[-*+]\s+/.test(source)
|
|
498
|
+
? parseRequirement(source, { prefix: itemPrefix, file: path, line })
|
|
499
|
+
: null;
|
|
500
|
+
if (item && !("code" in item)) {
|
|
501
|
+
addItem(item, section, vision, seen, problems, path, line);
|
|
502
|
+
}
|
|
503
|
+
else if (item && "code" in item) {
|
|
504
|
+
if (item.code !== "TN-SPEC-MISSING-ID" || governed || hasTrailingMetadata(source)) {
|
|
505
|
+
addItem(item, section, vision, seen, problems, path, line);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
else if (bullet && governed) {
|
|
509
|
+
problems.push(finding("TN-SPEC-MISSING-ID", path, line));
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
export function parseDoc(path, text, opts = {}) {
|
|
514
|
+
const filename = portable(path);
|
|
515
|
+
const { front, body, bodyLine } = splitFront(text);
|
|
516
|
+
const problems = [];
|
|
517
|
+
if (!front)
|
|
518
|
+
problems.push(finding("TN-SPEC-NO-FRONT", filename, null));
|
|
519
|
+
const lines = body.split("\n");
|
|
520
|
+
const raw = [];
|
|
521
|
+
let current = null;
|
|
522
|
+
let fence = null;
|
|
523
|
+
const slugs = new Set();
|
|
524
|
+
let position = 0;
|
|
525
|
+
const startSection = (heading, line) => {
|
|
526
|
+
position += 1;
|
|
527
|
+
const slug = slugFor(heading, position);
|
|
528
|
+
if (slugs.has(slug)) {
|
|
529
|
+
problems.push(finding("TN-SPEC-DUP-SECTION", filename, line, { slug }));
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
slugs.add(slug);
|
|
533
|
+
}
|
|
534
|
+
current = { slug, heading, bodyLines: [], start: line + 1, headingLine: line };
|
|
535
|
+
raw.push(current);
|
|
536
|
+
};
|
|
537
|
+
for (let index = 0; index < lines.length; index += 1) {
|
|
538
|
+
const source = lines[index] ?? "";
|
|
539
|
+
const line = bodyLine + index;
|
|
540
|
+
const active = current;
|
|
541
|
+
if (fence) {
|
|
542
|
+
active?.bodyLines.push(source);
|
|
543
|
+
if (fenceEnd(source, fence))
|
|
544
|
+
fence = null;
|
|
545
|
+
continue;
|
|
546
|
+
}
|
|
547
|
+
const nextFence = fenceStart(source);
|
|
548
|
+
if (nextFence) {
|
|
549
|
+
fence = nextFence;
|
|
550
|
+
active?.bodyLines.push(source);
|
|
551
|
+
continue;
|
|
552
|
+
}
|
|
553
|
+
const nextContent = skipStandaloneComments(lines, index);
|
|
554
|
+
if (nextContent !== index) {
|
|
555
|
+
for (; index < nextContent; index += 1)
|
|
556
|
+
active?.bodyLines.push(lines[index] ?? "");
|
|
557
|
+
index -= 1;
|
|
558
|
+
continue;
|
|
559
|
+
}
|
|
560
|
+
const heading = /^## (.*)$/.exec(source);
|
|
561
|
+
if (heading?.[1] !== undefined) {
|
|
562
|
+
startSection(heading[1], line);
|
|
563
|
+
}
|
|
564
|
+
else {
|
|
565
|
+
active?.bodyLines.push(source);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
if (!current) {
|
|
569
|
+
const preamble = lines.join("\n");
|
|
570
|
+
if (preamble.trim())
|
|
571
|
+
raw.push({
|
|
572
|
+
slug: "_preamble",
|
|
573
|
+
heading: "",
|
|
574
|
+
bodyLines: lines,
|
|
575
|
+
start: bodyLine,
|
|
576
|
+
headingLine: bodyLine - 1,
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
const firstHeading = raw.find((section) => section.headingLine !== -1);
|
|
581
|
+
if (firstHeading) {
|
|
582
|
+
const beforeCount = firstHeading.headingLine - bodyLine;
|
|
583
|
+
const preambleLines = lines.slice(0, beforeCount);
|
|
584
|
+
if (preambleLines.some((line) => line.trim())) {
|
|
585
|
+
raw.unshift({
|
|
586
|
+
slug: "_preamble",
|
|
587
|
+
heading: "",
|
|
588
|
+
bodyLines: preambleLines,
|
|
589
|
+
start: bodyLine,
|
|
590
|
+
headingLine: bodyLine - 1,
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
const sections = raw.map((item) => makeSection(item.slug, item.heading, item.bodyLines.join("\n"), front, item.start, item.headingLine));
|
|
596
|
+
const seen = new Set();
|
|
597
|
+
for (const section of sections)
|
|
598
|
+
parseStatements(section, opts.prefix ?? "R", seen, problems, filename);
|
|
599
|
+
return { path: filename, front, sections, problems };
|
|
600
|
+
}
|
|
601
|
+
export function itemLine(item) {
|
|
602
|
+
const line = lineLocations.get(item);
|
|
603
|
+
return line && line > 0 ? line : null;
|
|
604
|
+
}
|
|
605
|
+
export function sectionLocation(section) {
|
|
606
|
+
return sectionLocations.get(section) ?? { heading: 0, start: 0 };
|
|
607
|
+
}
|
|
608
|
+
//# sourceMappingURL=parse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{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