harness: codex
prompt: Take over the half-finished work on branch wip/search that another agent left and finish it.
exit: 0  seconds: 64
zstack files read: SKILL.md, playbooks/pickup.md, references/harness-capabilities.md, references/principles/count-the-living.md, references/principles/one-owner-per-file.md, references/principles/evidence-before-the-word.md, references/principles/ask-with-options.md, playbooks/feature.md, references/principles/data-shape-first.md, references/principles/smallest-reversible-change.md
---
Route: pickup -> feature -> land, shape: inline, principles: count-the-living, one-owner-per-file, evidence-before-the-word, data-shape-first, smallest-reversible-change

Goal: finish `acme-notes search <query>` with case-insensitive note-text matching, unittest coverage, and an open PR.

Disk confirms the handoff’s WIP commit and matching bug. The checkout is clean on `main`; the referenced decision page is missing. Prior-owner inactivity and recorded checks still need confirmation.

Todo list from the pickup playbook:

1. Confirm the work is yours to take: no other live session is on this branch or worktree (a worker counts as live when it produced output in the last 10 minutes). If one is, stop and report.
2. Read the state from disk, in this order: the handoff file, `git log --oneline <base>..HEAD`, `git status`, the PR body and its review threads, `.git/zstack/decisions.md` for entries on this work, and `<zstack dir>/scripts/zcheck.sh --list` for checks already recorded.
3. Compare the handoff with what is on disk. Note any difference (a commit the handoff does not mention, a check recorded at an older sha), and treat the disk as the truth.
4. Read the zstack router and the principle leaves the handoff names before applying them.
5. Restate the plan before any edit: goal and done, route line, the remaining todo list copied from the playbook, what you will do first, and anything you are not sure of.
6. Settle open questions that the code, docs or earlier messages can answer, citing the source. Put the rest on the decision page or ask the user with options.
7. If the last commit is a `wip:` commit, keep it as the base for further commits and squash or reword it when the work is ready to land.
8. Continue with the named playbook from the first unfinished step.

After pickup: add regression tests, normalize note text, wire the CLI command, verify the suite, and open the PR. Keep tags deferred; resolve the recency TODO against the handoff’s “no ranking” decision.

Principles: confirm recent ownership before takeover; check claims against disk; preserve the existing note-dict shape; keep changes scoped to search.

Dry run stopped. No files edited or branches switched.
