Repository navigation
feat(fleet-write): advisory_list, a sealed listing of the triage, draft and closed advisories - #31418
Conversation
…isories One relay row lists the repository's triage, draft and closed advisories: the caller passes its one-time public_key and nothing else. The executor walks each state on the platform's own cursor (per_page 100, a short page or no rel="next" ends a walk, a 3-page cap per state FAILS), takes a next cursor only from one link on this API's collection and state in a closed shape, projects each advisory to ghsa_id, state, severity, created_at and updated_at before the seal, pads the JSON to the channel's full size and seals it exactly as advisory_read seals, so every listing is ten parts of 4,000 characters whatever the count. Nothing but landed or failed, the status and the call reaches the public run. The row spends repository-advisories at read, travels alone, and keeps advisory_read's target-write sender gate, judged before the first GET. The seat side opens it on the existing sealed-read path; advisorySealAad is the one associated-data spelling, advisory_read's bytes unchanged. Claude-Session: https://claude.ai/code/session_01J8VVAnrDeFPtUpYSMR9V1V Co-authored-by: Claude <noreply@anthropic.com>
…y listing The security lane's intake ② and standby patrol now take unledgered ids from the relay's advisory_list read, sealed to the seat's key, instead of saying the cloud seat cannot list the repository's advisories. Line-neutral. Also: the listing battery's off-host and off-path next links now carry an encoded cursor, so they reach the host and path check rather than failing the cursor shape first; and the cap comment states the measured ceiling. Claude-Session: https://claude.ai/code/session_01J8VVAnrDeFPtUpYSMR9V1V Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract-review-claim: session_01J8VVAj7CvjkGXvgXzd6RZ7 · head d5f61a8 · 2026-11-08T07:02Z Full contract review of PR #31418 (#31368, claim 6718064948). The seat review runs at CONTRACT_REVIEW_TIER in an isolated subagent. This is a security-boundary change (a new sealed read row on the relay). |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract reviewServed-tier: Read: card #31368 body and all 2 comments (triage 6717361763, claim 6718064948); the dispatch order ① Derived judgments
Gates (check-runs on the head, read 2026-11-08T07:15:45Z): 50 check-runs, all completed: 27 success, 23 skipped, 0 failure, 0 pending. Lint · PM dispatch-gates, Type Check and Test Core all ended green. The gates file records 51 local commands, all exit 0, including the three self-tests, the ratchet and the commit-trailer check. Local runs (probe above): ② Semver level
③ Boundary flags
④ Design judgment
No must-fix. Implemented-by: VERDICT: PASS |
… and fences the fields it seals - Every listing page's Link is read, a short page's too: a short page that still names a next page is FAILED with nothing emitted. - A page holds only when each advisory's severity is one of the platform's four or null and its created_at and updated_at are ISO-8601 strings; the failure sentence echoes no value. - rel=next is matched case-insensitively (RFC 8288 section 3.3). - validate.mjs's header no longer says the grant belongs to one row. Claude-Session: https://claude.ai/code/session_01J8VVAnrDeFPtUpYSMR9V1V Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract-review-claim: session_01J8VVAj7CvjkGXvgXzd6RZ7 · head 0cd5ad5 · 2026-11-08T07:38Z Delta contract review of PR #31418 from |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 Contract reviewServed-tier: This is a delta review from ① Derived judgments
Gates (check-runs on ② Semver level
③ Boundary flags
④ Design judgment
No must-fix. S1, S2, N1 and N4 are resolved as asked. Implemented-by: VERDICT: PASS |
|
domain:skills#3 · huangyiirene · session_01J8VVAj7CvjkGXvgXzd6RZ7 维护者速读
席位核对 — ACCEPT · domain:skills#3 · head
|
Requested by Irene · project thread
Fixes #31368
维护者速读
需要你做的: 无。本 PR 为 Tier S(
check-governed-merges.mjs --pr实测,命中.claude/**一条),仍欠契约审查(contract review)记录,通过后由席位落地。点名问题(这一集合读权限是否也需要你的点名,如同
advisory_read当初那样?)已答复。你在项目线程中(2026-11-08)说:「我希望安全席位不需要我插手可以自己读取问题处理修复」(gloss: "I want the security seat to read the issues and handle the fixes on its own, without my stepping in")。做了什么:中继新增只读操作
advisory_list,列出本仓triage/draft/closed三态全部公告,每条只留五个字段,加密封给座位的一次性公钥;公开的运行里只写“成功”或“失败”。安全席章程的接收 ② 与巡查改为用这份列表比对台账。无工作流或 App 权限改动。The row's contract
advisory_list,required: ['public_key'],optional: [],alone: true. The caller passes no state, page, cursor or query.GET /repos/{owner}/{repo}/security-advisories?state=<s>&per_page=100[&after=<cursor>], forsintriage,draft,closed, walked in that order.ADVISORY_LIST_PAGE_PATH_SHAPEis the only query shape the refused family admits. The bare collection is still reached by the draft's POST alone; any other query, verb or tail stays refused (validate.mjspins the variants).afteris taken only from exactly onerel="next"link whose origin is this API's, whose path is exactly this repository's collection, whosestateequals the walk's and whoseaftermatchesADVISORY_LIST_CURSOR_SHAPE([A-Za-z0-9+/=_-], 1–256 chars). Anything else is FAILED with nothing emitted. The cursor is never logged. Every page's Link is read;relis matched case-insensitively (RFC 8288). A short page with no next link, or a full page with none, ends a state; a short page that still names a next page is FAILED. HittingADVISORY_LIST_PAGE_CAP(3 pages of 100 per state) is FAILED, never a truncated answer. A repeated id across pages is FAILED.ghsa_id,state,severity,created_at,updated_at(ADVISORY_LIST_FIELDS). Plaintext is{ count, advisories }. Each page is fenced first: every item is an advisory in the asked state with a well-formed id,severityis one ofcritical/high/medium/lowor null, and both dates are ISO-8601 strings. Anything else is FAILED with nothing emitted, and the sentence echoes no value.criticalseverity) up to 215 at 138 bytes (no severity). It binds long before the page cap (300 per state). One more advisory than fits is FAILED with nothing emitted. The self-test pins that zero, one and the largest count that fits seal to the same length and 10 parts, and that one more is refused.target-write, the same asadvisory_readby the maintainer's ruling, checked before the first GET (refused meansnot sent, zero requests). Token: stroke-scopedrepository-advisories: readthrough the row'sgrant; the validator writespermission_repository_advisories=readfor this stroke, the path the workflow already carries foradvisory_read. No.github/**or App permission change.advisory_read, to the action's one-time key. Associated data comes from a sharedadvisorySealAad:advisory_read's bytes are unchanged (pinned byte for byte against the old spelling), andadvisory_list's binds request id, action index andop=advisory_list, so neither answer opens as the other. The seat opens it and prints it to stdout on--revealalone; the trailing-space trim applies toadvisory_list's display only, and the open stays byte for byte.advisory_read's--revealpath is untouched.Charter: before and after
.claude/skills/pm-dispatch/references/lanes/security.md- 接收 ②:无门铃的 \triage` 公告(外报或中继实测):经 `advisory_read` 读,座位贴记 `received`。`- 接收 ②:列表比出的无台账编号(外报、无门铃或席空时建):记 \received`,经 `advisory_read` 读。`- 云席列不了本仓公告,中继也拒裸集合:编号只来自维护者、门铃或中继实测。- 巡查:每轮中继 \advisory_list` 列 `triage`/`draft`/`closed` 比台账;缺行照接收 ②,状态不符即改。`L21 (
--revealstdout only) and L22 (opaque ledger) already cover the output and opacity rules and are unchanged.security-findings.mddoes not restate the rule and is untouched.Line readings
.claude/skills/pm-dispatch/references/lanes/security.md: 53 → 53, every line within the 120-byte budget..claude/skills/pm-dispatch/references/security-findings.md: 65 → 65 (unchanged).node scripts/pm/check-skill-line-ratchet.mjs: exit 0.Batteries
validate.mjsexecute.mjsdispatch.mjsAblations, each run then restored: projection off, pad off, the read's AAD changed, any query admitted by the refused family, the cursor host check off, the short-page next check off, the field fence off, and case-sensitive
rel. Each reds at least one battery.Other sites found (not edited)
.github/workflows/fleet-write.yml, thepermission-repository-advisoriesmint comment: it namesadvisory_readas the one read-only consumer of this input. After this PRadvisory_listshares it, so the comment is incomplete. Outside this surface; the seat will file it..claude/skills/pm-dispatch/references/rest-channel.mdL50: listsadvisory_create等 andadvisory_read. It is a "等" list, not an enumeration, so it is not stale. Not edited.Notes
main, and acceptance is measured after merge.advisory_readbatteries build theirs. No advisory content appears in this PR.skip-changeset(repo tooling only).🤖 Generated with Claude Code
https://claude.ai/code/session_01J8VVAnrDeFPtUpYSMR9V1V