Skip to content

OIDC authentication phase 10: push audit

Prompt

Michael asked for the next phase of the OIDC authentication plan to be planned. Phase 9 was merged but six of its thirteen done-criteria waited on a workflow_dispatch of the weekly cluster lanes, which no pull request can run, so he chose to dispatch first and plan afterwards rather than planning over an unproven phase. Phase 10 is the plan's last row: it runs PUSH-AUDIT.md over every phase that landed and records what it finds.

Planning effort

High. Not because the work is hard to describe -- the runbook is written -- but because the whole value of the phase is in the baseline, and this plan's baseline is contested in a way no previous audit's was. Two of its eleven rows are marked Superseded and point at another plan's merges, that other plan never ran a push audit, and those two rows carry 45% of the diff. Getting the range list wrong either wastes the phase on code two reviews have already read, or leaves the verification half of a relying party permanently unaudited. The judgement is in D2, and it is the first gate of the back brief.

Scope

In scope.

  • Running PUSH-AUDIT.md's wave 1 and wave 2 over the ranges D1 names, one pass per range, findings pooled -- including the two client-python ranges, which cannot be cited to an audit there because that repository has no PUSH-AUDIT.md (F6), and the one shakenfist/actions range, which has a runbook but did not run it (F7).
  • The cross-phase lens: the questions only answerable with every phase in front of you, which is what this phase exists for.
  • Recording the findings, grading them, and filing the advisory ones.
  • Closing out phase 9, which is this plan's first commit (D9).

Out of scope.

  • Fixing the findings. The implement-phase skill's push-audit section is explicit: findings are fixed in a follow-up pull request after the audit merges, and that pull request is what marks the plan Complete. This phase's pull request records the audit and leaves the plan In progress (D8).
  • Problems that predate the plan. They are issues, not findings.
  • The thirty-eight non-phase merges that touch this plan's files. D3 declines them and says why.
  • Phase 5, abandoned, and phases 1 and 2's plan files, which belong to the retired auth-federation plan. D2 takes their code and not their planning.
  • Re-auditing the documentation this plan did not write. docs/operator_guide/authentication.md is touched by eight of the ten code-bearing ranges and by a further eight merges outside them; only the plan's own lines are in scope.

What the survey found

Nine findings. The master plan's phase 10 section is four sentences long, and one of them is wrong in a way that would have invalidated the phase.

F1 -- the master plan asks for a range git cannot express, and the rule that forbids it postdates the ask

The phase 10 section says the audit runs over "the accumulated diff of every phase in this plan against develop, not the last phase's diff alone". That instruction cannot be followed. Every phase has merged, so develop...HEAD is empty, and there is no single range that is the union of eleven merges.

PUSH-AUDIT.md gained a What $RANGE means section on 2026-09-13 (f445a9d31e, Teach the audit runbook to read the Merged column) which rules the union out in terms: ranges come from the plan's Merged column, one pass per recorded merge, pooled, and "a plan with four merges gets four passes, not one pass over a union that git cannot express". The master plan's sentence predates that rule, so it is stale rather than wrong-headed. Corrected at source in this phase's planning commit; the section now points at the rule and at D1.

The same section's second half is sound and is kept: findings land as their own pull request, and the plan is not complete until each is resolved or declined in writing.

F2 -- every hash in the Merged column resolves, and all eleven are ancestors of develop

Checked with git cat-file -e <sha>^{commit} and git merge-base --is-ancestor <sha> origin/develop for all eleven in-repository hashes, plus the two in client-python and the one in shakenfist/actions in their own checkouts. All fourteen resolve; the eleven in this repository are ancestors of develop.

This check is here because it has failed before. The agent-operation-dependencies phase 6 audit found four of its own transcribed hashes unresolvable at execution time, which made the baseline the phase existed to get right unusable. So the hashes in D1 were resolved from the file, not retyped from the pull request list.

F3 -- auth-federation never ran a push audit, so phases 1 and 2 have never been audited by anything

The Execution table records phases 1 and 2 as Superseded, landing as PLAN-auth-federation.md phase 3's steps. That plan has been retired; read at the commit its link pins (6ba39f69f4), its Execution table has seven rows -- glossary, key objects, exchange, docs, OIDC plan refresh, secret types, leak detection -- and no push-audit row at all, with rows 6 and 7 Not started.

PUSH-AUDIT.md allows a range to be cited rather than read when it "is audited there, as part of the pull request that lands it". There is no audit to cite. So the three merges behind phases 1 and 2 -- 72187d2ff (#3556), c64269e63 (#3625), 1e7a167ea (#3641), together 19,837 insertions across 138 files -- have never been read by a push audit, and if this phase declines them, nothing ever will. That is D2.

F4 -- only one of the eleven in-repository ranges is plan-file-only

Range Date Files Non-plan Insertions
2bbe472eff (#4831, phase 0) 2026-11-07 3 0 2,012
72187d2ff (#3556, phase 1) 2026-08-02 53 49 5,223
c64269e63 (#3625, phases 1, 2) 2026-08-06 57 54 12,380
1e7a167ea (#3641, phase 2) 2026-08-08 28 27 2,234
d884dd56c1 (#4891, phase 3) 2026-11-12 33 30 5,705
666cff3d9a (#4913, phase 4) 2026-11-14 30 26 4,391
e37a8f8931 (#4975, phase 6) 2026-11-18 13 10 1,375
683b591c6b (#4979, phase 6) 2026-11-18 9 8 365
25c09b60ae (#5028, phase 8) 2026-11-22 25 22 4,854
d8af94878a (#5103, phase 9) 2026-11-27 16 13 5,471
d483e3bce8 (#5118, phase 9) 2026-11-29 2 2 72

Ten ranges carry code. Phase 0 was a decisions document and carries none, which is the shape the scheduler-reservations audit saw ten times; here it happens once.

F5 -- phase 9 has a second merge, which was not in the Merged column

d483e3bce8 (#5118, Install the Docker client, not just the daemon) is a two-file fix to tools/ci-idp-keycloak.sh and its seam test, landed 2026-11-29. Its own commit message says it was "found while verifying that phase 9 of the OIDC authentication plan was genuinely complete before planning its push audit": the first run of phase 9's provider script on a cluster node failed at sudo: docker: command not found, because Debian split the client out of docker.io at 26.1.4 and the script installs with --no-install-recommends.

It is phase 9's own code, fixed four days later, so it belongs in phase 9's Merged cell and therefore in this audit. Added by this phase's first commit. Phase 6 already sets the precedent of a two-merge cell.

F6 -- client-python has no PUSH-AUDIT.md, and its half of this plan is 2,934 lines of product code

git ls-tree origin/develop in /srv/kasm_profiles/mikal/vscode/src/shakenfist/client-python returns no PUSH-AUDIT.md. So neither cross-repository range can be cited:

Range Phase Files Insertions Product code
1bd5d3c (#454) 6 7 395 apiclient.py +34, commandline/namespace.py +105
9fa1ff2449 (#456) 7 16 9,078 commandline/auth.py +1,900, credentials.py +716, apiclient.py +318, main.py +76

Phase 7's range is the largest single unaudited body of code in this plan once the plan file (1,261 lines) and the 4,442 lines of tests come out: a new 716-line credential store that writes tokens to disk, and 1,900 lines of login command surface. It gets its own step at high effort, not a footnote (D5).

F7 -- the actions range exists, is tiny, and did not run that repository's own audit

Phase 9b landed as e7778e2aa7 (actions#271), one file, .github/workflows/smoke-cluster.yml, +33 lines: the Stand up an identity provider step. That repository does have a PUSH-AUDIT.md, but #271's body contains no audit section, so the citation route is unavailable and it is read here instead (D6). At thirty-three lines of YAML this costs almost nothing.

F8 -- the four wave 1 style greps and the six wave 2 sweep commands are clean across all ten code-bearing ranges, once five groups of hits are attributed

Run at planning time, per range, so no step re-derives them:

  • Lines over 120 characters -- five hits, in four ranges, every one the generated DESCRIPTOR = _descriptor_pool.Default()... line in shakenfist/protos/database_pb2.py or shakenfist/protos/shakenfist_enums_pb2.py. Generated; not a finding.
  • print() -- thirteen hits. Nine in 25c09b60ae and one in d8af94878a are in tools/idp-lab/capture-fixtures.py, a command-line tool where stdout is the interface. Three in d8af94878a are print('home=/home/debian'), print('ca=%s' % ...) and print(201) inside a Python stub that test_ci_idp_keycloak_seams.py writes to disk for the shell under test to invoke -- stdout is that stub's interface too.
  • New etcd references -- none, in any range.
  • SQL-pushdown violations -- one candidate, in 72187d2ff: for data in mariadb.get_all_trusted_issuers(): in shakenfist/trusted_issuer.py. At $TIP that line reads for data in mariadb.get_all_trusted_issuers(): # nopushdown: as above (shakenfist/trusted_issuer.py:504), so the annotation the rule asks for is present now. Whether the stated reason is a good one is a judgement for step 10c, not a grep result.
  • # noqa / # type: ignore / pragma: no cover -- two, both in tests: # noqa: BLE001 - reported below in shakenfist/tests/test_federation.py, which carries a reason, and a bare # noqa: E501 on a mock side-effect assignment in shakenfist/tests/external_api/test_login_mint.py, which does not. (This bullet first described the second as a nopushdown, which it is not; step 10b reproduced the line and it was corrected here.)
  • TODO / FIXME / HACK / XXX -- none, in any range.
  • subprocess. / os.system / shell=True -- seven, all in phase 9: six in shakenfist/deploy/shakenfist_ci/cluster_ci_tests/test_oidc_login.py, which drives sf-client as a subprocess by design, and one in the seams test. Input to step 10i, which asks whether anything caller-controlled reaches a shell.
  • New test functions -- 781 across the ten ranges, against 241 non-plan files changed. No range added product code with no tests.

F9 -- docs/operator_guide/authentication.md is the page where a later phase is most likely to have falsified an earlier one

Documentation pages by the number of code-bearing ranges touching them:

Page Ranges
docs/operator_guide/authentication.md 8
docs/developer_guide/authentication.md 6
docs/developer_guide/api_reference/authentication.md 6
docs/glossary.md 4
docs/release_notes/v07-v08.md 3
docs/user_guide/authentication.md, docs/operator_guide/database.md, ARCHITECTURE.md, AGENTS.md, tools/idp-lab/README.md 2 each

Eight separate phases editing one page is the condition that produced the scheduler-reservations audit's three blocking findings, where one page called a claim exceedance "a warning, not a refusal" four hundred lines from its own heading "The ceiling is enforced". This plan has a known candidate of exactly that shape, named by its own phases: phase 4's survey found that "a human login cannot validate against an issuer's configured audience at all", and phase 9 reworded a done-criterion because login_audience() returns attrs.client_id or None and never consults attrs.audience. Whether every page now agrees on that is step 10h's first question.

What the survey found to be correct

The master plan's phase 10 section is right that findings land as their own pull request and that a clean result is recorded in one sentence. The Execution table's repo attributions are right: phases 6 and 7 do name client-python, phase 9 does name actions, and those are the only cross-repository rows. Phase 5 is genuinely abandoned, with no merge and no plan file. The index.md denominator of 11 counts all eleven rows including the two superseded and the one abandoned, so the plan reaches Complete at 8 of 11; that is the existing convention and this phase keeps it.

Decisions

D1 -- the baseline is the Merged column: eleven in-repository ranges, two in client-python, one in shakenfist/actions. Each <sha>^1..<sha>, run once per range, findings pooled. The fourteen hashes are F2's and F4's tables plus F6's and F7's. No union pass, per F1.

D2 -- phases 1 and 2's three auth-federation ranges are IN the baseline. This is the contested decision and the first gate of the back brief.

For: they are rows in this plan's Execution table with merge commits recorded in its Merged column, which is exactly what PUSH-AUDIT.md says the range comes from. Nothing has ever push-audited them (F3) and nothing ever will if this phase declines them -- auth-federation is retired with no audit row. They are not peripheral to this plan's subject matter; they are the verification half of the relying party that phases 3, 4 and 6 are built on, which is why rows 1 and 2 exist rather than being deleted.

Against: they belong to another plan, they are four months old, and they are 19,837 of the 44,082 insertions in the in-repository baseline, so including them roughly doubles the phase.

The precedent is the agent-operation-dependencies audit, which faced the mirror image -- a merge in its subject matter that no phase owned -- included it, and found the phase's headline defect inside it, 617 lines that nothing else would ever have reviewed. The asymmetry decides it: declining is unrecoverable, and including costs money.

If Michael would rather the audit stop at the phases this plan executed itself, the baseline drops to eight in-repository ranges and 24,245 insertions, steps 10d and 10g get materially cheaper, and the phase records in one sentence that the validation half is unaudited and names auth-federation's missing audit row as the reason.

D3 -- the thirty-eight non-phase merges touching this plan's files are declined. The sweep: every merge on --first-parent between 72187d2ff^1 and develop whose diff touches shakenfist/external_api/auth.py, shakenfist/oidc_discovery.py, federation.py, trusted_issuer.py, mapping_rule.py, namespace_key.py, schema/trusted_issuer_attributes.py, tools/ci-idp-keycloak.sh, tools/idp-lab/ or any of the four authentication.md pages, excluding the eleven known ranges. Thirty- eight matched.

They are declined because shakenfist/external_api/auth.py is shared address space, not shared subject matter: the single largest non-phase edit to it is 7bd7bbd03c (#3790), which added 438 lines of capacity claim endpoints from the scheduler-reservations plan, and the next several are the api-input-validation phases, two consistency-fixes sweeps and the issue-fix workflow. Each belongs to a plan that owns it.

One was examined rather than counted, because it touches the one file nothing else owns. d1d7ab470a (#5029, One fact, written down twice) edits shakenfist/oidc_discovery.py -- but only its comments, correcting a prose claim about column widths after issue 4901 -- and refactors phase 6's own AuthNamespaceKeysEndpoint from a get_args schema to @api_base.use_declared_args, four days after phase 6 landed. It is still declined: the hoist is a mechanical application of a repository- wide convention, use_declared_args(parameters, defaults, ...) carries the load_default the old schema held, and the risk it would create -- a declared boolean the server reads as a truthy string -- is covered on every pull request by shakenfist/tests/external_api/test_boolean_sweep.py, which is derived: it walks declarations.handlers() and reports every declared boolean, so phase 6's detail parameter is in it by construction rather than by someone remembering to add it.

D4 -- pre-commit and tox run once, at $TIP, and the merge commits are not checked out. The transient-capacity-refusals audit checked out each of its ten merge commits and ran the hooks contemporaneously. Three of these ranges are from August; the answer there would be dominated by hooks that did not exist then, and by a tox environment four months of dependency pins away. What runs per range is F8's ten grep-level commands, where a range-specific defect actually shows.

D5 -- client-python's two ranges are audited here, at high effort, under the plan-push-audit-phase floor checklist. F6 is why they cannot be cited. Phase 7's range is credential-handling product code with an on-disk token cache, so it is read as product code and not as a compliance checklist: the floor's five items each get a verdict, and so do this plan's own questions about cache file modes, token printing and degradation against a server that lacks the endpoints.

D6 -- shakenfist/actions#271 is read here, not cited. F7: the repository has a runbook, the pull request did not run it, thirty-three lines of YAML.

D7 -- a finding must quote a line at $TIP, or it is not a finding. $TIP is the develop commit the phase branches from, 689d1f6d01. Every candidate is confirmed against the file as it stands now and classified as: live (the defect is in the tree at $TIP), superseded (a later range fixed it -- name the range), or historical (true of the diff, not of the tree). Only live findings are graded. A report that names no file and no line is rejected and the step is re-run.

D8 -- this pull request does not mark the plan Complete, and does not fix anything. The implement-phase skill's push-audit section: findings are fixed in a follow-up pull request which records this phase's merge commit and marks the plan Complete. So this phase's close-out sets phase 10 to Complete with no Merged cell -- a phase cannot record its own merge -- leaves the plan In progress at 8 of 11, and the follow-up moves it to Complete. Advisory findings are filed as issues from this pull request; blocking ones are recorded here and fixed there.

D9 -- phase 9's close-out is this phase's first commit, and it records the lane result rather than deferring it. Six of phase 9's thirteen done-criteria waited on a workflow_dispatch of scheduled-tests.yml, which no pull request can run. The dispatch of 2026-11-28 (46115316781) failed in phase 9's own Stand up an identity provider step, which is what #5118 fixes (F5); a fresh dispatch of 46247053568 against 689d1f6d01 was made at the start of this planning session. Phase 9's Merged cell becomes d8af94878a (#5103) and d483e3bce8 (#5118), with actions e7778e2aa7 (#271) noted.

That run has now reported, and it failed two steps before phase 9's own step: at Build the smoke cluster, because the slim-tier topology's under-cloud instance -- 6 vCPU and 12,288 MiB, which is the memory phase 9's finding 3 chose this lane for -- was refused nine times over 555 seconds with 507 ... sufficient_idle_memory against sfcbr. Stand up an identity provider was skipped, so #5118's fix is still unproven and all six criteria stay open. The other three smoke-test lanes in that run passed; a fifth job, Node lifecycle, failed separately for a reason of its own.

So phase 9 is recorded Complete on its code, with its six lane-settled criteria recorded as still unmet, both dispatches and their two distinct causes written into its Execution notes, and the lane's inability to place its own instance carried as its future work. The precedent is the scheduler-reservations and agent-operation-dependencies plans, which each recorded a phase Complete with a live proof that no pull request could produce. Nothing about the audit changes: it reads diffs, not a cluster.

D10 -- the cross-phase lens gets its own step, and its first question is named. This is the only lens no per-phase audit could have run, so it is step 10k and not a clause in another step. Its named question comes from the plan's own history: phase 4's survey found that a human login cannot validate against audience at all, phase 9 reworded a done-criterion for the same reason, and docs/operator_guide/authentication.md was edited by eight ranges. The sibling question -- what one phase published that another was meant to consume -- is asked the same way the scheduler-reservations audit asked it, by enumerating the capability tokens, configuration options, API fields and audit event keys these ranges added and asking what reads each one.

Step plan

Every step works in /srv/kasm_profiles/mikal/vscode/src/shakenfist/shakenfist-wt-oidc-p10, takes $TIP as 689d1f6d01 and the ranges as D1 defines them, and classifies every finding under D7. Read-only steps change no files; the management session records each step's report into this plan under a ### heading named for the step.

The groups the judgement lenses read, rather than range by range:

  • G1 -- the validation half (D2): 72187d2ff, c64269e63, 1e7a167ea. Per-issuer validators, the OIDC validator, JWKS fetch and cache, mapping rules, trusted issuers. 138 files, +19,837.
  • G2 -- discovery and the login mint: d884dd56c1, 666cff3d9a. shakenfist/oidc_discovery.py, client_id, oidc_scopes, the discovery endpoint -- which is admin-gated, not unauthenticated; see the correction in 10e -- and the credential set at login. 63 files, +10,096.
  • G3 -- key metadata: e37a8f8931, 683b591c6b. The detail view, expiry, scopes, provenance and the system-caller split. 22 files, +1,740.
  • G4 -- the operator surface and the lab: 25c09b60ae. The Keycloak and Authentik walkthroughs, tools/idp-lab/. 25 files, +4,854.
  • G5 -- functional coverage: d8af94878a, d483e3bce8. tools/ci-idp-keycloak.sh, the cluster test, the page parser and its fixtures. 18 files, +5,543.
  • G6 -- the client half (D5): client-python 1bd5d3c, 9fa1ff2449. 23 files, +9,473.
  • G7 -- the lane step (D6): actions e7778e2aa7. 1 file, +33.
Step Effort Model Isolation Brief for sub-agent
10a high management session none Done in the planning commit. Close out phase 9 per D9 -- set its Merged cell to d8af94878a (#5103) and d483e3bce8 (#5118), note actions e7778e2aa7 (#271), record both lane dispatches and their two distinct causes in its Execution notes, mark its six lane-settled criteria still unmet, and carry the slim-tier placement failure as its future work -- then write this plan and register it in the master plan's Execution table and docs/plans/index.md, correcting the phase 10 section's superseded range instruction per F1. Two commits: Close out the functional coverage phase. and Plan the OIDC push audit.
10b low sonnet none Wave 1 and the wave 2 mechanical sweep. First, once, at $TIP, each under timeout 2400: pre-commit run --all-files; tox; tools/mermaid-lint.sh (read its exit status directly -- piping it through tail or grep reports the filter's status and turns every failure green); tox -e genprotos && git diff --exit-code shakenfist/protos (four ranges change protos/database.proto). Do not check out any merge commit; D4 says why. Then, for each of the ten code-bearing in-repository ranges of D1 separately, run PUSH-AUDIT.md's four wave 1 style greps and the six commands of its wave 2 mechanical sweep, substituting git diff <sha>^1 <sha> for $RANGE. Never use git log on a range. For 2bbe472eff, instead confirm F4: that it is a merge with two parents (git rev-list --parents -n1) and that git diff --name-only lists nothing outside docs/plans/. F8 already has every expected hit and its attribution -- your job is to confirm F8 is still true and to report anything F8 does not predict, which is the interesting output. Record every command and its literal output, or "no output", in a new ## Findings -> ### Wave 1 section of this plan, one #### <sha> sub-heading per range whose second word is the bare sha. Fix nothing. If pre-commit or tox fails, record the failing test names, check with git diff --name-only <sha>^1 <sha> whether any range touched the failing module, and carry on. Commit subject: Record wave 1 of the OIDC push audit.
10c medium sonnet none Style conformance, judgment portion. Read-only. Apply PUSH-AUDIT.md's Style conformance — judgment portion brief to G1 to G5 together. Skip shakenfist/protos/*_pb2*, which is generated. The rules most at risk here: the three-layer _direct_* / _grpc_* / public pattern in shakenfist/mariadb.py, which G1, G2 and G3 each added accessors under (get_all_trusted_issuers, the mapping-rule accessors, the namespace-key metadata reads) -- check every one has all three layers and that no non-database-daemon path calls _direct_*; the SQL-pushdown rule, including the judgement F8 left open, whether # nopushdown: as above at shakenfist/trusted_issuer.py:504 states a reason that is actually true of that loop; and the unit/field-rename rule across the expiry and scope fields G3 publishes. Confirm each candidate at $TIP and classify under D7. Return findings with file, line, range and grade, or "Style checks passed" plus the files read.
10d high opus none 2a code quality over G1, the validation half. Read-only, and this is the step D2 exists to buy. 138 files and +19,837, never read by any push audit (F3), four months old, and the foundation every later phase stands on. Apply PUSH-AUDIT.md's 2a brief and all its shared blocks. Where to spend it: shakenfist/federation.py (the JWKS fetch, its cache and its failure modes), shakenfist/trusted_issuer.py, shakenfist/mapping_rule.py, shakenfist/namespace_key.py, and the validator split in shakenfist/external_api/auth.py. The specific questions: does the JWKS cache have a bound, an expiry and a failure path that fails closed rather than open, and can a slow or hostile issuer hold a request open; is signature verification separated from claim verification such that a token failing one cannot pass through on the other; does every validator reject an algorithm it did not expect (alg: none, a symmetric algorithm where an asymmetric key was configured); and is get_all_trusted_issuers() on a request path. Confirm every candidate at $TIP -- four months of other plans have edited these files, so a defect in the diff may be gone, which is D7's superseded -- and classify under D7. Return findings with file, line, range, grade and classification.
10e high opus none 2a code quality over G2 and G3 -- discovery, the login mint and key metadata. Read-only. 85 files and +11,836. Apply PUSH-AUDIT.md's 2a brief and its shared blocks. Where to spend it: shakenfist/oidc_discovery.py, the discovery and login endpoints in shakenfist/external_api/auth.py, and the metadata view. The specific questions: [premise corrected after execution: the discovery endpoint is admin-gated, @api_base.caller_is_admin at auth.py:1710, and its path takes an issuer name. The brief as issued said it was unauthenticated. 10e established the real public surface and 10i caught the same error independently; neither step's findings rest on it.] establish what an unauthenticated caller can learn and what it can make the server do -- in particular whether it can cause an outbound fetch to an attacker-named URL, and whether the four endpoint fields are validated before they are stored or used; whether login_audience() returning attrs.client_id or None is handled by every caller, including the None case; whether the credential set minted at login is bounded (how many keys, for how long, and what happens on a second login); and whether the detail view's system-versus-owner split is decided in one place or in several, given phase 6's own survey found its docstring falsified by phase 4. Confirm at $TIP, classify under D7, return findings with file, line, range, grade and classification.
10f medium opus none 2a code quality over G4 and G5 -- the lab, the CI provider script and the functional test. Read-only. 43 files and +10,397, almost none of it product code, which changes what to look for: this is machinery that runs as root on a CI node and handles real tokens. Apply PUSH-AUDIT.md's 2a brief. Where to spend it: tools/ci-idp-keycloak.sh and tools/idp-lab/*.sh -- quoting, set -e/set -u, whether a failed step can leave the node in a state the next step reads as success, and whether the --no-install-recommends package list #5118 fixed is now complete (F5 is one occurrence of that class; ask whether jq, curl or openssl are assumed present the same way docker was); tools/idp-lab/capture-fixtures.py and whether its scrubbing is complete by construction or by enumeration, given phase 9's Results record that a form-only scrub missed an auth session identifier inside a <script>; and the committed fixtures under shakenfist/tests/files/idp/ -- read them and confirm no session code, grant code, signing key or real hostname survives. Confirm at $TIP, classify under D7. Return findings with file, line, range, grade and classification.
10g high opus worktree (client-python) G6: the client half, audited from here (D5). Read-only, in a worktree of /srv/kasm_profiles/mikal/vscode/src/shakenfist/client-python at develop. Ranges 1bd5d3c^1..1bd5d3c (#454) and 9fa1ff2449^1..9fa1ff2449 (#456). That repository has no PUSH-AUDIT.md (F6), so apply the five numbered items of the plan-push-audit-phase floor checklist quoted from PLAN-TEMPLATE.md, giving each a verdict or a sentence saying why it does not apply -- and then read shakenfist_client/credentials.py (+716) and shakenfist_client/commandline/auth.py (+1,900) as product code, because that is where the risk is. The specific questions: what mode is the token cache file created with, and is the mode set before the token is written or after; does any command, error path, traceback or --verbose rendering print a token, a refresh token, a client secret or a namespace key, checked against that module's own docstring promise which phase 9's done-criteria rely on; does logout discard everything login wrote, including on a partial login; does the device flow bound its polling and respect interval and expires_in rather than spinning; and does apiclient feature-detect the login and metadata endpoints and degrade rather than traceback against a server that lacks them. Confirm each finding against client-python's develop tip, not against the 2026-11 tree. Record "client-python should carry its own PUSH-AUDIT.md" as a Future work item for that repository; do not add one. Return a per-item report naming the files and functions read.
10h medium opus none 2c documentation review over G1 to G5. Read-only. Apply PUSH-AUDIT.md's 2c brief and all its shared blocks. Start where F9 says the risk is: docs/operator_guide/authentication.md, edited by eight of the ten code-bearing ranges. Then docs/developer_guide/authentication.md (6), docs/developer_guide/api_reference/authentication.md (6), docs/glossary.md (4), docs/release_notes/v07-v08.md (3), docs/user_guide/authentication.md, docs/operator_guide/database.md, ARCHITECTURE.md, AGENTS.md, docs/developer_guide/ci.md and tools/idp-lab/README.md. Check every configuration option, API field, endpoint path, scope name, claim name and status code against the code at $TIP. The question that matters: is any fact about this plan stated differently on two pages. The named candidate is the audience one -- login_audience() (shakenfist/external_api/auth.py) returns attrs.client_id or None and never reads attrs.audience, phase 4's survey said an operator following the guide would configure logins that can never succeed, and phase 9 reworded a done-criterion rather than change the product; say what each page now tells an operator to put in audience and whether any of them still implies it is checked. The second named candidate is phase 8's own survey finding, that claim matching refuses a non-string claim value while a group claim is an array in both Keycloak and Authentik -- say whether every page that advises a group binding now says so. Also apply plan-references-in-code and plan-phase-references to every range's added lines. Do not review this plan's own phase plan files. Return findings, or "No documentation gaps found" plus the pages read.
10i high opus none 2d security review over G1 to G5, plus G7. Read-only. Apply PUSH-AUDIT.md's 2d brief. This is a login path, so the whole of it is in scope rather than one area, but spend the budget in this order. (1) Token handling: can a JWT, an identity token, a client secret, a refresh token or a minted namespace key reach a log line, an audit event, an exception message or an API response body -- auth-federation phase 6 introduced secret types for this and phase 7 was Not started, so the leak-detection half was never built; check against shakenfist/namespace_key.py's secret types and .gitleaks.toml -- which 666cff3d9a edited, not d884dd56c1 as this brief said. (2) The unauthenticated surface: [premise corrected after execution: the discover route is admin-gated and takes an issuer name. The real public surface is the four @api_base.public methods at auth.py:184, :2647, :3003 and :3131.] GET /auth/login is reachable without credentials -- establish what it discloses about configured issuers, whether either can be made to fetch an attacker-named URL, and whether either is rate-limited or can be used as an oracle for which issuer uuids exist. (3) Authorisation: that a login cannot mint a key for a namespace the identity is not bound to, including by supplying a namespace in a body while authenticated for another, and that the detail metadata view does not hand provenance naming a real person to every caller who can read the namespace -- phase 6's own survey raised that and the fix is the system split, so verify the split holds at $TIP rather than reading its docstring. (4) Injection and shell safety: the seven subprocess hits F8 attributes, and whether any claim value, issuer URL or namespace name reaches a shell, a SQL string or a filesystem path by interpolation. (5) Floor item 3 over every range's added lines and over e7778e2aa7 in the actions checkout: no secret, token, private hostname or non-placeholder IP address. Return findings with severity, file, line, vulnerability class and recommended fix, each confirmed at $TIP.
10j medium opus none 2b test review over G1 to G6. Read-only. Apply PUSH-AUDIT.md's 2b brief and its functional-test-coverage block. 781 new test functions across the ranges (F8), so the question is not quantity. Four questions beyond the brief. (1) The validation half is tested against a throwaway in-process JWKS server, which the master plan itself calls "the right trade for testing validation and no use at all for testing a flow" -- say precisely which assertions rest on that mock and which would survive a real provider, and whether the mock is taught the same shape as the code in any place where both could be wrong together. (2) Phase 9's functional test is weekly, not merge-gating, by a deliberate decision about primary memory -- say which of this plan's behaviours now have no merge-gating coverage at all, and whether test_ci_oidc_login_guard.py genuinely fails if someone moves the provider's lane into the merge queue, which is what phase 9 claims holds that decision in place. Then the question R5 turned up: both dispatches of that lane have failed without ever reaching the provider's own step, the second on an under-cloud capacity refusal for the very memory size the lane was chosen for, so say what this plan's coverage is actually worth today and whether anything would tell anyone that the provider step has still never run -- a weekly lane whose failures arrive as a ci-failure issue can report red for a reason that has nothing to do with the thing it was built to test. (3) The device-login page parser is unit tested against two committed captures; say whether a provider upgrade that changes those pages fails loudly in CI or silently stops testing anything. (4) test_boolean_sweep.py, test_required_sweep.py and test_parameter_declarations.py are derived sweeps that D3 relies on -- confirm they are genuinely derived from declarations.handlers() and that this plan's endpoints are in them by construction, because D3's decline of #5029 rests on that. Return findings grouped by file, with grades and classifications.
10k high opus none The cross-phase lens (D10). Read-only, and this is the step the phase exists for -- no per-phase audit could have run it. Answer three questions in order and do not generalise beyond them. (1) What did one phase assume that another changed? The named candidate is the audience contract: phase 0 settled that a human session exchanges an IdP token for a namespace key, phase 4's survey found an identity token's audience is the client identifier and not the cluster API URL the operator guide names, phase 6 found phase 4 had falsified its own view's docstring, and phase 9 reworded a done-criterion rather than change the product. Trace that one fact through all five phases and say where it is now stated wrongly, in code, comment, docstring, test name or page. (2) What did a phase publish that another was meant to consume? Enumerate every configuration option, API field, scope name, claim name, capability token, audit event key and exception type these ranges added, and for each say what advertises it, what consumes it, and whether a client that does not know it degrades or breaks. Name the enumeration method, not just the result. The known shape of this defect in this repository is a server publishing a capability no client reads, and this plan has a client half that landed in a different repository at a different time, which is the condition that produces it. (3) What is only missing when you look at the whole? A helper that exists twice because two phases each added it; a code path no phase's tests reach because each tested its own half; a documented operator workflow that needs a command from one phase and a field from another and was never run end to end -- the Keycloak walkthrough plus the device login is exactly that shape, and phase 8's group-claim finding says one such walkthrough has never been able to work. State plainly where the answer is "they agree"; that is a result. Confirm every claim at $TIP per D7. Return findings with file, line, the phases involved, grade and classification.
10l high management session none Triage, disposition and close-out. Not a sub-agent: grading and disposition are decisions. Pool 10b to 10k's findings. Grade each blocking or advisory, give each a disposition, and spot-check one "still true at $TIP" claim per report against the file itself before recording it -- a report that names no files or functions is rejected and re-run. Present the graded table at the back brief's second gate before filing anything. Then file the advisory findings as issues (with Michael's authorisation, per the repository's issue conventions) or as Future work entries, record the blocking ones and say that the follow-up pull request fixes them (D8), and write ### Disposition into this plan's Findings section. Write this plan's Outcome: what each step read, what was found, and "nothing" where that is the answer -- PUSH-AUDIT.md says a clean result is recorded in one sentence and is a real result. Add an Audit of phases 0 to 9 subsection to the master plan's phase 10 section. Set phase 10 to Complete with no Merged cell, leave the plan In progress at 8 of 11 per D8, run python3 tools/check-plan-status.py and pre-commit run --all-files. Run the private-data probe set over every line this phase adds before committing. Commit subject: Record the OIDC push audit.

10c to 10k are independent of each other and run in parallel once 10b has reported; 10b's wave 1 output is an input to 10d, 10e, 10f and 10i, so those take it from this plan's Findings section rather than re-running the sweep.

Risks and mitigations

R1 -- the audit rubber-stamps merged code. It is the standing failure of this phase in every plan, and four months and two reviews per pull request make "it has been fine in production" a comfortable answer. Mitigation: D7's classification, which forces a quoted line at $TIP and rejects a finding that cannot produce one; the group structure, so each lens reads a subsystem rather than a diff; 10l's spot-check of one claim per report; and 10k carrying the whole-plan question as a step rather than a clause.

R2 -- G1 swallows the budget. 19,837 insertions is 45% of the baseline and the oldest code in it, and a reader who tries to read all of it will read none of it carefully. Mitigation: 10d's brief names five files and four questions rather than asking for a review of the range, and the questions are the ones that would be expensive to get wrong in a token validator. If D2 is overturned at the back brief, this risk goes away and so does the step.

R3 -- a finding is really a finding against another plan. auth.py is shared address space (D3), so a defect found inside one of this plan's ranges may belong to the scheduler-reservations claims endpoints or to the input-validation phases that edited the same file. Mitigation: D7 asks every finding to name its range, and 10l's triage checks each one's blame before filing; a defect that turns out to predate the plan is filed as an issue, not recorded as a finding, per the implement-phase skill.

R4 -- the client half is audited against a moving tip. client-python has had merges since #456, and 10g confirms findings against that repository's develop rather than the 2026-11 tree, so a defect may already be fixed there. Mitigation: that is the correct answer and D7 has a word for it, superseded; 10g is told to name the commit that fixed it rather than to report it as live.

R5 -- phase 9's lane is still red when this phase wants to commit. This fired, before the plan was committed: run 46247053568 failed at Build the smoke cluster on an under-cloud capacity refusal, two steps before phase 9's own step (D9). Mitigation, as taken: D9 decouples them -- the audit reads diffs, not a cluster -- so the close-out records the failure and its cause, phase 9 is Complete on its code with six criteria open, and 10j is told to treat a weekly lane that cannot place its own instance as part of its coverage question rather than as someone else's problem.

Definition of done

  • Every one of D1's fourteen ranges has a #### <sha> entry under ## Findings -> ### Wave 1 with the literal output of PUSH-AUDIT.md's ten per-range commands, or the words "no output", and 2bbe472eff has F4's two-parent and nothing-outside-docs/plans/ confirmation instead. Checked by counting the headings, not by reading the prose: the count is eleven in-repository plus the three cross-repository entries.
  • pre-commit run --all-files and tox were run once at $TIP and their results recorded, and no merge commit was checked out. Falsifiable from the recorded commands.
  • Every finding names a file, a line and a range, and carries one of D7's three classifications. A finding with no line is not in the record.
  • F8 is either confirmed range by range or corrected. A step that reports a style hit F8 already attributes, without saying F8 is wrong, is re-run.
  • The audience contract is traced through phases 0, 4, 6 and 9 and a verdict recorded for each of: login_audience()'s code, docs/operator_guide/authentication.md, docs/developer_guide/authentication.md, the metadata view's docstring, and phase 9's reworded criterion. Five verdicts, not a paragraph.
  • The group-claim finding from phase 8 has a verdict against every page that advises a group binding.
  • client-python's two ranges have a per-item verdict against the five floor items plus 10g's five named questions, and the token cache's file mode is stated as an octal read from the code.
  • No line this phase adds contains a token, a key, a credential, a private hostname or a non-placeholder IP address. Checked with the private-data probe set, not by reading.
  • Phase 9's Merged cell names d8af94878a and d483e3bce8, and each of its six previously unticked criteria carries a sentence saying why it is still unmet -- done in the planning commit, since run 46247053568 failed before reaching the step that would have settled them (D9).
  • The master plan's phase 10 section no longer asks for an accumulated diff (F1), and its Audit of phases 0 to 9 subsection records what was found, including "nothing" where that is the answer.
  • Phase 10 reads Complete with no Merged cell; the plan reads In progress at 8 of 11; python3 tools/check-plan-status.py agrees.
  • pre-commit run --all-files passes on the branch.

Checks run at planning time

Run in /srv/kasm_profiles/mikal/vscode/src/shakenfist/shakenfist at 689d1f6d01 unless stated:

  • All fourteen Merged hashes resolved with git cat-file -e <sha>^{commit}; the eleven in-repository ones confirmed ancestors of origin/develop with git merge-base --is-ancestor. All pass (F2).
  • git diff --shortstat and --name-only per range, for F4's table and the group sizes.
  • The four wave 1 style greps and the six wave 2 sweep commands, per range, with every hit attributed to a file (F8).
  • git ls-tree --name-only origin/develop | grep -i push in client-python: no PUSH-AUDIT.md (F6). The same check in shakenfist/actions: present (F7).
  • gh pr view 271 --repo shakenfist/actions --json body: no audit section (F7).
  • git show 6ba39f69f4:docs/plans/PLAN-auth-federation.md: seven Execution rows, no push-audit row (F3).
  • git log -S'What \$RANGE` means' -- PUSH-AUDIT.md:f445a9d31e`, 2026-09-13 (F1).
  • The D3 sweep: git rev-list --merges --first-parent 72187d2ff^1..origin/develop filtered by git diff --name-only <m>^1..<m> over the ten subject-matter paths, less the eleven known ranges. Thirty-eight matches, each read far enough to attribute to an owning plan or sweep; d1d7ab470a read hunk by hunk.
  • shakenfist/tests/external_api/test_boolean_sweep.py read to confirm it is derived from declarations.handlers(), which D3 depends on.
  • grep -n get_all_trusted_issuers at $TIP: the annotation F8 reports is present at shakenfist/trusted_issuer.py:504.

Execution notes

Back brief, 2026-11-30 (AEDT). Both gates were put to Michael before any step ran.

  • Gate 1, D2: answered as planned. The baseline is all fourteen ranges, G1 included -- the three auth-federation merges stay in, and step 10d is the budget that buys them their only audit. The alternative offered was the eight ranges this plan executed itself, at 24,245 insertions; it was declined.
  • Gate 2, 10l's graded table, stands as written: the table is agreed before anything is filed.
  • The pull request is authorised for this phase, so 10l ends with the push and the pull request rather than stopping at the commits.

Two phase 9 matters were authorised in the same answer and are done. The slim-tier placement failure is filed as #5138, and scheduled-tests.yml was dispatched again as run 46299313262. Neither is this phase's work: the audit reads diffs, so the lane's outcome changes nothing here, and it is recorded against phase 9's future work item instead. Step 10j's question about what this plan's coverage is actually worth is unaffected either way, because it asks about the state of the lane and not about one run of it.

Two premises in this plan were wrong, and are corrected above. The survey described /auth/issuers/<uuid>/discover as unauthenticated; it is @api_base.caller_is_admin and its path takes an issuer name (shakenfist/external_api/auth.py:1710, shakenfist/external_api/app.py:742). And 10i's brief attributed the .gitleaks.toml edit to d884dd56c1 when it was 666cff3d9a. Both went into step briefs before anyone checked them, which is the failure the runbook warns about -- an agent builds on a claim in its brief and the wrong one comes back looking like its own finding. Here it did not: 10e reported the first as an error, and 10i had caught both independently and graded against the corrected facts before being told. The step rows are annotated rather than rewritten, so what each step was actually asked stays legible.

A correction made while committing. The close-out first said the other three lanes in run 46247053568 passed. Three of the four smoke-test lanes passed; a fifth job, Node lifecycle, failed separately at Check logs against an unreachable sf-absent, and two lanes were skipped. Both this plan and phase 9's were corrected before the plan was committed.

Findings

Wave 1

Run at 689d1f6d01's content in the worktree as it stands (HEAD f8d17e2a03, three commits of docs/plans/ only above it), by the step 10b sub-agent. No commit was checked out. Full output is kept in the session scratchpad; a line longer than 100 characters is cut at 100 and marked [...], which affects only the generated DESCRIPTOR = ... lines.

Part A, once:

  • pre-commit run --all-files -- exit 0. Every hook Passed.
  • tox -- exit 0. py3: 8782 passed, 0 failed. flake8 OK. cover OK (8782 passed, 0 failed). congratulations :).
  • tools/mermaid-lint.sh -- exit 0 (read directly, unpiped). ok ARCHITECTURE.md, ok docs/developer_guide/state_machine.md.
  • tox -e genprotos && git diff --exit-code shakenfist/protos -- exit 0 from both; git diff printed no output.

Because nothing failed, no failing module needed attributing to a range.

72187d2ff

git diff 72187d2ff^1 72187d2ff -- '*.py' | grep -nE '^\+[^+].{120,}'

2735:+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x64\x61tabase.proto\x12\x11 [...]
3501:+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16shakenfist_enums.proto\x12\x [...]

git diff 72187d2ff^1 72187d2ff -- '*.py' | grep -nE '^\+[^+].*\bprint\('

no output

git diff 72187d2ff^1 72187d2ff -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff 72187d2ff^1 72187d2ff -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

5430:+        for data in mariadb.get_all_trusted_issuers():

git diff 72187d2ff^1 72187d2ff -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff 72187d2ff^1 72187d2ff -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

no output

git diff 72187d2ff^1 72187d2ff --stat | tail -1

 53 files changed, 5223 insertions(+), 364 deletions(-)

git diff 72187d2ff^1 72187d2ff -- '*.py' | grep -cE '^\+\s*def test_'

87

git diff 72187d2ff^1 72187d2ff --name-only -- 'docs/*' '*.md'

docs/developer_guide/authentication.md
docs/glossary.md
docs/operator_guide/authentication.md
docs/plans/PLAN-auth-federation-phase-02-key-objects.md
docs/plans/PLAN-auth-federation-phase-03-exchange.md
docs/plans/PLAN-auth-federation.md
docs/plans/index.md

git diff 72187d2ff^1 72187d2ff -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

no output

c64269e63

git diff c64269e63^1 c64269e63 -- '*.py' | grep -nE '^\+[^+].{120,}'

5061:+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x64\x61tabase.proto\x12\x11 [...]

git diff c64269e63^1 c64269e63 -- '*.py' | grep -nE '^\+[^+].*\bprint\('

no output

git diff c64269e63^1 c64269e63 -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff c64269e63^1 c64269e63 -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

no output

git diff c64269e63^1 c64269e63 -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff c64269e63^1 c64269e63 -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

9567:+            except Exception as e:      # noqa: BLE001 - reported below

git diff c64269e63^1 c64269e63 --stat | tail -1

 57 files changed, 12380 insertions(+), 351 deletions(-)

git diff c64269e63^1 c64269e63 -- '*.py' | grep -cE '^\+\s*def test_'

311

git diff c64269e63^1 c64269e63 --name-only -- 'docs/*' '*.md'

AGENTS.md
ARCHITECTURE.md
docs/developer_guide/api_reference/artifacts.md
docs/developer_guide/api_reference/authentication.md
docs/developer_guide/authentication.md
docs/developer_guide/state_machine.md
docs/glossary.md
docs/operator_guide/authentication.md
docs/operator_guide/database.md
docs/plans/PLAN-auth-federation-phase-03-exchange.md
docs/plans/PLAN-auth-federation.md
docs/plans/index.md
docs/release_notes/v07-v08.md
docs/user_guide/objects.md

git diff c64269e63^1 c64269e63 -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

no output

1e7a167ea

git diff 1e7a167ea^1 1e7a167ea -- '*.py' | grep -nE '^\+[^+].{120,}'

no output

git diff 1e7a167ea^1 1e7a167ea -- '*.py' | grep -nE '^\+[^+].*\bprint\('

no output

git diff 1e7a167ea^1 1e7a167ea -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff 1e7a167ea^1 1e7a167ea -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

no output

git diff 1e7a167ea^1 1e7a167ea -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff 1e7a167ea^1 1e7a167ea -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

no output

git diff 1e7a167ea^1 1e7a167ea --stat | tail -1

 28 files changed, 2234 insertions(+), 150 deletions(-)

git diff 1e7a167ea^1 1e7a167ea -- '*.py' | grep -cE '^\+\s*def test_'

60

git diff 1e7a167ea^1 1e7a167ea --name-only -- 'docs/*' '*.md'

AGENTS.md
ARCHITECTURE.md
docs/operator_guide/authentication.md
docs/plans/PLAN-auth-federation-phase-03-exchange.md
docs/release_notes/v07-v08.md

git diff 1e7a167ea^1 1e7a167ea -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

no output

d884dd56c1

git diff d884dd56c1^1 d884dd56c1 -- '*.py' | grep -nE '^\+[^+].{120,}'

1669:+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x64\x61tabase.proto\x12\x11 [...]

git diff d884dd56c1^1 d884dd56c1 -- '*.py' | grep -nE '^\+[^+].*\bprint\('

no output

git diff d884dd56c1^1 d884dd56c1 -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff d884dd56c1^1 d884dd56c1 -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

no output

git diff d884dd56c1^1 d884dd56c1 -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff d884dd56c1^1 d884dd56c1 -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

no output

git diff d884dd56c1^1 d884dd56c1 --stat | tail -1

 33 files changed, 5705 insertions(+), 376 deletions(-)

git diff d884dd56c1^1 d884dd56c1 -- '*.py' | grep -cE '^\+\s*def test_'

106

git diff d884dd56c1^1 d884dd56c1 --name-only -- 'docs/*' '*.md'

docs/developer_guide/api_reference/authentication.md
docs/developer_guide/authentication.md
docs/glossary.md
docs/operator_guide/authentication.md
docs/operator_guide/database.md
docs/plans/PLAN-oidc-authentication-phase-03-discovery.md
docs/plans/PLAN-oidc-authentication.md
docs/plans/index.md

git diff d884dd56c1^1 d884dd56c1 -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

no output

666cff3d9a

git diff 666cff3d9a^1 666cff3d9a -- '*.py' | grep -nE '^\+[^+].{120,}'

1357:+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x64\x61tabase.proto\x12\x11 [...]

git diff 666cff3d9a^1 666cff3d9a -- '*.py' | grep -nE '^\+[^+].*\bprint\('

no output

git diff 666cff3d9a^1 666cff3d9a -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff 666cff3d9a^1 666cff3d9a -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

no output

git diff 666cff3d9a^1 666cff3d9a -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff 666cff3d9a^1 666cff3d9a -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

2280:+                side_effect=self.mock_mariadb._mariadb_get_mapping_rule_attributes  # noqa: E5 [...]

git diff 666cff3d9a^1 666cff3d9a --stat | tail -1

 30 files changed, 4391 insertions(+), 290 deletions(-)

git diff 666cff3d9a^1 666cff3d9a -- '*.py' | grep -cE '^\+\s*def test_'

115

git diff 666cff3d9a^1 666cff3d9a --name-only -- 'docs/*' '*.md'

docs/developer_guide/api_reference/authentication.md
docs/developer_guide/authentication.md
docs/glossary.md
docs/operator_guide/authentication.md
docs/plans/PLAN-oidc-authentication-phase-03-discovery.md
docs/plans/PLAN-oidc-authentication-phase-04-credential-set.md
docs/plans/PLAN-oidc-authentication.md
docs/plans/index.md

git diff 666cff3d9a^1 666cff3d9a -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

no output

e37a8f8931

git diff e37a8f8931^1 e37a8f8931 -- '*.py' | grep -nE '^\+[^+].{120,}'

no output

git diff e37a8f8931^1 e37a8f8931 -- '*.py' | grep -nE '^\+[^+].*\bprint\('

no output

git diff e37a8f8931^1 e37a8f8931 -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff e37a8f8931^1 e37a8f8931 -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

no output

git diff e37a8f8931^1 e37a8f8931 -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff e37a8f8931^1 e37a8f8931 -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

no output

git diff e37a8f8931^1 e37a8f8931 --stat | tail -1

 13 files changed, 1375 insertions(+), 68 deletions(-)

git diff e37a8f8931^1 e37a8f8931 -- '*.py' | grep -cE '^\+\s*def test_'

22

git diff e37a8f8931^1 e37a8f8931 --name-only -- 'docs/*' '*.md'

docs/developer_guide/api_reference/authentication.md
docs/developer_guide/authentication.md
docs/operator_guide/authentication.md
docs/plans/PLAN-oidc-authentication-phase-06-key-metadata.md
docs/plans/PLAN-oidc-authentication.md
docs/plans/index.md

git diff e37a8f8931^1 e37a8f8931 -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

no output

683b591c6b

git diff 683b591c6b^1 683b591c6b -- '*.py' | grep -nE '^\+[^+].{120,}'

no output

git diff 683b591c6b^1 683b591c6b -- '*.py' | grep -nE '^\+[^+].*\bprint\('

no output

git diff 683b591c6b^1 683b591c6b -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff 683b591c6b^1 683b591c6b -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

no output

git diff 683b591c6b^1 683b591c6b -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff 683b591c6b^1 683b591c6b -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

no output

git diff 683b591c6b^1 683b591c6b --stat | tail -1

 9 files changed, 365 insertions(+), 54 deletions(-)

git diff 683b591c6b^1 683b591c6b -- '*.py' | grep -cE '^\+\s*def test_'

4

git diff 683b591c6b^1 683b591c6b --name-only -- 'docs/*' '*.md'

docs/developer_guide/api_reference/authentication.md
docs/developer_guide/ci_api_coverage.md
docs/operator_guide/authentication.md
docs/plans/PLAN-oidc-authentication-phase-06-key-metadata.md
docs/release_notes/v07-v08.md
docs/user_guide/authentication.md

git diff 683b591c6b^1 683b591c6b -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

no output

25c09b60ae

git diff 25c09b60ae^1 25c09b60ae -- '*.py' | grep -nE '^\+[^+].{120,}'

no output

git diff 25c09b60ae^1 25c09b60ae -- '*.py' | grep -nE '^\+[^+].*\bprint\('

713:+        print('  stage %s' % component)
781:+    print('wrote %s' % path)
812:+    print('  issuer      %s' % document['issuer'])
813:+    print('  endpoints   %s' % ', '.join(
815:+    print('  claims      %s' % ', '.join(sorted(claims)))
816:+    print('  groups      %s' % json.dumps(claims['groups']))
833:+            print('IDP_LAB_CAPTURE_%s is not set. Run capture-fixtures.sh '
839:+        print('Capturing %s.' % provider)
843:+            print('%s: %s' % (provider, e), file=sys.stderr)

git diff 25c09b60ae^1 25c09b60ae -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff 25c09b60ae^1 25c09b60ae -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

no output

git diff 25c09b60ae^1 25c09b60ae -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff 25c09b60ae^1 25c09b60ae -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

no output

git diff 25c09b60ae^1 25c09b60ae --stat | tail -1

 25 files changed, 4854 insertions(+), 62 deletions(-)

git diff 25c09b60ae^1 25c09b60ae -- '*.py' | grep -cE '^\+\s*def test_'

13

git diff 25c09b60ae^1 25c09b60ae --name-only -- 'docs/*' '*.md'

docs/developer_guide/api_reference/authentication.md
docs/developer_guide/authentication.md
docs/operator_guide/authentication.md
docs/plans/PLAN-oidc-authentication-phase-08-worked-examples.md
docs/plans/PLAN-oidc-authentication.md
docs/plans/index.md
docs/user_guide/authentication.md
tools/idp-lab/README.md

git diff 25c09b60ae^1 25c09b60ae -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

no output

d8af94878a

git diff d8af94878a^1 d8af94878a -- '*.py' | grep -nE '^\+[^+].{120,}'

no output

git diff d8af94878a^1 d8af94878a -- '*.py' | grep -nE '^\+[^+].*\bprint\('

1984:+    print('home=/home/debian')
1985:+    print('ca=%s' % os.environ.get('SF_SEAM_CA', 'yes'))
1997:+    print(201)
3416:+    print('wrote %s' % path)

git diff d8af94878a^1 d8af94878a -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff d8af94878a^1 d8af94878a -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

no output

git diff d8af94878a^1 d8af94878a -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff d8af94878a^1 d8af94878a -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

no output

git diff d8af94878a^1 d8af94878a --stat | tail -1

 16 files changed, 5471 insertions(+), 20 deletions(-)

git diff d8af94878a^1 d8af94878a -- '*.py' | grep -cE '^\+\s*def test_'

62

git diff d8af94878a^1 d8af94878a --name-only -- 'docs/*' '*.md'

docs/developer_guide/ci.md
docs/plans/PLAN-oidc-authentication-phase-09-functional-idp.md
docs/plans/PLAN-oidc-authentication.md
docs/plans/index.md
tools/idp-lab/README.md

git diff d8af94878a^1 d8af94878a -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

1036:+        completed = subprocess.run(
1037:+            [self.sf_client] + args, stdin=subprocess.DEVNULL,
1038:+            stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True,
1142:+            proc = subprocess.Popen(
1145:+                stdin=subprocess.DEVNULL, stdout=out,
1146:+                stderr=subprocess.PIPE, text=True, close_fds=True,
2077:+        return subprocess.run(

d483e3bce8

git diff d483e3bce8^1 d483e3bce8 -- '*.py' | grep -nE '^\+[^+].{120,}'

no output

git diff d483e3bce8^1 d483e3bce8 -- '*.py' | grep -nE '^\+[^+].*\bprint\('

no output

git diff d483e3bce8^1 d483e3bce8 -- '*.py' | grep -nE '^\+[^+].*\betcd\b'

no output

git diff d483e3bce8^1 d483e3bce8 -- '*.py' | grep -nE '^\+[^+].*\bmariadb\.get_all_[a-z_]+\(' | grep -v '# nopushdown:'

no output

git diff d483e3bce8^1 d483e3bce8 -- '*.py' | grep -nE '^\+.*\b(TODO|FIXME|HACK|XXX)\b'

no output

git diff d483e3bce8^1 d483e3bce8 -- '*.py' | grep -nE '^\+.*(# noqa|# type: ignore|pragma: no cover)'

no output

git diff d483e3bce8^1 d483e3bce8 --stat | tail -1

 2 files changed, 72 insertions(+), 2 deletions(-)

git diff d483e3bce8^1 d483e3bce8 -- '*.py' | grep -cE '^\+\s*def test_'

1

git diff d483e3bce8^1 d483e3bce8 --name-only -- 'docs/*' '*.md'

no output

git diff d483e3bce8^1 d483e3bce8 -- '*.py' | grep -nE '^\+.*\b(subprocess\.|os\.system|shell=True)\b'

no output

F4 check for 2bbe472eff

git rev-list --parents -n1 2bbe472eff:

2bbe472eff14307685f6409d35d3b618f1b38d90 ef04649484e34bb273da4dc0b89d53d53272d73d d05f19f90d39bae4c46d4b624b18d3d216ed652e

Two parents beyond the commit itself, so it is a merge.

git diff --name-only 2bbe472eff^1 2bbe472eff:

docs/plans/PLAN-oidc-authentication-phase-00-decisions.md
docs/plans/PLAN-oidc-authentication.md
docs/plans/index.md

Nothing outside docs/plans/. F4 holds.

1bd5d3c

client-python (#454). No wave 1 pass: that repository has no PUSH-AUDIT.md (F6) and pre-commit/tox were run once at this repository's $TIP per D4, not there. Read instead by 10g against client-python's develop (1e3a7b5) under the plan-push-audit-phase floor checklist, whose five items each carry a verdict in that step's record. 7 files, +395.

9fa1ff2449

client-python (#456). As above, and the larger of the pair: 16 files, +9,078, including credentials.py (+716) and commandline/auth.py (+1,900), read as product code by 10g and inventoried by test name by 10j. Four findings, all advisory.

e7778e2aa7

shakenfist/actions (#271), one file, .github/workflows/smoke-cluster.yml, +33 lines. That repository has a PUSH-AUDIT.md but #271's body contains no audit section, so the citation route was unavailable and it was read here instead (D6 and F7). Read by 10i, which found one informational item -- an unquoted workflow_call input inside a run: block, not attacker-reachable and the twenty-somethingth instance of a pattern it copied -- and reported the rest of the range sound. No wave 1 greps apply to 33 lines of YAML.

Did F8 hold

F8 held. Every hit matched a group it predicts and no range produced a hit in a category F8 calls empty. Counts: five over-length lines (72187d2ff x2, c64269e63, d884dd56c1, 666cff3d9a x1 each), all generated DESCRIPTOR = ... lines; thirteen print( (nine in 25c09b60ae, four in d8af94878a); no etcd; one pushdown candidate (72187d2ff, the mariadb.get_all_trusted_issuers() loop, unannotated in that range as F8 says, annotated at $TIP per F8); no TODO family; two suppressions; seven subprocess. hits, all in d8af94878a. New test functions: 87 + 311 + 60 + 106 + 115 + 22 + 4 + 13 + 62 + 1 = 781, matching F8. No credential-shaped content appeared in any output.

Unpredicted hits: none. One wording difference, not a new hit: F8 described the test_login_mint.py suppression as a nopushdown on a mock side-effect. The hit in 666cff3d9a (shakenfist/tests/external_api/test_login_mint.py, diff line 2280) is a bare # noqa: E501 on a side_effect= assignment to self.mock_mariadb._mariadb_get_mapping_rule_attributes: a line-length suppression, with no nopushdown on that line and no reason given. It is the same hit F8 counts, so the count stands and only the description was wrong; F8 is corrected above. That it carries no reason is a question for step 10c, which reads suppressions for whether their stated reason is true -- this one has none to read. The other suppression is # noqa: BLE001 - reported below in shakenfist/tests/test_federation.py (c64269e63, diff line 9567), as F8 says.

10c -- style conformance, judgment portion

Five candidates, all advisory, none blocking. Each was reproduced in the managing session before being recorded, and one was narrowed on review.

10c-1 -- the nopushdown reason at trusted_issuer.py:504 is not enforced. Advisory, live, from 72187d2ff. The line is

for data in mariadb.get_all_trusted_issuers():  # nopushdown: as above

and the comment above it says issuers are cluster level, one per identity provider, so a full listing is both correct and cheap. The first half of that is a convention rather than a bound: nothing in shakenfist/config.py caps the issuer count. The listing is also on an anonymous path. federation.issuer_claiming_url() (shakenfist/federation.py:278) iterates TrustedIssuers([]) with no filter at all and compares issuer.issuer_url in Python, and its own docstring says the caller is anonymous and must not be able to multiply the work without a meter. The login metadata endpoint (shakenfist/external_api/auth.py:3064) is unauthenticated too, though it does pass a state filter and sits behind a 429. There is a pushdown primitive for issuer name (get_trusted_issuer_by_name) and none for issuer_url, so a find_trusted_issuers(issuer_url=...) is the shape of the fix. Graded advisory because the annotation is present and the rate limit is above the call. What is wrong is the stated reason, which is exactly the judgement wave 1 left open.

10c-2 -- an inert # noqa: E501. Advisory, live, from 666cff3d9a. shakenfist/tests/external_api/test_login_mint.py:356 is 96 characters including the comment, against the --max-line-length=120 that tools/flake8wrap.sh:13 sets, so the suppression suppresses nothing. This is the hit whose description in F8 was wrong, and F8 is corrected above.

10c-3 -- an inert # noqa: BLE001. Advisory, live, from c64269e63. shakenfist/tests/test_federation.py:457 reads except Exception as e: # noqa: BLE001 - reported below. It does carry a reason, but the only linter pinned is flake8==7.5.0 (pyproject.toml:256), which has no blind-except plugin, and no BLE code appears in any configuration -- so the suppression can never fire. Narrowed on review: the step reported a second occurrence at :497 and said it had not traced where that came from. git blame attributes :457 to 83eb5bc147, which is inside c64269e63, and :497 to 0c69722b29 (2026-09-17, Address review comments on PyJWT 2.14 adoption), which is in none of the fourteen ranges. Only one of the two belongs to this audit; the other is outside the baseline and is not a finding of this phase.

10c-4 -- triple single quotes, which the repository forbids in terms. Advisory, live, from d8af94878a. docs/developer_guide/standards.md says "Never triple single quotes; triple double quotes instead", and shakenfist/tests/test_ci_idp_keycloak_seams.py opens SSH_STUB at line 108 and SCP_STUB at line 194 with a triple single quote, closing at 187 and 202. Neither stub contains a triple double quote of its own, so the change is safe to make. No wave 1 grep covers this rule, which is why it took a reader to find it.

10c-5 -- declined. A double-quoted string inside an f-string expression at shakenfist/mariadb.py:1995. The quotes sit inside the expression, where single quotes would collide with the f-string's own; this is noise rather than a violation.

Clean at $TIP, checked rather than assumed. The three-layer _direct_* / _grpc_* / public pattern holds for every accessor G1, G2 and G3 added -- the trusted-issuer, mapping-rule and namespace-key reads, find_mapping_rules, and the two federation reapers -- and the step verified over shakenfist/mariadb.py that no path outside that module and the database daemon calls a _direct_* function. Every database.proto rpc in these subject areas has a handler in shakenfist/daemons/database/main.py and a counter in that daemon's Monitor list. TrustedIssuer, MappingRule and NamespaceKey each define state_targets and log through add_event with an audit or mutate event type. On units and renames, expiry is epoch seconds and stays distinct from the expires_in_seconds duration, and a null scopes list is documented as unrestricted. One field defect the step found is already superseded: e37a8f8931's detail view passed namespace where it meant namespace_from_db.uuid, and 683b591c6b fixed it.

Not covered by this step: the G4 and G5 shell scripts, which belong to 10f; import order outside the five main modules; and test-file style beyond quotes and suppressions.

10f -- the lab, the CI provider script and the functional test

Thirteen candidates over G4 and G5. Two are blocking, one was downgraded on review because its evidence did not say what the step said it said, and the rest are advisory. All reproduced in the managing session.

10f-1 -- the committed claim fixtures carry per-login identifiers, and the guard that would have caught them from a real directory does not look at them. Advisory, live, from 25c09b60ae. Verified by loading both files and listing their keys: shakenfist/tests/files/idp/keycloak-id-token-claims.json carries jti, sid and at_hash, and the Authentik one carries jti and sid. redact()'s guard (tools/idp-lab/capture-fixtures.py:407-411) tests only the six names in IDENTIFYING_CLAIMS -- email, preferred_username, nickname, name, given_name, family_name -- so a session or token identifier is never examined. What makes this a finding rather than a curiosity is redact()'s own docstring, which contemplates exactly the dangerous case: "A lab pointed at a directory of real people -- which is a reasonable thing to do with these scripts". Pointed there, the capture would be refused for a real name and written for a real session identifier.

Downgraded on review. The step graded this blocking on the ground that three documents assert these fields are absent. They do not. What capture-fixtures.py:21-23 and capture-fixtures.sh:15-16 say is that keys, timestamps, session identifiers, token identifiers and the subject are per-login or per-container, which explains why a regenerated capture is never byte-identical -- it is not a promise that they were removed. The module docstring's promise is narrower still: no credential and no signed token, and the subject replaced. A sid is none of those. So the mechanism the step found is real and the contradiction it claimed is not, and the committed values themselves are throwaway lab ones. The fix stands either way: scrub sid, jti, at_hash, nonce and session_state, or say in the docstring that they are kept and why.

10f-2 -- the page scrub is an enumeration of five patterns and asserts nothing. Blocking, live, from d8af94878a. tools/idp-lab/capture-fixtures.py:224-230 holds five regular expressions and save_page applies them and writes. The grant-code pattern is (name="code" value=")[^"]*("), which is sensitive to attribute order: a provider release emitting value="..." name="code", or inserting an attribute between the two, matches nothing, and save_page writes a live grant code into a file destined for a public repository without complaint. The comment immediately above the list records that the checkAuthSession case "is the one a scrub of the forms alone misses" -- that is, this scrub has already been caught short once by this exact mechanism, which is the strongest argument that enumeration is the wrong shape here. Fix by construction: require every pattern to match at least once and fail the capture otherwise.

10f-3 -- the claim guard is a deny-list of six names. Advisory, live, from 25c09b60ae. tools/idp-lab/capture-fixtures.py:64-65 defines the list and :407-411 applies it -- the same code as 10f-1, different consequence: a provider configured to emit phone_number, address, upn, profile or any custom claim writes it through untouched. Inverting it to an allow-list of the claim names the captures are known to carry would make it fail closed.

10f-4 -- the --no-install-recommends class is still open, and openssl is assumed on the node exactly as docker was. Advisory, live, from d8af94878a. tools/ci-idp-keycloak.sh:384 runs openssl req -x509 on the node. Nothing checks for it: command -v appears once in that 1,013-line script, at line 477, for docker -- the one tool #5118 had to fix. tools/ci-jwks-ca.sh runs its own openssl on the runner, so it proves nothing about the node. The repository's own convention is the opposite: the internal_ca role checks command -v certtool && command -v openssl and then installs gnutls-bin openssl, and its comment concedes that openssl only usually is present. The step's verdicts on the rest: jq is not a dependency anywhere, by design, because the scripts parse with python3 -I; curl on nodes is proven, because ci-jwks-ca.sh curls /readyz on each node before this script runs; python3 is runner-only. Still unchecked node-side: openssl, sudo, systemctl, iptables, ip, sed.

10f-5 to 10f-13, advisory, live. The Keycloak admin-API harness exists twice (ci-idp-keycloak.sh:596-656 and tools/idp-lab/configure-keycloak.sh:49-80) and the copies have already diverged on the rule the CI copy states absolutely -- that a credential in a command line is readable in ps -- which the lab copy breaks for all three of its credentials. A failed object creation reads as success in the lab: configure-keycloak.sh:77 tolerates 409 on a person who was never looked up, against the header's claim that every object is checked for before creation, so a regenerated password silently does not take. Credentials are interpolated into JSON by printf in two places where a sibling already uses json.dump. The discovery plaintext check (ci-idp-keycloak.sh:890) inspects only top-level strings, eight lines below a comment noting that this provider republishes the device endpoint inside a nested dictionary. The provider image is pinned by a mutable tag rather than a digest, which defeats the reproducibility argument its own comment makes. The provider's TLS private key is left mode 0644 inside a 0700 directory, safe but undocumented where the lab's copy explains the same trade. ${primary} is not validated where node names one line away are. Per-login identifiers reach failure messages in test_oidc_login.py:1221 and three capture-fixtures.py prints. And two files are large: ci-idp-keycloak.sh at 1,013 lines is over the candidate threshold, and test_oidc_login.py at 1,449 was created 51 lines under the 1,500 ceiling.

Checked and sound. set -eu with pipefail is genuinely in force where it matters, and the step checked the specific masquerades rather than asserting them: kc_expect_created "$(kc_write ...)" fails closed because a connection failure falls to the *) arm and calls fail; the VAR=$(... | python3 ...) assignments are simple commands, so pipefail does abort them; fail inside the per-node loop does exit, because the loop reads a here-string rather than a pipe. The CI script is immune to 10f-6 because it replaces the container every run. The HTML page fixtures are clean -- every per-login identifier is replaced -- and the only hosts anywhere in the fixture directory are localhost. No key material, no client secret, no plan or phase citations.

10g -- the client half, read under the floor checklist

client-python has no PUSH-AUDIT.md (F6), so this step applied the plan-push-audit-phase floor checklist from PLAN-TEMPLATE.md and then read the two largest additions as product code. Worked in a worktree of that repository at develop (1e3a7b5), detached, because develop is checked out in the main clone. Four findings, all advisory, all live, all reproduced in the managing session.

The five floor items. Both landings are merge commits read against their first parent, and the diffs match F6's table -- pass. Nothing either range added runs unattended, so the self-reporting item does not apply; the only runner-visible change is tox.ini's envlist. No secret, token, private hostname or private address entered either range -- pass, and this is the item that matters on a credential store: the step scanned added lines for JWT shapes, PEM blocks, ssh-rsa, long base64url runs and the usual secret field names, and separately for RFC 1918 addresses and private domains, and found none. Nothing was removed or renamed with a consumer left behind -- pass. The publishing item largely does not apply: the repository publishes to PyPI but neither range touches packaging beyond a comment and the envlist.

10g-1 -- a plaintext namespace key is debug-logged on two routes, beside the one route this range taught not to. Advisory, live, from 9fa1ff2449. The range added body_is_sensitive to _request_url and used it at exactly one call site: grep finds the parameter at shakenfist_client/apiclient.py:770, :773, :817, :834 and :2566, and :2566 is POST /auth/login. Both routes that carry a namespace key go through the default: add_namespace_key sends data={'key_name': key_name, 'key': key} (:2571) and update_namespace_key sends data={'key': key} (:2577), reaching LOG.debug('Data:\n %s' % ...) at :822, which prints the body whole. Confirmed in-scope: body_is_sensitive is added by this range (git diff shows the parameter, the docstring and both guards as added lines), while add_namespace_key and update_namespace_key already existed at 9fa1ff2449^1. So the defect is not the old routes, it is that a mitigation introduced here was applied to one of the three secret-carrying call sites and not swept across the class. The redaction filter cannot cover it either: JWT_RE matches eyJ-shaped tokens, and login()'s own docstring says a namespace key is not a JWT and nothing else would redact one on the way out. Scenario: an operator runs sf-client --verbose namespace add-key ... and pastes the output into an issue.

10g-2 -- an unselected multi-credential cache is invisible to every later command, and the advice given is to do what was just done. Advisory, live, from 9fa1ff2449. With no --apiurl, _cached_credential() returns credentials.current_credential(), which is None when nothing is selected, and nothing then consults credentials_for_apiurl() -- that runs only once a cluster is known (apiclient.py:598-605, :620). Scenario: a person satisfies two mapping rules, so store_credential_set() selects nothing, and the next command raises UnconfiguredException advising sf-client login when the fix is sf-client credential select. The right advice is given once at login and by no later command.

10g-3 -- CACHE_FILE_MODE does not set the cache file's mode. Advisory, live, from 9fa1ff2449. Confirmed by grep: of the two constants at credentials.py:94-95, only CACHE_DIRECTORY_MODE is passed to anything (:194). The comment above them says both are created with these modes rather than created and then chmod'ed, which is true of the directory and not of the file -- the file's mode comes from tempfile.mkstemp's internal 0o600. Advisory because the real guard is the UNSAFE_FILE_BITS check after writing; the risk is that someone changes the constant and nothing happens.

10g-4 -- commandline/namespace.py renders cluster and provider supplied fields without the sanitising its sibling applies. Advisory, live, from 1bd5d3c. :159 and :209 print k['key_name'] and the scopes raw, where commandline/auth.py puts the same fields through _printable(); grep finds no _printable in namespace.py at all. _key_provenance's dict branch is safe because json.dumps escapes, but its string branch returns the value unchanged, and server side provenance carries sub, jti and claims from the token. Low severity because the schema sends provenance as an object.

The five questions, answered. The cache file's mode is set before the secret is written, with no window: _write_atomically() creates the file with tempfile.mkstemp (O_CREAT|O_EXCL, 0o600), writes through that descriptor, fsyncs, re-stats and refuses on any unsafe bit, then os.replace()s -- there is no chmod in the module, and the replace publishes the temp file's own inode. The read path re-checks with os.fstat on the open descriptor rather than stat on the path, which is the TOCTOU-correct choice. Nothing in auth.py prints a secret: both row builders are allow-lists that do not name key, the redirect handler's log_message is a no-op and its handle_error swallows the traceback that would carry the authorization code. The module's docstring promise holds for that module; the generalisation that the redaction filter covers the rest is false, and 10g-1 is the live instance. logout does discard everything, including a partial login: delete_credentials() sweeps stale temporaries first, before anything that can return or raise, so a process killed between mkstemp and os.replace is cleaned up even with no credentials file present, and it unlinks regardless of an unsafe mode, a corrupt file or a newer format version. The device flow is bounded and respects the provider: a monotonic deadline, min(interval, remaining) slept before the first poll, a five-second floor so a 0 or a string cannot busy-loop, slow_down honoured, and a 30-second timeout with allow_redirects=False on every provider request. apiclient does feature-detect and degrade: three capability gates raise IncapableException rather than reaching a route that would answer 404, the login gate specifically stops an identity token being posted to a server without the route, and check_capability was changed in-range from a substring test to a token match -- without which human-login-metadata would have satisfied a check for human-login.

Future work for that repository, recorded and not acted on. client-python should carry its own PUSH-AUDIT.md. The floor checklist is explicitly not a substitute for a runbook, and a runbook is written for one repository's blast radius: this one is a credential store that writes long-lived namespace keys to a user's disk, a login surface that talks to semi-trusted providers, and a published package, none of which the server's runbook asks about. Until it exists, every plan with a client half pays this step again at high effort and gets a floor rather than an audit. Filing that is for whoever owns the repository; this phase deliberately added nothing there.

Not reached: docs/human-login.md (+309) and the 4,442 lines of new tests beyond their names, which 10j inventoried; and whether the ansible collection or plugin repositories consume the new Client.__init__ raise path, which is 10g-2's unverified half and belongs to those repositories.

10j -- test review

781 new test functions landed across these ranges, so quantity was never the question. Five findings, one blocking, all live -- the test files these ranges added have not been edited since. All reproduced in the managing session.

10j-1 -- nothing reports that the provider step has never run. Blocking, live, from d8af94878a with actions e7778e2aa7. tools/ci_report_scheduled_failures.py:57 is FAILED_CONCLUSIONS = ('failure', 'timed_out'), and the tool files an issue per failed lane: :155 selects jobs whose conclusion is in that tuple and :164 asks whether all of them succeeded. It has no notion of a step that never executed or a test that skipped. Both dispatches of debian-13-slim-tier died upstream of the provider step -- the second on the capacity refusal now filed as #5138 -- so the issue text is indistinguishable from "login is broken" and from "login was tested and passed everything except one lane". This is the finding that makes the rest of the phase's coverage claims unverifiable from outside, and it is why it is graded blocking: the fix is to assert a positive signal, the provider bring-up step's conclusion or a count of executed rather than skipped test_oidc_login.py tests, and fail the lane when it is absent.

10j-2 -- a test whose name promises the captures are version-checked, and whose body never opens one. Advisory, live, from d8af94878a. shakenfist/tests/test_ci_idp_keycloak_seams.py:612 is test_the_provider_version_matches_the_lab_and_the_captures, and its body reads the image tag out of tools/ci-idp-keycloak.sh and out of the compose file and compares those two. No capture under shakenfist/tests/files/idp/ carries a version marker -- confirmed across all six -- so the captures half of that name cannot be asserted at all. Worse, the failure message instructs the reader to "move both tags in one commit", which is precisely the action that leaves all four captures stale and the test green.

10j-3 -- the only merge-gating functional coverage of the exchange silences itself when its fixture is missing. Advisory, live, from c64269e63. shakenfist/deploy/shakenfist_ci/cluster_ci_tests/test_federation.py:335 skips when self.jwks_server.fetches is empty, and five of that file's sixteen tests route through the same guard. If tools/ci-jwks-ca.sh did not run, or the bundle did not reach sf-api, or the cluster cannot route back, all five skip and the lane is green. test_oidc_login.py was deliberately built the other way, its own comment saying that "a skip here cannot be told apart from a provider which has never worked" -- this file predates that reasoning and was never brought into line. What goes undetected is signature verification regressing on the merge gate.

10j-4 -- every login-mint test sends a scalar group claim. Advisory, live, from 666cff3d9a. test_login_mint.py:140 sets 'groups': 'sf-staff', a string, in all 72 of that file's tests, and test_federated_exchange.py:763 makes the matcher a list while still sending a string claim. Phase 8's own survey found that a group claim is an array in both Keycloak and Authentik. So no endpoint-level test presents the shape a real provider emits; the array path is covered only by match_claims() unit tests and by the weekly lane, which has never run. This is the mock teaching the code's own misunderstanding back to it, which is the specific failure the step was asked to look for.

10j-5 -- one RSA key set answers for every issuer, and only RS256 is exercised. Advisory, live, from 72187d2ff. shakenfist/federation.py allows nine algorithms across three families; shakenfist/tests/ fake_jwks.py:41 can only mint RSA with alg: RS256, so the PS and ES branches are never run -- and both committed discovery captures advertise ES256. The fake also answers a URL prefix, handing the same key set to every issuer, so no test can prove that issuer A's token is refused when signed with issuer B's key. Advisory because test_each_issuer_is_fetched_from_its_own_jwks_uri states the limitation in its own comment.

The four questions, answered. The unit JWKS mock is patched at the transport (urllib.request.OpenerDirector.open) rather than at PyJWKClient.fetch_data, with a docstring explaining that the deeper patch would disable the very cache the tests exist to check -- that is the right seam. Resting on it: every signature assertion in four test files, and all of the caching, stampede-collapse, cooldown and slow-issuer isolation cases. Surviving a real provider unchanged: the alg/none/HMAC refusals, including a hand-rolled HS256-signed-with- the-public-key case which is genuinely adversarial; expiry, nbf and skew; audience-override logic; rule matching and ordering; and claim matching, which is fed real decoded captures. Taught the same shape as the code in two places, which are 10j-4 and 10j-5.

Merge-gating coverage. Merge lanes are debian-13-slim-primary and guests; the provider is weekly. With no merge-gating coverage at all: discovery against a real document, the login metadata endpoint, POST /auth/login, the minted credential set, key metadata and provenance against a real identity, the device flow, the page parser against live pages, and the client's login, logout and cache -- that is everything phases 3, 4, 6, 7, 8 and 9 added. What remains merge-gating is the service-account exchange, itself subject to 10j-3. The guard does hold, non-vacuously: test_ci_oidc_login_guard.py parses functional-tests.yml's lane list and asserts the tier lane is absent, catches the same move under a new lane name by topology, and guards against a vacuous parse; a missing job or non-JSON lane list raises rather than passing. What the coverage is worth today: nominal. The provider step has never executed, so those behaviours rest on unit tests and on eight functional tests that have never run -- and per 10j-1 nothing would say so.

The page parser silently stops testing anything. test_ci_idp_ pages.py's sixteen tests read two committed captures by path, so a provider upgrade changes neither and the suite keeps passing against pages the provider no longer serves. The parser's refuse-an-unknown-page behaviour is the loud half, but it only fires against a live page -- that is, in the lane that has never got there -- and 10j-2 removes the remaining backstop.

The derived sweeps are genuinely derived, so D3 stands. declarations.handlers() globs external_api/*.py and AST-walks for handler classes; all twenty classes in auth.py subclass api_base.Resource directly, so none falls into the exclusion for classes that subclass another endpoint. boolean_declarations() and required_declarations() both walk handlers() and raise on a declaration they cannot read statically rather than skipping it, and test_every_declared_boolean_has_a_reading asserts the set difference both ways -- so phase 6's detail had to be added and cannot be dropped. Confirmed present at test_boolean_sweep.py:165. D3's decline of #5029 rests on this and it holds.

Not got to: the bodies of nine test files enumerated by name only, so G3's metadata coverage is unreviewed in detail; and whether tools/ci-jwks-ca.sh runs on the merge-gating lane, which decides whether 10j-3 is latent or active -- that wiring is in shakenfist/actions.

10d -- the validation half

This is the step D2 exists to buy, and it returned the phase's most serious finding. Seven findings, one blocking. All reproduced in the managing session.

Two corrections to the brief first, both mine. The brief named shakenfist/namespace_key.py as G1 territory; it is not in G1 at all -- none of the three ranges touches it, and the file was added by af919f0aba. Anything there is pre-plan, so an issue rather than a finding. And G1 contains its own self-run security pass, 2feb509bbf (auth: fixes from the pre-push security audit), an ancestor of c64269e63, which closed two scope-escalation paths. So F3's "never read by a push audit" is true of the runbook and not of the branch -- worth recording, because it slightly reduces what D2 bought while leaving the decision right.

10d-1 -- the JWKS fetch has no body cap and no whole-body deadline; the admin-only discovery fetch has both. Blocking, live, from c64269e63. shakenfist/federation.py:186-193 builds the PyJWKClient with timeout=FEDERATION_JWKS_FETCH_TIMEOUT_SECONDS and nothing else, and PyJWKClient.fetch_data then calls json.load on the response with no size limit. timeout is a per-socket-operation timeout. Confirmed by grep: there is no byte cap and no deadline anywhere in federation.py.

What makes this blocking is that the repository already wrote this hazard down, in detail, and then put the weaker guard on the more exposed path. shakenfist/config.py:588-632 gives the discovery fetch both FEDERATION_DISCOVERY_MAX_BYTES and a whole-body deadline, and explains why: "a provider which sends one byte just inside each read timeout would otherwise be bounded only by FEDERATION_DISCOVERY_MAX_ BYTES -- which on the defaults is days rather than seconds", and "Nothing else bounds a response which is not a discovery document at all -- an HTML login page, or a tarball behind a misconfigured reverse proxy." The JWKS setting's own text says "this is also the longest one unreachable identity provider can pin an API worker" and that PyJWT's 30-second default is "long enough that a provider blackholing traffic exhausts the worker pool". The two settings were deliberately split so that lengthening the administrative timeout would not lengthen the anonymous one -- the reasoning is explicitly that the anonymous path is the dangerous one. The guards did not follow the reasoning.

Failure scenario: a trusted issuer's jwks_uri falls behind a proxy that trickles bytes or serves a large body. Each unauthenticated POST /auth/federated or POST /auth/login occupies one of five synchronous gunicorn workers for far longer than five seconds while accumulating the body in memory. One request per second from one source -- inside the default 60 per minute, and there are three independent buckets -- saturates the node's whole API tier, not only federation.

10d-1 is worse than either step could see alone, and this was settled in the managing session. 10i graded the anonymous-triggered JWKS fetch a considered trade on the ground that FEDERATION_JWKS_ROTATION_COOLDOWN_SECONDS throttles forced fetches, but flagged that it could not verify the cooldown's semantics: the host carries PyJWT 2.10.1, which predates the cooldown entirely. The pinned 2.15.1 is in the tox environment, and reading it settles the question against the trade. In PyJWKClient.get_signing_key:

if not cooling_down:
    signing_keys = self.get_signing_keys(refresh=True)
    self._last_successful_fetch = time.monotonic()

The timestamp is assigned after the refresh, so a fetch that raises never records one, cooling_down stays false, and the next request with an unknown kid tries again. The cooldown therefore bounds forced fetches only while the provider is healthy; during an outage it does not bound them at all. So an anonymous caller fabricating a novel kid per request against a configured-but-unreachable issuer gets one fetch attempt per request, each serialised under that issuer's lock, and -- by 10d-1 -- each bounded only by a per-socket timeout with no cap on the body and no deadline over the transfer. The cooldown is not the backstop the surrounding comments assume it is, which is why 10d-1 is graded blocking rather than advisory.

10d-2 -- three realistic JWKS responses escape the exception translation and become a 500. Advisory, live, from c64269e63. federation.py:214 and :222 catch PyJWKClientError and DecodeError. Verified against the pinned PyJWT 2.15.1 that PyJWKSetError is not a subclass of PyJWKClientError -- they are siblings under PyJWTError -- and fetch_data catches only URLError, TimeoutError and HTTPException, so a json.JSONDecodeError passes through too. The step probed a local server: {"keys": []} and {"something": 1} both raise PyJWKSetError, and <html> raises JSONDecodeError. All three escape validate_token and land in suppress_exceptions_to_client as an opaque 500. It fails closed and discloses nothing, which is why it is advisory; the cost is that the single likeliest operator error -- pointing jwks_uri at the discovery document instead of the key set -- yields server error on every exchange instead of the categorised 503 that exists for the same class of mistake, plus an exception record per request up to the rate limit.

10d-3 -- a replay row's lifetime is the issuer's exp, uncapped. Advisory, live, from c64269e63. federation.py:722-723 stores the token's own exp and nothing bounds it above, while the reaper deletes on expires_at < cutoff, so a token stamped with an absurd expiry leaves a row no sweep collects. The analogous minted-key lifetime is capped, by validate_key_ttl against MAX_KEY_TTL_SECONDS, with the reason written beside it. Needs a trusted-but-misconfigured issuer, so it is slow table growth rather than an attack.

10d-4 -- JWKSCache's concurrency reasoning does not hold at node scale. Advisory, live, from c64269e63. shakenfist/federation.py:232 builds it at module level and sf-api runs five synchronous workers under --preload, so each forks its own copy. The class docstring claims "one PyJWKClient now serialises those fifty by itself" and that the per-issuer lock keeps one unreachable provider from delaying another's tokens. Across processes neither holds: a rotation produces up to five simultaneous fetches per node, the cache lifespan is honoured five times over per window, and under one-request-per-process the per-issuer lock can never be contended. A consequence worth stating: forget() affects only the worker that served the request, so there is no cluster-wide way to force a refetch after a key compromise other than restarting sf-api.

10d-5 to 10d-7, advisory, live. FEDERATION_JWKS_FETCH_TIMEOUT_SECONDS lacks the ge=1 its three siblings carry, each of which documents that "0 does not mean 'no timeout' here" -- a zero makes every socket operation non-blocking and blames the provider for refusing every exchange. The login path reads the issuer's attributes row twice, on an unauthenticated path whose neighbours go to lengths to avoid exactly that. And federation_rate_limits.source takes the server default collation where its sibling federation_replay.token_id carries sixteen lines on why utf8mb4_nopad_bin is required -- the same column shape with the reasoning applied to one of the pair.

The four questions, answered. The JWKS cache is bounded (keyed on issuer uuid, so operator-bounded), expires correctly on the hit, forced-refetch and post-failure paths, with no negative caching and no cache poisoning on failure, and fails closed everywhere the step could reach -- the database accessors raise rather than guess, and a None from get_objects_by_state refuses the login rather than skipping the state filter. The timeout is honoured on the fetch and the retry. The one defect in that answer is 10d-1.

Signature versus claim verification is correct. There is exactly one jwt.decode with verify_signature: True in product code, the signing key is obtained before it, and the only pre-signature claim read is unverified_issuer, whose result only selects which configured issuer's key to verify against. jwks_uri always comes from the stored row and never from the token -- no jku or x5u handling exists anywhere. The claim checks are inside the same jwt.decode as the signature check, so they cannot be reached independently, and all seven federation exceptions are siblings, so no handler catches a base class and swallows a narrower failure.

Algorithm confusion is correctly refused, verified by probe rather than by reading. ALLOWED_ALGORITHMS is asymmetric-only and is passed explicitly on the one decode. The step forged tokens and decoded them with the production options: alg: none is refused, HS256 keyed on the issuer's own PEM public key is refused, lowercase hs256 is refused, a missing exp is refused, and a correct RS256 token is accepted as the control. One advisory caveat: an aud array containing the expected value is accepted and azp is never checked, where OpenID Connect requires azp to be examined when aud has multiple values -- the audience-confusion sibling of this question. It needs a provider configured to put this cluster's client identifier in another client's audience.

get_all_trusted_issuers() is on three unauthenticated request paths, and costs two further round trips per listed issuer because state and issuer_url read separately. The answer is that it is adequately metered rather than cheap: all three sites count against the rate limiter before the scan, each on its own key, with the counter in MariaDB so the limit is cluster-wide, and the meter was deliberately moved above the scan. So no finding here -- but the step notes that trusted_issuer.py:504's annotation calls the listing cheap three lines before issuer_claiming_url's docstring says "It is not free, though: this is a scan". The two comments disagree, which is 10c-1.

Not reached, and worth saying: roughly 70% of G1 by file count -- daemons/database/main.py (+296), the external_api artifact, label, instance and namespace changes, and about 6,500 lines of new tests. G1's artifact and label access-control half is subject matter the row did not name, and the step judged the five named modules the better spend. No mutation testing, and 10d-1 was read-confirmed rather than reproduced against a live slow server.

10e -- discovery, the login mint and key metadata

Four findings, all advisory, all live, plus three items raised for the record. This step also found that a premise the plan and two briefs carried was false, which is the most consequential thing it returned.

The discovery endpoint is not unauthenticated. The premise was wrong. This plan's survey, and the briefs for 10e and 10i, described /auth/issuers/<uuid>/discover as reachable without credentials. Both halves are wrong at $TIP and the error was mine. The route is /auth/issuers/<issuer_name>/discover -- a name, not a uuid (shakenfist/external_api/app.py:742) -- and AuthIssuerDiscoverEndpoint.post carries @api_base.caller_is_admin with requires_admin=True (shakenfist/external_api/auth.py:1710). All three callers of oidc_discovery.fetch() are admin-gated, so oidc_discovery.py's own claim that discovery "runs only when an administrator asks -- never on a request path" holds. The genuinely public surface is four methods, found by grepping for the marker rather than by trusting the plan: AuthEndpoint (auth.py:184, POST /auth), AuthFederatedEndpoint (:2647), and AuthLoginEndpoint GET and POST (:3003, :3131). 10i was corrected mid-flight and reports that it had already caught the same error independently and graded against the corrected facts, so no finding in either step rests on it.

10e-1 -- the redirect refusal quotes the provider's Location header unbounded. Advisory, live, from d884dd56c1. shakenfist/oidc_discovery.py:376-381 interpolates location straight into the exception message. Every other provider-supplied string in that module goes through _quoted() -- used eight times -- whose docstring gives the reason: a hostile or broken provider can put its whole byte budget into one value, and it would land both in the response to the administrator and in the log line, and "a sixty kilobyte refusal is not a vulnerability but it is a poor thing to put in a log aggregator". location is the one value that skips it, and a header is less bounded than a body here, because FEDERATION_DISCOVERY_MAX_BYTES never applies: the body is never read on this path. http.client's line limit is 65536, so one Location: line can carry about 64 KB of provider-chosen text into syslog and into the caller's error. Fix: _quoted(location).

10e-2 -- shakenfist/external_api/auth.py is 3,499 lines, and both groups grew it. Advisory, live, from all four ranges. Confirmed with wc -l. PUSH-AUDIT.md says that because this project has not adopted the size ratchet, the push auditor applies the 1,500 line rule by hand, and no baseline or stated reason exists for this file. Measured growth: G2 took it 2,176 to 2,820 to 3,328, and G3 3,326 to 3,488. The seams are already named by the code -- the issuer and discovery endpoints are about 700 lines on their own -- and the comment arguing that the two public auth routes are "easier to review as a pair" is an argument for one module, not for this one. No other file these ranges touched is oversize.

10e-3 -- a login's audit cost is two events per key, and nothing caps keys per namespace. Advisory, live, from 666cff3d9a. auth.py:3462-3469 writes an event against the key and another against the namespace. FEDERATION_MAX_LOGIN_CREDENTIALS caps one login at 16 keys; nothing caps the aggregate, and keys are released only by time. At the default 60 attempts per minute one source holding fresh tokens drives on the order of 960 keys and 1,920 audit events a minute. This repository has already had an event-volume incident of exactly this shape, cited in the scheduled tasks beside the reaper. Not blocking because it needs a valid unreplayed token per login, so the actor is authenticated by the provider -- but see 10i's finding on the same accumulation reaching an unmetered bcrypt loop, which is the sharper end of this.

10e-4 -- the metadata listing's login-capability skip is silent. Advisory, live, from 666cff3d9a. auth.py:3084-3085 does if not login_audience(attrs): continue, where the mint's identical test logs the reason. An operator who configured an issuer and cannot see it in GET /auth/login gets no log line saying why. One LOG.info closes it, and it matters because the reachable-None deployment this plan worries about is exactly the case that hits this path.

The four questions, answered. On the unauthenticated surface, with the premise corrected: GET /auth/login publishes per issuer only name, issuer_url, client_id, oidc_scopes and whichever of the three endpoints are set, built field by field rather than from external_view(), deliberately withholding jwks_uri, audience, the uuid, state and version. It can make the server do one rate-limit write and one attributes read per configured issuer, metered on its own key. It cannot name a URL: no handler accepts an endpoint field, and the three endpoint columns are writable only from a validated document. The admin fetch is bounded -- https required before any socket, no redirects, five seconds to connect plus a whole-body deadline, and a 64 KB cap -- and the four document-supplied fields are each checked for type, emptiness, https and length against stored_max_length() before storage. This is correct, and the only gap on the error paths is 10e-1.

login_audience() has exactly two callers and both handle None -- the listing continues, the mint refuses with a login refusal -- and grep finds no third. The function also guards if not attrs itself, which matters because its second caller passes issuer.configuration() straight in and that can be None. Downstream, validate_token treats None as "use the issuer's audience" and refuses an empty string outright, so even a bypassed caller check fails closed rather than verifying a person's token against the workload audience.

The minted set is bounded per login and not in aggregate. The cap is applied as a refusal of the whole login with a 507 rather than a truncation, and it sits before the replay claim and the mint, so a retry cannot skip it: a replay of the same token is refused on the issuer-keyed claim, and a fresh token re-enters at the top and meets the cap again. A second login mints again and accumulates rather than rotating, because of an eight-character random discriminator in the key name -- deliberate, with the reason in a comment. The aggregate gap is 10e-3.

The system split is decided in one place and is now correct. The projection is _key_detail(key, attrs, caller_is_system), which adds provenance only under if caller_is_system:, and the predicate is _caller_is_system() -- request_namespace() == 'system', deliberately not caller_has_admin_rights(). Both routes call it. There is no second decision: NamespaceKey.external_view() does serve provenance, but no API handler calls it, which its docstring states and the code matches. The adjacent leak routes are closed too -- the key's own audit events have no API route, and the namespace event the mint writes is served only behind admin plus namespace ownership. The docstring phase 6 found falsified is accurate again.

Raised for the record, not graded. The discovery session is constructed outside the try whose finally closes it, so a raise while mounting leaves an unclosed session -- it holds no sockets at that point, so this is tidiness. And iter_content yields already decompressed chunks, so one iteration can add about 8 MB before the cap is tested; the path is admin-only and the peak is bounded, so it is worth a sentence in the comment rather than a change. No credential-shaped value was found in the touched tests, fixtures or pages.

10h -- documentation review

Five findings, two blocking, all live. Both blocking ones are the F9 shape -- one fact stated two ways -- and both were reproduced in the managing session.

10h-1 -- the replay grain is stated per-rule on four pages and per-issuer in the code. Blocking, live, from c64269e63. The code at $TIP is explicit: shakenfist/mariadb.py:2832-2838 says "The second key component is what the token was spent on: a mapping rule for a targeted exchange, a trusted issuer for a human login", and shakenfist/external_api/auth.py:3366-3369 says a login "claims the token once, against the issuer and not against a rule". The developer guide agrees (docs/developer_guide/authentication.md:649-653). Four operator-facing pages do not, all written by c64269e63 before login existed and never revisited by 666cff3d9a, which added login and edited two of them:

  • docs/operator_guide/authentication.md:1117 -- "An identity token is single-use per rule. The same token may still be exchanged through a different rule", under an Abuse resistance heading scoped to /auth/federated although POST /auth/login now shares both tables.
  • docs/glossary.md:137-139 -- "single-use per rule".
  • ARCHITECTURE.md:296-298 -- "federation_replay, keyed (token_id, rule_uuid)". This is the sharpest error of the four: for a login that column holds an issuer uuid.
  • docs/operator_guide/database.md:1926 -- "One row per identity token exchanged through one rule".

It misleads operationally: these pages imply a login that failed part way can be retried rule by rule, and the developer guide explains that it deliberately cannot, because that would let a failed login be retried into a silently short credential set.

10h-2 -- the enforced length limit is 1024 and the documentation says 255. Blocking, live, from d884dd56c1. The code's own docstring at shakenfist/external_api/auth.py:1134-1143 states it: "issuer_url, jwks_uri and audience declare 1024 and hold 1024" now that the column builder reads the declaration (issue 4901). Two pages say otherwise, and both clauses of the operator guide's sentence are false: docs/operator_guide/authentication.md:264-267 -- "Every one of issuer_url, jwks_uri, audience, client_id and oidc_scopes may be up to 255 characters, which is what their columns hold" -- and docs/developer_guide/api_reference/authentication.md:455-457, three times. client_id and oidc_scopes are correctly 255. What makes this worth recording beyond the error itself: d884dd56c1 wrote both pages, and the widening that falsified them landed in a merge D3 declined. So the staleness entered this plan's documentation from outside this plan's ranges, which is an argument the next audit should weigh when it decides a sweep. 10k found the same defect independently.

10h-3 to 10h-5, advisory, live. The glossary never learned that human login exists: its identity token entry still says the token is presented to /auth/federated with a namespace and a rule name and is verified against audience, and 666cff3d9a added a credential set entry that links to it without revisiting the parent term -- so the glossary is the one page that still implies a person's token is checked against audience. ARCHITECTURE.md has no login, discovery or credential-set entry at all; its auth section describes only /auth/federated, and a grep for login, discovery or oidc in that file returns nothing, although the component inventory and the data flow both changed and two further unauthenticated routes exist. The release notes have the same omission -- three ranges edited that file and none announced login, discovery, the credential set or the schema migrations. And docs/developer_guide/ci_api_coverage.md:207-209 still says get_namespace_key is Not tested where test_oidc_login.py:635 exercises it, weekly-lane only, which is worth saying rather than leaving the row wrong.

The audience contract is superseded, which is the headline result. Phase 4's survey said an operator following the guide would configure logins that can never succeed. That is no longer true. Every page still tells an operator to put the cluster API URL in audience, and that is now correct, because audience governs the workload exchange only; and five places now say plainly that it is not what a login checks, including a warning box at docs/operator_guide/authentication.md:528-548 which adds that "The fix is to check that client_id is the identifier the provider actually issues tokens for, not to change audience". One page still implies otherwise, which is 10h-3.

The group claim is superseded and fixed. shakenfist/federation.py: 413-449 matches an array claim by membership, with the reasoning in place -- both providers write groups as an array, so refusing an array would mean no group could ever express an entitlement -- and every page that advises a group binding now says so. One gap: the operator guide's own rule-writing section never states the array rule, which first appears inside the Keycloak walkthrough.

Plan citations. G1 added seventeen phase and decision citations across its three ranges; all historical -- none survives at $TIP outside docs/plans/ and docs/components/. G2 to G5 added none.

Not got to: line-by-line reads of the database guide, the CI guide and the release notes outside their auth sections, and two pages c64269e63 touched as omnibus content.

10i -- security review

Six findings, none critical or high. The token-handling half, injection and the secret floor all came back sound, which on a login path is a result worth stating precisely rather than in one word. Reproduced in the managing session.

10i-1 -- unmetered bcrypt fan-out on POST /auth, amplified by this plan's mint-per-exchange keys. Medium, live, from 72187d2ff with the accumulation from c64269e63 and 666cff3d9a. Confirmed by grep: federation.enforce_rate_limit is called at auth.py:2713, :3057 and :3199 -- three of the four public auth routes -- and not on POST /auth, which is @api_base.public at :184. Its cost is linear in the number of live keys in the named namespace: the loop at :233 runs one bcrypt.checkpw per key, and the comment above it confirms expired keys are filtered in SQL, so the bound is the live set. Nothing caps that set -- no per-namespace key ceiling exists anywhere, and usable_key_counts() is a gauge whose alert fires on zero. The exchange and the login mint each append a new key with a random discriminator rather than rotating one, with a lifetime up to MAX_KEY_TTL_SECONDS of 86,400.

So this plan's minting pattern feeds the one public auth route with no meter. At the default 60 exchanges per minute per source over a 24-hour lifetime, one source can leave on the order of 86,400 live keys in a namespace; an anonymous caller then sends POST /auth naming that namespace with any well-formed secret and one request runs that many bcrypt comparisons, pinning a worker. Nothing meters how many such requests arrive. The operator guide reasons carefully about bcrypt cost on the new routes and says nothing about this one being linear in live keys, so it is not a trade written down somewhere. Fix: meter POST /auth on its own prefixed budget -- the pattern is there three times already -- and bound the fan-out, because metering caps the rate but not the per-request cost. This is the sharper end of 10e-3.

10i-2 -- key_name_prefix is not held to the key-name grammar. Low, live, from 666cff3d9a. shakenfist/mapping_rule.py:201-223: type, length and reserved names are checked and the character set is not, so a caller holding rule.write in their own namespace can write a prefix containing a colon; the minted name becomes part of the JWT identity, whose parser raises on anything but a two-part split, and that exception is not in the authorization handler's arm list -- so it becomes a 500 plus an exception record per request. No privilege crossing, because the namespace is the first field and nothing can be prepended. Self-inflicted availability.

10i-3 -- the exchange mints into the caller-supplied namespace string rather than the resolved one. Low, live, from c64269e63. auth.py:2866 passes the raw request-body string, where the login path at :3425 correctly uses rule.namespace. Resolution is by SQL equality under a collation the compatibility check accepts case-insensitively, so {"namespace": "CI"} resolves the ci rule and writes a key row spelled CI. No privilege crossing -- the authorisation predicates are exact Python comparisons and request_namespace() returns the canonical name, so the system check cannot be reached by case-folding. What it leaves is a row spelled differently from its namespace, surviving only because the collation folds it back on every read.

10i-4 -- an issuer-existence oracle on POST /auth/federated. Low, live, from c64269e63. shakenfist/external_api/auth.py:2723-2746, with the refusal text at :2640: issuer_for_token (shakenfist/federation.py:235-301) reads the unverified iss, so an anonymous caller sending an unsigned token gets one refusal for an unconfigured issuer URL and a different one for a configured URL. That discloses issuer URLs GET /auth/login is deliberately built to withhold, since it filters on client_id. Mitigated by needing to guess a full URL and by the meter. Fix: collapse the two categories in the response and keep the distinction in the log, as the login refusal already does.

10i-5 and 10i-6, informational. e7778e2aa7 interpolates a workflow input unquoted inside a run: block at .github/workflows/smoke-cluster.yml:386 (the copied line is :353) -- not attacker-reachable, a workflow_call input rather than event data, and the twenty-somethingth instance of that pattern in a file it copied from; everything else in that range is sound, including set -e, a timeout, a quoted script path and a correctly narrow condition on the topology. And there is no internal-address guard on the admin-set issuer_url, which is recorded and explicitly not recommended for fixing, since an administrator already holds strictly larger powers.

Token handling is sound, and the mechanism is worth recording. The route-level predicate handles_credentials() returns true for /auth and every /auth/... path, and all three body loggers consult it, so the identity token in the request and the minted secrets in the response are dropped whole rather than redacted field by field. There is no client_secret field anywhere in the tree, so the device and PKCE design has no client secret to leak. SecretStr wrapping holds end to end, with the create path stripping key and nonce from the audit metadata as well as wrapping them, and every get_secret_value() call site in product code is a storage, wire or point-of-use boundary. Exception messages name the issuer and the library's exception type, never the token, and the token identity stored for replay is a bounded jti or a hash of the signed material. Provenance carries sub, jti and matched claims, and every route that could serve them is behind admin plus namespace ownership, so its audience matches the detail view's. The leak-detection half auth-federation never built is still not built, and detection rests on the type system plus the route-level drop -- which is why 10i-1 aside, the result here is clean.

Injection and shell safety are sound. Both subprocess sites in the lane test pass argv lists with no shell, with closed descriptors, a null stdin and an explicit environment; the seam test runs bash with a PATH-shadowed stub directory. No shell=True, os.system, eval or sh -c anywhere in the ranges. No SQL is built by interpolation -- the two sa.text() hits are a constant DDL string and a test teardown over a hardcoded list, and all six new accessors are parameterised. No filesystem path in any range is built from a claim value, an issuer URL or a namespace name. The shell machinery is unusually careful: every script sets -eu with pipefail, and the CI script builds each JSON document with python3 -I reading values from the environment rather than argv, precisely so a generated password never appears in a command line, writing its descriptor at mode 0400.

The secret floor is clean across all added lines of the ten in-repository ranges plus the actions range: no private key, JWT, API token, session or grant code. Every password is generated at run time or is an obvious test placeholder; every address is loopback, RFC 1918 or documentation range; every hostname is a documentation host, localhost or a public project host. The committed captures are properly scrubbed, including the <script> case phase 9's own Results flagged -- the sign-in page carries the scrubbed marker inside a <script type= "module"> as well as in the form action.

One grading resolved in the managing session. 10i graded the anonymous-triggered JWKS fetch a considered trade on the strength of the rotation cooldown, and said plainly that it could not verify the cooldown because this host carries PyJWT 2.10.1, older than the pin. Reading the pinned 2.15.1 settles it the other way; see 10d-1, which that reading promoted rather than confirmed.

Not got to: the scrub-by-construction question, left to 10f; the full claim-value validator set as logic; prose consistency, left to 10h; and timing side channels, judged not worth a finding and not measured.

10k -- the cross-phase lens

The step the phase exists for, and the one no per-phase audit could have run. Eleven findings, all advisory, plus two supersessions that correct this plan's own claims.

Provenance caveat, recorded because it changes how much weight this carries. The step derived question 1 itself and delegated questions 2 and 3 to sub-agents of its own, spot-checking four of their claims. The plan authorised sub-agents, so this is within its licence, but it means question 2's enumeration is second-hand. The managing session checked the two claims that correct this plan (below) and left the remainder at the step's own confidence. 10l should treat question 2's inventory as indicative rather than exhaustive.

Question 1 -- the audience contract. The product is right; the reference material written when every token was a workload token is what phase 4 never swept. Five verdicts: the code agrees with itself and documents why; the developer guide agrees completely; the metadata view's docstring agrees, with phase 6's correction in place and the system split decided in one place; phase 9's reworded criterion agrees with the product -- but the test that asserts the current contract has never executed, so the agreement is plan-to-code rather than proven against a provider. The operator guide is split, and that is finding 10k-1.

10k-1 to 10k-5, advisory, live, all phases 1 and 3 stating against phase 4 changing. The mandatory-field table at docs/operator_guide/authentication.md:254 still says of audience only "Tokens must be minted for this. Usually your cluster's API URL", unqualified and unlinked, 274 lines above the warning box that contradicts what that implies for a login -- and the table is where an operator configuring an issuer actually looks. This is the exact line phase 4's survey named. The schema's own docstring (shakenfist/schema/trusted_issuer_attributes.py:38-40) says audience is "The value an identity token's aud claim must contain", where the glossary defines identity token to cover a person's token too -- and the schema is what a developer reads as authority. The swagger help at auth.py:1458 and :1577 says the same and renders into the API reference. The glossary's identity token entry was never revisited when phase 4 added credential set beside it. And a comment at auth.py:1114 says an issuer missing its audience "would accept tokens minted for someone else", which is true of the workload path only.

10k-6 -- the length limit, found independently. Advisory, live. The same defect as 10h-2, reached by a different route, with the extra detail that neither derived documentation test pins these limits: the two that exist pin error shapes only, and one of them exists because another push audit found this class of defect. Independent corroboration from two steps is the strongest evidence this phase produced for any finding.

Question 2 -- the known defect shape is present, once. issuer- discovery is advertised as a capability and no client reads it. Its own comment says a client that cannot see it "has to keep demanding a jwks_uri from whoever is configuring an issuer" -- and that client does not exist: the client at develop has no issuer verb and checks six capability tokens, none of them this one. The whole administrative surface likewise has no client consumer, but the documentation says so deliberately; this is the one advertisement that claims a reader. Three smaller mismatches: the server offers an issuer for login on either of two endpoints while both client flows also require a token endpoint, with tests on each side asserting opposite things and nothing testing the pair; the server's 413 and 429 refusals are absent from the client's status map, so they arrive as a bare exception everywhere except the two login routes that compensate by status code; and two fields in every key detail entry are read by nothing.

Question 3 -- the named blocker is not live, and that is the result. Phase 8's group-claim finding is superseded inside phase 8's own range: shakenfist/federation.py:433-439 matches a list claim by membership, and the fix is 3a36d68549 (Let a group claim grant a namespace, 2026-11-22), which the managing session confirmed is an ancestor of 25c09b60ae. Walking both operator walkthroughs step by step against $TIP -- issuer create without jwks_uri, discovery, the group-bound rule, scopes, sf-client login, the capability gate -- no step fails. The end-to-end workflow this phase expected to find broken works.

10k-7 to 10k-11, advisory, live. The Keycloak administrative configuration exists twice, in phase 8's lab script and phase 9's CI script, down to an identical mapper and its comment, with phase 9 citing phase 8 rather than sourcing it -- so the provider-side truth that both the documentation and the gating CI rest on now lives in two files. Discovery-URL construction exists three times, in three spellings, one of which claims in a comment to do what the cluster does and does not. _as_uuid is copied identically four times, two of them added by these phases. Two phase 4 branches are untested in either repository, including the login's own-misconfiguration 503, which matters because its fallback is a 401 -- blaming the person for the cluster's unreadable trust anchor. And no release note announces human login: phases 3, 4, 8 and 9 never touched that file, so discovery, both login routes, the credential set and the client command are absent from the index of what is new, while each phase documented its own half in the guides.

Two corrections to this plan's own claims follow from this step, and both are made at source: the group-claim premise, which this plan and docs/plans/index.md both stated as still true, and which is fixed; and the audience premise, which 10h independently found superseded in the guide.

10l-1 -- the audience test sends an undeclared parameter, so it has never reached its own assertion. Advisory, live, from d8af94878a; found by the managing session, not by a step. Run 46299313262 is the first dispatch of phase 9's lane to reach the provider step, and it exposed this immediately:

RequestMalformedException: ('API request failed', 'PUT',
    '.../auth/issuers/ci-idp-ieayecix', 400,
    '{"error": "name: not declared by this endpoint", "status": 400}')

_issuer_body() in shakenfist/deploy/shakenfist_ci/cluster_ci_tests/test_oidc_login.py returns a dictionary including 'name', and it is used for both POST /auth/issuers, which declares name in the body, and PUT /auth/issuers/<issuer_name>, which takes the name from the path -- so use_declared_args refuses it. _repoint_the_issuer() (:488) fails for every caller, and test_a_login_is_verified_against_the_client_id_not_the_api_url (:885) therefore fails in its setup. Filed as #5152.

This matters beyond the test, and it is the sharpest thing this phase learned. 10h and 10k both concluded that the audience contract is correct in the code and now correct in the documentation, and 10k noted that the test which would prove it against a real provider had never executed. It has now executed, and it still has not reached its assertion. The contract remains verified by reading rather than by running. A derived test would have caught the cause: shakenfist/tests/external_api/test_parameter_declarations.py already knows which parameters each endpoint declares, and nothing compares the cluster suite's request bodies against that.

Disposition

Sixty findings: fifty-nine across nine steps, plus one the managing session found when phase 9's lane reported mid-phase (10l-1). Five blocking, one medium, the rest advisory or informational. Each report was spot-checked against the tree before being recorded, and this section was agreed with Michael at the back brief's second gate before anything was filed.

The blocking five and the medium one, filed individually in the owning repository.

Finding Grade Issue
10d-1, the JWKS fetch has no body cap and no transfer deadline on either anonymous route Blocking #5141
10f-2, the page scrub is an enumeration that asserts nothing Blocking #5142
10h-1, the replay grain is documented per-rule on four pages Blocking #5143
10h-2, issuer field lengths documented as 255 where 1024 is held Blocking #5144
10j-1, nothing reports that the provider step never ran Blocking #5145
10i-1, POST /auth is unmetered and its bcrypt fan-out is unbounded Medium #5146
10l-1, the audience test sends an undeclared parameter and never reaches its assertion Advisory #5152

The advisory findings, grouped by the class they belong to.

Class Findings Issue
The lab's claim scrub is a deny-list and keeps session and token identifiers 10f-1, 10f-3 #5147
Three helpers exist in several copies, two already diverged 10f-5, 10k-7, 10k-8, 10k-9 #5148
Four annotations that do not do what they say 10c-1 to 10c-4, part of 10d's answer on the listing #5149
Stale audience statements, and no release note announces human login 10h-3, 10h-4, 10h-5, 10k-1 to 10k-5, 10k-11 #5150
CI and lab shell scripts: unchecked node-side tools, a 409 that reads as success 10f-4, 10f-6 to 10f-13 #5151
The client half's four findings, with the floor checklist's verdicts 10g-1 to 10g-4 client-python#468

Recorded as Future work rather than filed, because each is a judgement about this plan rather than a defect someone should pick up cold: 10d-2 to 10d-7 (the JWKS exception translation, the uncapped replay row lifetime, the per-worker cache reasoning, a missing ge=1, a doubled attributes read and a missing collation) go with #5141 as context rather than separately, since all six are in the same module and the same follow-up will touch it; 10e-1 to 10e-4 likewise with

5141 and #5146; 10i-2 to 10i-6 are each low or informational and are

listed in Future work below; and 10j-2 to 10j-5, which are about what this plan's tests are worth, belong to the coverage question #5145 opens rather than to a fix.

Nothing is fixed here. D8: the findings land in a follow-up pull request which records this audit's merge commit and marks the plan Complete. This pull request records what was read and what was found.

One declined. 10c-5, a double-quoted string inside an f-string expression, is noise rather than a violation.

Two of this plan's own claims were wrong and are corrected at source, in their own commit: the discovery endpoint is admin-gated and takes an issuer name, which the survey and two step briefs had as anonymous and uuid-keyed; and phase 8's group-claim blocker was fixed inside phase 8's own merge, which docs/plans/index.md still stated in the present tense.

Outcome

The audit read fourteen ranges: eleven in this repository, two in client-python and one in shakenfist/actions. Ten of the eleven carry code; phase 0's is a decisions document. Wave 1 was clean -- pre-commit, tox at 8,782 tests, the mermaid render and fresh proto stubs all pass at $TIP, and the ten per-range sweeps produced nothing the survey's F8 had not already predicted and attributed.

D2 paid for itself. The phase's worst finding is in G1, the validation half that auth-federation retired without ever auditing: the JWKS fetch on both anonymous routes has no cap on the response body and no deadline over the transfer, while the administrator-only discovery fetch has both -- and the repository had already written that exact hazard down, in the configuration descriptions, including the reasoning that the anonymous path is the one that matters. Had this phase stopped at the eight ranges the plan executed itself, nothing would ever have read it. Two qualifications on that: G1 contains its own pre-push security pass (2feb509bbf), so "never audited" was true of the runbook rather than of the branch; and roughly 70% of G1 by file count still went unread, because 10d spent its budget on the five modules the row named.

The cross-phase lens found what per-phase review structurally could not. The replay grain is documented per-rule on four operator pages and is per-issuer in the code for a login, with ARCHITECTURE.md naming a column that holds an issuer uuid as rule_uuid. Issuer field lengths are documented as 255 and held at 1024 -- found twice independently, which is this phase's strongest single piece of evidence, and stale because the widening landed in a merge D3 declined. A capability is advertised whose own comment claims a reader that does not exist. And no release note announces human login at all: four phases each documented their own half in the guides and none touched the page a reader of the release consults.

Two expectations were overturned, both in the plan's favour. Phase 4's finding that an operator following the guide would configure logins that can never succeed is superseded: five places now state the contract correctly, including a warning box that says the fix is to correct client_id rather than to change audience. And phase 8's group-claim finding -- that the group binding the walkthroughs exist to teach could never fire -- was fixed inside phase 8's own merge, so walking both walkthroughs end to end against $TIP fails at no step. This phase expected to find a documented operator workflow that had never worked, and found one that does.

The coverage question answered itself while the phase ran. The dispatch sent at the back brief, run 46299313262, is the first ever to reach the provider step, and it turns this section from a complaint into a result. The cluster built, so #5138's capacity refusal is intermittent rather than structural; Stand up an identity provider succeeded, which proves #5118; and seven of the eight test_oidc_login tests passed against a real Keycloak on a real cluster -- the issuer round-trip, discovery against the real document, the login metadata, a group-bound rule minting a working scoped key, the refusal of an identity matching no rule, the key metadata's grant, and the client's device login caching the key and discarding it on logout. Four of phase 9's six open criteria are settled by that run, and the lane's duration is now measured at 56 minutes 38 seconds of a 60-minute budget where its own comment predicted 34.

What is still unsettled is narrower and sharper than "nothing has run". The single failure is 10l-1: the audience test sends a parameter the endpoint does not declare and fails in its own setup, so the contract this plan spent five phases getting right is still verified by reading rather than by running. And #5145 stands unchanged -- nothing in the reporting would have told anyone the difference between this run and the two before it, which is exactly why that gap is graded blocking.

Clean results worth recording as results. Signature and claim verification cannot be reached independently. Algorithm confusion is refused, verified by forging tokens rather than by reading code. The identity token in a request and the minted secrets in a response are dropped whole by a route-level predicate rather than redacted field by field, and there is no client_secret field anywhere in the tree. Nothing in any range reaches a shell, builds SQL by interpolation, or builds a filesystem path from a claim value. The system-versus-owner split is decided in exactly one place, and the full view that would leak provenance is called by no handler. The secret floor is clean across all 42,336 added lines, and the committed captures are properly scrubbed, including the <script> case phase 9 had already been caught by once. The three-layer database pattern holds for every accessor these phases added, and the derived parameter sweeps are genuinely derived -- which is what D3's decline of the thirty-eight non-phase merges rests on.

Future work

  • The findings themselves, in a follow-up pull request per D8. It records this phase's merge commit and marks the plan Complete.
  • client-python should carry its own PUSH-AUDIT.md, recorded in client-python#468. The floor checklist is explicitly not a substitute for a runbook, and that repository's blast radius -- a credential store writing long-lived keys to a user's disk, a login surface talking to semi-trusted providers, and a published package -- is not what the server's runbook asks about.
  • The low security findings not filed separately: a key-name prefix held to length but not to the key-name grammar, so a colon in it turns every key that rule mints into a 500 (10i-2); the exchange minting into the caller's spelling of a namespace rather than the resolved one, which the login path gets right (10i-3); an issuer existence oracle on the exchange, disclosing issuer URLs the login metadata route is built to withhold (10i-4); and an unquoted workflow input in shakenfist/actions, not attacker-reachable (10i-5).
  • What this plan's tests are worth (10j-2 to 10j-5): a seam test named for checking the captures against the provider version that checks only two tags; five of sixteen merge-gating exchange tests that skip themselves when their fixture is absent; a scalar group claim in all 72 login-mint tests where both providers emit an array; and one RSA key set answering for every issuer, so the elliptic branches both captures advertise are never exercised. These belong to the coverage question #5145 opens.
  • A derived test for documented limits. #5144 exists because two pages restate a number the code can answer for. The mechanism is already there: _stored_limit() reads stored_max_length().
  • Audit coverage this phase did not reach: roughly 70% of G1 by file count, including its artifact and label access-control half; the bodies of nine test files enumerated by name only, so G3's metadata coverage is unreviewed in detail; and whether tools/ci-jwks-ca.sh runs on the merge-gating lane, which decides whether 10j-3 is latent or active.

Back brief

Before executing any step of this plan, please back brief the operator as to your understanding of the plan and how the work you intend to do aligns with that plan.

Two gates in particular.

The first gate is D2, and it is cheap now and expensive later. Including phases 1 and 2's three auth-federation ranges roughly doubles the phase and buys the only audit those 19,837 insertions will ever get; excluding them drops the baseline to eight ranges and 24,245 insertions and makes steps 10d and 10g much cheaper. Do not start 10b before Michael has agreed which baseline is being audited, because the wave 1 record is per range and would have to be re-run.

The second gate is 10l's graded table, before any issue is filed. Filing is outward-facing and the grading is a judgement, so the table is presented and agreed rather than acted on.

📝 Report an issue with this page