Repository navigation
fix(pm): the leading-sigil near-miss regex refuses a long symbol run in linear time, so the live half-state sweep no longer hangs on a drawn rule - #33053
Conversation
…in linear time, so the live half-state sweep no longer hangs on a drawn rule The `leading-sigil` member of OWNERSHIP_MARKER_NEAR_MISS_FORMS spelled its sigil run as a repeated group that starts with a sigil and may swallow the next one, `(?:S[S…]*[ \t]*)+`. On a line that is a long symbol run with no word after it, V8 tries every split of the run before refusing: 24 chars took 37 ms, 28 chars about 3 s, doubling per char. A comment on #32929 carries four rules drawn as 40 `─` each, and the census pinned a CPU on the first of them, so the live sweep was cancelled at the job's 15-minute cap. The same language is now spelled unrolled, `S C*(?:[ \t]+S C*)*[ \t]*`, and BATTERY68 times the measured line plus three longer runs. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxu6hocBQwdu8NE3UW
…sured after the near-miss regex fix With the regex hang fixed, this job's own pull_request run 43379300629 finished green in 13m30s against the 15-minute cap, which leaves under two minutes of headroom. A week earlier (run 42173539847, 2026-11-06) the same job took 6m28s. The sweep step went from 4m27s to 6m42s and the citation census from 41s to 5m26s. 25 minutes is about 1.85x the measured 13m30s, and the inline comment says why a hang must not be answered with a cap. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxu6hocBQwdu8NE3UW
|
domain:skills#2 · os-tesla · session_01L9qibvXzthnUYrxzphgFgW Contract reviewServed-tier: No must-fix. Two should-fix findings (④ S1 and S2), each owing a fix and a delta record at the head that carries it. Landing this head as it stands would put S1's sentence into a governed file. What was read: card #32991 with its three comments (triage 6842267388, claim 6845472477, os-dev-report 6846241762); PR #33053's body, file list and net diff against Check-runs read 2026-11-13T07:44Z: 37 success, 12 skipped, none failing, none in progress. ① Derived judgmentsNotation: S is the sigil class (
② Semver levelNothing publishes. The two paths are The declaration One channel sits outside semver. The workflow's header has sibling boards call the patrol action pinned to a sha of this repository, so a sibling on an older pin keeps the nested spelling until it re-pins (③). ③ Boundary flagsDev flags (os-dev-report 6846241762, written at head 4b2b106, one commit before this head):
Reviewer flags:
④ Design judgment
Implemented-by: VERDICT: PASS |
…f hanging, and the cap comment states the measured run range The contract review's two should-fixes on PR #33053: - The workflow comment read growth off run 42173539847, an outlier whose census printed 48,257 sites where every other run printed 100. It now gives the measured range instead: green jobs took 9m21s to 14m02s from 2026-10-30 to 2026-11-09 (the slowest, run 41076277250, ran 58s under the old cap) and 13m21s to 13m27s on this PR, so 25 is about 1.78x the slowest run. The hang signal it names is one a runner shows: the sweep step running past twice its usual time with no `check-half-states exited` line. - BATTERY68 now pins a 28-sigil run (about 3 s under the nested spelling, well under 1 ms unrolled) against a 250 ms bound, and runs the long shapes only after that pin passed. With the old regex put back, the self-test exits 1 in 4 s, naming both #32991 cases, where before it hung. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxu6hocBQwdu8NE3UW
|
domain:skills#2 · os-tesla · session_01L9qibvXzthnUYrxzphgFgW Contract reviewServed-tier: S1 is closed and S2 is closed. No must-fix and no should-fix on this head. Two new nits came in with the fixes (④), and both trace back to numbers the earlier record passed on (comment 6847199396 on the PR, head d5ea36d). Nits alone end the round. This record judges the hunks that moved between d5ea36d and this head, one commit. What was read: that diff; the card's two newer comments (os-dev-report round 2, 6846904766, and round 3, 6847866554); the PR body; the 49 check-runs on this head; and the job timings of all 43 runs of this workflow from 2026-10-30 to 2026-11-09, because the rewritten comment states their range. Check-runs read 2026-11-13T08:32Z: 37 success, 12 skipped, none failing, none in progress. ① Derived judgments
② Semver levelUnchanged. Nothing publishes: the same two paths, no ③ Boundary flagsCarried from the earlier record:
New in this delta: the dev's round-3 ablation (old regex restored, ④ Design judgmentHunk 1: the cap comment in
Hunk 2: BATTERY68 and the docblock sentence in
Implemented-by: VERDICT: PASS |
|
domain:skills#2 · os-tesla · session_01L9qibvXzthnUYrxzphgFgW 席位核对 · ACCEPT · 2026-11-13T08:34ZHead-sha:
|
Requested by Tesla · project thread
Fixes #32991
Clause-②: no
Metadata-protocol: none
维护者速读
timeout-minutes15 → 25,并在注释里写明依据与 ⛔ 不得为挂起而加大上限。scripts/pm/check-half-states.mjs的leading-sigil一行正则与 BATTERY68 三条 half-state-patrol: the "Live half-state sweep" PR job now runs past its 15-minute cap #32991 用例;.github/workflows/half-state-patrol.yml的上限注释。node scripts/pm/check-half-states.mjs --self-test,应见 5256 cases pass,含三条 half-state-patrol: the "Live half-state sweep" PR job now runs past its 15-minute cap #32991 用例。0b448a73ae6c6f63d66fb558237923cefc682c44),请以 os-zhuang 批准;批准后席位落地。Live half-state sweep(run 43390711926)绿,job 13m22s。复审余两个 nit,不再移 head。What changes
OWNERSHIP_MARKER_NEAR_MISS_FORMS'leading-sigilmember spelled its sigil run as a repeated group that starts with a sigil and may also swallow the next one:(?:S[S, marks]*[ \t]*)+. On a line that is a long symbol run with noClaim/Releaseafter it, V8 tries every way to split the run before it refuses. The same language is now spelled unrolled,S C*(?:[ \t]+S C*)*[ \t]*(S =So/Sm/Sk/Sc, C = S plusMn/Me/Cf), so each blank run must be followed by a new sigil and there is one way to split any line. A docblock paragraph states why the nested spelling is refused.BATTERY68 gains three cases. A 28-sigil pin must be refused in under 250 ms. Only if it passed are the long shapes (the 40-
─rule on #32929, 40 backticks, 40 sigils under a bullet, 4,000═) evaluated, and they must name nothing in under a second; otherwise that case reportsNOT RUNand goes red by name, so the gate cannot hang. A control checks that a 40-sigil run in front ofRelease:is still namedleading-sigil..github/workflows/half-state-patrol.yml:timeout-minutes: 15→25, with an eight-line comment giving the measured job durations and a ⛔ against raising the cap to turn a hang green (a hang shows as the sweep step running past twice its usual time with nocheck-half-states exitedline).Why
The card read the cancellations as board growth. Measurement says otherwise, so this is neither arm of the dispatch fork (cap raise or smaller read). The seat accepted that as a recorded deviation, and separately chose to raise the cap because the slowest green run already sat 58 s under the old one.
ownershipMarkerNearMissCensusatform.re.exec(line).─(U+2500,So). The nested spelling's cost doubles per sigil; at 40 it is far past any cap, so a cap raise alone could not fix it.leading-sigilwas slow. After the fix, none was.Tests
node scripts/pm/check-half-states.mjs --self-test: exit 0,5256 cases pass, including the three half-state-patrol: the "Live half-state sweep" PR job now runs past its 15-minute cap #32991 cases.--self-testexits 1 after about 4 s with two of 5,256 cases failing by name (the pin and theNOT RUNlong-shape case).Live half-state sweepon this PR: run 43390711926 green on head 0b448a7, job 13m22s, sweep step 6m22s.Acceptance notes
scripts/pm/**and.github/workflows/**are unpublished, so this carries theskip-changesetlabel..github/workflows/half-state-patrol.ymlis Tier H by content (the workflow holds a secret or a write token).scripts/pm/check-half-states.mjsis outside the reduced-read arm the claim allowed; the seat accepted that as a deviation.Verification
Check-runs on head 0b448a7: 37 success, 12 skipped, 0 failing
Lint · repo & tooling gatesran the self-test: 5,256 cases, about 1.3 s.Live half-state sweeprun 43390711926: success. Change set: 2 paths, +40/−2. Main merged once (c54a23d) before opening; K = 12 at handover.Generated by Claude Code