Skip to content

Commit 5955f83

Browse files
V41 Gate 2: Catalog prompt programs
Add source-safe PromptPart and Prompt inventory generation for V41 Gate 2, including package exports, protocol tests, artifact freshness checks, and gate/canon workflow wiring. Record V42 as the planned MVP experience version for shortest-path Depositing, shortest-path Reading, and the AI-reading dominant demonstration while preserving V41's prompt-program scope.
1 parent 713ce8b commit 5955f83

18 files changed

Lines changed: 59541 additions & 11 deletions

.bitcode/v41-promptpart-prompt-inventory.json

Lines changed: 58550 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/bitcode-canon-quality.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ jobs:
262262
if [ -f BITCODE_SPEC_V41.md ]; then
263263
node scripts/check-bitcode-spec-family.mjs --version V41 --mode draft --current-target V40
264264
node scripts/check-v41-gate1-prompt-program-roadmap-opening.mjs --skip-branch-check
265+
if [ -f scripts/check-v41-gate2-promptpart-prompt-inventory.mjs ]; then
266+
node scripts/check-v41-gate2-promptpart-prompt-inventory.mjs --skip-branch-check --skip-package-tests
267+
fi
265268
fi
266269
else
267270
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2

.github/workflows/bitcode-gate-quality.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ jobs:
391391
if [ -f BITCODE_SPEC_V41.md ]; then
392392
node scripts/check-bitcode-spec-family.mjs --version V41 --mode draft --current-target V40
393393
node scripts/check-v41-gate1-prompt-program-roadmap-opening.mjs --skip-branch-check
394+
if [ -f scripts/check-v41-gate2-promptpart-prompt-inventory.mjs ]; then
395+
node scripts/check-v41-gate2-promptpart-prompt-inventory.mjs --skip-branch-check --skip-package-tests
396+
fi
394397
fi
395398
else
396399
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2

BITCODE_SPEC_V41.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ It closes when active V40 / draft V41 truth is visible in the root docs, protoco
108108
Gate 2 must emit a source-safe inventory of every raw PromptPart and every composed Prompt.
109109
Rows must include prompt id, part id, source root, registry owner, semantic purpose, prompt family, composed prompt membership, current title, template variable names, benchmark fixture ids, disclosure tier, and validation command.
110110
The artifact may include ids, hashes, counts, and source-safe previews, but no raw protected prompt text.
111+
Gate 2 is closed by the package-backed `buildV41PromptPartPromptInventory` source, deterministic `.bitcode/v41-promptpart-prompt-inventory.json` artifact, `generate:v41-prompt-inventory`, `check:v41-prompt-inventory`, `check:v41-gate2`, protocol tests, and gate/canon workflow wiring.
112+
The current inventory source-safe count contract is 1,459 raw PromptPart rows, 105 composed Prompt rows, 59 generic PromptPart rows, 1,400 specific PromptPart rows, 49 Reading prompt rows, 2 Conversation prompt rows, 74 tool prompt rows, 10 interface prompt rows, 87 prompt rows with registry paths, 1,135 registry paths, 8 benchmark fixture families, V38 benchmark report binding, and V40 prompt benchmark smoke binding.
113+
Gate 2 also preserves V41 scope and prepares draft V42 only as forward roadmap truth: V42 will focus on shortest-path Depositing, shortest-path Reading, and an AI-reading dominant demonstration MVP.
111114

112115
## V41 Gate 3 Registry Composition And Interpolation Contracts
113116

@@ -445,6 +448,7 @@ Generation must fail closed when artifact freshness, source-safety, benchmark co
445448
### Appendix D. Validation and checking gate catalog
446449

447450
V41 Gate 1 validates with `pnpm run check:v41-gate1`, `node scripts/check-bitcode-spec-family.mjs --version V41 --mode draft --current-target V40`, `node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V40 --draft-target V41`, and `node scripts/check-bitcode-canonical-inputs.mjs --current-target V40`.
451+
V41 Gate 2 validates with `pnpm run generate:v41-prompt-inventory`, `pnpm run check:v41-prompt-inventory`, `pnpm run check:v41-gate2`, and `node --test --test-force-exit packages/protocol/test/v41-promptpart-prompt-inventory.test.js`.
448452
Later gates add focused generator, checker, package, benchmark, and workflow commands.
449453

450454
## V41 promotion canon

BITCODE_SPEC_V41_DELTA.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Open the V41 full specification family, roadmap, package script, workflow postur
3333
### Gate 2: PromptPart And Prompt Inventory Catalog
3434

3535
Inventory every raw PromptPart and composed Prompt across Reading, Conversation, tool-definition, and interface inference surfaces.
36+
Gate 2 is package-backed by `buildV41PromptPartPromptInventory`, emits `.bitcode/v41-promptpart-prompt-inventory.json`, covers 1,459 raw PromptPart rows and 105 composed Prompt rows, binds V38/V40 benchmark handoff artifacts, and records only source-safe metadata.
37+
It also records V42 as the subsequent MVP experience version for shortest-path Depositing, shortest-path Reading, and an AI-reading dominant demonstration without expanding V41 beyond prompt-program work.
3638

3739
### Gate 3: Registry Composition And Interpolation Contracts
3840

BITCODE_SPEC_V41_NOTES.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- Canonical pointer: `BITCODE_SPEC.txt` -> `V40`
99
- Prior canonical anchor: `BITCODE_SPEC_V40.md`
1010
- Prior generated proof appendix: `BITCODE_SPEC_V40_PROVEN.md`
11-
- Generated structured artifact inventory: draft `.bitcode/v41-spec-family-report.json`, draft `.bitcode/v41-canonical-input-report.json`, planned prompt-program catalogue artifacts, planned benchmark artifacts, planned promotion-readiness artifact, and eventual `BITCODE_SPEC_V41_PROVEN.md` after V41 promotion
11+
- Generated structured artifact inventory: draft `.bitcode/v41-spec-family-report.json`, draft `.bitcode/v41-canonical-input-report.json`, Gate 2 `.bitcode/v41-promptpart-prompt-inventory.json`, planned benchmark artifacts, planned promotion-readiness artifact, and eventual `BITCODE_SPEC_V41_PROVEN.md` after V41 promotion
1212
- Source parity state: V41 notes track prompt-program planning, catalogue, benchmark, rewrite, telemetry, and promotion parity over active V40
1313
- Draft target posture: V41 Gate 1 creates the full SPEC, DELTA, NOTES, and PARITY family.
1414
- Scope: Prompt and PromptPart excellence over the promoted V40 exhaustive testing base.
@@ -19,6 +19,18 @@ This notes companion records the working prompt-program plan and simplified read
1919
It does not override `BITCODE_SPEC_V41.md`.
2020
Prompt content changes remain blocked until the relevant catalogue and benchmark gates admit them.
2121

22+
## Gate 2 prompt inventory note
23+
24+
Gate 2 makes the first prompt-program catalogue concrete.
25+
The package-backed inventory currently emits 1,459 raw PromptPart rows and 105 composed Prompt rows with source path, source hash, registry owner, semantic purpose id, prompt family ids, composed prompt memberships, template variable names, benchmark fixture ids, disclosure tier, validation command, and source-safe raw-payload exclusions.
26+
This is an inventory and admission artifact, not a rewrite artifact.
27+
28+
## V42 forward roadmap note
29+
30+
V42 is re-roadmapped as the MVP experience version after V41.
31+
Its focus is shortest-path Depositing, shortest-path Reading, and a strong AI-reading dominant demonstration where any deposit source can contribute proprietary or otherwise non-public training, prompt, context, or evaluation material to an AssetPack that measurably improves an AI system beyond public-data-only performance.
32+
V42 must keep depositor compensation, reader purchase, BTD/AssetPack rights, and repository delivery visible in the shortest path without widening V41 beyond Prompt and PromptPart excellence.
33+
2234
## Concise current-system reading
2335

2436
Bitcode is active at V40.

BITCODE_SPEC_V41_PARITY_MATRIX.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
- Current canonical/latest target: `V40`
88
- Prior canonical anchor: `BITCODE_SPEC_V40.md`
99
- Prior generated proof appendix: `BITCODE_SPEC_V40_PROVEN.md`
10-
- Generated structured artifact inventory: draft `.bitcode/v41-spec-family-report.json`, draft `.bitcode/v41-canonical-input-report.json`, planned prompt-program catalogue artifacts, planned benchmark artifacts, planned promotion-readiness artifact, and eventual `BITCODE_SPEC_V41_PROVEN.md` after V41 promotion
11-
- Source parity state: Gate 1 closes spec, roadmap, docs, package script, workflow posture, and checker parity; later gates own source prompt inventory, rewrite, benchmark, telemetry, and promotion parity
10+
- Generated structured artifact inventory: draft `.bitcode/v41-spec-family-report.json`, draft `.bitcode/v41-canonical-input-report.json`, Gate 2 `.bitcode/v41-promptpart-prompt-inventory.json`, planned benchmark artifacts, planned promotion-readiness artifact, and eventual `BITCODE_SPEC_V41_PROVEN.md` after V41 promotion
11+
- Source parity state: Gate 1 closes spec, roadmap, docs, package script, workflow posture, and checker parity; Gate 2 closes source-safe prompt inventory parity; later gates own registry contracts, rewrite, benchmark, telemetry, and promotion parity
1212
- Scope: V41 draft parity ledger for Prompt and PromptPart excellence
1313
- Last fully realized canonical target preserved in source: `V40`
1414

@@ -34,7 +34,7 @@ This matrix records the prompt-program surfaces that must become promotion-grade
3434
| Roadmap truth | Roadmap states V40 active, V41 draft, prompt-program Gate 1 active | `SPECIFICATIONS_ROADMAP.md` | drafted |
3535
| Gate workflow | Gate quality knows active V40 and draft V41 Gate 1 | `.github/workflows/bitcode-gate-quality.yml` | drafted |
3636
| Canon workflow | Canon quality knows active V40 and draft V41 Gate 1 | `.github/workflows/bitcode-canon-quality.yml` | drafted |
37-
| Prompt inventory | Every raw PromptPart and composed Prompt catalogued | planned V41 Gate 2 artifact | pending |
37+
| Prompt inventory | Every raw PromptPart and composed Prompt catalogued | `.bitcode/v41-promptpart-prompt-inventory.json` | implemented |
3838
| Registry/interpolation | Registry composition and interpolation contracts proven | planned V41 Gate 3 artifact | pending |
3939
| Reading baselines | Reading prompt benchmarks captured before rewrites | planned V41 Gate 4 artifact | pending |
4040
| ReadNeed rewrite | ReadNeedComprehensionSynthesis prompts rewritten and type-hardened | planned V41 Gate 5 artifact | pending |
@@ -47,8 +47,8 @@ This matrix records the prompt-program surfaces that must become promotion-grade
4747

4848
| Area | Closure requirement | Judgment |
4949
| --- | --- | --- |
50-
| Gate 1 | Open V41 family, roadmap, docs, workflow posture, package script, and checker | drafted |
51-
| Gate 2 | PromptPart and Prompt inventory artifact | pending |
50+
| Gate 1 | Open V41 family, roadmap, docs, workflow posture, package script, and checker | closed |
51+
| Gate 2 | PromptPart and Prompt inventory artifact | implemented |
5252
| Gate 3 | Registry composition and interpolation artifact | pending |
5353
| Gate 4 | Reading prompt benchmark baseline artifact | pending |
5454
| Gate 5 | ReadNeedComprehensionSynthesis rewrite artifact | pending |
@@ -63,6 +63,10 @@ V41 Gate 1 may open specification, workflow, docs, and validation posture.
6363
It may not rewrite prompt content.
6464
Later gates may rewrite prompts only after catalogue, registry, interpolation, benchmark, parser, and disclosure checks exist.
6565

66+
V41 Gate 2 may catalogue PromptPart and Prompt metadata, hashes, registry owners, family ids, template variables, benchmark fixture ids, and validation commands.
67+
It may not serialize raw prompt text, raw provider responses, protected source, secrets, or unpaid AssetPack source.
68+
It also may record the V42 MVP roadmap posture as forward planning while preserving V41 as the active prompt-program draft target.
69+
6670
## V41 completion condition
6771

6872
V41 closes when prompt-program quality is fully specified, implemented, benchmarked, source-safe, tested, documented, generated, workflow-checked, and promotion-ready across Reading, Conversation, tool-definition, and interface inference surfaces.

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ prompt baselines, then harden `ReadNeedComprehensionSynthesis`,
1919
`ReadFitsFindingSynthesis`, Conversation, tool-definition, and interface prompts
2020
without exposing protected prompt payloads, raw provider responses, secrets,
2121
protected source, or unpaid AssetPack source.
22+
V41 Gate 2 adds the package-backed `buildV41PromptPartPromptInventory` and
23+
generated source-safe artifact `.bitcode/v41-promptpart-prompt-inventory.json`.
24+
The inventory currently covers 1,459 raw PromptPart rows and 105 composed Prompt
25+
rows across Reading, Conversation, tool-definition, interface, and benchmark
26+
surfaces, with `generate:v41-prompt-inventory`, `check:v41-prompt-inventory`,
27+
and `check:v41-gate2`. V42 is now roadmapped as the next MVP experience version:
28+
shortest-path Depositing, shortest-path Reading, and an AI-reading dominant
29+
demonstration whose AssetPack measurably improves an AI system beyond
30+
public-data-only performance.
2231

2332
Exchange is inherited V36 canon: market-wide activity master-detail, buy/sell/
2433
bid/ask/cancel/accept/settle/history flows, AssetPack range trading,

0 commit comments

Comments
 (0)