Repository navigation
feat(fleet-write): dependabot_list — a sealed read of the open Dependabot alerts - #39715
Conversation
…bot alerts A read-only relay row mirroring advisory_list end to end: the validator row (public_key alone, alone in its stroke, target-write sender gate), vulnerability-alerts READ minted for that stroke alone through a new stroke-scoped workflow input, the executor's walk of the open alerts on the platform's cursor under a page cap, each alert projected to ten fields, padded and sealed to the seat's one-time key as ten notice parts, and the seat's open and --reveal display. The action lives in its own module, scripts/pm/fleet-write/dependabot.mjs. Claude-Session: https://claude.ai/code/session_01ASNY8XNef4ywkQio6S9ju4 Co-authored-by: Claude <noreply@anthropic.com>
|
security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4 Contract-review-claim: session_01ASNY8XNef4ywkQio6S9ju4 · head 5020068 · 2026-12-04T14:15Z |
|
security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4 Contract reviewServed-tier: Face: governed rules text ( ① Derived judgmentsEach line is a measurement taken at this head, not a reading of a comment.
NOT MEASURED, and said so by the diff: that the narrowed App token reads the list, that the mint succeeds with the new grant, and the endpoint's real ② Semver levelNone. Nothing published changes: ③ Boundary flags
④ Design judgment
Findings. No must-fix. No should-fix. Seven nits, none touching correctness or the contract:
Only nits, so this is the final round for this head. N4 goes to a follow-up card if it bites; the rest are accepted deviations or prose for a later touch of these files. Implemented-by: VERDICT: PASS |
|
security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4 席位记录 · ACCEPT · head 维护者速读
席位意见:ACCEPT。 席位核对ACCEPT — head
|
|
security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4 Review requested · Tier H · 2026-12-04T14:35Z.
|
|
security@os-mickey · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4 Maintainer word · 2026-12-04T15:13Z. In the security seat's session, verbatim: 「同意 #39715 落地当前 head 5020068」. Head now: |
Fixes #39686
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
A read-only relay row,
dependabot_list, that returns the repository's open Dependabot alerts sealed to the asking seat. It mirrorsadvisory_listend to end:validate.mjs):public_keyalone (a state, severity, package, cursor, page or any other key is refused by name), alone in its stroke,senderGate: 'target-write'(the ruling 「同意改成对仓库有写权限,立卡派发修复」 kept as is).ops.mjs+fleet-write.yml):vulnerability-alerts: readjoinsPERMISSIONSandSTROKE_SCOPED_PERMISSIONS. The validator writespermission_vulnerability_alerts=readfor this stroke alone and an EMPTY value for every other stroke. The workflow mintspermission-vulnerability-alertsonly from that output, never as a literal. That input is declared inactions/create-github-app-token'saction.ymlat v3, so there is no "Unexpected input" warning. Every other stroke keeps today's grants exactly.dependabot.mjs, new; called fromexecute.mjs):GET /repos/OWNER/NAME/dependabot/alerts?state=open&per_page=100on the platform's cursor, under a 3-page cap.number, and every projected field of its declared shape. A refusal names the failing fields, never a value.rel="next"link on this API's alerts collection and the open state, in its closed shape. A numeric/repositories/ID/...link is followed only when the id is the repository's own, read once. A refused link prints its shape only.number, state, severity, ecosystem, package, manifest_path, scope, vulnerable_version_range, first_patched_version, ghsa_id. The listing is padded to the advisory listing's one sealed size, sealed under its own associated data (op=dependabot_list), and emitted as exactly ten notice parts.dispatch.mjs): the op joins the sealed-read path by derivation, because it requires apublic_key. The seat makes the key pair, reads back and opens the parts, and--revealalone prints the listing with its pad trimmed. The header, the read-back-locator note and the usage say so.ops.mjs): a newREFUSED_PATH_FAMILIESentry catches every/dependabotpath except the bare alerts collection and its one page shape. This covers one alert, its PATCH path, another state, a page number and the secrets endpoints.Deviations from the dispatch, both deliberate:
scripts/pm/fleet-write/dependabot.mjs, and is added toRELAY_FILES. The dispatch named four.mjsfiles, butexecute.mjsandops.mjsare far over 1,000 lines, and the fleet rule puts a new concern (a new op's action) in a sibling module with only the call left in the original.skip-changesetis set instead. Nothing published changes:scripts/pm/**and.github/**are not in any package'sfiles[], andpr-automation.ymlrejects an empty changeset, so the.changeset/39686-dependabot-list.mdthe dispatch named would redCheck Changeset.Maintainer action owed before the first live run: the fleet App must request the repository permission "Dependabot alerts: Read", and the organization's installation must accept it. Without it, this stroke's mint fails with zero writes. Every other stroke is unaffected, because none of them requests the grant. No live run was attempted.
Tests
Self-tests at
5020068b957:node scripts/pm/fleet-write/validate.mjs --self-test: 520 cases, 25 batteries. This adds a new battery (23 cases, floor 24 → 25) and updates the nine sibling pins that enumerate rows, grants, GETs and outputs.node scripts/pm/fleet-write/execute.mjs --self-test: 500 cases, 33 batteries. This adds a new battery (21 cases, floor 32 → 33).node scripts/pm/fleet-write/dispatch.mjs --self-test: 448 cases, 35 batteries. This adds a new seat end-to-end battery (8 cases, floor 34 → 35).The two pins the dispatch asked for:
dependabot_list, the validator battery checks two things, each alone in its stroke and in the shared stroke of them all: the output line ispermission_vulnerability_alerts=(empty), and the token map lacksvulnerability-alerts. The workflow is checked to mint the input once, from the output, never as a literal.--json, stdout and stderr.Reverse verification (on committed HEAD, restored with
git checkout HEAD --;git diff HEADwas empty after each leg):permission-vulnerability-alerts: readas a literalvulnerability-alertsdropped fromSTROKE_SCOPED_PERMISSIONShtml_urlcrossAcceptance notes
Capacity: about 100 to 120 open alerts. The sealed channel is the advisory listing's own (ten notices, 29,939 plaintext bytes). A typical projected alert is about 250 bytes, so the channel holds about 103 to 117 alerts. A repository with more open alerts gets the over-cap failure with nothing emitted, never a cut list. If that bites, the reading goes to the maintainer, per the ruling's ten-part channel.
NOT MEASURED until the first live stroke:
Linkheader shape this endpoint answers with.Both fail closed: a refused page, or a link off the declared shape, is a FAILED action with nothing emitted.
Out of scope: the security lane's patrol doc (
.claude/skills/pm-dispatch/references/lanes/security.md) names anadvisory_listpatrol and could add adependabot_listone. It is governed and not touched here; carrier: the security seat.Verification
Read first, by risk:
scripts/pm/fleet-write/ops.mjs: the newREFUSED_PATH_FAMILIESentry (the negative lookahead that admits only the alerts page shape), andSTROKE_SCOPED_PERMISSIONS/PERMISSIONS..github/workflows/fleet-write.yml: the one newpermission-vulnerability-alertsinput, read from the validator's output.scripts/pm/fleet-write/dependabot.mjs:dependabotListAction, which covers the gate, the walk, the fences and the seal.Two-minute check: run
node scripts/pm/fleet-write/validate.mjs --self-test && node scripts/pm/fleet-write/execute.mjs --self-test && node scripts/pm/fleet-write/dispatch.mjs --self-test. You should see three✓lines: 520 / 500 / 448 cases across 25 / 33 / 35 batteries.Local gate subset (derived by dispatch-gates --commands)
At
5020068b957, fromnode scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, 75 commands were derived for this diff and all 75 were run locally, each exit code captured before any pipe.pnpm check:pm-fleet-write-validate,pnpm check:pm-fleet-write-execute,pnpm check:pm-fleet-write-dispatch,pnpm check:nul-bytes,pnpm check:declared-population-liveandpnpm check:pm-dispatch-gates.pnpm check:i18n-coverageexited 3, PREREQUISITE NOT MET: no packagedist/is built in this worktree, so nothing was linted. The diff touches no i18n surface; CI runs it.The reconciliation with
--ranprinted✓ dispatch-gates --ran: 75 derived famil(ies) accounted for — 74 run, 1 NOT-MEASURED.Families CI runs over a whole root, the artifact rosters and the type-check lanes are CI's to report on this PR's check-runs.
🤖 Generated with Claude Code
https://claude.ai/code/session_01ASNY8XNef4ywkQio6S9ju4