Repository navigation
fix(ci): narrow serve-ab's self-hosted wipe to the A/B checkout dirs #9228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 20 commits
e0e1d61
2eeb0ce
aa3ab19
e765e1a
e7bb585
900221e
415d980
8074297
664f791
781a982
50d038c
2a2c6c4
a8a4ec6
d92db6d
a861aeb
9658f76
0323a69
c3357ee
4fd6a7a
51777f4
9b5b134
8306207
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,8 +40,7 @@ const pickRunner = ciDoc.jobs.classify_pr.steps.find( | |
| // author_association. | ||
| function simulateRunsOn({ ecsDisabled, sameRepo, assoc, mergeGroup }) { | ||
| const trusted = TRUSTED.includes(assoc); | ||
| const ecs = | ||
| !ecsDisabled && (sameRepo || trusted || mergeGroup); | ||
| const ecs = !ecsDisabled && (sameRepo || trusted || mergeGroup); | ||
| return ecs ? ECS : HOSTED; | ||
| } | ||
|
|
||
|
|
@@ -169,7 +168,10 @@ describe('ci.yml classify_pr runner routing', () => { | |
| classifyRunsOn, | ||
| /contains\(fromJSON\('\["OWNER","MEMBER","COLLABORATOR"\]'\), github\.event\.pull_request\.author_association\)/, | ||
| ); | ||
| assert.match(classifyRunsOn, /vars\.MAINTAINER_ECS_RUNNER_DISABLED != 'true'/); | ||
| assert.match( | ||
| classifyRunsOn, | ||
| /vars\.MAINTAINER_ECS_RUNNER_DISABLED != 'true'/, | ||
| ); | ||
| assert.match(classifyRunsOn, /github\.event_name == 'merge_group'/); | ||
| }); | ||
| }); | ||
|
|
@@ -188,12 +190,109 @@ describe('serve-ab.yml runner routing', () => { | |
| assert.match(runsOn, /ubuntu-latest/); | ||
| }); | ||
|
|
||
| it('wipes the reused workspace before checking out PR code', () => { | ||
| const wipe = serveAbDoc.jobs.ab.steps.find( | ||
| (s) => s.name === 'Wipe stale workspace before checkout', | ||
| it('wipes the reused workspace except the shared root .git before checking out PR code', () => { | ||
| const steps = serveAbDoc.jobs.ab.steps; | ||
| const wipeIndex = steps.findIndex( | ||
| (s) => | ||
| s.name === | ||
| 'Wipe stale workspace except the shared .git before checkout', | ||
| ); | ||
| assert.ok(wipe, 'self-hosted reuse must not bleed one PR into the next'); | ||
| assert.ok( | ||
| wipeIndex !== -1, | ||
| 'self-hosted reuse must not bleed one PR into the next', | ||
| ); | ||
| const wipe = steps[wipeIndex]; | ||
| assert.equal(wipe.if, "${{ runner.environment == 'self-hosted' }}"); | ||
| assert.match(wipe.run, /find "\$WS" -mindepth 1 -maxdepth 1 -exec rm -rf/); | ||
| // The script text alone does not decide whether the wipe runs: the | ||
| // shell wrapper, continue-on-error (step and job level), and env | ||
| // overrides (BASH_ENV, PATH, GITHUB_WORKSPACE) — at step, job, and | ||
| // workflow level — all control whether the pinned command executes | ||
| // and whether its failure fails the job. | ||
| const shell = | ||
| wipe.shell ?? | ||
| serveAbDoc.jobs.ab.defaults?.run?.shell ?? | ||
| serveAbDoc.defaults?.run?.shell; | ||
| assert.ok( | ||
| shell === undefined || shell === 'bash', | ||
| 'the wipe must run under the default bash wrapper', | ||
| ); | ||
| assert.ok( | ||
| !('continue-on-error' in wipe), | ||
| 'a failed wipe must fail the job, not bleed into the next PR', | ||
| ); | ||
| assert.ok( | ||
| !('continue-on-error' in serveAbDoc.jobs.ab), | ||
| 'a job-level continue-on-error would mask a failed wipe', | ||
| ); | ||
| for (const envMap of [wipe.env, serveAbDoc.jobs.ab.env, serveAbDoc.env]) { | ||
| assert.ok( | ||
| !envMap || | ||
| (envMap.BASH_ENV === undefined && | ||
| envMap.PATH === undefined && | ||
| envMap.GITHUB_WORKSPACE === undefined), | ||
| 'BASH_ENV, PATH, or GITHUB_WORKSPACE can shadow the pinned wipe command', | ||
| ); | ||
| } | ||
| // The sudo-less wipe only works because ownership-restore ran first, | ||
| // and it must precede the checkouts or it deletes the freshly | ||
| // checked-out code instead of stale leftovers. | ||
| const stepIndex = (name) => steps.findIndex((s) => s.name === name); | ||
| const ownershipIndex = stepIndex('Restore workspace ownership'); | ||
| assert.ok( | ||
| ownershipIndex !== -1, | ||
| 'the wipe depends on the ownership-restore step existing', | ||
| ); | ||
| assert.match( | ||
| steps[ownershipIndex].run, | ||
| /chown -R .* "\$GITHUB_WORKSPACE"/, | ||
| 'ownership-restore must actually chown the workspace', | ||
| ); | ||
| assert.ok( | ||
| ownershipIndex < wipeIndex, | ||
| 'the wipe depends on ownership-restore running first', | ||
| ); | ||
| const checkouts = steps.filter((s) => | ||
| String(s.uses || '').startsWith('actions/checkout'), | ||
| ); | ||
| for (const checkout of checkouts) { | ||
| assert.ok( | ||
| steps.indexOf(checkout) > wipeIndex, | ||
| 'the wipe must run before every checkout it protects', | ||
| ); | ||
| } | ||
| assert.ok(checkouts.length >= 2, 'expected at least two checkouts'); | ||
| // Wiping the shared root .git forces the next job on this runner to | ||
| // re-fetch the full history from github.com — on the ECS pool's slow | ||
| // link that is the "hung runner" pathology. The checkout-heal path | ||
| // guard (#9220, #9265) ahead of it is pinned and exec-verified by | ||
| // scripts/tests/serve-ab-workflow.test.js; here pin that the guard is | ||
| // present and hands off to the kept-.git tail, line by line, so any | ||
| // change forces a deliberate test update. | ||
| assert.match( | ||
| wipe.run, | ||
| /refusing to wipe suspicious workspace path/, | ||
| 'the wipe must keep the checkout-heal path guard', | ||
| ); | ||
| const executed = wipe.run | ||
| .split('\n') | ||
| .map((l) => l.trim()) | ||
|
Comment on lines
+277
to
+278
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Declined — intentional strictness, not an oversight. This round's rework pins the wipe step's entire executed-line set (see the R2-1 thread), and that pin is deliberately exact: any change to the wipe script — a backslash continuation wrap or a trailing inline comment on the rm line included — must update the pin in the same diff. That friction is the point: an edit to this 中文说明拒绝——这是有意的严格性,并非疏忽。本轮重构将 wipe 步骤的全部执行行集合作为固定对象(见 R2-1 线程),且该固定有意做到精确:wipe 脚本的任何改动——包括续行反斜杠换行或 rm 行尾的行内注释——都必须在同一 diff 中同步更新固定。这种摩擦正是目的所在:对该 |
||
| .filter((l) => l !== '' && !l.startsWith('#')); | ||
| assert.equal(executed[0], 'set -uo pipefail'); | ||
| const tail = executed.slice(-3); | ||
| assert.equal( | ||
| tail[0], | ||
| 'find "$WS" -mindepth 1 -maxdepth 1 ! \\( -name \'.git\' -type d \\) -exec rm -rf {} +', | ||
| 'the wipe must keep only a REAL .git directory — a symlink or gitfile named .git can point outside the workspace — and only the guarded $WS may reach the rm', | ||
| ); | ||
| assert.equal( | ||
| tail[1], | ||
| 'rm -rf "$WS/.git/hooks" "$WS/.git/info/attributes"', | ||
| 'the kept .git must lose its hooks and info/attributes exec vectors', | ||
| ); | ||
| assert.equal( | ||
| tail[2], | ||
| '{ git config --local --name-only --list 2>/dev/null || true; } | { grep -ivE \'^(core\\.(repositoryformatversion|bare|filemode|symlinks|ignorecase|precomposeunicode|logallrefupdates|worktree|hidedotfiles|protecthfs|protectntfs)|remote\\.|branch\\.|extensions\\.|gc\\.|pack\\.|fetch\\.|index\\.|safe\\.|submodule\\.[^.]+\\.(url|active|branch))\' || true; } | while IFS= read -r key; do git config --local --unset-all "$key" 2>/dev/null || true; done', | ||
| 'the kept .git config must be scrubbed to the qwen-triage.yml config-sanitize allowlist', | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deferred to the next round. Critical-only mode is active (5 change-producing rounds complete), and this cross-copy allowlist parity pin targets exactly the scrub whose fate is the open maintainer decision on the R9-1 thread — pinning it now would preempt that call and grow a diff that option 1 deletes outright. Left open for the next round / human follow-up. 中文说明延后至下一轮。 Critical-only 模式已生效(已完成 5 个产生改动的轮次),而这个跨副本 allowlist 一致性钉住的目标,正是 R9-1 线程中待维护者决策的擦洗本身 —— 现在钉住会抢先于该决策,并增大一个在方案 1 下会被整体删除的 diff。保持开放,留待下一轮 / 人工跟进。 |
||
| ); | ||
| }); | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,14 +88,13 @@ jobs: | |
| fi | ||
| chmod -R u+rwX "$GITHUB_WORKSPACE" 2>/dev/null || sudo -n chmod -R u+rwX "$GITHUB_WORKSPACE" || echo "::warning::could not restore workspace write permissions; checkout may fail on leftover read-only files" | ||
|
|
||
| - name: 'Wipe stale workspace before checkout' | ||
| - name: 'Wipe stale workspace except the shared .git before checkout' | ||
| if: "${{ runner.environment == 'self-hosted' }}" | ||
| run: |- | ||
| set -uo pipefail | ||
| # The two checkouts clone into head/ and base/ subdirectories; | ||
| # leftovers there from a previous run on the same reusable runner | ||
| # could bleed into the builds and silently change the posted A/B | ||
| # diff. Hosted runners are ephemeral and never see this. After the | ||
| # Leftovers from a previous run on the same reusable runner could | ||
| # bleed into the builds and silently change the posted A/B diff. | ||
| # Hosted runners are ephemeral and never see this. After the | ||
| # ownership-restore step everything is user-owned, so no sudo. | ||
| # | ||
| # Guard, ported from qwen-code-pr-review.yml's checkout heal | ||
|
|
@@ -166,6 +165,8 @@ jobs: | |
| # Canonicalize before matching: the kernel resolves non-canonical | ||
| # spellings to the guarded roots (`/home/.` -> /home, `//usr` -> | ||
| # /usr), so a raw string match lets them slip past the case arms. | ||
| # Realpath also resolves a symlinked workspace root before the | ||
| # match, so the wipe below never starts from a link. | ||
| WS="$(realpath -m -- "$WS" 2>/dev/null)" || { echo "::error::refusing to wipe: realpath unavailable, cannot canonicalize ${GITHUB_WORKSPACE}"; exit 1; } | ||
| while [ "${WS%/}" != "$WS" ]; do WS="${WS%/}"; done | ||
| case "$WS" in | ||
|
|
@@ -181,10 +182,28 @@ jobs: | |
| "$RWS"/*) ;; | ||
| *) echo "::error::refusing to wipe workspace outside the runner workspace: ${WS} (runner workspace: ${RWS})"; exit 1 ;; | ||
| esac | ||
| # Bare on purpose: this job runs under `bash -eo pipefail`, so a | ||
| # wipe that cannot clear the workspace fails the job here instead | ||
| # of building both checkouts on top of the leftovers. | ||
| find "$WS" -mindepth 1 -maxdepth 1 -exec rm -rf {} + | ||
| # Everything is removed except a real shared root .git directory: | ||
| # wiping the .git forces the next job on this runner to re-fetch | ||
| # the full ~900 MB of history from github.com. On the ECS pool's | ||
| # slow link that stalls checkouts for 20+ minutes and the fetches | ||
| # drop mid-pack often enough to read as hung runners. Only a plain | ||
| # directory survives the find: a symlink or gitfile named .git can | ||
| # point at an attacker-controlled repo outside the workspace, so it | ||
| # is removed like any other leftover. The kept repo is then reduced | ||
| # to plumbing — hooks and info/attributes deleted, local config | ||
| # scrubbed to the same allowlist as qwen-triage.yml's config- | ||
| # sanitize (git's exec knobs are an open-ended class; an allowlist | ||
| # closes the class instead of denylisting knobs one by one). | ||
| # Objects and refs — the reason the .git is kept — are untouched, | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Escalated together with the R9-1 thread — same maintainer decision. The refs/replace channel reproduces independently here: after the verbatim wipe, 中文说明与 R9-1 线程一并升级 —— 同一个维护者决策。 refs/replace 通道已在此独立复现:原样 wipe 之后
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disposition: escalated to a maintainer's decision — same pending decision as the R9-1 thread; this thread is deliberately left open. The finding was re-probed at the reviewed commit and stands. This round's re-probe on this checkout ( Why this is escalated instead of implemented: closing this class structurally — deleting Question for the maintainer: see the R9-1 thread — revert to the full wipe, or keep the design and gate the kept 中文说明处理决定:上交给维护者决策——与 R9-1 讨论串是同一个待定决定;本讨论串有意保持未解决状态。该发现已在被审查提交上重新探测验证,结论成立。 本轮在本检出( 为什么选择上交而不是直接实现:从结构上闭合这一攻击面——删除 给维护者的问题: 见 R9-1 讨论串——回退到完整 wipe,还是保留现有设计并对保留
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still standing at the current head — I re-probed it myself this round: planted 中文说明在当前 head 上仍然存在 —— 本轮我亲自重跑了探针:预植
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verified against No code change this round — this is the same pending maintainer decision as the R9-1 thread: revert to the full wipe, or a fail-closed integrity gate (delete loose and packed 中文说明已在 本轮未改代码——这与 R9-1 线程是同一个待维护者决策的问题:恢复完整 wipe,或失效即关的完整性门禁(删除松散与打包的
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Critical] R8-9 still stands at R8-9 is the structural half of that decision: refs/replace and pack-index forgery live in the object store, where no config scrub reaches. Option (B) in the R9-1 thread therefore must include the objects/refs integrity gate — delete replace refs (loose + packed-refs), sweep non-essential ref namespaces, gate reuse on 中文说明[Critical] R8-9 在 R8-9 是该决策的结构性部分:refs/replace 与 pack-index 伪造位于对象库层面,任何 config 清理都无法触及。因此 R9-1 线程中的选项 (B) 必须包含 objects/refs 完整性闸门 —— 删除 replace 引用(loose 与 packed-refs)、清理非必要的 ref 命名空间、以
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disposition: escalated for a maintainer decision — thread left open; same pending decision as R9-1. The finding stands at The objects+refs surface cannot be closed entrance-by-entrance — it closes only structurally, with the same decision as the R9-1 thread (triage defer comment 5311584017): (A) revert to the full wipe, or (B) treat objects+refs as untrusted before reuse — delete Open question: same as R9-1 — (A) or (B)? No code change on this class until the maintainer answers. 中文说明处置:已升级给维护者决策 — 线程保持开放;与 R9-1 为同一待决决策。 该发现在 对象+引用这个面无法逐入口关闭 — 只能在结构上关闭,依赖与 R9-1 线程(triage 延后评论 5311584017)相同的决策:(A) 回退到完整擦除;或 (B) 在复用前把对象+引用视为不可信 — 删除 开放问题: 与 R9-1 相同 — (A) 还是 (B)?在维护者答复之前,不会对这个类别做任何代码改动。
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stands, and deliberately left unresolved — it closes only via the same pending maintainer decision as R9-1 (triage defer comment 5311584017). Verified read-only at head 中文说明该发现依然成立,并被有意保持未解决——它只能通过与 R9-1 相同的待决维护者决策来闭合(triage 延后评论 5311584017)。已在 head
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stands at this head, and deliberately left unresolved — same escalation as the round-18 thread: closes only via the pending maintainer decision shared with R9-1 (triage defer comment 5311584017). The round-19 re-probe adjudicating the replace-ref dispute is acknowledged: 中文说明在该 head 上依然成立,并被有意保持未解决——与第 18 轮线程相同的升级:只能通过与 R9-1 共享的待决维护者决策来闭合(triage 延后评论 5311584017)。第 19 轮对 replace 引用争议的重新探测裁定已知悉:
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disposition: escalated — same pending maintainer decision as the R9-1 thread; deliberately left unresolved. Verified at the reviewed commit: HEAD is Question for the maintainer: same as the R9-1 thread — (A) revert to the full wipe, (B) keep-and-harden with the integrity pass above, or (C) record a risk acceptance and merge as-is? 中文说明处置:已升级——与 R9-1 线程等待同一维护者决策;有意保持未解决。 已在被评审提交核实:HEAD 为 给维护者的问题:与 R9-1 线程相同——(A) 恢复全量清理,(B) 按上述完整性检查保留并加固,还是 (C) 书面记录风险接受并按现状合并? |
||
| # and actions/checkout re-establishes remote/auth when it reuses | ||
| # the repo. The find and the defang rm stay bare on purpose: under | ||
| # the job's `bash -eo pipefail` a wipe that cannot clear the | ||
| # workspace fails the job here instead of building both checkouts | ||
| # on top of the leftovers. Only the config scrub is best-effort, | ||
| # mirroring qwen-triage.yml's config-sanitize. | ||
| find "$WS" -mindepth 1 -maxdepth 1 ! \( -name '.git' -type d \) -exec rm -rf {} + | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No code change this round, and this thread stays open deliberately: R8-9 closes only via the same pending maintainer decision as R9-1 — (A) the full wipe (the kept objects/refs go away with it), or (B) a fail-closed integrity gate on the kept 中文说明本轮无代码改动,本线程有意保持开放:R8-9 只能通过与 R9-1 相同的、悬而未决的维护者决策关闭 —— (A) 完整清除(保留的 objects/refs 一并消失),或 (B) 对保留的
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No code change this round, and this thread stays open deliberately: R8-9 closes only via the same pending maintainer decision as R9-1 — (A) the full wipe (the kept objects/refs go away with it), or (B) a fail-closed integrity gate on the kept 中文说明本轮无代码改动,本线程有意保持开放:R8-9 只能通过与 R9-1 相同的、悬而未决的维护者决策关闭 —— (A) 完整清除(保留的 objects/refs 一并消失),或 (B) 对保留的 |
||
| rm -rf "$WS/.git/hooks" "$WS/.git/info/attributes" | ||
| { git config --local --name-only --list 2>/dev/null || true; } | { grep -ivE '^(core\.(repositoryformatversion|bare|filemode|symlinks|ignorecase|precomposeunicode|logallrefupdates|worktree|hidedotfiles|protecthfs|protectntfs)|remote\.|branch\.|extensions\.|gc\.|pack\.|fetch\.|index\.|safe\.|submodule\.[^.]+\.(url|active|branch))' || true; } | while IFS= read -r key; do git config --local --unset-all "$key" 2>/dev/null || true; done | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This round's only change was The disposition is unchanged because the fix is a decision that is not mine to make — both closing options materially change or remove this PR's reason to exist (keeping the shared
Eight consecutive rounds producing new scrub entrances is strong evidence the allowlist approach cannot converge, which supports option 1 — but rework-vs-close, and whether the re-fetch problem gets a different solution, is the maintainer's call. I am implementing neither direction unilaterally. This thread stays open pending that decision; no code change this round. 中文说明本轮唯一的改动是 处置方式不变,因为修复方式是一个不由我做的决定——两个关闭方案都会实质性地改变或移除本 PR 存在的理由(保留共享
连续八轮都能找出新的 scrub 入口,这有力证明 allowlist 方式无法收敛,支持方案 1——但"重做还是关闭"、以及重新拉取问题是否用其他方案解决,是维护者的决定。我不会单方面实现任一方向。本线程保持开放,等待该决定;本轮不改代码。
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed still standing at this head. The file is verified unchanged since the round-10 probes:
No further guard will be added this round: rounds 8–11 have each found a new entrance into this class, which is the signal to hold for the escalated decision rather than grow the diff with more enumeration guards. The closures remain the two options already on this thread: (1) revert to the full wipe, or (2) a fail-closed integrity gate. My recommendation is option 1 now — the pre-PR behavior with a known safety profile — and the gate as a separately reviewed follow-up, because security-critical pool machinery should fail simple while the optimization is redesigned. The maintainer decision stays pending; this thread stays unresolved until it is answered. 中文说明确认该问题在当前 head 上依然存在。已核实文件自第 10 轮的探测以来未变:
本轮不会再添加新的防护:第 8–11 轮每一轮都在这一类别中发现新的入口,这正是应当等待已升级的决策、而不是继续用更多枚举式防护使 diff 膨胀的信号。封闭方案仍是本线程中已列出的两个选项:(1) 回退到全量清理;(2) fail-closed 完整性门。我的建议是立即采用选项 1(即 PR 之前的行为,安全性已知),将完整性门作为单独评审的后续工作——在优化方案重新设计期间,安全关键的池级机制应当以简单方式失败。维护者决策仍在等待中;在其得到答复之前,本线程保持未解决。
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disposition: escalated to a maintainer's decision — this thread is deliberately left open. The finding was re-probed at the reviewed commit and stands. This round's re-probe ran the verbatim wipe step (extracted unchanged from
Why this is escalated instead of implemented: the finding's two remediations are contested directions for this PR, and the choice between them is a maintainer's call —
Question for the maintainer: which direction should this PR take? Recommendation: Option A if the re-fetch cost is acceptable — the entrance-by-entrance scrub has now been shown bypassable in five consecutive rounds, and Simplicity First favors the structural close. Option B (full package, fail-loud audit included) otherwise. Pool-side consumer hardening is tracked in issue #9285 under either choice. 中文说明处理决定:上交给维护者决策——本讨论串有意保持未解决状态。该发现已在被审查提交上重新探测验证,结论成立。 本轮重新探测在本检出(
为什么选择上交而不是直接实现:该发现给出的两种补救方向对本 PR 而言是相互竞争的方向,二者之间的取舍是维护者的决定——
给维护者的问题: 本 PR 应走哪个方向?建议:如果重新拉取的代价可以接受,选方案 A——逐入口清洗的做法已连续五轮被证明可被绕过,Simplicity First 原则倾向于结构上闭合;否则选方案 B(完整一揽子措施,包含失败即高声报错的审计)。无论哪种选择,池侧消费者加固都在 issue #9285 中跟踪。
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still standing at the current head — I re-probed the shipped wipe script myself this round (extracted from 中文说明在当前 head 上仍然存在 —— 本轮我亲自重跑了探针(从
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verified against the reviewed commit No code change this round: this thread is escalated for a maintainer decision, and each candidate fix is a contested design direction — implementing any one of them would silently settle a deliberately open question. Options: (1) revert to the full wipe; (2) keep-and-defang plus a fail-closed integrity gate; (3) keep-and-defang plus per-entrance parity hardening (restore the My read: option 3 alone cannot suffice, because R8-9's objects/refs surface closes only structurally — if keep-and-defang is kept, option 3 is the floor and option 2 is what closes the class; if the gate's cost is unacceptable, option 1 remains the safe default. I have not reverted unilaterally because the performance motivation is real (wiping the Open question for the maintainer: revert, integrity gate, or per-entrance hardening? Whichever is chosen will be implemented next round, with mutation-probed test coverage. 中文说明已在受审提交 本轮未改代码:本线程已升级给维护者决策,且每个候选修复都是互斥的设计方向——实现其中任何一个都会悄悄替一个被刻意保持开放的问题拍板。选项:(1) 恢复完整 wipe;(2) 保留并解除武装(keep-and-defang)加失效即关(fail-closed)的完整性门禁;(3) keep-and-defang 加逐入口对齐加固(恢复 我的判断:仅选项 3 不够,因为 R8-9 的 objects/refs 攻击面只能结构性关闭——若保留 keep-and-defang,选项 3 是底线,选项 2 才是关闭该类问题的手段;若门禁成本不可接受,选项 1 仍是安全默认。我未擅自回退,因为性能动机真实存在(清掉 留给维护者的开放问题:回退、完整性门禁、还是仅逐入口加固?选定任一方向,下一轮即实施,并附带经变异探针验证的测试覆盖。
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Critical] R9-1 still stands at The two safe end states already on the thread:
The "at minimum" hardening alone does not resolve this finding: it is conditional on the kept- 中文说明[Critical] R9-1 在 线程中已列出两个安全的终态:
仅做 "at minimum" 加固并不能解决该发现:它以保留设计被选择保留为前提,且 R8-9 已证明 objects/refs 面只能结构性关闭。维护者需要回答的问题:选 (A) 还是 (B)? 在得到答复之前,本线程保持打开。
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disposition: escalated for a maintainer decision — thread left open; not settled unilaterally. The finding stands at
Recommendation for the maintainer: the current keep-and-defang design cannot close this class entrance-by-entrance, and 17 rounds have not produced a way to. (A) closes it inside this PR's current footprint; (B) is a scope expansion that needs explicit approval. Both pinned test suites move with whichever end state is chosen. Open question: (A) revert to the full wipe, or (B) approve expanding this PR (or a follow-up) to the hardened keep? No further code changes will be made on this class until the thread is answered. This round's diligence on the post-merge HEAD: 中文说明处置:已升级给维护者决策 — 线程保持开放,不单方面定夺。 该发现在
给维护者的建议:当前的「保留并去害化」设计无法逐入口关闭这个类别,17 轮下来也始终没有产生可行办法。(A) 能在本 PR 当前足迹内关闭它;(B) 属于范围扩张,需要明确批准。无论选择哪种最终状态,两个钉住的测试套件都需随之调整。 开放问题: (A) 回退到完整擦除,还是 (B) 批准把本 PR(或后续 PR)扩展为加固后的保留方案?在线程得到答复之前,不会再对这个类别做任何代码改动。 本轮对合并后 HEAD 的核查:
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stands, and deliberately left unresolved — this is escalated for the maintainer decision (triage defer comment 5311584017), not declined or deferred. Verified read-only at head 中文说明该发现依然成立,并被有意保持未解决——它已升级为维护者决策(triage 延后评论 5311584017),而非拒绝或延后处理。已在 head
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stands at this head, and deliberately left unresolved — same escalation as the round-18 thread: the maintainer decision (triage defer comment 5311584017) between (A) reverting to the full wipe and (B) keeping the 中文说明在该 head 上依然成立,并被有意保持未解决——与第 18 轮线程相同的升级:等待维护者在 (A) 恢复完全清除与 (B) 仅在硬化前置 + 失败即关闭的事后状态审计之后保留
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disposition: escalated to a maintainer decision — thread deliberately left unresolved; not settled unilaterally. Verified at the reviewed commit: HEAD is The pending decision is the one recorded in triage defer comment 5311584017 (deferred to @wensao): (A) revert to the full wipe, or (B) keep the Question for the maintainer: (A) revert to the full wipe, (B) keep-and-harden behind the preamble above, or (C) record a risk acceptance for the current design and merge as-is? 中文说明处置:已升级至维护者决策——线程有意保持未解决,不单方面定夺。 已在被评审提交核实:HEAD 为 待定决策即 triage 延迟评论 5311584017(移交 @wensao)所记录者:(A) 恢复全量清理,或 (B) 仅在强化前置步骤后保留 给维护者的问题:(A) 恢复全量清理,(B) 按上述前置步骤保留并加固,还是 (C) 书面记录对当前设计的风险接受并按现状合并? |
||
|
|
||
| - name: 'Checkout PR head' | ||
| uses: 'actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10' # v6.0.3 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deferred to the next round. Critical-only mode is active (5 change-producing rounds complete), and executing the wipe against a synthetic workspace would pin behavior that is pending the maintainer decision on the R9-1 thread — the script under test may change wholesale or disappear depending on that call. Left open for the next round / human follow-up.
中文说明
延后至下一轮。 Critical-only 模式已生效(已完成 5 个产生改动的轮次),而在合成工作区上执行 wipe 会钉住一项正等待 R9-1 线程维护者决策的行为 —— 视该决策而定,被测脚本可能被整体改写或直接删除。保持开放,留待下一轮 / 人工跟进。