@vedprakash-m/tenet 0.1.0 → 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/README.md +106 -52
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +70 -19
- package/dist/cli.js.map +1 -1
- package/dist/commands/check.js +4 -1
- package/dist/commands/check.js.map +1 -1
- package/dist/commands/context.d.ts +12 -4
- package/dist/commands/context.js +6 -5
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/init.js +116 -28
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/onboard.js +70 -4
- package/dist/commands/onboard.js.map +1 -1
- package/dist/commands/upgrade.js +1 -1
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/commands/verify.d.ts +2 -1
- package/dist/commands/verify.js +160 -14
- package/dist/commands/verify.js.map +1 -1
- package/dist/context/index.d.ts +1 -0
- package/dist/context/index.js +130 -27
- package/dist/context/index.js.map +1 -1
- package/dist/core/messages.d.ts +5 -1
- package/dist/core/messages.js +5 -1
- package/dist/core/messages.js.map +1 -1
- package/dist/core/output.d.ts +1 -0
- package/dist/core/output.js.map +1 -1
- package/dist/install/hosts.d.ts +2 -2
- package/dist/install/hosts.js +4 -2
- package/dist/install/hosts.js.map +1 -1
- package/dist/install/init.js +1 -0
- package/dist/install/init.js.map +1 -1
- package/dist/install/integrity.d.ts +4 -1
- package/dist/install/integrity.js +32 -8
- package/dist/install/integrity.js.map +1 -1
- package/dist/install/preflight.js +52 -3
- package/dist/install/preflight.js.map +1 -1
- package/dist/install/types.d.ts +5 -1
- package/dist/install/upgrade.js +163 -19
- package/dist/install/upgrade.js.map +1 -1
- package/dist/install/writes.d.ts +1 -0
- package/dist/install/writes.js +14 -12
- package/dist/install/writes.js.map +1 -1
- package/dist/onboard/bless.d.ts +10 -4
- package/dist/onboard/bless.js +150 -79
- package/dist/onboard/bless.js.map +1 -1
- package/dist/onboard/card.d.ts +9 -2
- package/dist/onboard/card.js +43 -12
- package/dist/onboard/card.js.map +1 -1
- package/dist/specs/anchors.d.ts +10 -0
- package/dist/specs/anchors.js +17 -0
- package/dist/specs/anchors.js.map +1 -1
- package/dist/specs/check.js +16 -9
- package/dist/specs/check.js.map +1 -1
- package/dist/specs/parse.d.ts +3 -0
- package/dist/specs/parse.js +60 -17
- package/dist/specs/parse.js.map +1 -1
- package/dist/verify/card.js +2 -1
- package/dist/verify/card.js.map +1 -1
- package/dist/verify/record.js +25 -4
- package/dist/verify/record.js.map +1 -1
- package/dist/verify/run-checks.js +8 -2
- package/dist/verify/run-checks.js.map +1 -1
- package/dist/views/specs-board.js +63 -53
- package/dist/views/specs-board.js.map +1 -1
- package/kit/CHANGELOG.md +26 -0
- package/kit/README.md +1 -1
- package/kit/schemas/results/context.json +3 -0
- package/kit/skills/draft-specs/SKILL.md +2 -2
- package/kit/skills/review-with-findings/SKILL.md +4 -3
- package/kit/skills/work-a-change/SKILL.md +2 -2
- package/kit/templates/pull-request.md +7 -5
- package/package.json +1 -1
- package/pkg/conformance/board/n04-over-budget/input.json +1 -1
- package/pkg/conformance/board/p07-ux-part-2/expected.md +4 -3
- package/pkg/conformance/card/p05-workflow-and-protected-surfaces-would-block/expected.json +4 -0
- package/pkg/conformance/card/p05-workflow-and-protected-surfaces-would-block/expected.md +1 -1
- package/pkg/conformance/check/n09-ci-budget-crossing/input.json +1 -1
- package/pkg/conformance/check/n12-local-budget-warning/input.json +1 -1
- package/pkg/conformance/scenarios/README.md +7 -3
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/06-card.md +5 -2
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/06-onboard-card.json +1 -1
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/06-card.md +5 -2
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/06-onboard-card.json +1 -1
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/04-onboard-inventory.json +9 -9
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/05-card.md +5 -2
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/05-onboard-card.json +1 -1
- 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
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
<!-- Summary of what changed and why. -->
|
|
2
2
|
|
|
3
3
|
<!-- tenet:begin v{version} -->
|
|
4
|
+
<!--
|
|
4
5
|
## Acceptance
|
|
5
|
-
Implements:
|
|
6
|
+
Implements: <requirement IDs>
|
|
6
7
|
- [AB-1] <what must hold>
|
|
8
|
+
-->
|
|
7
9
|
<!-- tenet:end -->
|
|
8
10
|
|
|
9
11
|
## Spec change
|
|
10
12
|
<!-- Optional: if code showed a specification is wrong or incomplete, explain why you edited that specification file in this pull request. Never edit blessing fields or {records}/blessed/. -->
|
|
11
13
|
|
|
12
14
|
<!--
|
|
13
|
-
Worked example
|
|
15
|
+
Worked example:
|
|
14
16
|
|
|
15
17
|
## Acceptance
|
|
16
|
-
Implements: R-
|
|
17
|
-
- [AB-1] one
|
|
18
|
-
- [
|
|
18
|
+
Implements: <R-n>, <R-n>
|
|
19
|
+
- [AB-1] <one observable result>
|
|
20
|
+
- [AB-2] <another observable result>
|
|
19
21
|
|
|
20
22
|
Completeness checklist:
|
|
21
23
|
- [ ] `Implements:` lists blessed requirement IDs touched by this pull request (if any)
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"files": {
|
|
14
14
|
"tenet.yaml": "{\n \"standard\": \"0.1.0-alpha.0\",\n \"kit_path\": \"kit\",\n \"paths\": {\n \"records\": \"tenet\"\n },\n \"level\": \"observe\",\n \"specs\": {\n \"id_prefix\": \"R\",\n \"documents\": [\n {\n \"path\": \"intent.md\",\n \"level\": \"L1\",\n \"budget\": 200\n }\n ]\n },\n \"owners\": [\n {\n \"id\": \"payments\",\n \"name\": \"Payments\",\n \"roles\": [\n \"owner\"\n ]\n }\n ]\n}\n",
|
|
15
15
|
"kit/TENET.md": "# Fixture kit\n",
|
|
16
|
-
"tenet/intent.md": "---\ntenet: {\"spec\":1,\"doc\":\"intent\",\"level\":\"L1\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n experience: {\"state\":\"draft\",\"digest\":\"sha256:
|
|
16
|
+
"tenet/intent.md": "---\ntenet: {\"spec\":1,\"doc\":\"intent\",\"level\":\"L1\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n experience: {\"state\":\"draft\",\"digest\":\"sha256:e1d5d90a7da0cd8f749239929e12b71142a02599a346fec75655ee2f09405e87\",\"flags\":[]}\n---\n## Experience\nCheckout experience .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\n"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"markdownMode": "fragments"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
checkout · main 9f3c2e1 · level observe
|
|
2
|
-
Waiting for your blessing (1)
|
|
3
|
-
|
|
4
|
-
Sources changed (1)
|
|
2
|
+
Waiting for your blessing (1) · Sources changed (1)
|
|
3
|
+
tenet/specs/prd.md
|
|
5
4
|
Requirements › C-4 · src/retry.ts changed after you blessed it; the blessed text still applies
|
|
5
|
+
tenet/specs/ux-spec.md
|
|
6
|
+
Experience · undecided since onboarding
|
|
6
7
|
Spec debt (1)
|
|
7
8
|
Design cites src/legacy/queue.ts, which no longer exists
|
|
@@ -5,4 +5,4 @@ Acceptance
|
|
|
5
5
|
✓ AB-1 · test passed on this commit · written in this change · test/checkout.retry.test.ts › checkout › [AB-1] one retry after timeout
|
|
6
6
|
Tests 1 passed · ✓ no weakening detected by these checks · ! protected files touched: .github/workflows/tenet-tests.yml, tenet.yaml (test workflow changed)
|
|
7
7
|
Would have blocked: protected files modified: .github/workflows/tenet-tests.yml, tenet.yaml
|
|
8
|
-
Why: tests written in this change require reviewer judgment [judge]
|
|
8
|
+
Why: tests written in this change require reviewer judgment [judge] · check command changed for unit; runs base policy (takes effect after merge) [host]
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"tenet/blessed/tenet__specs__prd.md/requirements.md": "- R-1 Keep checkout predictable. {origin: asked; serves: V-1}\n",
|
|
23
23
|
"tenet/blessed/tenet__specs__prd.md/requirements.md.anchors.json": "{}\n",
|
|
24
24
|
"tenet/specs/prd.md": "---\ntenet: {\"spec\":1,\"doc\":\"prd\",\"level\":\"L1\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n requirements: {\"state\":\"blessed\",\"digest\":\"sha256:4d4897250b72b9acb8f843caa3ac11ce43e1f5ac59e5a459abcc31ac2551c9a1\",\"flags\":[],\"blessed_digest\":\"sha256:4d4897250b72b9acb8f843caa3ac11ce43e1f5ac59e5a459abcc31ac2551c9a1\",\"blessed_at_rev\":\"9f3c2e1123456789012345678901234567890123\",\"blessed_copy\":\"tenet/blessed/tenet__specs__prd.md/requirements.md\",\"recorded\":\"self\",\"blessed_by\":\"payments\",\"blessed_at\":\"2026-11-23T10:00:00Z\",\"anchors\":{}}\n---\n## Requirements\n- R-1 Keep checkout predictable. {origin: asked; serves: V-1}\n",
|
|
25
|
-
"tenet/specs/tech-spec.md": "---\ntenet: {\"spec\":1,\"doc\":\"tech-spec\",\"level\":\"L2\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n design: {\"state\":\"draft\",\"digest\":\"sha256:
|
|
25
|
+
"tenet/specs/tech-spec.md": "---\ntenet: {\"spec\":1,\"doc\":\"tech-spec\",\"level\":\"L2\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n design: {\"state\":\"draft\",\"digest\":\"sha256:ceb693a04644525227fe1c37878ac14b460af7e36f736091ae6c7ae08076967c\",\"flags\":[]}\n---\n## Design\nCheckout design .........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\n",
|
|
26
26
|
"tenet/specs/ux-spec.md": "---\ntenet: {\"spec\":1,\"doc\":\"ux-spec\",\"level\":\"L2\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n experience: {\"state\":\"draft\",\"digest\":\"sha256:727012fa53440872c3c81cf58470f45340f35f19eafcdd92533c2eb9448b5c2e\",\"flags\":[]}\n---\n## Experience\nPreserve the checkout result.\n",
|
|
27
27
|
"tenet/specs/plan.md": "---\ntenet: {\"spec\":1,\"doc\":\"plan\",\"level\":\"L2\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n plan: {\"state\":\"draft\",\"digest\":\"sha256:89298d776218a3fdb3beafc4dd8440f00d51c43a202e79c7f039ffbf1c1aafe1\",\"flags\":[]}\n---\n## Plan\nKeep checkout changes small.\n",
|
|
28
28
|
"README.md": "# Checkout\n",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"tenet/blessed/tenet__specs__prd.md/requirements.md": "- R-1 Keep checkout predictable. {origin: asked; serves: V-1}\n",
|
|
20
20
|
"tenet/blessed/tenet__specs__prd.md/requirements.md.anchors.json": "{}\n",
|
|
21
21
|
"tenet/specs/prd.md": "---\ntenet: {\"spec\":1,\"doc\":\"prd\",\"level\":\"L1\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n requirements: {\"state\":\"blessed\",\"digest\":\"sha256:4d4897250b72b9acb8f843caa3ac11ce43e1f5ac59e5a459abcc31ac2551c9a1\",\"flags\":[],\"blessed_digest\":\"sha256:4d4897250b72b9acb8f843caa3ac11ce43e1f5ac59e5a459abcc31ac2551c9a1\",\"blessed_at_rev\":\"9f3c2e1123456789012345678901234567890123\",\"blessed_copy\":\"tenet/blessed/tenet__specs__prd.md/requirements.md\",\"recorded\":\"self\",\"blessed_by\":\"payments\",\"blessed_at\":\"2026-11-23T10:00:00Z\",\"anchors\":{}}\n---\n## Requirements\n- R-1 Keep checkout predictable. {origin: asked; serves: V-1}\n",
|
|
22
|
-
"tenet/specs/tech-spec.md": "---\ntenet: {\"spec\":1,\"doc\":\"tech-spec\",\"level\":\"L2\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n design: {\"state\":\"draft\",\"digest\":\"sha256:
|
|
22
|
+
"tenet/specs/tech-spec.md": "---\ntenet: {\"spec\":1,\"doc\":\"tech-spec\",\"level\":\"L2\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n design: {\"state\":\"draft\",\"digest\":\"sha256:162c0d72d7adc1a02dee783c2d48971a64ed21f4837b5bc60528c4a1a82ee5dc\",\"flags\":[]}\n---\n## Design\nCheckout design .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................\n",
|
|
23
23
|
"tenet/specs/ux-spec.md": "---\ntenet: {\"spec\":1,\"doc\":\"ux-spec\",\"level\":\"L2\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n experience: {\"state\":\"draft\",\"digest\":\"sha256:727012fa53440872c3c81cf58470f45340f35f19eafcdd92533c2eb9448b5c2e\",\"flags\":[]}\n---\n## Experience\nPreserve the checkout result.\n",
|
|
24
24
|
"tenet/specs/plan.md": "---\ntenet: {\"spec\":1,\"doc\":\"plan\",\"level\":\"L2\",\"version\":\"0.1\",\"owner\":\"payments\"}\nsections:\n plan: {\"state\":\"draft\",\"digest\":\"sha256:89298d776218a3fdb3beafc4dd8440f00d51c43a202e79c7f039ffbf1c1aafe1\",\"flags\":[]}\n---\n## Plan\nKeep checkout changes small.\n",
|
|
25
25
|
"README.md": "# Checkout\n",
|
|
@@ -7,15 +7,16 @@ Written independently from the `CP-0052` build contract (`tenet/specs/plan/alpha
|
|
|
7
7
|
Each scenario folder contains:
|
|
8
8
|
- `before/` — starting repository tree materialized into a fresh temporary Git repository (`main` branch, one initial commit unless `before/` holds only `.gitkeep`).
|
|
9
9
|
- `steps.json` — ordered sequence of deterministic steps across `git`, `write`, `cli`, `sdk`, `mcp`, and `verify`:
|
|
10
|
+
- `pending`: optional reason string when a scenario awaits an unmerged change (`test/onboard/scenarios.test.ts` reports it as TODO until `pending` is removed).
|
|
10
11
|
- `git` / `git-squash-shallow-clone`: repository mutations, squash-merge, or `git clone --depth 1` into `workdir`.
|
|
11
12
|
- `write`: exact UTF-8 working-tree file updates.
|
|
12
|
-
- `cli`: invokes `tenet <args...>` (with optional `fakeTty` prompt answers, `interrupt` fault injection for interrupted install checkpoints, `workdir`, and `
|
|
13
|
+
- `cli`: invokes `tenet <args...>` (with optional `fakeTty` prompt answers, `interrupt` fault injection for interrupted install checkpoints, `workdir`, `expectExitCode` / `expectExitCodes`, `expectedStdoutIncludes` / `expectedStderrIncludes` / `expectedTextIncludes`, and `expectedFilesInclude`). `withoutCiEvent` clears `GITHUB_EVENT_PATH` for one command. `expectedProjection` reads a file with `stdoutMatches` regular expressions (case-insensitive and multiline) or `absentYamlPaths` with YAML key paths grouped by file.
|
|
13
14
|
- `sdk`: calls an exported Tenet SDK function (`context`, `board`, `onboard`, `record`, `renderCard`, or the `ALG-07` gate fixture evaluator).
|
|
14
15
|
- `mcp`: sends newline-delimited JSON-RPC 2.0 requests to `serveMcp` and checks ordered responses and parity with CLI/SDK.
|
|
15
16
|
- `verify`: evaluates a `VerifyEvent` (`workflow_run`, `edited`, or `pull_request` closed) with bundle/JUnit inputs and renders the proof card Markdown.
|
|
16
|
-
- `expected/` — exact JSON results, log lines, tree equivalence snapshots, and rendered `.md` cards
|
|
17
|
+
- `expected/` — exact JSON results (`expectedJson`), partial structural assertions (`expectedJsonMatch` with `$assert` projections where exact rendering is left open), log lines, tree equivalence snapshots, and rendered `.md` cards.
|
|
17
18
|
|
|
18
|
-
## Scenarios (
|
|
19
|
+
## Scenarios (16 folders: 13 populated, 3 pending CP-0066)
|
|
19
20
|
|
|
20
21
|
| Scenario | Contract bullet | Surfaces | Spec lines exercised | Expected files |
|
|
21
22
|
|---|---|---|---|---|
|
|
@@ -32,3 +33,6 @@ Each scenario folder contains:
|
|
|
32
33
|
| [s11-readme-walkthrough](s11-readme-walkthrough/steps.json) | README walkthrough verbatim | `cli`, `write`, `git`, `fakeTty`, `card` | `README.md:15–30`, `CP-0052` (`alpha.0b.md:125`) | `expected/01-init.json`, `expected/02-onboard-inventory.json`, `expected/06-onboard-card.json`, `expected/06-card.md`, `expected/07-bless.json`, `expected/08-remove.json`, `before/` restoration |
|
|
33
34
|
| [s12-ux-walkthrough-existing](s12-ux-walkthrough-existing/steps.json) | UX Part 1A & Part 2 walkthrough verbatim (existing repo) | `cli`, `write`, `git`, `fakeTty`, `card` | `ux-spec.md:34–115, 148–158`, `CP-0052` (`alpha.0b.md:125`) | `expected/01-init.json`, `expected/02-onboard-inventory.json`, `expected/06-onboard-card.json`, `expected/06-card.md`, `expected/07-bless.json`, `expected/08-board.json` |
|
|
34
35
|
| [s13-ux-walkthrough-new](s13-ux-walkthrough-new/steps.json) | UX Part 1B walkthrough verbatim (new project) | `cli`, `git`, `fakeTty`, `card` | `ux-spec.md:119–125`, `CP-0052` (`alpha.0b.md:125`) | `expected/01-init.json`, `expected/04-onboard-inventory.json`, `expected/05-onboard-card.json`, `expected/05-card.md`, `expected/06-bless.json` |
|
|
36
|
+
| [s14-bless-decide-later-and-questions](s14-bless-decide-later-and-questions/steps.json) | Bless decide later, open questions, closing summary, grouped vision warning | `cli`, `git`, `fakeTty` | `CP-0066` AB-A1–A3, A7 (`definition.md`) | `expected/02-board.json`, `expected/09-check.json` |
|
|
37
|
+
| [s15-context-paths-ranking](s15-context-paths-ranking/steps.json) | Context `applies_to` path ranking, `"**"` budget handling, `--paths` forms, `--include-drafts` | `cli`, `mcp` | `CP-0066` AB-B1–B3 (`definition.md`) | `expected/01-context-paths.json`, `expected/03-context-multi.json`, `expected/05-context-drafts.json`, `expected/07-mcp-drafts.json` |
|
|
38
|
+
| [s16-verify-local-preview](s16-verify-local-preview/steps.json) | Init without a test runner, working-tree preview, and changed command notice | `cli`, `git`, `write` | `CP-0066` AB-C1–C3 (`definition.md`) | `expected/01-init.json`, `expected/14-local-preview.json`, `expected/18-command-change.json` |
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
### Tenet onboarding · drafted from 175926e · nothing is in force until you bless it
|
|
2
2
|
Read: README.md, 1 source file, 1 test file, 0 instruction files · Skipped: none
|
|
3
|
-
✓
|
|
3
|
+
✓ 2 citations resolve (file and lines exist)
|
|
4
4
|
Sections (about 2 minutes)
|
|
5
5
|
Vision · 1 statement · 1 documented · 1 min
|
|
6
6
|
Requirements · 1 statement · 1 observed · 1 min
|
|
7
|
-
|
|
7
|
+
Updated the draft revision in:
|
|
8
|
+
tenet/intent.md
|
|
9
|
+
Commit these files with the setup changes.
|
|
10
|
+
→ Commit your changes, then rerun tenet onboard --card.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"command": "onboard",
|
|
4
4
|
"version": "{{version}}",
|
|
5
5
|
"result": {
|
|
6
|
-
"card": "### Tenet onboarding · drafted from 175926e · nothing is in force until you bless it\nRead: README.md, 1 source file, 1 test file, 0 instruction files · Skipped: none\n✓
|
|
6
|
+
"card": "### Tenet onboarding · drafted from 175926e · nothing is in force until you bless it\nRead: README.md, 1 source file, 1 test file, 0 instruction files · Skipped: none\n✓ 2 citations resolve (file and lines exist)\nSections (about 2 minutes)\n Vision · 1 statement · 1 documented · 1 min\n Requirements · 1 statement · 1 observed · 1 min\nUpdated the draft revision in:\n tenet/intent.md\nCommit these files with the setup changes.\n→ Commit your changes, then rerun tenet onboard --card.\n",
|
|
7
7
|
"drafted_at_rev": "b7cbdb9395ddea3fae2373f4c153159b9f9baf99"
|
|
8
8
|
},
|
|
9
9
|
"errors": []
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
### Tenet onboarding · drafted from cf8e94d · nothing is in force until you bless it
|
|
2
2
|
Read: README.md, docs/architecture.md, 2 ADRs, 1 source file, 1 test file, 0 instruction files · Skipped: none
|
|
3
|
-
✓
|
|
3
|
+
✓ 1 citation resolves (file and lines exist)
|
|
4
4
|
Conflicts (settle these first)
|
|
5
5
|
! CF-1 README says two retries; src/retry.ts retries once.
|
|
6
6
|
Sections (about 2 minutes)
|
|
7
7
|
Vision · 1 statement · 1 asked · 1 min
|
|
8
8
|
Requirements · 1 statement · 1 observed · 1 min
|
|
9
|
-
|
|
9
|
+
Updated the draft revision in:
|
|
10
|
+
tenet/intent.md
|
|
11
|
+
Commit these files with the setup changes.
|
|
12
|
+
→ Commit your changes, then rerun tenet onboard --card.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"command": "onboard",
|
|
4
4
|
"version": "{{version}}",
|
|
5
5
|
"result": {
|
|
6
|
-
"card": "### Tenet onboarding · drafted from cf8e94d · nothing is in force until you bless it\nRead: README.md, docs/architecture.md, 2 ADRs, 1 source file, 1 test file, 0 instruction files · Skipped: none\n✓
|
|
6
|
+
"card": "### Tenet onboarding · drafted from cf8e94d · nothing is in force until you bless it\nRead: README.md, docs/architecture.md, 2 ADRs, 1 source file, 1 test file, 0 instruction files · Skipped: none\n✓ 1 citation resolves (file and lines exist)\nConflicts (settle these first)\n ! CF-1 README says two retries; src/retry.ts retries once.\nSections (about 2 minutes)\n Vision · 1 statement · 1 asked · 1 min\n Requirements · 1 statement · 1 observed · 1 min\nUpdated the draft revision in:\n tenet/intent.md\nCommit these files with the setup changes.\n→ Commit your changes, then rerun tenet onboard --card.\n",
|
|
7
7
|
"drafted_at_rev": "407727622aac54961faa9cc8458ad7846cedc459"
|
|
8
8
|
},
|
|
9
9
|
"errors": []
|
|
@@ -17,31 +17,31 @@
|
|
|
17
17
|
{
|
|
18
18
|
"path": ".agents/skills/tenet-draft-specs/SKILL.md",
|
|
19
19
|
"kind": "config",
|
|
20
|
-
"sha256": "
|
|
20
|
+
"sha256": "46a53dd2b0a90992221a7ea543f99781be76399aca98cccb67a572b5d6c9d725",
|
|
21
21
|
"lines": 38
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"path": ".agents/skills/tenet-review-with-findings/SKILL.md",
|
|
25
25
|
"kind": "config",
|
|
26
|
-
"sha256": "
|
|
27
|
-
"lines":
|
|
26
|
+
"sha256": "d08cf8fe9a0154428e61ef8998dba29b19386dc87c110ea058c93171499e1647",
|
|
27
|
+
"lines": 22
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"path": ".agents/skills/tenet-work-a-change/SKILL.md",
|
|
31
31
|
"kind": "config",
|
|
32
|
-
"sha256": "
|
|
32
|
+
"sha256": "aac61a360469eab5cce564fd4c58bdd928d7cc5dd245d1eacdaa717d130f816c",
|
|
33
33
|
"lines": 30
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"path": ".gitattributes",
|
|
37
37
|
"kind": "config",
|
|
38
|
-
"sha256": "
|
|
38
|
+
"sha256": "1d356d209df557b2107ac7ebe7332a917b7d9907e701cd9f22002b9e188bc621",
|
|
39
39
|
"lines": 12
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": ".gitignore",
|
|
43
43
|
"kind": "config",
|
|
44
|
-
"sha256": "
|
|
44
|
+
"sha256": "b34625591b1938316459605a0433362f905d5b8e72a4fea757e0606d490bce4a",
|
|
45
45
|
"lines": 6
|
|
46
46
|
},
|
|
47
47
|
{
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
{
|
|
60
60
|
"path": "AGENTS.md",
|
|
61
61
|
"kind": "config",
|
|
62
|
-
"sha256": "
|
|
62
|
+
"sha256": "ebca14647ce5640be40b8d3b4e35221849037ad3c1f849f5741eb0873405478c",
|
|
63
63
|
"lines": 43
|
|
64
64
|
},
|
|
65
65
|
{
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
{
|
|
72
72
|
"path": "tenet.yaml",
|
|
73
73
|
"kind": "config",
|
|
74
|
-
"sha256": "
|
|
75
|
-
"lines":
|
|
74
|
+
"sha256": "704e0b48e8005eab6ad82fee674e55909cd6049fc404567f35a20a16c3fd2cf4",
|
|
75
|
+
"lines": 21
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"path": "tenet/intent.md",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
### Tenet onboarding · drafted from 4f430df · nothing is in force until you bless it
|
|
2
2
|
Read: tenet/intent.md, 0 source files, 0 test files, 0 instruction files · Skipped: none
|
|
3
|
-
✓
|
|
3
|
+
✓ 0 citations resolve (file and lines exist)
|
|
4
4
|
Sections (about 7 minutes)
|
|
5
5
|
_preamble · 2 statements · 2 unlabelled · 1 min
|
|
6
6
|
Vision · 0 statements · 1 min
|
|
@@ -9,4 +9,7 @@ Sections (about 7 minutes)
|
|
|
9
9
|
Experience · 0 statements · 1 min
|
|
10
10
|
Plan · 0 statements · 1 min
|
|
11
11
|
Completeness checklist · 1 statement · 1 unlabelled · 1 min
|
|
12
|
-
|
|
12
|
+
Updated the draft revision in:
|
|
13
|
+
tenet/intent.md
|
|
14
|
+
Commit these files with the setup changes.
|
|
15
|
+
→ Commit your changes, then rerun tenet onboard --card.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"command": "onboard",
|
|
4
4
|
"version": "{{version}}",
|
|
5
5
|
"result": {
|
|
6
|
-
"card": "### Tenet onboarding · drafted from 4f430df · nothing is in force until you bless it\nRead: tenet/intent.md, 0 source files, 0 test files, 0 instruction files · Skipped: none\n✓
|
|
6
|
+
"card": "### Tenet onboarding · drafted from 4f430df · nothing is in force until you bless it\nRead: tenet/intent.md, 0 source files, 0 test files, 0 instruction files · Skipped: none\n✓ 0 citations resolve (file and lines exist)\nSections (about 7 minutes)\n _preamble · 2 statements · 2 unlabelled · 1 min\n Vision · 0 statements · 1 min\n Requirements · 0 statements · 1 min\n Design · 0 statements · 1 min\n Experience · 0 statements · 1 min\n Plan · 0 statements · 1 min\n Completeness checklist · 1 statement · 1 unlabelled · 1 min\nUpdated the draft revision in:\n tenet/intent.md\nCommit these files with the setup changes.\n→ Commit your changes, then rerun tenet onboard --card.\n",
|
|
7
7
|
"drafted_at_rev": "4f430df3adc84ccf75c5be93cc84cc035475f2dc"
|
|
8
8
|
},
|
|
9
9
|
"errors": []
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/specs/plan.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
tenet: {"spec":1,"doc":"plan","level":"L2","version":"0.1","owner":"ved"}
|
|
3
|
+
sections:
|
|
4
|
+
plan: {"state":"blessed","digest":"sha256:d7344248b728afac4c6ab6d19e07130966375e6079a5ad7c034c588a3061b0c2","flags":[],"blessed_digest":"sha256:d7344248b728afac4c6ab6d19e07130966375e6079a5ad7c034c588a3061b0c2","blessed_at_rev":"0000000000000000000000000000000000000001","blessed_copy":"tenet/blessed/tenet__specs__plan.md/plan.md","recorded":"self","blessed_by":"ved","blessed_at":"2026-11-23T10:00:00Z","anchors":{}}
|
|
5
|
+
---
|
|
6
|
+
## Plan
|
|
7
|
+
Minimal plan stub.
|
package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/specs/prd.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
tenet: {"spec":1,"doc":"prd","level":"L1","version":"0.1","owner":"ved"}
|
|
3
|
+
sections:
|
|
4
|
+
orders: {"state":"draft","digest":null,"flags":[]}
|
|
5
|
+
timeouts: {"state":"draft","digest":null,"flags":[]}
|
|
6
|
+
logging: {"state":"draft","digest":null,"flags":[]}
|
|
7
|
+
conflicts: {"state":"draft","digest":null,"flags":[]}
|
|
8
|
+
open-questions: {"state":"draft","digest":null,"flags":[]}
|
|
9
|
+
---
|
|
10
|
+
## Orders
|
|
11
|
+
- R-1 Retry failed jobs up to three times. {origin: observed; cites: src/app.ts:1-3; serves: V-1}
|
|
12
|
+
|
|
13
|
+
## Timeouts
|
|
14
|
+
- R-2 Wait 5 seconds before timing out. {origin: observed; cites: src/app.ts:4-6; serves: V-2}
|
|
15
|
+
|
|
16
|
+
## Logging
|
|
17
|
+
- R-3 Log every dropped item with its ID. {origin: documented; cites: README.md:3; serves: V-3}
|
|
18
|
+
|
|
19
|
+
## Conflicts
|
|
20
|
+
- [ ] CF-1 (section: orders) Retry limit differs in docs vs code | 1: Retry three times | 2: Retry once
|
|
21
|
+
- [ ] CF-2 (section: timeouts) Timeout value differs in docs vs code | 1: Wait 5 seconds | 2: Wait 10 seconds
|
|
22
|
+
|
|
23
|
+
## Open questions
|
|
24
|
+
- [ ] Q-1 (section: logging) Should logs include timestamps?
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
tenet: {"spec":1,"doc":"tech-spec","level":"L2","version":"0.1","owner":"ved"}
|
|
3
|
+
sections:
|
|
4
|
+
design: {"state":"blessed","digest":"sha256:7a9a293484e058be8d5ba8ef3435fdd09eaa3172a41ed8b8b064bb0666573310","flags":[],"blessed_digest":"sha256:7a9a293484e058be8d5ba8ef3435fdd09eaa3172a41ed8b8b064bb0666573310","blessed_at_rev":"0000000000000000000000000000000000000001","blessed_copy":"tenet/blessed/tenet__specs__tech-spec.md/design.md","recorded":"self","blessed_by":"ved","blessed_at":"2026-11-23T10:00:00Z","anchors":{}}
|
|
5
|
+
---
|
|
6
|
+
## Design
|
|
7
|
+
Minimal design stub.
|
package/pkg/conformance/scenarios/s14-bless-decide-later-and-questions/before/tenet/specs/ux-spec.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
tenet: {"spec":1,"doc":"ux-spec","level":"L2","version":"0.1","owner":"ved"}
|
|
3
|
+
sections:
|
|
4
|
+
experience: {"state":"blessed","digest":"sha256:ff7868c1210bd56fb064ce4f43f4aa8fb94ad2f9e0efdef9c943bdc1ed7f5fe1","flags":[],"blessed_digest":"sha256:ff7868c1210bd56fb064ce4f43f4aa8fb94ad2f9e0efdef9c943bdc1ed7f5fe1","blessed_at_rev":"0000000000000000000000000000000000000001","blessed_copy":"tenet/blessed/tenet__specs__ux-spec.md/experience.md","recorded":"self","blessed_by":"ved","blessed_at":"2026-11-23T10:00:00Z","anchors":{}}
|
|
5
|
+
---
|
|
6
|
+
## Experience
|
|
7
|
+
Minimal experience stub.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
tenet: {"spec":1,"doc":"vision","level":"L0","version":"0.1","owner":"ved"}
|
|
3
|
+
sections:
|
|
4
|
+
purpose: {"state":"draft","digest":null,"flags":[]}
|
|
5
|
+
boundaries: {"state":"draft","digest":null,"flags":[]}
|
|
6
|
+
quality: {"state":"draft","digest":null,"flags":[]}
|
|
7
|
+
---
|
|
8
|
+
## Purpose
|
|
9
|
+
- V-1 Keep processing reliable. {origin: documented; cites: README.md:2}
|
|
10
|
+
|
|
11
|
+
## Boundaries
|
|
12
|
+
- V-2 Never drop an item without logging. {origin: documented; cites: README.md:3}
|
|
13
|
+
|
|
14
|
+
## Quality
|
|
15
|
+
- V-3 Keep defaults safe for small projects. {origin: documented; cites: README.md:4}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"package": "@vedprakash-m/tenet",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"integrity": "sha512-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
|
6
|
+
"kit_sha256": "sha256:f532f5c961de8ee8801afd917b22d3defbb18f692dee494175d9c24c138bc55f"
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"standard": "0.1",
|
|
3
|
+
"kit_path": "kit",
|
|
4
|
+
"paths": {
|
|
5
|
+
"records": "tenet"
|
|
6
|
+
},
|
|
7
|
+
"level": "observe",
|
|
8
|
+
"specs": {
|
|
9
|
+
"id_prefix": "R"
|
|
10
|
+
},
|
|
11
|
+
"owners": [
|
|
12
|
+
{
|
|
13
|
+
"id": "ved",
|
|
14
|
+
"name": "Ved",
|
|
15
|
+
"roles": [
|
|
16
|
+
"owner"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ok": true,
|
|
3
|
+
"command": "board",
|
|
4
|
+
"result": {
|
|
5
|
+
"specs": {
|
|
6
|
+
"$assert": "contains",
|
|
7
|
+
"value": [
|
|
8
|
+
{
|
|
9
|
+
"path": "tenet/vision.md",
|
|
10
|
+
"section": "purpose",
|
|
11
|
+
"state": "blessed"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"path": "tenet/vision.md",
|
|
15
|
+
"section": "boundaries",
|
|
16
|
+
"state": "blessed"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "tenet/vision.md",
|
|
20
|
+
"section": "quality",
|
|
21
|
+
"state": "blessed"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "tenet/specs/prd.md",
|
|
25
|
+
"section": "orders",
|
|
26
|
+
"state": "blessed"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "tenet/specs/prd.md",
|
|
30
|
+
"section": "logging",
|
|
31
|
+
"state": "blessed"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "tenet/specs/prd.md",
|
|
35
|
+
"section": "timeouts",
|
|
36
|
+
"state": "draft"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ok": true,
|
|
3
|
+
"command": "check",
|
|
4
|
+
"result": {
|
|
5
|
+
"findings": [
|
|
6
|
+
{
|
|
7
|
+
"severity": "warning",
|
|
8
|
+
"message": {
|
|
9
|
+
"$assert": "includes",
|
|
10
|
+
"value": "3 vision items wait for a blessed requirement; bless the PRD next"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"summary": {
|
|
15
|
+
"errors": 0,
|
|
16
|
+
"warnings": 1
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|