Skip to content

Commit 713ce8b

Browse files
Merge pull request #160 from engineeredsoftware/v41/gate-1-prompt-program-roadmap-opening
V41 Gate 1: Open Prompt Program Roadmap
2 parents 8d90cd4 + 8a9df78 commit 713ce8b

13 files changed

Lines changed: 920 additions & 22 deletions

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Title
22

3-
Use the version and gate prefix for gate PRs: `V40 Gate N: Concise Topical Title`.
4-
Use the version and promotion prefix for version promotion PRs: `V40 Canonical Promotion: Concise Topical Title`.
3+
Use the version and gate prefix for gate PRs: `V41 Gate N: Concise Topical Title`.
4+
Use the version and promotion prefix for version promotion PRs: `V41 Canonical Promotion: Concise Topical Title`.
55

66
## Closure
77

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ jobs:
259259
node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V40 --draft-target V41
260260
node scripts/check-bitcode-spec-family.mjs --version V40 --mode promoted --current-target V40
261261
node scripts/check-v40-gate11-promotion-readiness.mjs --promotion-mode --skip-branch-check --skip-package-tests
262+
if [ -f BITCODE_SPEC_V41.md ]; then
263+
node scripts/check-bitcode-spec-family.mjs --version V41 --mode draft --current-target V40
264+
node scripts/check-v41-gate1-prompt-program-roadmap-opening.mjs --skip-branch-check
265+
fi
262266
else
263267
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2
264268
exit 1
@@ -390,7 +394,15 @@ jobs:
390394
node scripts/check-bitcode-spec-family.mjs --version V40 --mode draft --current-target V39
391395
fi
392396
;;
397+
spec:\ V41*|spec:\ v41*)
398+
POINTER="$(cat BITCODE_SPEC.txt)"
399+
if [ "$POINTER" = "V41" ]; then
400+
node scripts/check-bitcode-spec-family.mjs --version V41 --mode promoted --current-target V41
401+
else
402+
node scripts/check-bitcode-spec-family.mjs --version V41 --mode draft --current-target V40
403+
fi
404+
;;
393405
*)
394-
echo "Skipping strict spec-title conformance; title is not a V29/V30/V31/V32/V33/V34/V35/V36/V37/V38/V39/V40 spec change."
406+
echo "Skipping strict spec-title conformance; title is not a V29/V30/V31/V32/V33/V34/V35/V36/V37/V38/V39/V40/V41 spec change."
395407
;;
396408
esac

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@ jobs:
388388
node scripts/check-bitcode-canonical-inputs.mjs --current-target V40
389389
node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V40 --draft-target V41
390390
node scripts/check-v40-gate11-promotion-readiness.mjs --promotion-mode --skip-branch-check --skip-package-tests
391+
if [ -f BITCODE_SPEC_V41.md ]; then
392+
node scripts/check-bitcode-spec-family.mjs --version V41 --mode draft --current-target V40
393+
node scripts/check-v41-gate1-prompt-program-roadmap-opening.mjs --skip-branch-check
394+
fi
391395
else
392396
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2
393397
exit 1

BITCODE_SPEC_V41.md

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

BITCODE_SPEC_V41_DELTA.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Bitcode Spec V41 Delta
2+
3+
## Status
4+
5+
- Version: `V41`
6+
- V41 state: draft opened; this delta records the V40-to-V41 prompt-program opening plan
7+
- Current canonical/latest target: `V40`
8+
- Prior canonical anchor: `BITCODE_SPEC_V40.md`
9+
- 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: V41 source parity begins at specification and workflow posture; prompt rewrites are explicitly deferred until catalogue and benchmark gates close
12+
- Scope: V41 draft delta for Prompt and PromptPart excellence over promoted V40
13+
14+
## Why V41 exists
15+
16+
V38 hardened inference architecture and V40 hardened testing and benchmark lanes.
17+
V41 uses that base to treat prompts as programs: enumerable, benchmarkable, typed, source-safe, and registry-bound.
18+
19+
## Accepted V41 decisions
20+
21+
- V41 is singularly focused on Prompt and PromptPart implementation quality.
22+
- Reading prompts are the priority, especially `ReadNeedComprehensionSynthesis` and `ReadFitsFindingSynthesis`.
23+
- Prompt rewrites require prior inventory, registry composition proof, interpolation proof, benchmark baselines, parsed return-type checks, and source-safe telemetry proof.
24+
- Prompt artifacts may carry ids, hashes, metrics, verdicts, and redacted summaries, but not raw protected prompt text, raw provider responses, secrets, wallet material, protected source, private settlement payloads, or unpaid AssetPack source.
25+
- V41 preserves V27 BTC/BTD law, V38 inference call-stack law, V39 Reading product law, and V40 testing law.
26+
27+
## V41 gate plan
28+
29+
### Gate 1: Prompt Program Roadmap And Spec Opening
30+
31+
Open the V41 full specification family, roadmap, package script, workflow posture, documentation posture, branch convention, and checker.
32+
33+
### Gate 2: PromptPart And Prompt Inventory Catalog
34+
35+
Inventory every raw PromptPart and composed Prompt across Reading, Conversation, tool-definition, and interface inference surfaces.
36+
37+
### Gate 3: Registry Composition And Interpolation Contracts
38+
39+
Prove registry composition, prompt context interpolation, execution ancestry, tool prompt injection, and parsed return type bindings.
40+
41+
### Gate 4: Reading Pipeline Prompt Benchmark Baselines
42+
43+
Create source-safe baseline benchmarks for Reading prompt surfaces before rewriting them.
44+
45+
### Gate 5: ReadNeedComprehensionSynthesis Prompt Rewrite And Return-Type Hardening
46+
47+
Rewrite and repartition ReadNeed prompts only after evidence proves the rewrite improves exact Need comprehension and typed output reliability.
48+
49+
### Gate 6: ReadFitsFindingSynthesis Prompt Rewrite Search And AssetPack Context Hardening
50+
51+
Rewrite and repartition Finding Fits prompts only after evidence proves the rewrite improves Depository search, ranking, selected-fit provenance, and AssetPack context source-safely.
52+
53+
### Gate 7: Conversation Tool And Interface Prompt Rewrite
54+
55+
Apply the same prompt-program discipline to Conversation, tool-definition, MCP API, ChatGPT App, public API, Terminal, and other interface prompts.
56+
57+
### Gate 8: Prompt Benchmark Report And Telemetry Integration
58+
59+
Close post-rewrite benchmark deltas, prompt lineage, telemetry integration, and source-safe rich stream projections.
60+
61+
### Gate 9: Promotion Readiness
62+
63+
Bind all V41 prompt artifacts, tests, workflow checks, generated proof support, promotion commands, and active V41 / draft V42 posture.
64+
65+
## Explicitly deferred
66+
67+
- No prompt content is rewritten during Gate 1.
68+
- New commercial product behavior is deferred unless needed to make prompt-program tests truthful.
69+
- Production-mainnet value-bearing prompt rehearsals remain opt-in.
70+
71+
## Pre-Implementation Sequence
72+
73+
1. Open `version/v41` and `v41/gate-1-prompt-program-roadmap-opening`.
74+
2. Keep `BITCODE_SPEC.txt` at `V40`.
75+
3. Add the V41 spec family and Gate 1 checker.
76+
4. Update roadmap, docs, package scripts, and workflows for active V40 / draft V41.
77+
5. Validate V41 draft family and V40 active posture.
78+
79+
## Commit-Body Direction
80+
81+
V41 commits should name the prompt-program surface, generated artifact or checker, benchmark posture, registry/callsite scope, source-safety boundary, and tests run.

BITCODE_SPEC_V41_NOTES.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,37 @@
33
## Status
44

55
- Version: `V41`
6-
- V41 state: notes-only draft opening
6+
- V41 state: draft opened; V41 notes now accompany the full prompt-program specification family
7+
- Current canonical/latest target: `V40`
78
- Canonical pointer: `BITCODE_SPEC.txt` -> `V40`
8-
- Active canonical anchor: `BITCODE_SPEC_V40.md`
9-
- Active generated proof appendix: `BITCODE_SPEC_V40_PROVEN.md`
10-
- Draft target posture: V41 is opened as planning notes only until its first gate creates the full SPEC, DELTA, NOTES companion, and PARITY family.
9+
- Prior canonical anchor: `BITCODE_SPEC_V40.md`
10+
- 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
12+
- Source parity state: V41 notes track prompt-program planning, catalogue, benchmark, rewrite, telemetry, and promotion parity over active V40
13+
- Draft target posture: V41 Gate 1 creates the full SPEC, DELTA, NOTES, and PARITY family.
1114
- Scope: Prompt and PromptPart excellence over the promoted V40 exhaustive testing base.
1215

16+
## Notes companion rule
17+
18+
This notes companion records the working prompt-program plan and simplified reading for V41.
19+
It does not override `BITCODE_SPEC_V41.md`.
20+
Prompt content changes remain blocked until the relevant catalogue and benchmark gates admit them.
21+
22+
## Concise current-system reading
23+
24+
Bitcode is active at V40.
25+
V41 now drafts the next canon: every PromptPart and composed Prompt must become catalogue-visible, benchmarkable, registry-bound, interpolation-checked, parser-typed, and source-safe.
26+
The first priority is Reading through `ReadNeedComprehensionSynthesis` and `ReadFitsFindingSynthesis`; Conversation, tool-definition, and interface prompts follow with the same discipline.
27+
28+
## Simplified-spec reading rule
29+
30+
Read V41 as prompts as programs.
31+
If a prompt cannot be found in the catalogue, traced through a registry, benchmarked against fixtures, tied to a parsed return type, and projected source-safely into telemetry, it is not V41-ready.
32+
1333
## Notes-only draft rule
1434

15-
This file is the only opened V41 draft-target file until V41 Gate 1 formally creates the full V41 specification family.
16-
It records next-version intent so strict draft-target spec-quality can remain truthful after V40 promotion.
17-
It is not first-gate implementation evidence and does not by itself admit V41 source changes, route changes, generated artifact requirements, or promotion checks.
35+
This heading is retained as historical context only.
36+
V41 is no longer notes-only after Gate 1; the full V41 specification family is the draft target.
1837

1938
## Deferred from V40
2039

BITCODE_SPEC_V41_PARITY_MATRIX.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Bitcode Spec V41 Parity Matrix
2+
3+
## Status
4+
5+
- Version: `V41`
6+
- V41 state: draft opened; V41 parity begins with prompt-program specification and workflow posture
7+
- Current canonical/latest target: `V40`
8+
- Prior canonical anchor: `BITCODE_SPEC_V40.md`
9+
- 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
12+
- Scope: V41 draft parity ledger for Prompt and PromptPart excellence
13+
- Last fully realized canonical target preserved in source: `V40`
14+
15+
## Purpose
16+
17+
This matrix records the prompt-program surfaces that must become promotion-grade before V41 can replace V40 as active canon.
18+
19+
## Audit basis
20+
21+
- `BITCODE_SPEC.txt` -> `V40`
22+
- `BITCODE_SPEC_V40.md`
23+
- `BITCODE_SPEC_V40_PROVEN.md`
24+
- `BITCODE_SPEC_V41.md`
25+
- `BITCODE_SPEC_V41_DELTA.md`
26+
- `BITCODE_SPEC_V41_NOTES.md`
27+
- prompt, registry, pipeline, Conversation, tool-definition, benchmark, and telemetry source roots
28+
29+
## V41 implementation matrix
30+
31+
| Area | Required V41 result | Source evidence | Judgment |
32+
| --- | --- | --- | --- |
33+
| Draft family | V41 SPEC, DELTA, NOTES, and PARITY files exist over active V40 | `BITCODE_SPEC_V41.md` family | drafted |
34+
| Roadmap truth | Roadmap states V40 active, V41 draft, prompt-program Gate 1 active | `SPECIFICATIONS_ROADMAP.md` | drafted |
35+
| Gate workflow | Gate quality knows active V40 and draft V41 Gate 1 | `.github/workflows/bitcode-gate-quality.yml` | drafted |
36+
| 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 |
38+
| Registry/interpolation | Registry composition and interpolation contracts proven | planned V41 Gate 3 artifact | pending |
39+
| Reading baselines | Reading prompt benchmarks captured before rewrites | planned V41 Gate 4 artifact | pending |
40+
| ReadNeed rewrite | ReadNeedComprehensionSynthesis prompts rewritten and type-hardened | planned V41 Gate 5 artifact | pending |
41+
| Finding Fits rewrite | ReadFitsFindingSynthesis prompts rewritten for search and AssetPack context | planned V41 Gate 6 artifact | pending |
42+
| Conversation/tool/interface rewrite | Non-Reading prompt surfaces brought to same standard | planned V41 Gate 7 artifact | pending |
43+
| Benchmark and telemetry | Prompt benchmark deltas and telemetry projections source-safe | planned V41 Gate 8 artifact | pending |
44+
| Promotion readiness | V41 prompt-program proof and workflow promotion ready | planned V41 Gate 9 artifact | pending |
45+
46+
## V41 implementation checklist
47+
48+
| Area | Closure requirement | Judgment |
49+
| --- | --- | --- |
50+
| Gate 1 | Open V41 family, roadmap, docs, workflow posture, package script, and checker | drafted |
51+
| Gate 2 | PromptPart and Prompt inventory artifact | pending |
52+
| Gate 3 | Registry composition and interpolation artifact | pending |
53+
| Gate 4 | Reading prompt benchmark baseline artifact | pending |
54+
| Gate 5 | ReadNeedComprehensionSynthesis rewrite artifact | pending |
55+
| Gate 6 | ReadFitsFindingSynthesis rewrite artifact | pending |
56+
| Gate 7 | Conversation, tool, and interface prompt rewrite artifact | pending |
57+
| Gate 8 | Prompt benchmark report and telemetry artifact | pending |
58+
| Gate 9 | Promotion readiness artifact and workflow | pending |
59+
60+
## V41 accepted boundaries
61+
62+
V41 Gate 1 may open specification, workflow, docs, and validation posture.
63+
It may not rewrite prompt content.
64+
Later gates may rewrite prompts only after catalogue, registry, interpolation, benchmark, parser, and disclosure checks exist.
65+
66+
## V41 completion condition
67+
68+
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: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Bitcode Repository
22

33
`BITCODE_SPEC.txt` is the canonical pointer for active-system work. It currently
4-
resolves to `V39`; V40 is the active draft target for exhaustive commercial
5-
application testing after the promoted commercial Reading readiness canon.
4+
resolves to `V40`; V41 is the active draft target for Prompt and PromptPart
5+
excellence after the promoted exhaustive commercial application testing canon.
66

77
## Current Product Posture
88

@@ -12,6 +12,14 @@ The primary operator routes are:
1212
- `/terminal` for depositing, reading, transaction work, and protocol follow-through.
1313
- `/auxillaries` for Wallet, Externals, Profile, and Interfaces support surfaces.
1414

15+
V41 Gate 1 opens the prompts-as-programs specification family over active V40
16+
with `check:v41-gate1`. V41 will catalogue every raw PromptPart and composed
17+
Prompt, map registry composition and interpolation contracts, benchmark Reading
18+
prompt baselines, then harden `ReadNeedComprehensionSynthesis`,
19+
`ReadFitsFindingSynthesis`, Conversation, tool-definition, and interface prompts
20+
without exposing protected prompt payloads, raw provider responses, secrets,
21+
protected source, or unpaid AssetPack source.
22+
1523
Exchange is inherited V36 canon: market-wide activity master-detail, buy/sell/
1624
bid/ask/cancel/accept/settle/history flows, AssetPack range trading,
1725
rights-transfer review, pricing/liquidity/wrapper analysis, settlement

0 commit comments

Comments
 (0)