Skip to content

Commit cafbf93

Browse files
Merge pull request #8 from engineeredsoftware/v28/gate-3-staged-reading-need-fit
Gate 3: Implement staged Read Need-Fit boundary
2 parents 6e83901 + cbd16d7 commit cafbf93

48 files changed

Lines changed: 7070 additions & 552 deletions

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: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
48+
- name: Validate source casing and imports
49+
run: |
50+
bash scripts/find-uppercase-raw-promptparts.sh
51+
bash scripts/check-import-casing.sh
52+
53+
- name: Type-check gate packages
54+
run: |
55+
pnpm --filter @bitcode/pipeline-asset-pack typecheck
56+
pnpm --filter @bitcode/pipeline-hosts typecheck
57+
58+
- name: Test gate packages
59+
run: |
60+
pnpm --filter @bitcode/pipeline-asset-pack exec jest --config jest.config.cjs --passWithNoTests --forceExit
61+
pnpm --filter @bitcode/pipeline-hosts exec jest --config jest.config.cjs --passWithNoTests --forceExit
62+
63+
- name: Test protocol demonstration
64+
run: npm --prefix protocol-demonstration run test:v28-mvp-qa
65+
66+
- name: Check diff hygiene
67+
run: git diff --check

0 commit comments

Comments
 (0)