|
| 1 | +name: V39 Canon Promotion |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + types: |
| 8 | + - opened |
| 9 | + - synchronize |
| 10 | + - reopened |
| 11 | + - ready_for_review |
| 12 | + workflow_dispatch: |
| 13 | + |
| 14 | +concurrency: |
| 15 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 16 | + cancel-in-progress: true |
| 17 | + |
| 18 | +permissions: |
| 19 | + contents: write |
| 20 | + pull-requests: read |
| 21 | + |
| 22 | +jobs: |
| 23 | + promote-v39: |
| 24 | + name: V39 Promotion Validation |
| 25 | + if: >- |
| 26 | + ${{ |
| 27 | + github.event_name == 'workflow_dispatch' || |
| 28 | + ( |
| 29 | + github.event.pull_request.base.ref == 'main' && |
| 30 | + github.event.pull_request.head.ref == 'version/v39' && |
| 31 | + github.event.pull_request.head.repo.full_name == github.repository |
| 32 | + ) |
| 33 | + }} |
| 34 | + runs-on: ubuntu-latest |
| 35 | + |
| 36 | + steps: |
| 37 | + - name: Checkout version branch |
| 38 | + uses: actions/checkout@v4 |
| 39 | + with: |
| 40 | + ref: ${{ github.event.pull_request.head.ref || github.ref_name }} |
| 41 | + token: ${{ github.token }} |
| 42 | + fetch-depth: 0 |
| 43 | + |
| 44 | + - name: Setup pnpm |
| 45 | + uses: pnpm/action-setup@v4 |
| 46 | + |
| 47 | + - name: Setup Node |
| 48 | + uses: actions/setup-node@v4 |
| 49 | + with: |
| 50 | + node-version: "24" |
| 51 | + cache: pnpm |
| 52 | + |
| 53 | + - name: Install dependencies |
| 54 | + run: pnpm install --frozen-lockfile |
| 55 | + |
| 56 | + - name: Validate V39 promotion readiness |
| 57 | + run: | |
| 58 | + POINTER="$(cat BITCODE_SPEC.txt)" |
| 59 | + if [ "$POINTER" = "V38" ]; then |
| 60 | + node scripts/check-bitcode-spec-family.mjs --version V39 --mode draft --current-target V38 |
| 61 | + node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V38 --draft-target V39 |
| 62 | + node scripts/check-bitcode-canonical-inputs.mjs --current-target V38 |
| 63 | + node scripts/check-v39-gate1-commercial-reading-roadmap-opening.mjs --skip-branch-check |
| 64 | + node scripts/check-v39-gate2-depository-supply-indexing.mjs --skip-branch-check --skip-package-tests |
| 65 | + node scripts/check-v39-gate3-enterprise-reading-ux-state.mjs --skip-branch-check --skip-uapi-tests |
| 66 | + node scripts/check-v39-gate4-read-need-review-resynthesis.mjs --skip-branch-check --skip-package-tests --skip-uapi-tests |
| 67 | + node scripts/check-v39-gate5-read-fits-finding-runtime.mjs --skip-branch-check --skip-package-tests |
| 68 | + node scripts/check-v39-gate6-assetpack-preview-quote-boundary.mjs --skip-branch-check --skip-package-tests |
| 69 | + node scripts/check-v39-gate7-settlement-rights-delivery.mjs --skip-branch-check --skip-package-tests |
| 70 | + node scripts/check-v39-gate8-operational-telemetry-repair-readback.mjs --skip-branch-check --skip-package-tests --skip-uapi-tests |
| 71 | + node scripts/check-v39-gate9-interface-conversation-product-parity.mjs --skip-branch-check --skip-package-tests --skip-interface-tests |
| 72 | + node scripts/check-v39-gate10-local-staging-reading-rehearsal.mjs --skip-branch-check --skip-package-tests |
| 73 | + node scripts/check-v39-gate11-promotion-readiness.mjs --promotion-mode --skip-branch-check --skip-package-tests |
| 74 | + node scripts/promote-bitcode-canon.mjs --version V39 --commit HEAD --dry-run |
| 75 | + elif [ "$POINTER" = "V39" ]; then |
| 76 | + node scripts/check-bitcode-spec-family.mjs --version V39 --mode promoted --current-target V39 |
| 77 | + node scripts/check-bitcode-canonical-inputs.mjs --current-target V39 |
| 78 | + node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V39 --draft-target V40 |
| 79 | + node scripts/check-v39-gate11-promotion-readiness.mjs --promotion-mode --skip-branch-check --skip-package-tests |
| 80 | + else |
| 81 | + echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2 |
| 82 | + exit 1 |
| 83 | + fi |
| 84 | + pnpm test:qa:v28:pipeline-readback |
| 85 | + pnpm --filter @bitcode/protocol typecheck |
| 86 | + pnpm --filter @bitcode/protocol test |
| 87 | + pnpm --filter @bitcode/btd typecheck |
| 88 | + pnpm --filter @bitcode/btd test |
| 89 | + npm --prefix protocol-demonstration test |
| 90 | + npm --prefix protocol-demonstration run test:v28-mvp-qa |
| 91 | + pnpm --filter @bitcode/pipeline-asset-pack typecheck |
| 92 | + pnpm --filter @bitcode/pipeline-hosts typecheck |
| 93 | + pnpm --filter @bitcode/pipeline-asset-pack exec jest --config jest.config.cjs --passWithNoTests --forceExit |
| 94 | + pnpm --filter @bitcode/pipeline-hosts exec jest --config jest.config.cjs --passWithNoTests --forceExit |
| 95 | + pnpm --dir uapi exec jest --runTestsByPath \ |
| 96 | + tests/userDataRoute.test.ts \ |
| 97 | + tests/auxillariesWalletPane.test.tsx \ |
| 98 | + tests/auxillariesContent.access.test.tsx \ |
| 99 | + tests/auxillariesWorkspacePanels.access.test.tsx \ |
| 100 | + tests/auxillariesWorkspacePanels.test.tsx \ |
| 101 | + tests/api/auxillariesGithubConnectionRoute.test.ts \ |
| 102 | + tests/api/vcsRoutes.test.ts \ |
| 103 | + tests/auxillariesExternalsPane.test.tsx \ |
| 104 | + tests/profileStep.test.tsx \ |
| 105 | + tests/api/readReviewRoute.test.ts \ |
| 106 | + tests/api/pipelineHarnessRoute.test.ts \ |
| 107 | + tests/terminalPipelineHarnessClient.test.ts \ |
| 108 | + tests/terminalDepositReadWorkbench.test.ts \ |
| 109 | + tests/terminalTransactionQuery.test.ts \ |
| 110 | + tests/terminalTransactionReadModel.test.ts \ |
| 111 | + tests/terminalProtocolProjection.test.ts \ |
| 112 | + tests/terminalInterfaceIntegrationRegression.test.ts \ |
| 113 | + tests/terminalWalletBtcOperation.test.ts \ |
| 114 | + tests/terminalJournalReconciliation.test.ts \ |
| 115 | + tests/terminalOrganizationAuthority.test.ts \ |
| 116 | + tests/protocolCommercialBoundary.test.ts \ |
| 117 | + tests/terminalTransactionDetailCards.test.tsx \ |
| 118 | + tests/terminalTransactionDetailSnapshot.test.ts \ |
| 119 | + tests/terminalUxBrowserProof.test.tsx \ |
| 120 | + tests/bitcodeBrowserAccessibilityResponsiveProof.test.ts \ |
| 121 | + tests/pipelineExecutionLogHeader.test.tsx \ |
| 122 | + tests/api/conversationSessionRouteHistory.test.ts \ |
| 123 | + tests/api/conversationSessionRouteHistoryContract.test.ts \ |
| 124 | + tests/api/conversationStreamEventContract.test.ts \ |
| 125 | + tests/conversationStreamPipelineLog.test.tsx \ |
| 126 | + tests/conversationWritingWorkspace.test.tsx \ |
| 127 | + tests/conversationSourceSelector.test.tsx \ |
| 128 | + tests/conversationTerminalHandoff.test.tsx \ |
| 129 | + tests/api/conversationPersistencePrivacyRedaction.test.ts \ |
| 130 | + tests/conversationPersistencePrivacyPanel.test.tsx \ |
| 131 | + tests/api/conversationTelemetryProofHooks.test.ts \ |
| 132 | + tests/conversationTelemetryProofPanel.test.tsx \ |
| 133 | + tests/api/conversationRehearsal.test.ts \ |
| 134 | + tests/conversationRehearsalPanel.test.tsx \ |
| 135 | + --runInBand |
| 136 | + git diff --check |
| 137 | +
|
| 138 | + - name: Promote V39 canon files |
| 139 | + if: >- |
| 140 | + ${{ |
| 141 | + github.event_name == 'pull_request' && |
| 142 | + github.event.pull_request.head.ref == 'version/v39' |
| 143 | + }} |
| 144 | + env: |
| 145 | + HEAD_BRANCH: ${{ github.event.pull_request.head.ref }} |
| 146 | + run: | |
| 147 | + if [ "$(cat BITCODE_SPEC.txt)" = "V39" ]; then |
| 148 | + echo "BITCODE_SPEC.txt already points to V39." |
| 149 | + exit 0 |
| 150 | + fi |
| 151 | + PROOF_SOURCE_COMMIT="$(git rev-parse HEAD)" |
| 152 | + npm run promote:canon -- --version V39 --commit "$PROOF_SOURCE_COMMIT" |
| 153 | + git config user.name "github-actions[bot]" |
| 154 | + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
| 155 | + git add \ |
| 156 | + BITCODE_SPEC.txt \ |
| 157 | + BITCODE_SPEC_V39.md \ |
| 158 | + BITCODE_SPEC_V39_DELTA.md \ |
| 159 | + BITCODE_SPEC_V39_NOTES.md \ |
| 160 | + BITCODE_SPEC_V39_PARITY_MATRIX.md \ |
| 161 | + BITCODE_SPEC_V39_PROVEN.md \ |
| 162 | + protocol-demonstration/src/canon-posture.js \ |
| 163 | + protocol-demonstration/README.md \ |
| 164 | + packages/protocol/src/canon-posture.js \ |
| 165 | + packages/protocol/data/state.json \ |
| 166 | + packages/protocol/README.md \ |
| 167 | + .bitcode |
| 168 | + git commit -m "Promote Bitcode canon to V39" |
| 169 | + git push origin "HEAD:$HEAD_BRANCH" |
0 commit comments