Repository navigation
ci: restore CodeQL as a fail-closed gate on master - #644
Closed
joshconverse wants to merge 2 commits into
Closed
joshconverse wants to merge 2 commits into
joshconverse wants to merge 2 commits into
Conversation
CodeQL ran via GitHub default setup from 2026-04-14 to 2026-06-16, then was switched off in the repo UI. Because default setup keeps no config in git, nothing recorded that it had been on or that it stopped: two months of PRs merged unscanned while the Security tab kept serving the June alert snapshot, so the repo still looked scanned. Restore it as advanced setup, with the config in git so disabling it takes a reviewed PR: - .github/workflows/codeql.yml — actions, go, javascript-typescript, python and rust analyzed per-PR on ubuntu; swift on a weekly cron + dispatch only. - .github/codeql/codeql-config.yml — exclude vendored libs/* submodules, build output, and e2e crypto testdata. Query suite left at default. - .github/CODEOWNERS — narrow, no catch-all: owner review on the CI and code-scanning config paths only. - docs/operations/code-scanning.md — what is scanned, why swift is weekly, how the gate resists removal, and the 12-alert June backlog. Swift is weekly and non-blocking on purpose. provider-swift is the highest value target in the repo, but a cold build compiles the full Cmlx C++/Metal tree (~20 min on a paid macOS runner) and Swift extraction requires a cold build, since a warm .build yields an empty database. Per-PR Swift is also exactly what failed under default setup — every June run recorded "unsuccessful execution" with 0 rules. A slow, occasionally red required check is the most reliable way to get code scanning disabled a second time. The analyze jobs carry no paths/paths-ignore filters: they are registered as required status checks on master, and a path-skipped job never reports its context, which would deadlock doc-only PRs. That same property makes removal fail-closed — delete the workflow and the required contexts stop reporting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
joshconverse
had a problem deploying
to
benchmarks
August 19, 2026 19:54 — with
GitHub Actions
Failure
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The first advanced-setup run surfaced something worth writing down: every PR also gets checks named `Analyze (go)` / `Analyze (javascript-typescript)` / `Analyze (python)` from a run titled "Code Quality: PR #N" (path dynamic/github-code-scanning/codeql, event dynamic). That is GitHub's code *quality* feature, not security scanning — it uploads no security analyses. Those checks are easy to mistake for code scanning, which is plausibly part of why the two-month gap went unnoticed. Also record the per-language rule counts from the first run as a baseline, so a later run that silently narrows coverage is detectable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
joshconverse
had a problem deploying
to
benchmarks
August 19, 2026 19:58 — with
GitHub Actions
Failure
jonathan308
added a commit
that referenced
this pull request
Oct 31, 2026
…cks for 0.10.6 From the independent review of this preparation: - S2: rollout step 1 sets four cluster settings, among them EIGENINFERENCE_CLUSTER_PAIR_TRUSTED_TLS_PROXIES (without it no member connection attaches to pair control behind Caddy, and in the split deployment the trusted-proxy path is the only one), and App Attest serving at a 100% account rollout, because a member without MDM pairs only through App Attest. Evidence rows cite the platform configuration reference, the cluster-control "Member trust" row and appattest/service/config.go. - S3: a DevNet proof step: the 0.10.6 dev build's release/ approvals are listed and a real pair forms a session, on the platform fixes production will run. The variable step checks production /health for that revision; #643 alone is not enough. The DevNet observation (block accepted, no release/ entry) is in the evidence table. - S4: the promotion is a snapshot branch cut at this preparation's merge commit on dev, and before tagging, make changelog-check prints 0 fragments and the tagged commit differs from that merge commit only by master's prod default. - N2: merging into dev starts the DevNet dev-branch release; N5, N6; N7: #644 carries only migration 58; N8: the catalog bounds and what 0.10.6 adds. The cluster runtime facts section now names the trusted-proxy setting and points its production step at the version's rollout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai
added a commit
that referenced
this pull request
Oct 31, 2026
* cluster: runtime facts v2 name each model's pair-serving grant; release modes
`darkbloom cluster runtime-facts` prints schema darkbloom_cluster_runtime_v2:
the v1 digests, unchanged, plus each model's pair_serving_grant. The grant is
the public grant a member of the same build reports for the described artifact
(ClusterPairServingGrants.grant), null when there is none: its mode families
sorted by byte, and evidence_sha256, the SHA-256 of the records it rests on as
canonical JSON Lines (ClusterPairServingGrant.records, evidenceSHA256). The
canonical encoder writes null rather than omitting it; the strict decoder
init(canonical:releaseVersion:) refuses unknown, missing or repeated fields,
schema v1, and a model whose derived IDs (release/<version>/<model>/s2, plus
/grant for a granted model) exceed 128 bytes. The model bound is 64.
The release modes come back (ClusterRuntimeApprovalFacts+Release.swift):
--list-release-models prints the models this build qualifies on a cluster, and
--app A --release-candidates DIR describes, for every listed artifact and every
catalog model ID among its candidates, the first candidate the app's worker
describes as that model. A listed model with no candidate is left out (the
environment's catalog lacks it); the output must read back under the strict
decoder for this build's version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(release): every lane computes cluster_runtime; sent only when enabled
The release lane (dev branch, staging, prod) computes the cluster runtime facts
of its final signed, notarized app with that app's own CLI and worker, in the
step "Compute cluster runtime facts from the final signed app" of
build-and-release: after the final hashes, with no secret (the signing
keychain is deleted and the identity proven gone first), from the target
environment's public catalog and model CDN (provider-cluster-runtime-models.py
--environment). A listed model that catalog lacks is left out and named. The
job summary shows the block and a run artifact retains it in every lane.
The payload carries it (prepare --cluster-runtime) only when CLUSTER_RUNTIME_SEND
is true: the run registers a release and the environment's repository variable
DEV_, STAGING_ or PROD_CLUSTER_RUNTIME_ENABLED is exactly 'true'. Unset, prepare
runs today's command and the payload is byte for byte today's (pinned by digest
in the tests), and a facts failure only warns (continue-on-error). Set, a
failure fails the release before staging and registration. validate accepts a
valid block in every environment and refuses an invalid one and one whose
derived approval or grant IDs exceed 128 bytes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(release): the registration carries cluster_runtime in its canonical form
Contract A defines the block as canonical JSON (keys sorted by byte, no
whitespace, no trailing newline). prepare now refuses a block file that is not
canonical, and the registration body is encoded without whitespace when, and
only when, it carries the block, so the coordinator receives the block's
canonical bytes whether it parses them or compares them. A body without the
block is byte for byte the one sent before (pinned in the tests).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* cluster: no derived grants; the owner's public models and their parity qualifications
Owner decisions (jonathan308, 2026-10-31): "public traffic should not be
manual"; "only glm 5.3 flash should be serving public & qwen 3.8 27b they are
both good to go they should be approved for serving".
The v2 facts no longer carry pair_serving_grant. A coordinator grant restricts
its approval to the families it names, and GLM-5.3-Flash's bundled records hold
only a pipeline_v1 run, so a derived grant would stop the GLM tensor-parallel
pairs M5 members serve today. ClusterPairServingGrants is back to dev apart from
the public-traffic line below.
ClusterPublicModels (beside the grants, reviewed in PRs) declares exactly
GLM-5.3-Flash (registered_glm53_flash, glm-5.3-flash) and Qwen3.8-27B
(registered_qwen38_27b, EigenLabs/Qwen3.8-27B-4bit-mtp): tensor_parallel on
schedules 1 and 2, evidence placement two Apple M5 Ultras (applegpu_g17d, NAX
on) on macOS 27.0, cuts [], equal shares, qualified 2026-10-31T00:00:00Z, and
the SHA-256 of the evidence document
docs/reports/2026-10-31-public-cluster-models.md (a test holds them equal). It
also names the artifact the runtime registers for each model.
Each model's parity_qualifications is [] unless the declaration names its
runtime model, catalog ID and artifact; then one object per declared family and
schedule: numerics classes of the evidence placement with the block's metallib
(g17d-nax1-mlx-98bab9d7-macos27.0 on 0.10.5-dev.branch.15 and .16), cuts, mode,
tensor_parallel_shares null, promotable, not diverged, evidence_sha256,
qualified_at and the request envelope (ClusterPublicModels.requestEnvelope:
sampling, tools, 1,048,576 tokens each way, vision and video as the candidate's
catalog entry lists image and video; text only without one). Release
candidates carry that entry (catalog.json). The strict decoder and validate
check the qualifications as a coordinator does and bound the derived IDs
release/<version>/<model>/s<s>/q<n>. The setup's public-traffic line says a
declared model is qualified in its declared family without a record of it.
The GLM block the installed 0.10.5-dev.branch.16 app computes from DevNet's
catalog is pinned as a golden. The placement check runner compiles the new file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(release): candidates carry their catalog entry; validate parity qualifications
provider-cluster-runtime-models.py saves each candidate's catalog entry (its id
and input_modalities, canonical, catalog.json) beside its manifest and
config.json, so the released app's own CLI gives a declared model's request
envelope the media the target environment's catalog lists; a malformed modality
list fails that entry, none listed means text only.
provider-release-publication.py checks parity_qualifications in place of
pair_serving_grant: the exact fields, schedule 1 or 2, two numerics classes,
the cuts the mode has, null shares, flags, an instant the coordinator accepts,
the envelope bounds, video only with vision, no placement twice, at most 8; and
bounds every derived approval and qualification ID
(release/<version>/<model>/s<s>/q<n>) at 128 bytes. The pinned GLM block is
accepted. Docs and the changelog fragment follow; the release step's comments
name the parity qualifications.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cluster): the service's part beats into its own heartbeat file
Under its supervisor the cluster service beats every 2 s into the file
DARKBLOOM_CLUSTER_MEMBER_HEALTH_FILE names. Its part was started with the
service's environment unchanged, and a coordinator-paired part
(`start --foreground --cluster-member`) beats every 5 s into the file the
same key names, with its own pid. The supervisor's liveness guard reads
the file every 15 s and treats a beat of another pid as no beat. The three
periods are near multiples of each other, so their phases drift by
milliseconds per probe: once the part's beat was the last write at six
probes in a row, the guard recycled a healthy service ("heartbeat missing
for 75 s while its process is alive") and the pair dropped and registered
again. Seen on a DevNet leader about every 15 minutes.
The part now gets the service's environment with the key pointing at
part-health.json beside the service's files. The key stays set, so the
part still waits for its registration as a supervised member does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: the cluster service part's own heartbeat file
Docs Impact failed: ClusterService.swift changed without its mapped
architecture document. The cluster serving section now says which file the
service and its part each write their heartbeat to, and why.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(cluster): keep the approval fixture alive through the part heartbeat tests
Both new tests failed on CI at every run: the member part never started.
They dropped the ClusterApprovalMacs fixture (`let (_, service, parts)`),
whose deinit removes both homes, so the leader's saved setup was gone
before the service's first tick. The fixture now lives until the last
check, as in the other tests of the suite.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* cluster: pair-serving grants again, beside parity qualifications
David's finding: a pair member reports only hardware capabilities
(DistributedServingEligibility.memberCapabilities: apple_m5 on an M5), and
without a pair-serving grant the coordinator holds each member to the
model's single-Mac requirements (providerMeetsServingRequirementsLocked),
which no member meets for GLM-5.3-Flash (mlx_nax, glm5_next_v1) or
Qwen3.8-27B (mlx_nax). No pair forms without a grant, so every model in the
v2 facts again carries pair_serving_grant (null, or exactly evidence_sha256
and mode_families) beside parity_qualifications.
A declared public model's grant names its declared families with the
evidence document's SHA-256. Owner ruling 2026-10-31 ("It should be tensor
or pipeline obviously but that shouldn't matter for the coordinator"):
ClusterPublicModels declares pipeline and tensor_parallel for both
GLM-5.3-Flash and Qwen3.8-27B. Any other model's grant is the one this
build's bundled records give its artifact (ClusterPairServingGrants.grant),
with the SHA-256 of those records' canonical JSON Lines
(ClusterPairServingGrant.records, evidenceSHA256); null when they grant none.
The declaration's families drive the parity qualifications: one promotable
record per family and schedule, pipeline first (byte order), so each
approval's q1 is the pipeline and q2 tensor parallel. A pipeline is
pipeline_v1 cut at [num_hidden_layers / 2] of the model's config.json (top
level, else text_config: GLM 45 -> [22], Qwen3.8-27B 64 -> [32]); without a
layer count its records are left out and the command says so on standard
error. An envelope admits media only where the placement serves media
(ClusterModelFeaturePolicy.mediaContract): tensor parallel follows the
catalog entry, a pipeline is text only.
The strict decoder and validate check the grant (1 to 4 known families in
byte order, nonzero evidence) and bound release/<v>/<M>/s<s>/grant at 128
bytes beside the approval and /q<n> IDs. The setup's public-traffic line
follows the declaration (pipeline and tensor parallel); tests about the
records alone pass publicModels: []. The evidence report says the owner
approved both modes for both models, that GLM-5.3-Flash's bundled records
hold a pipeline_v1 run while its tensor parallel rests on the owner's
decision and the DevNet serving results, and why grants are needed; its
SHA-256 is re-pinned. The GLM golden is re-pinned from the installed
0.10.5-dev.branch.17 app, which replaced branch.16 on this Mac.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(release): validate pair-serving grants and their derived IDs
provider-release-publication.py checks each model's pair_serving_grant
again (null, or exactly evidence_sha256 and 1 to 4 known mode_families in
byte order) beside its parity_qualifications, adds the grant's evidence to
the digests it checks, and bounds release/<version>/<model>/s<1|2>/grant at
128 bytes with the approval and /q<n> IDs. Its tests cover the grant rows,
the ID bound for a model with neither, qualifications only, a grant only and
both, the /grant and /q<n> IDs, and the branch.17 GLM golden (q1 the
pipeline, text only; q2 tensor parallel).
The docs (configuration reference, release runbook, inference architecture,
test guide), the changelog fragment and the release step's comments describe
the grants and why pairs need them, both declared families, the pipeline
cut, the per-placement media and the q1/q2 order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* release(publication): refuse a registration body over the coordinator's 64 KiB
The coordinator reads POST /v1/releases under MaxReleaseRegisterBodyBytes
(64 KiB, as http.MaxBytesReader applies it), the same bound as the
cluster_runtime block's own, so a block within its bound could take the body
over the limit and fail only at publish, after R2 staging. validate (in
prepare, stage and publish) now refuses a payload whose registration body
exceeds 65,536 bytes, naming its size and the limit. One function
(registration_body) builds the bytes it sizes and the bytes registration
sends, so they cannot differ.
The test grows a valid block to a body of exactly 65,536 bytes (accepted)
and 65,537 (refused before staging, with no payload written), refuses the
same limit without a block (release notes), and checks that registration
sends the sized bytes. Independent review N1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(cluster): the declared placement is evidence, not a limit; catalog room
Independent review fixes (S1, S2, N2, N3, N4, N7, N10, N15 wording).
The configuration reference, the release runbook, the inference page and
the changelog say how a coordinator applies the declared qualifications: a
promotable record qualifies its approval's whole mode family on any
numerics classes, cuts and shares within the envelope (parityQualification,
platform df61dd6f9), so public traffic for GLM-5.3-Flash and Qwen3.8-27B is
admitted in pipeline and tensor parallel on any Apple silicon pair; the
declared placement names the evidence, not a limit. No pipeline ran on two
M5 Ultras and GLM-5.3-Flash has no tensor-parallel cross-cable record: both
rest on the owner's decision and the DevNet serving results. GLM-5.3-Flash
serves only the serial schedule, so its schedule 2 entries are inert. The
digest-pinned evidence document is unchanged.
The runbook adds the catalog-room precondition (64 approvals with the
operator's own, 2 per model per release, newest release whole first, older
releases left out first), DevNet's numbers on 2026-10-31 (26 served, 4
catalog models: 8 per release, the 4 newest fit), the log check after the
first registration (release cluster approvals omitted), the recovery when a
facts failure stops a release, "set to true" (GitHub compares
case-insensitively; also in the workflow comment), the release-handler link
re-pinned to platform df61dd6f9, and "a catalog model ID of a listed
artifact". The inference page notes that a grant also bounds owner-formed
sessions to its families.
The grant's evidence is the passing records it is computed from, without a
pass a divergence of the same shape contradicts: said so in the code
comment and the reference, with a test row for a family still granted by
another pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(release): prepare provider 0.10.6
Set ProviderCore.version to 0.10.6 and mark v0.10.5 as published on
2026-10-30 (tag target d3bbcd0).
Open the v0.10.6 candidate entry with its upgrade and rollout notes: the
first production release with two-Mac clusters (darkbloom cluster over one
Thunderbolt 5 cable with RDMA, macOS 26.2 or later; GLM-5.3-Flash and
Qwen3.8-27B in tensor parallel); releases carry their cluster runtime
facts (#1692), from which a coordinator with darkbloom-platform#643
derives approvals, pair-serving grants and public qualifications, off in
production until that coordinator runs with its switches on and migration
58, and PROD_CLUSTER_RUNTIME_ENABLED is set after it and before the tag;
no coordinator change or version floor for single-Mac serving; the #1690,
#1686, #1680 and #1683 changes; the MLX pins (mlx 72dffa2d and mlx-swift
c633d221 unchanged, mlx-swift-lm 2beb401f -> 7933a0fa for SDK #373 only,
so the metallib hash should equal v0.10.5's); and what the verbatim
entries below are.
Update the release runbook: the 0.10.6 scope, the pin, metallib and
catalog checks before tagging, the rollout order (the platform with #643,
its three switches and migration 58 first, then
PROD_CLUSTER_RUNTIME_ENABLED, the dev -> master promotion as a merge
commit, the tag and the platform snapshot), platform evidence inspected on
2026-10-31, and the published history.
The pending changelog fragments are rendered in the next commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(release): render the pending changelog fragments into provider 0.10.6
Insert the output of
python3 scripts/changelog.py render --version 0.10.6 --date 2026-10-31
(all 101 pending fragments) verbatim, without its heading line, below the
v0.10.6 upgrade and rollout notes, and remove exactly those 101 fragments.
The render ran on this branch's base, origin/dev a0413a8, before the
v0.10.6 heading existed, because the renderer refuses a version that
CHANGELOG.md already names. A render from a git archive export of
a0413a8 is byte-identical.
This commit is mechanical, so a later roll-up can revert it, merge dev and
render again if more fragments land before this merges.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(release): name the single-Mac answers that change in 0.10.6
Two client-visible answers of one Mac are new since v0.10.5: a content part
of an unknown type is refused with 400 (OpenAIRequestValidationError, from
the cluster capability honesty change), and media the model's processor
refuses answers 400 invalid_media instead of the retryable 503
(EngineV2VisionPrefill.clientFault). Say so beside "no coordinator change".
Both use failure codes the coordinator's closed enum already had in
v0.10.5's protocol reference.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(release): complete the single-Mac changes and production gates in the 0.10.6 notes
From the independent review of this preparation:
- S1: three answers to coordinator requests change on one Mac, not two. A
response_format answer cut off by max_tokens is now a client error
(InferenceErrorClassifier: client_error instead of the retryable
tool_noncompliance), so the coordinator no longer retries it on another
provider. The local API (darkbloom start --local) normalizes a request that
fails to decode as the coordinator path does (InboundChatNormalization),
returns logprobs where the model captures them, reports
usage.completion_tokens_details.reasoning_tokens and answers the cut-off
with 422 and its own message (LocalChatUploadResponder,
StandaloneServer+HTTP). Two operator changes without a fragment are named
too: provider.toml is written owner-only (ProviderConfigFile), and the
0.10.6 updater extracts releases under umask 022 (SelfUpdater).
- S2: production needs four cluster settings, including
EIGENINFERENCE_CLUSTER_PAIR_TRUSTED_TLS_PROXIES (the coordinator listens on
plain HTTP behind Caddy), and App Attest serving for every account
(EIGENINFERENCE_APP_ATTEST_SERVING, _ENVIRONMENT=production,
_ROLLOUT_PERCENT=100).
- S3: PROD_CLUSTER_RUNTIME_ENABLED waits for #643 plus any follow-up fix and
for the DevNet proof with the release's dev build: derived release/
approvals and a session on a real pair.
- N4: four repeated single-Mac statements (all published in v0.10.0); N5: the
6% is for one request; N6: the SDK pin moved through #1680 and #1684.
The rendered entries are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(release): settings, DevNet proof, snapshot promotion and tag checks for 0.10.6
From the independent review of this preparation:
- S2: rollout step 1 sets four cluster settings, among them
EIGENINFERENCE_CLUSTER_PAIR_TRUSTED_TLS_PROXIES (without it no member
connection attaches to pair control behind Caddy, and in the split
deployment the trusted-proxy path is the only one), and App Attest serving
at a 100% account rollout, because a member without MDM pairs only through
App Attest. Evidence rows cite the platform configuration reference, the
cluster-control "Member trust" row and appattest/service/config.go.
- S3: a DevNet proof step: the 0.10.6 dev build's release/ approvals are
listed and a real pair forms a session, on the platform fixes production
will run. The variable step checks production /health for that revision;
#643 alone is not enough. The DevNet observation (block accepted, no
release/ entry) is in the evidence table.
- S4: the promotion is a snapshot branch cut at this preparation's merge
commit on dev, and before tagging, make changelog-check prints 0 fragments
and the tagged commit differs from that merge commit only by master's prod
default.
- N2: merging into dev starts the DevNet dev-branch release; N5, N6; N7: #644
carries only migration 58; N8: the catalog bounds and what 0.10.6 adds.
The cluster runtime facts section now names the trusted-proxy setting and
points its production step at the version's rollout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(build): describe how a release promotes dev to master
The dev branch section said "Never merge dev into master", that dev is
master plus one commit, that master pushes publish dev providers and that
code changes go to master first. None of that has held since #1635, #1637
and #1688, and the release runbook now promotes dev. Describe it as #1688
did: a snapshot branch of dev merged into master with a merge commit (an
admin briefly allows merge commits on the squash-only master ruleset),
master's one commit of its own (e9babca) that keeps plain builds on prod
and is reverted on dev by each master-into-dev sync, and dev pushes that
publish DevNet releases through release-dev-branch.yml.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(release): refactor pass on the 0.10.6 notes and runbook
From the dedicated refactor pass of this preparation (edits A-F; the
optional G and H are not applied). The 101 rendered entries, the version
constant and docs/developer/build.md are unchanged.
- A: the DevNet proof is rollout step 1 and the production platform step 2,
because production deploys the revision that passed the proof. Before,
steps 1 and 2 each referred to the other.
- B: the notes state the production gate as a condition. The 2026-10-31
DevNet status and the Caddy detail stay in the runbook and its evidence
table, because they stop being true at rollout.
- C: the notes name the superseded statements that state a wrong current
default (widened Qwen fences, SSD prefix-record precision, Qwen3.8 27B
tensor-parallel speculation) and the owner's decisions behind the public
qualifications.
- D: the notes name the MLX stream-fence fix that v0.10.5's pins already
contain, and carry the per-build SSD checkpoint fact, which the runbook's
metallib check no longer repeats.
- E: the dev-branch lane drops two statements superseded since 2026-10-28:
master's verify-source accepts a dev push for environment dev, and pull
requests into dev need one approval and land as merge commits.
- F: Cluster Runtime Facts separates acceptance (darkbloom-platform#643)
from derivation (EIGENINFERENCE_CLUSTER_PAIR_APPROVALS_FROM_RELEASES) and
no longer points at the per-version section, which the next preparation
replaces.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cluster): release facts leave out another model's catalog ID of a shared artifact
Production's catalog lists the Gemma 4 26B artifact a4722b60 twice:
gemma-4-26b and gemma-4-26b-8bit. The build registers two runtime models
on it that only the manifest tells apart (registered_gemma4_26b and
registered_gemma4_26b_8bit), and only the 8-bit one is qualified on a
pair, so only it is a listed release model. ClusterRuntimeApprovalFacts
.release required every catalog model ID of a listed artifact to be
described as the listed model, and the worker describes gemma-4-26b's
manifest as registered_gemma4_26b. Run against production's catalog and
CDN, the release's facts step therefore failed ("Qualified cluster models
the release cannot describe: gemma-4-26b"), and a production release with
PROD_CLUSTER_RUNTIME_ENABLED=true would stop after signing.
A catalog model ID whose candidates the worker describes only as another
registered model is that model's: a member that installed it runs as that
model, which this release does not qualify. It is now left out and named
on standard error (note: left out, the catalog model ID of another
registered model). A catalog model ID of which the worker describes no
candidate at all still fails the step, and so does an empty result, whose
message now names what was left out.
The new test builds production's shape from the checked-in metadata
fixtures (gemma-4-26b and gemma-4-26b-8bit, one configuration): it fails
on the previous code with the production error and passes now; a second
test checks the note in both directions. The runbook's release step and
the configuration reference state the rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(release): 0.10.6 goes to production without a DevNet proof
The owner dropped the DevNet proof for this release. The notes' gate
bullet said PROD_CLUSTER_RUNTIME_ENABLED is set only after DevNet lists
the dev build's derived approvals and a DevNet pair forms a session
under one, which would misstate in the permanent history how 0.10.6
shipped.
- CHANGELOG.md: the gate is the production coordinator with #643 and its
follow-up fix for the split edge and Conductor deployment, migration 58,
the four cluster settings and App Attest serving; a new bullet says the
release was not proven on DevNet first and that its derived approvals
and a pair session under one are first checked in production.
- provider-release.md, 0.10.6 rollout: step 1 says there is no DevNet
proof and why production is the first coordinator to derive approvals;
step 2 names the split-edge fix; step 3 depends on step 2 only; step 5
adds the production pair session as the check of the derived approvals.
The 101 rendered entries are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(release): render the release facts fix's fragment into provider 0.10.6
The release facts fix (cluster runtime facts leave out another model's
catalog ID of a shared artifact) lands before this preparation and adds
one pending fragment. Render it with the other 101 so that changelog.d
holds only its README at the tag:
- CHANGELOG.md: the v0.10.6 block is a fresh
`changelog.py render --version 0.10.6 --date 2026-10-31` of the 102
pending fragments (minus its heading line and the blank line after it),
byte for byte; against the 101-fragment render it only inserts the new
entry, in filename order. The notes count 102 entries.
- changelog.d/cluster-runtime-facts-another-models-catalog-id.md is removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(release): 0.10.6's production gate is the release source alone
The notes and runbook required what this mainnet-direct release does not
have: a follow-up platform fix for DevNet's split edge and Conductor
deployment (darkbloom-platform#652, deferred; production runs one
combined coordinator) and EIGENINFERENCE_CLUSTER_PAIRS, which production
deliberately leaves unset so that approvals derived from releases are the
only source. The facts rollout order still waited for a DevNet proof, the
pair guide said production serves no approvals, and the runbook promoted
dev to master with a merge commit while 0.10.6 reaches master through
squash-merged pull requests.
- CHANGELOG.md: the gate is #643 with migration 58 and the three lines
production gets (EIGENINFERENCE_CLUSTER_PAIR_APPROVALS_FROM_RELEASES=true,
EIGENINFERENCE_CLUSTER_PUBLIC_ROUTING=true,
EIGENINFERENCE_CLUSTER_PAIR_TRUSTED_TLS_PROXIES=127.0.0.1,::1), with
EIGENINFERENCE_CLUSTER_PAIRS unset; the notes name the verbatim entry
that still calls production a coordinator without pair control. The
101 rendered entries are unchanged.
- provider-release.md, 0.10.6: step 2 sets those lines and drops the
split-edge prerequisite; step 3 names the 409 cluster_runtime_conflict;
step 4 merges the clustering PR, the facts fix and this preparation into
master, each squash-merged, restacked with restack-after-squash.py;
step 5 tags this preparation's squash commit; the pre-tag check reads
that commit's subject instead of diffing against a dev merge commit.
- provider-release.md, Cluster Runtime Facts rollout order: step 4 is the
production order (deploy with those lines and the /health check,
PROD_CLUSTER_RUNTIME_ENABLED=true, the tag, then the derived
release/0.10.6/... approvals), without a DevNet proof, with the trap: a
version first registered without the block never gains one (409).
- two-mac-cluster.md and configuration.md: production derives approvals
from releases once its coordinator runs #643 with approvals from
releases; before that deploy it serves none (404). A derived approval
ends 90 days after its release registered.
- build.md: dev's changes reach master through pull requests into master;
#1688 was a merge-commit promotion, 0.10.6 a squash-merged pull request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(release): 0.10.6 reaches master in two pull requests
The release facts fix is part of the two-Mac clustering pull request now:
master is squash-only and asks for a new approval after every push, so
each stacked pull request costs the approver another round. Rollout step
4 of the 0.10.6 section therefore merges two pull requests, the
clustering one (#1690 and #1692 from dev with master merged in, and the
fixes found while preparing this release, such as the release facts
fix) and then this preparation, restacked once with
restack-after-squash.py after the first squash.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(cluster): refactor pass on the release facts fix
Behaviour-preserving cleanup of 35f7b9f, from the dedicated refactor
pass that AGENTS.md requires before the pull request opens. The facts
block, --list-release-models and every message and note stay byte for
byte the same.
- ClusterRuntimeApprovalFacts.release: the left-out list holds the note
lines it names (leftOut) instead of a list called othersCatalogIDs that
held reason strings and was mapped to those lines afterwards. The doc
comment says "whose candidates the worker describes only as another
registered model", as the docs do, and that the empty-result error
names what was left out.
- ClusterRuntimeFactsCommand: one note(_:) writes "note: <line>" to
standard error, for the declared families without a qualification and
for the catalog IDs release(note:) leaves out, instead of a second copy
of that format in a closure. The command's doc comment names both.
- ClusterRuntimeApprovalFactsTests: the "another" case of
releaseNamesEveryCatalogModelItCannotDescribeAndRefusesAnEmptyResult now
passes through the empty-result error, which names the left-out ID; it
checks that message's prefix as well as the refusal it already checked.
- provider-release.md, release step 6: "every catalog model ID of a listed
artifact gets one entry" contradicted the exception the fix added two
sentences later. It now reads "every catalog model ID of a listed
artifact that it describes as the listed model gets one entry"; the rest
of the step is only rewrapped.
- configuration.md: the fix's paragraph is rewrapped (one 108-column
line); no word changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(release): refactor pass on the 0.10.6 production-gate text
From the dedicated refactor pass over 27dedfe, 8caeea4 and 72bceb8.
Text only, in docs/operations/provider-release.md:
- The platform evidence row named "the three switches" that only DevNet's
overlay sets. Since 8caeea4, rollout step 2 lists three other lines
(with EIGENINFERENCE_CLUSTER_PAIR_TRUSTED_TLS_PROXIES and without
EIGENINFERENCE_CLUSTER_PAIRS), so the row read as if the overlay set
those three and "also" the trusted proxies. It now names the switches:
EIGENINFERENCE_CLUSTER_PAIRS,
EIGENINFERENCE_CLUSTER_PAIR_APPROVALS_FROM_RELEASES and
EIGENINFERENCE_CLUSTER_PUBLIC_ROUTING (deploy/gcp/dev/env-overrides at
df61dd6f).
- Rollout step 1 drops "(mainnet-direct)", a planning label that no other
page uses; the step already says the release goes to production without
a DevNet proof.
CHANGELOG.md is unchanged: the 102 rendered entries and the notes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cluster): Qwen3.8 27B pairs register with the coordinator by default
With the default [backend] mtp_mode = "auto", the guided setup planned
Qwen3.8 27B tensor parallel with the model's embedded speculative
assistant, which a setup saved for coordinator pairing may not carry
(ClusterConfiguration.validate). The leader's check of a coordinator's
approval ran only the attachment's own checks, so it stopped both parts
and sent the approval, and the other Mac refused it at its save ("A
tensor assistant requires Qwen TP on a row with an inline head, serial
prefill and a local cluster setup"). The pair served on the leader's
local API only, while the setup said it was qualified for public
traffic (finding F1 of the 0.10.6 two-Mac proof).
The assistant stays local-only: no parity qualification covers its
verify windows. The bundled tensor-parallel records of the 27B predate
it, and neither the records, the release's cluster_runtime block nor a
pair's registration has a speculation field.
- The onboarding plans for how the cluster serves: through Darkbloom,
auto discovers like off (ClusterPlacementTensorAssistantSelection.
discoveryMode), so the default Qwen setup carries no assistant and
both Macs accept the approval. darkbloom cluster local keeps it. The
service's re-plans follow the saved scope, and forwarded planModels
and adopt carry the asking Mac's scope. An explicit on is kept.
- ClusterApprovalAttachment.attachment runs the whole
ClusterConfiguration.validate on the setup with the approval
attached, so the leader refuses an assistant setup before any part
stops or anything is sent. The refusal names the reason and the
remedy in 163 characters.
- A plan that decodes with the assistant says "not offered for public
traffic" instead of "qualified for public traffic".
Tests: ClusterApprovalTensorAssistantTests (real stores, the other
Mac's own approval handling) and the onboarding's public-traffic line
for the registered 27B artifact fail on 35f7b9f with the live F1
message and pass with the fix; discoveryMode, the plain refusal through
the link, the public-traffic line and the CLI scope binding have tests
of their own. The release's model list and cluster_runtime block are
byte-identical (51c77bdb..., 4fd4ea8a...).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cluster): coordinator-side member ends no longer set a pair's approval aside for good
ClusterApprovalCheck.memberQuickEnds counted every coordinator-paired part
end under 120 s except an unreachable coordinator. A registration the
coordinator did not acknowledge in its 10 s negotiation window (a deploy, a
restart, a slow coordinator) counted like a local failure. Three in a row set
the approval aside as failing, and the same build never took it again; a
release-derived approval keeps its ID for the whole release, so the pair
served only the leader's local API until someone intervened (provider bug
hunt 1.4, probe 8bad154d9).
(a) Which ends count
- A quick end whose error is ClusterMemberControlError.negotiationFailed
leaves the count as it is; a run of 120 s or more still resets it, and an
unreachable coordinator still resets it. Every other end counts: a changed
input, a crash without an error line, connectionEnded, roleUnsupported.
- "The coordinator control connection ended or lost trust" never ends a
coordinator-paired part: `start --cluster-member` runs its loop with
stopOnDisconnect false, so a dropped connection, an untrusted or offline
trust_status and a runtime-outdated status leave it reconnecting. That exit
(memberControlEnded) is the distributed leader part's, which the count never
includes. A coordinator restart reaches the count only as a registration the
restarted coordinator does not accept in time: the negotiation case above.
Per platform master 2847f27dd, "untrusted" is sent only for this Mac's own
verification (failed or missed attestation challenges, a revoked App Attest
credential, a failed security check, a replaced connection), so it would
count; "offline" only accompanies the end of the connection.
- This complements the coordinator fix that ends each pair session before
its shutdown closes the members' sockets (darkbloom-platform
fix/coord-shutdown-pair-cancel, 824e82e3c, not yet on master): a deploy
then ends members cleanly, and this rule still covers older coordinators,
coordinator crashes and slow negotiation.
(b) A bounded set-aside
- ClusterSetupRecord.ApprovalSetAside gains setAt (wall-clock seconds), which
the cluster service records (ClusterApprovalCheck.setAside(by:worker:now:)).
step holds a failing approval aside for ClusterApprovalFallback.failingSeconds
= 3_600 only; then the same build takes it again. A record without setAt (an
older build's) or with a time ahead of the clock is past the bound. The count
starts again because each Mac's part that serves locally resets it, so the
approval comes back with none.
- The status line says when; two-mac-cluster and the configuration reference
follow; changelog fragment.
Tests (ClusterApprovalWatchTests): coordinatorSideEndsDoNotReachTheFailingLimit,
localQuickEndsStillSetTheApprovalAside,
aFailingApprovalIsOfferedAgainAnHourAfterItWasSetAside,
aSetAsideInTheCurrentRecordFormatReadsCleanlyAndIsPastTheHour. They fail on
the old rules (12 issues in 5 tests, with a compile shim for the new field)
and pass with the change. The model-approval test now expects an older
build's record to be past the hour.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(cluster): pair Macs do not update themselves; update both by hand
Nothing updates Darkbloom on a Mac set up with `darkbloom cluster` (provider
bug hunt 1.2): ClusterServiceCommand.runSupervisor builds its supervisor with
autoUpdate false, so the update slot never runs; the coordinator-paired part
never starts startAutoUpdateMonitor (ProviderLoop+Serve, solo providers only);
and the single-Mac provider cannot run beside the cluster
(DistributedInstalledProviderExclusion). The docs said otherwise.
- two-mac-cluster: a section "Updating Darkbloom on the pair" with the manual
procedure, as the code does it: `darkbloom update` on each Mac (UpdateCommand
installs; its "Restart the provider" line does not apply without a provider
LaunchAgent); the control leader's ClusterService.checkForUpdate compares
the pinned worker digests with this Mac's worker file and the other Mac's
reported facts every 60 s while serving, then stops both parts, plans the
same model again and serves it ("Darkbloom changed on ...: setting the
cluster up again for <model>"). The cluster service process itself keeps
the release it started with until it starts again: a re-run of `darkbloom
cluster` leaves an unchanged login agent alone, so log out and in (or
restart). Automatic pair updates are listed as not yet in this build.
- cluster-always-on: the login agent's supervisor runs without the update
slot; the update-slot row applies to the developer route
(`start --cluster-member --always-on`) only, with auto_update on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(inference): note that min_p applies on one Mac too
abbe697 made EngineV2Bridge forward an explicit min_p on every single-Mac
slot, as a cluster pair already did (intentional: requests without min_p are
unchanged). The 0.10.6 fragments did not say so, and ChatRequest.min_p still
said it applied on a pair only (provider bug hunt 1.6).
- changelog.d/min-p-single-mac.md: the bug hunt's proposed line.
- ChatRequest.min_p: applied on every slot; the samplers count a value above 1
as 1 and ignore 0, negative and NaN values; MiMo native media and Nemotron
Super refuse a non-zero value. Comment only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(cluster): Qwen pairs refuse grammar-constrained JSON before any output; pair updates in the notes
The Qwen pair JSON fix is not part of 0.10.6 (refactor pass #2, finding
M1). Skipping the grammar on a pair would have answered public JSON-mode
requests with no grammar and no answer check, because the provider
streams every coordinator request and validates a streamed answer only
when a grammar was built.
- Two-Mac guide, Qwen section: a JSON response_format request that one
Mac would answer under a grammar is refused on a Qwen pair before any
output (constrained_decoding_unsupported, HTTP 400). The coordinator
moves a public request refused this way to a single Mac, which
constrains it (darkbloom-platform fix/coord-pair-refusal-failover); the
owner's local cluster API gets the refusal.
- changelog.d/cluster-pair-update-by-hand.md: pair Macs set up with
darkbloom cluster do not update themselves yet; run darkbloom update on
both Macs, then log out and back in, and press m once if the status
says the assistant is not offered.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(release): render F1, the set-aside fix, min_p and the pair update note into provider 0.10.6
The final clustering branch adds four pending fragments to the 102 this
preparation rendered:
- cluster-qwen-pair-public-without-assistant.md (F1: Qwen3.8 27B pairs
register with the coordinator by default);
- cluster-pair-coordinator-ends-not-failing.md (a coordinator deploy no
longer takes a cluster pair off public traffic);
- min-p-single-mac.md (a request's min_p now applies on one Mac too);
- cluster-pair-update-by-hand.md (pair Macs set up with darkbloom cluster
do not update themselves yet).
The Qwen pair JSON fix is not part of 0.10.6, so it has no entry.
CHANGELOG.md: the v0.10.6 block is a fresh
`changelog.py render --version 0.10.6 --date 2026-10-31` of all 106
fragments pending on the clustering branch (2071bbd), minus its
heading line and the blank line after it, byte for byte. Against the
102-fragment render it only inserts the four entries, in filename order.
The notes count 106 entries. The four fragments are removed, so
changelog.d holds only its README; the version stays 0.10.6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(release): re-run the facts dry run before PROD_CLUSTER_RUNTIME_ENABLED
Refactor pass finding m9: rollout step 3 set the variable without asking
for the read-only facts dry run, although a production catalog row the
worker cannot describe would stop the tag's release after signing once
the variable is true. Step 3 now re-runs the release's facts step
(scripts/provider-cluster-runtime-facts.sh <app> darkbloom prod) with an
unsigned app staged from this preparation's source, as the build job
stages it, and requires exit 0 before the variable is set. The order
(the coordinator deploy first, then the variable, then the tag) and the
409 cluster_runtime_conflict trap are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit dd7da3589a804138a46e6a2b58b2600b6f8ff8f2)
* fix(provider): co-resident loads fund every model's KV floor before the proportional split
0.10.5 providers report "loading 'gemma-4-26b-qat-4bit' would leave a model
without its fixed request workspace, admission watermark and 1.0 GB minimum KV
allowance (fleet KV budget 51467271830 B across 7 slots) — refused", and the
same for gpt-oss-20b at 54999766706 B, with every floor far inside the budget.
resliceGrants split the fleet KV budget only in proportion to each slot's
fp16 rate x min(context, 131072). A resident with a small rate but a real
fixed request workspace gets less than its own floor once a seventh model
joins: on a 192 GB Mac with Ternary Bonsai 2 27B, Qwen3.8 27B, Qwen3.6 and
Qwen3.5 35B-A3B, Gemma 4 26B and Nemotron 3.5 Lightning resident, Lightning
(6,144 B/token; nine recurrent generations with its assistant, a floor of at
least 1.587 GB) is offered 1.443 GB, while all seven floors total 9.9 GB of
the 51.5 GB budget.
Given the floors, resliceGrants keeps the proportional result whenever it
clears every floor (configurations that load today keep identical grants).
Otherwise, if the floors fit, each slot gets its floor plus its weighted
share of the rest; if they do not, the proportional result stands and the
floor check refuses as before. Every re-slice passes the floors: ProviderLoop
and StandaloneServer loads with the MTP target-only retry, the managed Super
newcomer, the reserve-raise preflights, native MiMo, and both regrow paths,
so an unload or reserve change cannot shrink a slot below its floor.
Tests: real EngineV2 residents with their fixed workspace reproduce the
refusal through ProviderLoop and StandaloneServer and are admitted after the
fix; a plain regrow cut Lightning to zero serving width and now keeps its
floor. Pure tests pin the reported budgets, unchanged results when nothing
starves, refusal for infeasible or unprovable floors, and Σ ≤ budget. The
Super capacity test that used proportional starvation as its trigger now
asserts that Super loads at its floor, and a genuine shortfall still refuses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(release): render the KV reslice floor fix into provider 0.10.6
The clustering branch adds one pending fragment to the 106 this
preparation rendered: kv-reslice-slot-floors.md ("Models load when every
model's minimum KV fits").
CHANGELOG.md: the v0.10.6 block is a fresh
`changelog.py render --version 0.10.6 --date 2026-10-31` of all 107
fragments pending on the clustering branch (249101f), minus its
heading line and the blank line after it, byte for byte. Against the
106-fragment render it only inserts that entry, in filename order. The
notes count 107 entries. The fragment is removed, so changelog.d holds
only its README; the version stays 0.10.6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(provider): a newcomer's KV floor is checked only when its engine is assembled
The re-slice funds every resident's floor first, but a newcomer has no
engine yet and counts only the base 1 GiB floor. A newcomer with a small
KV rate and its own fixed workspace can therefore still receive less than
its floor and fail at assembly with no_kv_headroom: Nemotron 3.5
Lightning loaded seventh beside the reported residents gets 1.443 GB
against its 1.587 GB floor (serving width 0), unchanged from 0.10.5.
hardware-support.md now states that limit where the floors are described,
and inference.md says the re-slice, not every load, refuses only when the
floors exceed the fleet KV budget. Behaviour is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(provider): local server regrow and reserve check keep a starved slot's KV floor
The fix passes slot floors at both regrow paths and both reserve checks,
but only the ProviderLoop pair had a test. Dropping the floors from
StandaloneServer.resliceGrowSurvivors and reserveKeepsSurvivorsServiceable
left all 350 selected tests passing.
The new test mirrors the ProviderLoop one on the same seven-slot scenario:
it first checks that the server's own budget starves Lightning under the
plain proportional split, then expects the reserve check to pass and the
regrow to leave every resident at its floor with serving width, within the
budget. With either floors argument removed it fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(provider): the KV floor changelog entry names the refusal it removes
"A load is refused only when the minimums together exceed the budget"
promised more than the split can check. The model being loaded counts
only the 1 GB base minimum until it is built, so Nemotron 3.5 Lightning
loaded beside several high-rate models can still fail with no KV
headroom, as on 0.10.5. The entry now says the message appears only when
the minimums exceed the budget, and states that limit.
Release preparation already rendered this fragment into CHANGELOG.md;
the matching one-line change there equals changelog.py render of the
new fragment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: jonathan308 <5055076+jonathan308@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: David Tai <dtaipublic@gmail.com>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
CodeQL ran on this repo via GitHub default setup from 2026-04-14 to 2026-06-16, then was switched off in the repo UI. Default setup keeps no config in git, so nothing recorded that it had ever been on, or that it stopped:
"unsuccessful execution", rules_count: 0— autobuild couldn't build the package. Probably why the whole thing was abandoned.Verified current state before this PR:
No other SAST exists either — no gosec, semgrep, trivy, govulncheck, snyk, or osv-scanner anywhere in
.github/.What changed
Advanced setup, config in git.
actions.github/workflows/**supply chaingocoordinator/,e2e/(one root module)javascript-typescriptconsole-ui/,admin-ui/,landing/pythonscripts/harnessesrustcoordinator/promptsidecarswiftprovider-swift/.github/workflows/codeql.yml—codeql-actionpinned by SHA (v4.37.7), matching repo convention..github/codeql/codeql-config.yml— excludes vendoredlibs/*submodules, build output, e2e crypto testdata. Query suite left at default on purpose;security-extendedroughly doubles alert count and an alert flood on a freshly re-enabled gate is how it gets switched off again..github/CODEOWNERS— narrow, no catch-all (so no new review requests on ordinary PRs); owner review on the CI/code-scanning config paths only.docs/operations/code-scanning.md— coverage table, the Swift tradeoff, how the gate resists removal, verification commands, and the 12-alert backlog.Behavior: before / after
flowchart TB subgraph Before["Before — default setup, switched off 2026-06-16"] direction TB B1[PR opened] --> B2["required checks:<br/>Coordinator Tests / Lint<br/>Provider Tests<br/>Console UI Lint & Build<br/>E2E Integration"] B2 --> B3{all green?} B3 -->|yes| B4[merge to master] B3 -->|no| B5[blocked] B4 --> B6["no static analysis<br/>anywhere in the pipeline"] B7["Security tab<br/>12 open alerts<br/>frozen at 2026-06-16"] -.->|"stale, reads as<br/>'we scan'"| B6 end subgraph After["After — advanced setup, config in git"] direction TB A1[PR opened] --> A2[existing 5 required checks] A1 --> A3["CodeQL Analyze x5<br/>actions - go - js/ts<br/>python - rust"] A2 --> A4{all green?} A3 --> A4 A4 -->|yes| A5[merge to master] A4 -->|no| A6[blocked] A5 --> A7["alerts uploaded per<br/>language category"] A8["weekly cron Mon 09:17 UTC"] --> A9["CodeQL Analyze swift<br/>cold build, non-blocking"] A9 --> A7 endCode: before / after
flowchart LR subgraph CBefore["Before"] direction TB C1["(no codeql config in repo)"] C2["GitHub UI toggle<br/>default-setup: off"] C3["ruleset 15055885<br/>5 required contexts"] C1 ~~~ C2 ~~~ C3 end subgraph CAfter["After"] direction TB D1[".github/workflows/codeql.yml"] --> D2["job analyze<br/>matrix: 5 langs<br/>fail-fast: false"] D1 --> D3["job analyze-swift<br/>if: schedule or dispatch"] D2 --> D4["init@v4.37.7 pinned"] D3 --> D4 D4 --> D5[".github/codeql/codeql-config.yml<br/>paths-ignore libs, build output"] D5 --> D6["analyze@v4.37.7<br/>category /language:*"] D7[".github/CODEOWNERS<br/>.github/workflows + codeql"] -.->|"review request<br/>on config edits"| D1 D8["ruleset 15055885<br/>+5 CodeQL contexts<br/>(applied after merge)"] -.->|"fail-closed:<br/>no file = no report = no merge"| D2 endDesign decisions worth reviewing
1. Swift is weekly and non-blocking.
provider-swiftdecrypts consumer prompts and holds the Secure Enclave key — the highest-value target here. It's also the most expensive to analyze: a cold build compiles the full Cmlx C++/Metal tree (~20 min onblacksmith-12vcpu-macos-latest), and Swift extraction requires a cold build because it traces real compiler invocations — restoring the SwiftPM cache thatci.ymluses would makeswift builda no-op and yield an empty database. Per-PR Swift would add ~30–45 min of paid macOS time to every PR and reintroduce the exact failure that killed the June setup.This is a real gap: a Swift regression can merge Monday and go unflagged until the next Monday. Accepted deliberately, documented, and revisitable.
2. No
paths/paths-ignoreon the triggers. A path-skipped job never reports its check context, and a required context that never reports blocks the merge forever — a doc-only PR would deadlock. Cost: every PR runs 5 cheap ubuntu jobs. Scope exclusions live in the config file instead. This is also what makes removal fail-closed.3. No
submodules: recursiveon the ubuntu jobs.libs/mlx*are vendored upstream trees; extracting them would bury first-party findings. The Swift job needs them to build, andpaths-ignorehas limited effect on traced compilation, so the weekly Swift run will surface upstream MLX findings — noted in the config file.Follow-ups (not in this PR)
actions/untrusted-checkout/high(codex.yml:59),go/disabled-certificate-check(coordinator/mdm/mdm.go:120), 3×js/clear-text-storage-of-sensitive-data(console-ui/src/hooks/useAuth.ts). The 7 mediums are mechanical — 5 workflows have no top-levelpermissions:block.CodeQL Analyze (...)contexts get added to ruleset15055885after this merges. Deliberately not before — with 100 open PRs, a required context that doesn't exist on their branches blocks all of them..github/dependabot.ymlhas nogithub-actionsecosystem, so the pinnedcodeql-actionSHAs won't auto-update.Test plan
actionlintclean against the repo's blacksmith runner-label vocabulary (.github/actionlint.yaml).CodeQL Analyze (...)jobs must go green here before merge.rustis the unproven one — it was never analyzed under default setup (listed as available, but no analysis records exist).🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.