Skip to content

Commit 7a7e1e1

Browse files
Promote Bitcode canon to V28 (#19)
* Implement staged Read Need-Fit boundary * Document gate branch contribution workflow * Repair Gate 3 quality and promotion workflows * Stabilize Gate 3 CI checks * Harden long-runner image workflow * Build local ESLint plugin in CI * Satisfy long-runner workflow shell lint * Track SVG module declarations for CI * Provide inert Supabase env for CI builds * Cover Supabase server env in CI builds * Expose public Supabase env to Next builds * Resolve Supabase public env aliases consistently * Inline Supabase public aliases for CI builds * Provide CI-safe Supabase client fallback * Allow ORM build checks without Supabase secrets * Track Jest resolver mocks for CI * Implement staged Read-Need Fit gate * Stabilize mock cache verification * Gate 5 journal reconciliation detail * Gate 6 registry access policy Derive organization BTD posture from registry ownership and read-license rows, require owner-read or licensed-read evidence for MCP and ChatGPT App write admission, and cover the registry access-policy templates in BTD tests. Keep Terminal-facing copy on registry, range, ownership, license, and proof posture without price-appreciation, dividend, copyright-transfer, or marketplace-royalty framing. * Gate 7 reading pipeline coverage criteria Add the focused Read-Need and Need-Fit test contract to the V28 gate criteria, including typed phase/agent/tool/step/substep mock requirements and the rule that specification, tests, and core algorithmic design must move together. * Gate 7 Terminal operational readiness * Gate 7 reading pipeline PTRR coverage Specify the ReadNeedComprehensionSynthesis and ReadFindingFitsSynthesis contracts with PTRR agents, ThricifiedGeneration ids, prompt registry metadata, and V28 parity/QA coverage. Implement bounded ThricifiedGeneration telemetry for Reading inference, source-safe Finding Fits admission, richer pipeline harness stream metadata, and default Terminal visibility for the five enterprise Reading steps. Expand asset-pack, harness, protocol, and UAPI tests for Read-Need synthesis, Finding Fits discovery, source-safe preview, stream telemetry, and local Terminal browser/build readiness. * Harden Reading inference parsing Normalize common real-model response variance in Reading inference outputs while keeping PTRR ThricifiedGeneration telemetry typed and auditable. Coerce scalar list fields into arrays and fail closed on nonnumeric confidence or quality labels returned by live OpenAI runs so local staging Read-Need synthesis can complete without weakening the contract. * Close Gate 7 Reading validation evidence Update the V28 parity matrix and QA ledger with current local OpenAI, Terminal browser, REST readback, and DB readback validation for the Reading pipelines. Mark the bounded ReadNeedComprehensionSynthesis and ReadFindingFitsSynthesis gate surfaces closed where the source-bound staging-testnet verifier now proves telemetry, Finding Fits, AssetPack delivery, settlement, and ledger/database synchronization. * Align Gate 7 staging parity closure Carry the verified source-bound Reading run back into the high-level V28 staging parity rows so Fit-finding, pipeline runtime, telemetry, BTC fee, ledger, and database readback no longer contradict the detailed Gate 7 closure evidence. Leave unrelated V28 promotion blockers, including MCP/ChatGPT parity and broad ledgerized model-selection cleanup, explicitly outside this gate closure. * Gate 8 harden V28 promotion workflow Adds V28 metadevelopment readiness checks, wires gate and promotion workflows to the canonical promotion plan, and extends promotion scripts for the root Bitcode V28 spec family. Documents Gate 8 as the repository metadevelopment closure, adds the product-gate carryforward audit, and removes active broad model selection from ledgerized Reading posture. Aligns the current spec-quality runner with the V27-to-V28 transition: V27 remains active-canon input/posture checked while V28 owns appendix-grade draft and promotion validation. * Gate 9 project depository evidence through Reading Adds deposited-source evidence roots, lexical/vector search document roots, depositor wallet boundary projection, Terminal readback rows, and Read/Fit harness deposit-root propagation for the V28 Gate 9 depository evidence gate. Documents the Gate 9 closure contract, adds a Supabase QA readback query, extends focused protocol/pipeline/Terminal tests, and wires the gate-quality workflow to the new V28 Gate 9 readiness check. * Gate 10 close Read-Need comprehension Adds the typed bitcode.read.request record inside Read-Needs, preserves feedback and previous-Need lineage during resynthesis, and exposes ReadNeedComprehensionSynthesis contract traces through route telemetry. Updates Terminal gating so accepted Read-Need truth is recorded with Finding Fits admission evidence, adds focused package and route coverage, and wires the Gate 10 readiness check into V28 gate quality. * Gate 10 align Reading pipeline names Rename the second Reading pipeline and dependent contract fields to ReadFitsFindingSynthesis, including route payloads, Terminal harness types, QA text, and gate checks. Move the concrete ReadFitsFindingSynthesis PTRR agent files and runtime registry keys under prefixed names so setup, read-comprehension, and AssetPack synthesis identifiers match the V28 pipeline contract. * Close Gate 11 Finding Fits preview Implements canonical ReadFitsFindingSynthesis tool telemetry for lexical and vector depository search posture, propagates accepted Need plus Finding Fits evidence into source-safe AssetPack previews, and exposes the deterministic Share-to-Fee quote through the postprocessed output. Adds Gate 11 specification, parity, QA, workflow, and package checks, with tests covering all qualifying fit deposits, canonical tool telemetry, preview storage, fee quotes, and protected-source non-disclosure before settlement. * Close Gate 12 settlement rights delivery Adds the settlement-unlock primitive for protected AssetPack source visibility, wires settlement/read-license/readback evidence into the sandbox harness and Terminal stream surfaces, and documents the Gate 12 closure contract. Extends V28 gate quality checks to cover the new settlement closure script plus BTD primitive typecheck/test coverage. * Close V28 gate 13 promotion readiness Add the Gate 13 product-closure readiness check, wire it into gate and promotion workflows, and expand the V28 promotion dry-run command plan. Align the full protocol demonstration proof suite with the current proof catalog and active-canon posture, including the deposit-to-read-fit enum and superseded V26 readiness assertions. Harden staging-testnet readback validation with bounded DB audits, Data API evidence, updated QA/spec notes, and verifier coverage for the single-client DB path. * Repair V28 promotion closure checks Reconciles V28 parity rows that were still carrying draft-era or pending judgments so promoted spec-family validation can close cleanly. Updates the runtime canon promotion script to rewrite the current inline demonstration README posture, and adds a regression test for that README form. Validated with V28 draft spec-family check, V27/V28 canon posture drift check, v22 canon drift node test, V28 promotion dry run, Gate 13 readiness check, and a clean temporary promoted-worktree simulation through canonical inputs, promoted spec-family, canon posture drift, generated PROVEN check, and diff hygiene. * Promote Bitcode canon to V28 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6e83901 commit 7a7e1e1

189 files changed

Lines changed: 20040 additions & 1257 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4
2222

23-
- name: Run Bitcode spec-quality basics
24-
run: node scripts/run-bitcode-spec-quality.mjs --mode basic
23+
- name: Validate active canon and V28 draft posture
24+
run: |
25+
node scripts/check-bitcode-canonical-inputs.mjs --current-target V27
26+
node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V27 --draft-target V28
27+
node scripts/check-bitcode-spec-family.mjs --version V28 --mode draft --current-target V27
2528
26-
bitcode-full:
27-
name: Bitcode Full Test Suite
29+
bitcode-demonstration-mvp:
30+
name: Bitcode Demonstration MVP
2831
runs-on: ubuntu-latest
2932
needs: bitcode-spec-basics
3033
container:
@@ -34,8 +37,8 @@ jobs:
3437
- name: Checkout repository
3538
uses: actions/checkout@v4
3639

37-
- name: Run full Bitcode protocol-demonstration suite
38-
run: npm --prefix protocol-demonstration run test
40+
- name: Run V28 protocol-demonstration MVP QA
41+
run: npm --prefix protocol-demonstration run test:v28-mvp-qa
3942

4043
bitcode-spec-commit-conformance:
4144
name: Bitcode Spec Commit Conformance
@@ -50,5 +53,13 @@ jobs:
5053
- name: Checkout repository
5154
uses: actions/checkout@v4
5255

53-
- name: Run strict spec conformance for `spec: VN` titles
54-
run: node scripts/run-bitcode-spec-quality.mjs --mode strict-from-title --commit-title "$SPEC_TITLE"
56+
- name: Run V28 strict draft conformance for spec-title changes
57+
run: |
58+
case "$SPEC_TITLE" in
59+
spec:\ V28*|spec:\ v28*)
60+
node scripts/check-bitcode-spec-family.mjs --version V28 --mode draft --current-target V27
61+
;;
62+
*)
63+
echo "Skipping strict spec-title conformance; title is not a V28 spec change."
64+
;;
65+
esac
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Bitcode Gate Quality
2+
3+
on:
4+
push:
5+
branches:
6+
- "v*/gate-*"
7+
- "version/**"
8+
pull_request:
9+
branches:
10+
- "version/**"
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
gate-quality:
22+
name: Gate Quality
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
31+
32+
- name: Setup Node
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: "24"
36+
cache: pnpm
37+
38+
- name: Install dependencies
39+
run: pnpm install --frozen-lockfile
40+
41+
- name: Validate draft canon posture
42+
run: |
43+
test "$(cat BITCODE_SPEC.txt)" = "V27"
44+
node scripts/check-bitcode-spec-family.mjs --version V28 --mode draft --current-target V27
45+
node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V27 --draft-target V28
46+
node scripts/check-bitcode-canonical-inputs.mjs --current-target V27
47+
node scripts/check-v28-metadevelopment-readiness.mjs --skip-branch-check
48+
node scripts/check-v28-gate9-depository-evidence.mjs
49+
node scripts/check-v28-gate10-read-need-comprehension.mjs
50+
node scripts/check-v28-gate11-read-fits-finding-preview.mjs
51+
node scripts/check-v28-gate12-settlement-rights-delivery.mjs
52+
node scripts/check-v28-gate13-product-closure-promotion-readiness.mjs
53+
node scripts/promote-bitcode-canon.mjs --version V28 --commit HEAD --dry-run
54+
55+
- name: Validate source casing and imports
56+
run: |
57+
bash scripts/find-uppercase-raw-promptparts.sh
58+
bash scripts/check-import-casing.sh
59+
60+
- name: Type-check gate packages
61+
run: |
62+
pnpm --filter @bitcode/btd typecheck
63+
pnpm --filter @bitcode/pipeline-asset-pack typecheck
64+
pnpm --filter @bitcode/pipeline-hosts typecheck
65+
66+
- name: Test gate packages
67+
run: |
68+
pnpm --filter @bitcode/btd test
69+
pnpm --filter @bitcode/pipeline-asset-pack exec jest --config jest.config.cjs --passWithNoTests --forceExit
70+
pnpm --filter @bitcode/pipeline-hosts exec jest --config jest.config.cjs --passWithNoTests --forceExit
71+
72+
- name: Test staged Reading route and Terminal harness contracts
73+
run: |
74+
pnpm --dir uapi exec jest --runTestsByPath \
75+
tests/api/readReviewRoute.test.ts \
76+
tests/api/pipelineHarnessRoute.test.ts \
77+
tests/terminalPipelineHarnessClient.test.ts \
78+
tests/terminalDepositReadWorkbench.test.ts \
79+
tests/pipelineExecutionLogHeader.test.tsx \
80+
--runInBand
81+
82+
- name: Test pipeline readback verifier
83+
run: pnpm test:qa:v28:pipeline-readback
84+
85+
- name: Test protocol demonstration
86+
run: |
87+
npm --prefix protocol-demonstration test
88+
npm --prefix protocol-demonstration run test:v28-mvp-qa
89+
90+
- name: Check diff hygiene
91+
run: git diff --check

0 commit comments

Comments
 (0)