Skip to content

test(state): import the subagent binder from its codec - #154071

Closed
steipete wants to merge 1 commit into
mainfrom
codex/task-identifiers-codec-import
Closed

steipete wants to merge 1 commit into
mainfrom
codex/task-identifiers-codec-import

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The task-identifier Doctor tests in #153509 landed after the subagent row codec extraction in #153838 but still imported the binder from the SQLite store. Seven existing cases fail before exercising their assertions, and the core test typecheck reports TS2459.

User Impact

Restores the existing CI coverage for task-identifier repair, collision refusal, and completion-binding preservation. Production code is unchanged.

Why This Change Was Made

Import bindSubagentRunRecord from its codec owner. Keep the reader on the SQLite store and the database writer on the kernel. No compatibility re-export is added.

Evidence

  • On isolated Linux/Node 24.19.0, the unchanged import reproduces all seven failures; the corrected import passes all seven existing cases without changing assertions.
  • The canonical state-logging test type closure, one-file formatting, and lint pass. The selected scope does not run all 23 type graphs.
  • Independent P0–P2 review is clean. The native Git hook ran, and the committed tree exactly matches the remotely tested tree.
  • The Testbox command and wrapper joined with exit zero before the owned lease was stopped and independently confirmed completed. Full logs and reports were retained and rehashed locally.

@clawsweeper

clawsweeper Bot commented Sep 20, 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.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 20, 2026
@steipete
steipete marked this pull request as ready for review September 20, 2026 20:48
@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 Sep 20, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Fixed on main by #153988 (1c2bdf3e26532e71ae3fbb189b5bc58671f288f6). Its task-identifier test is byte-identical to this PR's reviewed and tested correction (Git blob e66f966919348f8a0332dba9a50d8bad3e0456ab).

This PR independently reproduced all seven original failures, passed the same seven unchanged cases after the import correction, and passed the selected type/lint/format checks and exact-head CI. The canonical codec export remains the sole owner. Closing this now-duplicate PR; no second merge is needed.

@clawsweeper

clawsweeper Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 5:03 PM ET / 21:03 UTC.

ClawSweeper review

What this changes

Updates the task-identifier repair tests to import subagent serialization directly from its codec, leaving production behavior and assertions unchanged.

Merge readiness

✅ Ready for maintainer review

No actionable patch defects found. Fetched main already contains the identical repair, but the maintainer-authored PR and protected label prevent automatic closure.

Priority: P3
Reviewed head: 5ee2a7318d6bfa24ab7df8c2ab2247137c05cf4b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair with relevant reported validation and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The contributor proof gate is exempt for this maintainer-authored test-only repair; reported focused test results match the changed import path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor proof gate is exempt for this maintainer-authored test-only repair; reported focused test results match the changed import path.
Evidence reviewed 6 items Pinned introduced change: The complete introduced patch only redirects the binder import to the codec; the SQLite reader, kernel writer, fixtures, and assertions remain unchanged.
Canonical serialization owner: The codec exports bindSubagentRunRecord; the SQLite store consumes it without re-exporting it. Existing SQLite tests already import this same codec directly.
Identical repair already on main: The changed test file is byte-identical between the reviewed head and fetched main. Main commit 1c2bdf3 explicitly records repairing this inherited test import and contains the identical hunk.
Findings None None.
Security None None.

How this fits together

These tests seed SQLite task and subagent records, run Doctor repair, and verify identity preservation and collision refusal. The codec converts subagent records into database-ready values.

flowchart LR
  A[Test run records] --> B[Subagent codec]
  B --> C[SQLite fixture writer]
  C --> D[Doctor identifier repair]
  D --> E[Repair or collision refusal]
  E --> F[State preservation assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -2. Total -2 across 1 file.

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

Review metrics

None.

Root-cause cluster

Relationship: superseded
Canonical: #153988
Summary: A verified merged PR contains the exact import repair; protection keeps this relationship assessment from becoming an automatic closure.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Retain the direct codec import already on main, without restoring the retired storage re-export.

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

No current-main failure was reproduced: fetched main already has the corrected import. The original missing export is source-supported, and the PR reports failing-before/passing-after tests.

Is this the best way to solve the issue?

Yes. Importing the existing codec directly repairs the test dependency without adding compatibility exports or weakening coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d5b6e687ca30; fix evidence: commit 1c2bdf3e2653, main fix timestamp 2026-09-20T20:54:08Z.

Labels

Label changes:

  • add P3: This is a test-import repair with no production behavior change, and the same correction is already on main.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor proof gate is exempt for this maintainer-authored test-only repair; reported focused test results match the changed import path.

Label justifications:

  • P3: This is a test-import repair with no production behavior change, and the same correction is already on main.
  • 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 contributor proof gate is exempt for this maintainer-authored test-only repair; reported focused test results match the changed import path.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 480fa42 adds src/agents/subagents/registry/subagent-registry.store.codec.ts:81 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 480fa421af89; files: src/agents/subagents/registry/subagent-registry.store.codec.ts)

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.

@steipete steipete closed this Sep 20, 2026
@RomneyDa
RomneyDa deleted the codex/task-identifiers-codec-import branch October 22, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR 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