Skip to content

test(config): drop stale using declarations after health-state store refactor - #175252

Closed
steipete wants to merge 1 commit into
mainfrom
test/config-health-state-usings
Closed

steipete wants to merge 1 commit into
mainfrom
test/config-health-state-usings

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Main is red on the config-cli test typecheck shard (test/tsconfig/tsconfig.core.test.config-cli.json):

src/config/io.health-state-scope.test.ts(71,23): error TS2741: Property '[Symbol.dispose]' is missing in type 'ConfigHealthStateStore' but required in type 'Disposable'.
src/config/io.health-state-scope.test.ts(78,19): error TS2741: ...

#175077 (8d89449) removed [Symbol.dispose] from ConfigHealthStateStore and converted the sibling using captures in these tests to const, but missed these two in the stale-patch-basis test. The shard only runs for PRs that select it, so every such PR now fails typecheck. First seen on #174797 (job 117330504961).

Fix

Convert the two remaining using declarations to const, matching #175077's own conversion. Test-only, 2 lines.

Evidence

  • The exact CI error names these two lines; the change mirrors the owner commit's pattern for every sibling capture.
  • PR CI is the typecheck/format gate: this host's oxfmt (0.68.0) does not match the pinned 0.72.0, and the nested checkout cannot run the tsgo wrapper, so the pinned CI jobs prove it.

…refactor

#175077 removed [Symbol.dispose] from ConfigHealthStateStore and converted its
sibling captures to const, but missed two in the stale-patch scope test, so the
config-cli test typecheck shard fails on main (TS2741).
@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T06:43:21.766953Z b326eba PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Replace two obsolete using declarations with const in the config-health scope test.

Example: Typecheck the config-cli test shard.

  • Before: The two ConfigHealthStateStore captures require a missing Symbol.dispose method and produce TS2741.
  • After: Both captures use const, matching the store contract and sibling tests.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A correct, focused test repair supported by exact-head typecheck CI and already applied identically on main.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored test-only repair changes no shipped behavior; source inspection and successful exact-head typecheck CI cover its purpose.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The config-cli test typecheck fails on stale disposal declarations, blocking affected PR validation.
Reason: The maintainer-authored repair restores the intended test contract with no production changes.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

This PR is correct, and its exact two-line fix is already on main; the maintainer-authored keep-open guard leaves its disposition to a maintainer.

Priority: P3
Reviewed head: b326eba82c3f4aa5d9a1699a286a777d47f2d9e3

Before merge

None.

Findings

None.

Agent review details

How this fits together

Config-health observations read persisted health facts and conditionally update them through shared-state owners; this PR only repairs declarations in their tests.

flowchart LR
  A[Config health scope test] --> B[Captured health store]
  B --> C[Shared state worker]
  C --> D[SQLite health entries]
  A --> E[Config CLI typecheck]
Loading

Technical review

Best possible solution:

Retain the identical repair already on main and let the author settle this redundant PR.

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

The original base contains two using captures of a non-disposable store, establishing the reported compiler failure from source; fetched main already corrects both, and no local tests were run.

Is this the best way to solve the issue?

The minimal declaration change follows the intentional refactor without restoring obsolete lifecycle machinery or weakening assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against fb8d6eded985; fix evidence: commit 7b727f04d23f, main fix timestamp 2026-10-17T06:42:40Z.

Provenance checked

  • Config-health observation captures keeps the original intent (8d89449: Remove redundant observation lifecycle bookkeeping while retaining persisted-row comparison and shared-state admission ownership.)

Security

None.

Evidence

What I checked:

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

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

Labels

Label changes:

  • add P3: The test-only correction is already on main, leaving low-priority PR disposition.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: The test-only correction is already on main, leaving low-priority PR disposition.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 17, 2026, 2:54 AM ET / 06:54 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Closing as redundant: main already carries the identical fix in 7b727f0 ("test(config): follow health observation disposal removal"), which landed before this PR was opened.

@steipete steipete closed this Oct 17, 2026
@steipete
steipete deleted the test/config-health-state-usings branch October 17, 2026 06:57
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