Repository navigation
Description
security#1 · os-mickey · session_01ASNY8XNef4ywkQio6S9ju4
Filing class ③ (a task the maintainer dispatched directly) · Source: maintainer
Need
The relay (scripts/pm/fleet-write) can create, read, list, note, rewrite, version and move the state of a repository security advisory. It cannot set an advisory's severity. ADVISORY_REWRITE_FIELDS is summary and description only, and advisory_report's optional severity applies to a new report only.
A seat that grades an advisory, or takes a hand-over graded differently from the field, cannot make the field agree. That matters because:
- the field is what the publish-or-not list is ordered by;
- the field is what a published advisory shows the public.
Today the only route is the maintainer editing each advisory by hand in the GitHub UI. A seat's direct PATCH …/security-advisories/{ghsa_id} from the session is refused by the session proxy (HTTP 403, measured 2026-11-24 by security#1). That refusal is correct, because advisory writes belong to the relay.
The maintainer's word, in the security#1 session, verbatim:
- 2026-11-24: 「级别也你修改」;
- after the seat reported that no relay row sets severity: 「先立卡处理,支持车队改级别」.
Rule to deliver
A new relay row, say advisory_severity, sets the severity of an advisory that is not published, through the same stroke-scoped repository-advisories token the other advisory rows use.
- Inputs:
ghsa_id, plusseverityfrom a closed enum:low | medium | high | critical.- Whether to also take
cvss_vector_string(and how the platform treats severity when a vector is set) is the dev's to measure against the REST description and state. - No free text, so nothing needs sealing. The row carries no prose.
- Whether to also take
- Refusals: refuse a published advisory. Refuse a value outside the enum by name, never echoing anything else.
- Read-back:
- the executor confirms the stored
severityfrom the PATCH answer; - the seat side confirms it through the existing sealed
advisory_listfieldseverity; - nothing else of the advisory leaves the run.
- the executor confirms the stored
- Pins: the op table's closed-shape tests, a validator refusal per bad input, and the executor's read-back. Follow the pattern of
advisory_stateandadvisory_versions. - Docs: the lane charter's write list (
references/lanes/security.md,security-findings.md§3) gains the row only if the dev's PR is on that surface; otherwise a one-line pointer in the relay's header is enough. A skills-surface edit is its own governed PR.
Readers
- Who builds it: the lane triage routes this to. The precedent relay-row card fleet-write: the relay can replace an unpublished advisory's summary and description, sealed like a note #36662 (closed) carried
domain:devx; triage decides. - Who uses it: the security seats (
security#1,security#2). Each one sets the field the moment its grading or the maintainer's word differs from it.
Dedupe
Issue search on repo:objectstack-ai/objectstack is:issue, open and closed:
advisory_severity: 0 hits;advisory severity relay: 128 hits, none about setting severity. The nearest are pm/fleet-write: a relay op that creates a DRAFT repository security advisory (POST /security-advisories) under the stroke-scoped advisories token, so security findings are not capped by the one-report-a-day private-report limit #29410 (closed,advisory_create), security#1 seat cannot list the repository's security advisories, so a draft no seat rang for never reaches its ledger #31368 (closed,advisory_list) and fleet-write: the relay can replace an unpublished advisory's summary and description, sealed like a note #36662 (closed,advisory_rewrite), each a different row.
Grading: p2. A wrong severity misorders the publish list and would publish a wrong grade. The maintainer's UI is a working route meanwhile.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:fleet·domain:devx·priority:p2· Task ·pm:queue· size S. Area and grade are as filed.domain:devxandpm:queueare added here. The type moves from Feature to Task. This answers security#1'sRequest: triage(mailbox #36743, comment 7118993699).Rationale: the card is a new relay row in
scripts/pm/fleet-write, which is fleet tooling, so it is a Task under North Star Priority rule 2. A Task defaults to p3 and rises to p2 when it blocks work being dispatched. It does here: the maintainer handed severity grading to the security seat (「级别也你修改」), and without this row every graded advisory waits on a manual edit by the maintainer. The row carries no prose and no advisory content, so the card stays public. The security mechanism itself stays in the private advisories.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAkM6NwKqyRvArruqTq
Claim: PM loop round 1
Session:
session_01J8VVAkM6NwKqyRvArruqTqAccount:
huangyiireneBranch:
claude/project-thread-2576k2(restarted from main once PR #37048 merges; it is that PR's head until then)Worktree:
objectstack-issue-36805Domain:
domain:devxSeat:
repo:objectstack#2Area: f2-A
File surface:
scripts/pm/fleet-write/**(ops.mjs, validate.mjs, execute.mjs; dispatch.mjs only if the seat-side read-back needs it). ⛔ No.claude/**edit: the lane-charter write list is a separate governed card if wanted; the card allows a one-line pointer in the relay header instead.Container & model:
M (S by triage; the cvss_vector_string question is a platform measurement, a design judgment),mode:subagent,model: default tier — dispatch-gates --tier at a73edb3c: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s), derived here, not recalled.",effort: highClause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 7119016781
Premise: holds
Serial constraints cleared:
PR #37048 (card #37005, same three files) is in the merge queue since 2026-11-24T17:57Z; this card's dev starts from main after it merges (no stacked PR). No other open PR touches scripts/pm/fleet-write/** (overlap-check at a73edb3c, VERDICT clean).Pre-claim lane:
repo:objectstack#2, area f2-A — a new row inscripts/pm/fleet-write/**(op table in ops.mjs, executor read-back in execute.mjs, batteries in validate.mjs), the f2-A lease path on seat post #34478.Pre-claim deps: the card names no
Blocked-by:; the serial predecessor is PR #37048 (above).Prior rulings read: advisory_severity,severity,security-advisories → 2 hits; ADR-0030 Decision §2, ADR-0109 Decision §3 (both on unrelated "severity" senses: the target object model and skill tool linting, neither on advisories); thread: none; repo: objectstack-ai/objectstack.
Premise readings at origin/main:
advisory_severityhas 0 hits inscripts/pm/fleet-write/**;ADVISORY_REWRITE_FIELDSis['summary', 'description'](ops.mjs:3083);advisory_report's optionalseverityrides the new-report POST only (ops.mjs:3854–3860);advisory_versionsrefusesseverityandcvss_vector_stringby name (validate.mjs:2046).Fold-or-serial: answered on #37005's claim (7136340423) — not folded (gate ① fails), serial behind it.
Writes: PR only through relay
pr_create; comments, labels and bodies only through the relay write tools (post-stamped.mjs,label-write.mjs,issue-create.mjs,fleet-write/dispatch.mjs). ⛔ No GitHub MCP writes (create_pull_request,update_pull_request,issue_write,add_issue_comment, …).objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAkM6NwKqyRvArruqTq
os-dev-report
{ "issue": 36805, "status": "done", "branch": "claude/project-thread-2576k2", "pr": "https://github.com/objectstack-ai/objectstack/pull/37167", "session": "session_01J8VVAkM6NwKqyRvArruqTq", "premise_still_valid": true, "summary": "Added relay row advisory_severity (scripts/pm/fleet-write): required ghsa_id + severity (reuses the quiet enum ADVISORY_SEVERITIES, one copy), ONE PATCH whose table-built body is exactly { severity }, alone, repository-advisories write minted for its stroke (workflow unchanged, grant derived from the row). The executor reads the advisory first and judges ADVISORY_SEVERITY_FENCES = ADVISORY_FENCES with from ADVISORY_SEVERITY_STATES (triage/draft/closed, copied from advisory_note/advisory_rewrite; published and withdrawn refused) plus a new cvss fence; it lands only when the PATCH answer, still unpublished, stores the severity sent (advisorySeverityReadBack). Nothing prints the severity word (matching advisory_list, which seals it); the seat reads it back through advisory_list. CVSS measured on GitHub's REST description (rest-api-description c9c95fe3, read 2026-11-24): severity and cvss_vector_string are either/or, the vector 'calculates the severity', and a documented 422 'Cannot update severity value when CVSS is set.' — so no vector input, and the cvss fence refuses (not sent) an advisory carrying a vector in cvss or cvss_severities.cvss_v3/v4, or either field in an undeclared shape; how such advisories get a severity is an open question below. Landing: ops.mjs, validate.mjs, execute.mjs only (dispatch.mjs needs nothing: packer derives from the table); header pointer to the security lane write list in ops.mjs. Diff: 3 files, +347/-29 = 376 changed lines.", "files_changed": ["scripts/pm/fleet-write/ops.mjs", "scripts/pm/fleet-write/validate.mjs", "scripts/pm/fleet-write/execute.mjs"], "additions_deletions": "347 + 29 = 376", "tests": "On head 03e197db: `node scripts/pm/fleet-write/validate.mjs --self-test` => '✓ fleet-write/validate self-test: 480 cases pass across 24 batteries' (main 463/23; new battery advisory_severity floor 17, battery floor 23->24); `node scripts/pm/fleet-write/execute.mjs --self-test` => '✓ fleet-write/execute self-test: 471 cases pass across 32 batteries' (main 464/31; new battery floor 7, battery floor 31->32); `node scripts/pm/fleet-write/dispatch.mjs --self-test` => '✓ ... 430 cases pass across 34 batteries' (unchanged). Pins: op-table closed shape and one-copy enum; validator refusal per bad input (missing id, 10 malformed ids, missing severity, 12 out-of-enum values by key name with no echo, 15 extra keys by name, alone x3, grant); fences (3 states pass; published/withdrawn/none/unknown at state; vector at cvss/cvss_v3/cvss_v4, blank vector, 5 undeclared shapes at cvss); read-back landed in 3 states, FAILED on other/none/undeclared severity, published answer, other id, refusal, non-advisory; executor: landed, 7 fenced not-sent (exit 5, 0 writes), 3 read-back FAILED (1 write, never re-sent), 422 'CVSS is set' cause printed, 7 gated before any request (exit 2, 0 requests), 22-run marker sweep (marker/vector on no channel, severity word on no row/summary/annotation). Ablations via scripts/ablation-replace.mjs (scripts run from source, no build/dist): read-back skips compare => validate 1/480 + execute 1/471 failed; ADVISORY_SEVERITY_STATES admits published => 4/480 + 2/471; cvss fence always passes => 2/480 + 1/471; each restore 'ok restored: blob == HEAD (3cdd1a20f134) and git diff HEAD is empty'.", "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (stderr: tree objectstack-ai/objectstack at 03e197db) derived 63 families; each run with output redirected before exit capture; 62 exit 0 (incl. check:pm-fleet-write-validate/-execute/-dispatch, check:pm-dispatch-gates fast tier 2273 cases in 418s via nohup+tail --pid, check:pm-governed-merges, check:nul-bytes, check:commit-card-trailers, check:issue-citations, check-comment-mask-corpus); `pnpm check:i18n-coverage` exit 3 PREREQUISITE NOT MET (workspace CLI not built) => NOT MEASURED, CI's. `--ran` reconciliation: '✓ dispatch-gates --ran: 63 derived famil(ies) accounted for — 62 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)' exit 0. overlap-check: 'VERDICT clean exit 0'; check-commit-card-trailers --range origin/main..HEAD: clean (exit 0). No exported symbol renamed/deleted, so check-platform-checklist not owed. CI on PR #37167 head 03e197db at report time: Check Changeset success; Governed Surface Queue Guard, Lint · (CI/release & engine, ESLint, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), PR-body guards, Type Check · (consumer, debt ledger, source, workspace), Check PR Size, filter: in_progress; opt-in/queue/borrowed jobs skipped. Not waited on, per contract.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (Clause-②: no)", "mcp_calls": "0", "api_writes": "2 relay strokes — (1) fleet-write/dispatch.mjs pr_create: POST /repos/objectstack-ai/objectstack/dispatches (run 45518573349) => relay executed POST /repos/objectstack-ai/objectstack/pulls (#37167, draft), POST /repos/objectstack-ai/objectstack/issues/37167/assignees, POST /repos/objectstack-ai/objectstack/issues/37167/labels; read back identical (12052 bytes), assignee huangyiirene, label skip-changeset; (2) post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/36805/comments (this report). Plus git push x2 (empty-branch probe, then 03e197db), not REST. Reads only otherwise (gh api issue/comments/pull/check-runs).", "open_questions": [ { "question": "An advisory that already carries a CVSS vector cannot take a severity PATCH (documented 422 'Cannot update severity value when CVSS is set.'); the row refuses it at the cvss fence. Should the relay do more for such advisories?", "options": [ "A — Nothing more: severity-only row as landed; a vector-set advisory's severity stays the maintainer's in the GitHub UI (cost: zero; that subset keeps the manual route)", "B — Let advisory_severity also clear the vector (send { severity, cvss_vector_string: null }) (cost: small code, but NOT measured — the description says choose one field, so this may itself be refused; needs a live probe and a ruling, since clearing a reporter's vector discards their scoring)", "C — Add an optional cvss_vector_string input, exclusive with severity, validated against the CVSS 3.1/4.0 grammar (cost: medium — a grammar validator, read-back of cvss.vector_string and the derived severity, more pins; widens the write surface)" ], "recommendation": "A. Business need (measured): no relay row writes a vector (advisory_create and advisory_report bodies carry none), so only an external reporter's form or the maintainer's UI can set one; no seat has named a vector-set advisory it could not grade — zero measured pull. Long-term: the row stays contract-first — it refuses loudly, naming the fence, instead of sending a PATCH the platform documents as refused or silently discarding a reporter's score. AI-error resistance: one closed four-word enum is the hardest thing to get wrong; a free-form vector string (C) or an implicit clear (B) is exactly where an AI author would write a value the platform rejects or that silently changes the grade. Startup scope: A adds nothing; B and C are capability expansion without a named user — revisit when a seat reports a concrete vector-set advisory, with the live 422 reading." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — ops.mjs ADVISORY_LIST_SEVERITIES duplicates ADVISORY_SEVERITIES (same four values, pre-existing on main); not a defect, no reach; left alone (named in PR Acceptance notes)", "carrier: none · noted, not filed — dispatch.mjs usage text and ADVISORY_ACCESS_REMEDY ('its versions and its state') do not mention advisory_severity; the packer derives the row from the table, so behaviour is unaffected; dispatch.mjs was outside the expected landing", "carrier: none · noted, not filed (a governed .claude edit, the card's own carve-out) — the security lane write list (pm-dispatch references/lanes/security.md, security-findings.md §3) does not name advisory_severity; the card allows the header pointer instead, which ops.mjs now carries; adding the row there is its own governed .claude edit" ] }github-actions commentedon Nov 26, 2026
os-closed-card-sweep — machine-findable marker for this generated comment.
Removed the pm-loop state label(s) this closed card no longer claims:
pm:dispatched.d0088bbb8f, merged intomain.priority:p2,domain:devx,area:fleet— ownership, priority and outcome are not state claims.A state label claims work is in flight. This card is closed on a merged delivery, so the claim
is stale; every other label is left exactly as it was found. Nothing here is a judgement about
the card, and no verdict-bearing label is ever touched by this sweep.
posted by half-state-patrol run 45733194792 · trigger
workflow_dispatchGenerated by Claude Code