Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/github/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ Complete repeatable proof is authoritative in affected hosted jobs under #1326;
cancelled checks and unexpected skips cannot pass. Keep drafts cheap and batch
pushes. Independent selected jobs run after metadata, with per-PR cancellation.
Assess new base commits before refreshing: revalidate affected inputs, preserve
the actual tested head/base. Any base advance needs a new candidate-confirmation event; equivalent browser/layout domains may retain verified receipts.
the actual tested head/base. Any base advance needs a new candidate-confirmation event, and every selected category runs fresh on it.
Inspect selected job checkouts and the proof aggregate before matching-head
merge; verify the actual squash and automatic main push afterward.

Expand Down
18 changes: 9 additions & 9 deletions .agents/skills/work-issue/references/ci-and-merge.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,20 @@ Draft runs report `draft gates`, not `proof`. A ready PR without a passing
`proof` from its confirmation run is unconfirmed, even if `draft gates` passed
or failed because its live read found the PR ready; request confirmation again.
The candidate gate checks actual merge parents/tree against the live head/base.
A changed base requires a fresh confirmation event even without a rebase;
valid immutable browser/layout retention remains available. Read the actual
A changed base requires a fresh confirmation event even without a rebase.
Read the actual
`refs/pull/<number>/merge` commit too: GitHub can retain its old base across a
draft/ready transition. When that ref still has old parents, refresh the branch
against live main before requesting confirmation; another same-head event alone
does not establish a new combined tree. Endurance is fresh
and separately mandatory whenever selected. Assess relevant base changes before redoing
heavy work; a new base requires confirmation, with valid browser/layout retention avoiding unnecessary execution.
Under #1333, a selected browser/layout domain may intentionally skip fresh
execution after complete input equivalence and original successful run/attempt/
job/check/checkout receipts are validated. Inspect the current retention ledger
and independently validating aggregate. Preserve original identities; do not
describe retained jobs as executions on the new SHA. Native/Git-dependent and
unknown domains, main pushes and scheduled/manual coverage remain fresh.
heavy work; a new base requires confirmation.
Every selected category runs fresh, on ready confirmation, main pushes and
scheduled/manual coverage alike. Browser proof retention is retired (#4107):
a selected job that was skipped is missing proof, never a retained pass, and no
test pins a source file's hash, so a product edit never needs a re-audit.
Inspect the aggregate, and never describe an earlier run's jobs as executions
on the new SHA.

A draft-to-ready transition can retain GitHub's previous PR base and synthetic
merge ref even after live main advances. Before requesting expensive confirmation,
Expand Down
26 changes: 7 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
permissions:
contents: read
actions: read
checks: read

# Cancel obsolete PR heads. Preserve every integrated main commit's evidence.
concurrency:
Expand All @@ -38,9 +37,6 @@ jobs:
unit_shards: ${{ steps.plan.outputs.unit_shards }}
verify: ${{ steps.plan.outputs.verify }}
pack: ${{ steps.plan.outputs.pack }}
run_browser: ${{ steps.reuse.outputs.run_browser }}
run_layout: ${{ steps.reuse.outputs.run_layout }}
reuse: ${{ steps.reuse.outputs.reuse }}
red_main_oid: ${{ steps.plan.outputs.red_main_oid }}
steps:
- uses: actions/checkout@v7
Expand Down Expand Up @@ -74,14 +70,8 @@ jobs:
- name: Discover product scenario and assertion ownership
if: steps.plan.outputs.cadence != 'draft'
run: bun scripts/proof-inventory.ts
# Plan outputs and retention decisions are set before any metadata gate can
# fail, so a main push still runs its complete selected proof (#2942).
- name: Retain only validated equivalent automatic proof
id: reuse
env:
GH_TOKEN: ${{ github.token }}
PR_DRAFT: ${{ github.event.pull_request.draft }}
run: bun scripts/proof-reuse.ts
# Plan outputs are set before any metadata gate below can fail, so a main
# push still runs its complete selected proof (#2942).
- name: Lint, leakage and contribution workflow guards
run: bun run lint
- name: Env documentation matches its descriptors
Expand All @@ -98,14 +88,12 @@ jobs:
elif [ "$GITHUB_EVENT_NAME" = push ]; then
bun scripts/check-changeset.ts "$BEFORE_SHA"
fi
- name: Retention ledger and diagnostics
- name: Product scenario inventory
if: always()
uses: actions/upload-artifact@v7
with:
name: proof-reuse-ledger
path: |
tmp/proof-reuse.json
tmp/proof-inventory.json
name: proof-inventory
path: tmp/proof-inventory.json
if-no-files-found: warn
retention-days: 7

Expand Down Expand Up @@ -422,7 +410,7 @@ jobs:

browser:
needs: changeset
if: ${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.browser == 'true' && needs.changeset.outputs.run_browser == 'true' }}
if: ${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.browser == 'true' }}
runs-on: ubuntu-24.04
timeout-minutes: 20
strategy:
Expand Down Expand Up @@ -487,7 +475,7 @@ jobs:

layout:
needs: changeset
if: ${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.layout == 'true' && needs.changeset.outputs.run_layout == 'true' }}
if: ${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.layout == 'true' }}
runs-on: ubuntu-24.04
timeout-minutes: 25
strategy:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/heavy-feedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ name: Draft heavy feedback
permissions:
contents: read
actions: read
checks: read
concurrency:
group: "heavy-feedback-${{ github.event.pull_request.number || inputs.pr }}"
cancel-in-progress: true
Expand Down Expand Up @@ -51,8 +50,6 @@ jobs:
unit_shards: "${{ steps.plan.outputs.unit_shards }}"
verify: "${{ steps.plan.outputs.verify }}"
pack: "${{ steps.plan.outputs.pack }}"
run_browser: "${{ steps.reuse.outputs.run_browser }}"
run_layout: "${{ steps.reuse.outputs.run_layout }}"
red_main_oid: "${{ steps.plan.outputs.red_main_oid }}"
base_sha: "${{ steps.admit.outputs.base_sha }}"
steps:
Expand Down Expand Up @@ -88,9 +85,6 @@ jobs:
HEAD_SHA: "${{ inputs.head_sha }}"
FEEDBACK_PR: "${{ inputs.pr }}"
run: bun scripts/ci-plan.ts
- name: Select fresh browser and layout execution
id: reuse
run: bun scripts/proof-reuse.ts
verify:
needs: changeset
if: "${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.verify == 'true' }}"
Expand Down Expand Up @@ -305,7 +299,7 @@ jobs:
retention-days: 7
browser:
needs: changeset
if: "${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.browser == 'true' && needs.changeset.outputs.run_browser == 'true' }}"
if: "${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.browser == 'true' }}"
runs-on: ubuntu-24.04
timeout-minutes: 20
strategy:
Expand Down Expand Up @@ -344,7 +338,7 @@ jobs:
retention-days: 7
layout:
needs: changeset
if: "${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.layout == 'true' && needs.changeset.outputs.run_layout == 'true' }}"
if: "${{ !cancelled() && (needs.changeset.result == 'success' || github.event_name == 'push') && needs.changeset.outputs.layout == 'true' }}"
runs-on: ubuntu-24.04
timeout-minutes: 25
strategy:
Expand Down
38 changes: 18 additions & 20 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,30 +84,28 @@ Before instrumenting installed dependencies, follow
[dependency diagnostic preparation](docs/process/diagnostic-installs.md):
worktrees alone do not isolate Bun cache hardlinks.

The frozen native diagram control also requires the independently qualified
installation bytes and modes. An `installation-mismatch` with matching frozen
source is an install problem: keep its source revision, 859-file inventory and
qualification fingerprints unchanged. A frozen lockfile does not repair a
modified shared package cache, and copying that cache copies the modifications
([#1980](https://github.com/schlessera/brain-kit/issues/1980)). Recover only the
owned checkout through a fresh private cache and independent file copies,
**under umask `022`**. The installation identity includes file modes, and the
installer's umask narrows them. The qualified install was made under `022`, so
an install under any other umask, such as `0077`, never matches, even though its
package, file and byte counts are identical. The preparation script sets its own umask so
your own umask is unchanged:
No test pins the hash of a source file or of the installation
([#4105](https://github.com/schlessera/brain-kit/issues/4105),
[#4107](https://github.com/schlessera/brain-kit/issues/4107)): editing product
source, or adding, removing or upgrading a dependency, needs no re-audit or
requalification. Browser proof runs fresh whenever it is selected, and the
native diagram producer runs in its Docker boundary. A frozen lockfile still does not
repair a modified shared package cache, and copying that cache copies the
modifications ([#1980](https://github.com/schlessera/brain-kit/issues/1980)).
When a check fails on installed bytes, recover only the owned checkout through
a fresh private cache and independent file copies, under umask `022`; the
preparation script sets its own umask so yours is unchanged:

```sh
# Preserve evidence and move aside this owned checkout's node_modules first.
sh scripts/prepare-diagnostic-install.sh
bun run test ./tests/native-diagram-inputs.test.ts
```

Retain the failed and restored installation identities. Verify any suspected
package edits against the lockfile's archive integrity; never normalize unknown
bytes or modes to force qualification. Leave shared caches and other checkouts
alone. Use the same preparation before future dependency instrumentation; retain the
original failure evidence as described in the diagnostic guide.
Verify any suspected package edits against the lockfile's archive integrity;
never normalize unknown bytes or modes to force a pass. Leave shared caches and
other checkouts alone. Use the same preparation before future dependency
instrumentation; retain the original failure evidence as described in the
diagnostic guide.

The Linux backend nonpersistence tests require `bubblewrap` and permitted user
namespaces. They launch the installed Claude and pi adapters with a loopback
Expand Down Expand Up @@ -241,7 +239,7 @@ Record actual head/base, job/attempt IDs, checkout logs and focused local
receipts in the PR. Missing tools, failed/cancelled jobs and unexpected skips
leave proof incomplete. The candidate gate requires the live head/base to match the tested merge
checkout; a base advance requires a new confirmation request, without inherently
requiring a rebase. Admitted immutable browser-domain retention remains available. Preserve
requiring a rebase. Preserve
the earlier tested tree rather than attributing it to a new base. Relevant
input/dependency/harness changes require fresh proof; unknown changes expand
conservatively. There is no generic cache of passing tests. Respect branch rules
Expand Down Expand Up @@ -296,7 +294,7 @@ invalid tables fail visibly. Refresh explicitly from one successful CI run
attempt in which every shard of the domain, as configured in `PROOF_SHARDS`
(`scripts/proof-shards.ts`), ran fresh and succeeded:
`bun scripts/refresh-browser-costs.ts <run-id> <attempt> [browser|layout]`
(browser by default). Cancelled, partial or retained-only proof supplies no
(browser by default). Cancelled or partial proof supplies no
measurements. Review the source head/checkout/tree, job IDs and seconds/median
metadata alongside the table.
Unsharded discovery is unchanged and existing browser file concurrency is kept.
Expand Down
Loading
Loading