Skip to content

os-dev.md bans dev-written HTML comments in the PR body, while dispatch orders require the <!-- signed: … --> trailer: name the trailer as the second exemption #34702

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filing gate: ① a measured text conflict, raised by two os-dev devs in repo:objectstack#3's area o3-D and passed to triage on its mailbox (6941447645). Seat 3 files no card for it. Dedupe: signed trailer os-dev HTML comment → no open card.

维护者速读

  • 现象: 开发代理的说明书禁止开发在 PR 正文里写 HTML 注释,派发指令却要求 PR 正文最后一行必须是 <!-- signed: … --> 签名。两条规定互相矛盾,开发只能按派发指令来。
  • 为什么要修: 规则互相打架会让开发每次都要犹豫,也会让审核按说明书挑错。
  • 需要你做的: 无。这是受管文本,落地时照常审批。

Evidence (origin/main)

  • .claude/agents/os-dev.md:319-320:
    • "全文 ⛔ 不出现 HTML 注释 … 例外:harness 自写的 PR 正文首行归属注释原样留、只报 … dev 自写仍禁".
    • The only exemption named is the harness's line-1 attribution comment.
  • scripts/pm/fleet-write/dispatch.mjs:871: PR_BODY_TRAILER_SHAPE = '<!-- signed: LANE#N · ACCOUNT · SESSION -->'.
    • Line ~957 orders it written "as the LAST non-empty line, alone".
    • readPrBodyTrailer parses it (~490).

Change

In os-dev.md 〈干净收尾〉, name the signed trailer as the second exemption beside the attribution line:

  • its exact shape (PR_BODY_TRAILER_SHAPE);
  • its place: the last non-empty line, alone;
  • that it is written only when the dispatch order asks for it.

Keep "dev 自写仍禁" for every other comment.

Net lines ≤ 0 where possible: replace the exemption sentence, don't append a paragraph.

Done when

os-dev.md and dispatch.mjs agree. A dev following both writes the trailer and no other HTML comment.

Activity

  1. added
    priority:p2
    pm:queue
    domain:skills
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Scope addition (repo:objectstack#3, 6962193796, from an os-dev run on PR #34985) · 2026-11-17T22:20Z

    1. The HTML-comment contradiction an os-dev run hit today is this card's own item. It is noted here as a fresh recurrence, not filed again.
    2. New, same file: .claude/agents/os-dev.md does not name the Requested-by line that must come before Fixes in the PR body, so devs find it only when a gate refuses. Fold it into this card's fix, with the line's order spelled out next to the trailer rule.

    The grade is unchanged (p2). It is fleet-efficiency tooling (addendum 7), since each miss costs a gate round trip.

  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

    Claim: PM loop round 13 · 2026-11-17T23:06Z
    Session: session_01WGufzgwLiKcfujYUug7sPs
    Account: os-support-ai
    Branch: claude/issue-34702-os-dev-trailer-exemption
    Worktree: objectstack-issue-34702
    Domain: domain:skills
    Seat: repo:objectstack#3
    File surface: .claude/agents/os-dev.md 〈干净收尾〉 only (the HTML-comment exemption line; the Requested-by order line if measured). scripts/pm/fleet-write/dispatch.mjs is read, not edited.
    Container & model: S, mode:subagent (area o3-B), model: claude-fable-5-2 (dispatch-gates --tier: MANDATORY for .claude/agents/**), effort: medium (seat 3, 22:36Z; a governed rules-text reconciliation, not a console card)
    Clause-②: no — internal agent instructions; no published schema, export or accept set moves
    Metadata-protocol: none — no metadata key is touched
    Tier: by check-governed-merges --pr N on the final file list; if H, it goes to os-zhuang after L1 and is never readied or queued by this area
    Responsibility: the relay's PR-body trailer (PR_BODY_TRAILER_SHAPE) landed after os-dev.md's exemption line was written; not traced to a commit yet
    Thread-read: 6962679210
    Premise: measured on origin/main 4443014. The two texts, quoted:

    • .claude/agents/os-dev.md:319-320 (〈干净收尾〉): "全文 ⛔ 不出现 HTML 注释:sanitizer 落库后吃短尖括号片段,连反引号里的也吃。" and "例外:harness 自写的 PR 正文首行归属注释原样留、只报;Fixes #<n> 紧随其后;dev 自写仍禁。"
    • scripts/pm/fleet-write/dispatch.mjs:871: "export const PR_BODY_TRAILER_SHAPE = '';" and its header at :489: "the LAST non-empty line is the trailer <!-- signed: LANE#N · ACCOUNT · SESSION -->"; readPrBodyTrailer reads it.
    • So a dev who follows os-dev.md refuses the trailer the relay requires. This area's devs hit it on PRs fix(components): scroll the form tab strip in the commit that activates the tab #34892, fix(components): page header actions show an in-flight state while their click runs #34956, fix(plugin-grid): a named import mapping names fields by their labels, and its preview survives a second file #34961 and docs(adr): ADR-0150's status line reads Accepted; the stale counts and the ADR-0048 and ADR-0028 pointers follow #35013, and followed the dispatch order each time.
    • Scope addition 6962679210 (the Requested-by line before Fixes): NOT yet measured. A grep of origin/main for Requested-by in scripts/, .github/ and .claude/ finds no gate that requires it. The dev measures where the requirement lives (or that it does not) before writing it into os-dev.md; if no gate or ruling requires it, the dev reports that and does not add it.
    • Change shape per the card: replace the exemption sentence (net lines ≤ 0 where possible), naming the trailer's exact shape, its place (the last non-empty line, alone) and that it is written only when the dispatch order asks; keep "dev 自写仍禁" for every other comment.
      Serial constraints cleared: no open PR in this area touches .claude/agents/os-dev.md; overlap probe owed on the dev's first commit
      Pre-claim lane: domain:skills (p2, released by the maintainer at 22:35Z, routed to o3-B by seat 3)
      Pre-claim deps: no Blocked-by:
      Prior rulings read: triage 6941447645 (o3-D mailbox source) and scope addition 6962679210; thread: 6962679210; repo: objectstack-ai/objectstack

    Lease o3-B under seat 3 (seat post #34584).

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs
    os-dev-report

    {
      "issue": 34702,
      "status": "done",
      "branch": "claude/issue-34702-os-dev-trailer-exemption",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35026",
      "session": "session_01WGufzgwLiKcfujYUug7sPs",
      "premise_still_valid": true,
      "summary": "Item 1 done: .claude/agents/os-dev.md 〈干净收尾〉 now names two exemptions to the no-HTML-comment rule: the harness line-1 attribution comment, and the signed trailer (exact shape, PR_BODY_TRAILER_SHAPE, alone on the last non-empty line, only when the dispatch order asks); every other dev-written comment stays banned. The file sits at its line ceiling (405/405, headroom 0) and the new sentence needs two lines under the 120-byte rule, so one line was paid inside the section by folding the two read-back bullets into one (the clause 评审读的正是它 is deleted; the obligation is kept). Item 2 (Requested-by before the closing keyword): measured and NOT added, because no gate, relay check, PR-body guard or in-tree ruling requires it. Draft PR 35026 at head a5865e4174; governed verdict Tier S; not readied, queued or armed.",
      "tests": "Documentation only: no package touched, no build closure, no package test owed, no ablation. Head a5865e4174.",
      "gates": "node scripts/pm/dispatch-gates.mjs --commands derived 23 families at 4443014630; all 23 run, each exit 0 captured before any pipe (check:doc-formula-expressions first answered exit 3 PREREQUISITE NOT MET, formula not built; re-run exit 0 after turbo build of formula and lint under the verify lock, VERDICT command-exit 0). --ran: 23 derived famil(ies) accounted for, 23 run, 0 NOT-MEASURED (a DERIVED zero). check:pm-skill-ratchet: .claude/agents/os-dev.md is 405 lines (ceiling 405; headroom 0). overlap-check: VERDICT clean exit 0 against origin/main 4443014630 and 0 PR heads. check-governed-merges --pr 35026: exit 3, GOVERNED, Tier S, .claude/** x1. PR check-runs: in_progress at report time, not waited for.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 relay stroke — pr_create (POST pulls, draft; assignees os-support-ai; labels skip-changeset), read back identical 6201/6201 bytes; plus this report comment through post-stamped. git push x2 (empty branch probe, one commit).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — scope addition measured: git grep -i Requested-by over the whole tree at 4443014630 answers 0 hits (control: PR_BODY_TRAILER_SHAPE answers 7 lines in dispatch.mjs). The spelling _Requested by NAME_ exists only in two self-test fixtures (check-governed-queue-guard.mjs:5571, check-owed-reviews.mjs:746) as line 2 of the harness-written attribution block; PR 34985 carries it as harness text. The existing first exemption (leave it, report it) covers it. If a gate did refuse a dev over it, the refusing gate and its message are needed to act; neither is in the tree."
      ]
    }
  6. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

    Delivered · 2026-11-18T00:07Z

    • PR docs(os-dev): name the signed PR-body trailer as the second HTML-comment exemption #35026 merged (merge commit 90897284c24d5534706b1ee324635d1726524e1b); card closed by Fixes.
      • L1 ACCEPT 6964125666 at a5865e4174; seat contract review PASS 6964219960 on the same head; landing 6964241531.
      • Tier S (.claude/**).
      • Dev-effort medium, Rounds 0.
    • Premise: measured on origin/main. .claude/agents/os-dev.md 〈干净收尾〉 banned every dev-written HTML comment, while the relay's PR_BODY_TRAILER_SHAPE (scripts/pm/fleet-write/dispatch.mjs:871) requires the signed trailer as the PR body's last non-empty line.
    • Delivered: os-dev.md names the signed trailer as the second exemption: its exact shape, alone on the last non-empty line, written only when the dispatch order asks. Every other dev-written HTML comment stays banned. The two read-back bullets fold into one that still reads both the comment and the PR body back to the end. The file stays at its 405-line ceiling.
    • Left to others:
      • Scope addition 6962679210 (a Requested-by line before Fixes) was measured and not added: no gate, relay check or ruling requires a dev to write one. A refusing gate, if one turns up, is a new card naming its message.
      • The nits (the 例外二 wording, and the PR body's line cite) have no user effect and stay in the L1 and L2 records.
    • State: pm:dispatched removed (card closed).
  7. removed
    pm:dispatched
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:skillspriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions