Skip to content

docs(ci): record why declaration-fixture owners stay out of PR selection - #163695

Merged
steipete merged 1 commit into
mainfrom
steipete/declaration-fixture-selection-decision
Oct 7, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/declaration-fixture-selection-decision

Conversation

@steipete

@steipete steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Related: #162614

What Problem This Solves

PR CI does not run the declaration-fixture suites when a product PR edits one of the real source files that fixture copies. That is how #162614 broke write-unified-entry-dts on main. This PR records, with measurements, why we are not closing that selection gap now.

User Impact

No user-visible change. Maintainers get a written decision in the CI-limits skill, and a pointer at the fixture's owner list, so nobody repeats the experiment without new evidence.

Why This Change Was Made

test/scripts/tsdown-declaration-fixture.ts copies 26 real runtime owners by path string, so the changed-test planner sees no edge from those owners to the four suites built on the fixture (write-unified-entry-dts, write-plugin-sdk-entry-dts, tsdown-declaration-resolution, dist-artifact-ownership).

Rewriting the owners as new URL("../../src/...", import.meta.url) literals does propagate through the helper to all four suites. In real PR CI, though, selection runs in aggressive mode, which stops hub modules (20 or more direct importers) at their direct consumers. The suites sit two hops away, behind the helper. Eight owners are hubs: exec-result.ts (the incident owner), errno.ts, pid-alive.ts, deferred.ts, process-env.ts, runtime-process-entrypoints.ts, and normalization-core's error-coercion.ts and record-coerce.ts. A replay of the #162614 diff still selected none of the suites.

Full coverage (for example, a policy watch fed by the same owner list) works for hubs. But it also turns on build-artifacts for most of those PRs, because these suites count as build owners in ci-build-manifest.mjs. The measured cost (below) is a median +8% per affected PR, spread over about 90 PRs a month. It would catch roughly one escaped fixture break in seven weeks. Hourly scheduled CI already caught this one about 35 minutes after merge, and 0a188c4f038f0 repaired it within the hour. The repo's documented policy keeps maintainer-tooling suites out of product-only PRs, so the plain paths stay. The record names what would change the decision: a materially higher escape rate, or a selection that doesn't also start build-artifacts.

Evidence

All measurements go through scripts/lib/ci-changed-node-test-plan.mts with the canonical PR options from scripts/ci-build-manifest.mjs: aggressive selection, release-only and PR-exempt runtime tests deferred, Blacksmith backend. Class-vCPU-minutes means predicted shard seconds × runner label vCPUs, plus build-artifacts at 330 s on the 16-class.

Variant (92 main commits, 2026-09-02 → 2026-10-02, touching any owner) Newly select the suites Newly start build-artifacts Added rows Added class-vCPU-min
URL literals in the fixture 12 10 +35 +1,689
Full coverage (suites forced into selection) 81 69 +242 +11,628 (+5.9% of those PRs' 197,243)
  • For a single owner PR, the median addition is 2 Node rows plus build-artifacts, about +161 class-vCPU-min (+8%). Eleven of the 92 commits already selected all four suites; 23 already ran build-artifacts.
  • The build-artifacts median is 330 s (range 216–441 s) across 12 successful PR runs on blacksmith-16vcpu-ubuntu-2404.
  • Detection: hourly scheduled CI (run 36979748808) failed write-unified-entry-dts after the 07:32 UTC merge; the fixture repair landed at 08:31 UTC. It is the only escaped owner break repaired on main since 2026-08-15; every other fixture edit in that window shipped inside the PR that needed it.
  • Checks: oxfmt --check 0.68.0 on both files, git diff --check, node scripts/docs-list.js, and Codex autoreview at P2 (scoped-clean). The code change is a two-line comment, so no test run is needed.
Per-owner probe: URL literals in aggressive PR mode

Newly select all four suites (low fan-in): the four runtime-process descriptor entries other than runtime-process-entrypoints.ts, managed-windows-job-launcher.mts, service-child-windows-job-native.ts, both update-managed-service-handoff-* owners, both freebsd-process-identity* owners, windows-process-start.ts, the three format-time/* owners, runtime-dependency-ownership.ts, non-packaged-plugin-dirs.ts, package-update-activation-runtime-assets.ts, and mountinfo-path.ts. Each typically adds three 32-class rows (+137 predicted s) and flips build-artifacts on.

Unchanged at zero (hubs): exec-result.ts, errno.ts, pid-alive.ts, deferred.ts, process-env.ts, runtime-process-entrypoints.ts, error-coercion.ts, record-coerce.ts. The #162614 replay (68 paths): 407 tests in 33 shards before and after, with zero fixture suites.

In default (non-aggressive) selection, a single URL literal for exec-result.ts in the helper selected all four suites, so the propagation itself works; only aggressive mode's hub cutoff stops it.

PR #162614 added a normalization-core import to src/process/exec-result.ts,
one of the real owners test/scripts/tsdown-declaration-fixture.ts copies by
path. PR CI never selected the four suites built on that fixture, so hourly
scheduled CI caught the break after merge (repaired in 0a188c4).

Measured both ways to close the gap through the canonical PR planner options
(aggressive selection, release-only/PR-exempt tests deferred). URL literals
in the fixture only reach owners below the 20-importer hub cutoff; the
incident owner is a hub, so its replay still selected nothing. Replaying the
92 owner-touching main commits from the prior 30 days: URL literals newly
cover 12 (+35 rows, +1,689 class-vCPU-minutes); full coverage newly selects
81 and starts build-artifacts for 69 (+242 rows, +11,628 class-vCPU-minutes,
median +8% per affected PR) for roughly one escaped break in seven weeks.

Record the rejection in the CI-limits skill and point the fixture's owner
list at it so the experiment is not repeated without new evidence.
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 10:42 PM ET / October 7, 2026, 02:42 UTC (Revision 3).

ClawSweeper review

What this changes

The PR documents why copied runtime source files do not automatically select declaration tests in product PRs and links the fixture’s owner list to that explanation.

Merge readiness

✅ Ready for maintainer review

Keep open: this is useful documentation of an accepted CI tradeoff, and current main lacks the decision record. No actionable patch defect or additional maintainer decision was found.

Priority: P3
Reviewed head: e91363b0b42806728cbc175a3b9d0229281af401

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful decision record with source-supported rationale and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The repository context identifies a maintainer-authored documentation proposal; only CI-policy prose and fixture comments change, with no runtime behavior or stored-data contract to prove.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository context identifies a maintainer-authored documentation proposal; only CI-policy prose and fixture comments change, with no runtime behavior or stored-data contract to prove.
Evidence reviewed 7 items Introduced patch: The pinned introduction delta adds explanatory prose and two fixture comments; it changes no executable statements, test assertions, workflow settings, or dependencies. Whitespace validation passed.
Recorded acceptance: The maintainer-authored proposal explicitly retains plain paths, reports measured selection costs, and names higher escape rates or avoiding the artifact build as reconsideration conditions. This documents an existing limitation rather than introducing a coverage reduction.
Current-main mechanism and necessity: Fetched main still configures aggressive selection with a 20-direct-importer cutoff, retains declaration tests as build owners, and lacks the Declaration-fixture owner selection decision record. The PR’s documentation remains distinct from current implementation.
Findings None None.
Security None None.

How this fits together

OpenClaw’s CI planner turns changed source paths into selected tests and build jobs. Declaration tests use a fixture that copies runtime files, whose plain path strings do not establish import-graph selection edges.

flowchart TD
  A[Changed source files] --> B[CI test planner]
  B --> C[Import graph and hub cutoff]
  C --> D[Selected declaration tests]
  D --> E[Build artifact job]
  F[Copied runtime files] --> G[Declaration fixture]
  G --> D
  H[Recorded CI tradeoff] --> B
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2, Docs +21. Total +23 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 0 +2
Docs 1 21 0 +21
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 23 0 +23

Review metrics

None.

Technical review

Best possible solution:

Preserve the measured decision beside its CI policy owner and keep the fixture comment as the discovery path for future reconsideration.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR records an existing CI limitation and changes no executable behavior; its selection mechanism is supported by inspected source.

Is this the best way to solve the issue?

Yes: placing the dated rationale in the CI-limits owner and linking it from the fixture is a focused way to preserve the accepted decision.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 27ba9720f2c5.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This documents existing CI selection policy without changing runtime behavior or automation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The repository context identifies a maintainer-authored documentation proposal; only CI-policy prose and fixture comments change, with no runtime behavior or stored-data contract to prove.

Evidence

What I checked:

  • Introduced patch: The pinned introduction delta adds explanatory prose and two fixture comments; it changes no executable statements, test assertions, workflow settings, or dependencies. Whitespace validation passed. (test/scripts/tsdown-declaration-fixture.ts:202, e91363b0b428)
  • Recorded acceptance: The maintainer-authored proposal explicitly retains plain paths, reports measured selection costs, and names higher escape rates or avoiding the artifact build as reconsideration conditions. This documents an existing limitation rather than introducing a coverage reduction. (.agents/skills/openclaw-ci-limits/SKILL.md:59, e91363b0b428)
  • Current-main mechanism and necessity: Fetched main still configures aggressive selection with a 20-direct-importer cutoff, retains declaration tests as build owners, and lacks the Declaration-fixture owner selection decision record. The PR’s documentation remains distinct from current implementation. (scripts/lib/ci-changed-node-test-plan.mts:455, 27ba9720f2c5)
  • Existing CI coverage contract: CI documentation defers maintainer-tooling tests on unrelated product PRs while retaining tooling-owner selection and hourly/manual/release coverage, consistent with the recorded tradeoff. Public docs: docs/ci/scope-and-routing/node-test-lanes.md. (docs/ci/scope-and-routing/node-test-lanes.md:27, e91363b0b428)
  • Prior review continuity and incident context: The supplied completed review at the same head contains no findings or published rank-up moves. The merged fix(update): settle Doctor writers before recovering migrated Gateways #162614 supplies incident context, not a replacement for this documentation. GitHub confirms the linked scheduled CI run failed; the cost measurements remain author-reported rather than independently replayed.
  • Feature-history routing: Current-main file history connects Peter Steinberger and Harold Hunt to declaration-fixture maintenance, and Vincent Koc to recent CI-limits maintenance. These are routing signals, not verified feature-introduction attribution. (test/scripts/tsdown-declaration-fixture.ts, 27ba9720f2c5)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Harold Hunt: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-02T18:09:42.388Z sha e91363b :: needs maintainer review before merge. :: none
  • reviewed 2026-10-07T02:33:16.134Z sha e91363b :: needs maintainer review before merge. :: none

@steipete steipete closed this Oct 7, 2026
@steipete steipete reopened this Oct 7, 2026
@steipete steipete closed this Oct 7, 2026
@steipete steipete reopened this Oct 7, 2026
@steipete
steipete merged commit d46d562 into main Oct 7, 2026
262 of 301 checks passed
@steipete
steipete deleted the steipete/declaration-fixture-selection-decision branch October 7, 2026 03:03
@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
…ion (openclaw#163695)

PR openclaw#162614 added a normalization-core import to src/process/exec-result.ts,
one of the real owners test/scripts/tsdown-declaration-fixture.ts copies by
path. PR CI never selected the four suites built on that fixture, so hourly
scheduled CI caught the break after merge (repaired in 77b0000).

Measured both ways to close the gap through the canonical PR planner options
(aggressive selection, release-only/PR-exempt tests deferred). URL literals
in the fixture only reach owners below the 20-importer hub cutoff; the
incident owner is a hub, so its replay still selected nothing. Replaying the
92 owner-touching main commits from the prior 30 days: URL literals newly
cover 12 (+35 rows, +1,689 class-vCPU-minutes); full coverage newly selects
81 and starts build-artifacts for 69 (+242 rows, +11,628 class-vCPU-minutes,
median +8% per affected PR) for roughly one escaped break in seven weeks.

Record the rejection in the CI-limits skill and point the fixture's owner
list at it so the experiment is not repeated without new evidence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant