Skip to content

fix(persona): wall/pin resolves short/mistyped persona ids via id_resolve (#164) - #2002

Merged
joelteply merged 1 commit into
canaryfrom
fix/id-resolve-wall-pin
Jul 25, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/id-resolve-wall-pin

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

#164 (short-form uuids resolve on every id param) is mostly already done — the id_resolve primitive is wired into persona/identity/{get,set}, instances/{get,despawn}, card, and work. persona/wall/pin was a straggler still doing raw Uuid::parse_str, so a persona pinning to a persona-id it was shown as an 8-char short form bounced with 'not a valid uuid.'

Converted to id_resolve::resolve(raw, &persona::card::ids(), "persona") — same candidate source + pattern as persona/identity/get. The resolver's errors teach (enumerate valid short forms), subsuming the old hint. supersedes (a wall post_id) stays raw (different id-type, no cheap candidate source here — follow-up). Remaining stragglers: agent/solve (harness-fed) + avatar (Option helper).

id_resolve's 4 tests green; compiles clean.

🤖 Generated with Claude Code

…olve (#164)

#164 is mostly already done — id_resolve (the ONE short-id primitive, lifted from
work.rs::card_id_lookup) is wired into persona/identity/{get,set}, instances/{get,despawn},
card, and work. persona/wall/pin was a straggler still doing raw Uuid::parse_str, so a
persona pinning to a persona-id it was SHOWN as an 8-char short form (or a model that
corrupted one char mid-uuid) bounced with 'not a valid uuid'.

Convert it to crate::id_resolve::resolve(raw, &persona::card::ids(), "persona") — same
candidate source + pattern as persona/identity/get. What a surface displays, its verbs
must accept. The resolver's zero/ambiguous errors teach (enumerate valid short forms), so
the old 'call persona/instances/list' hint is subsumed by a better one.

supersedes (a wall post_id) stays raw for now — different id-type, no cheap candidate
source here; tracked as a follow-up. Remaining raw-parse stragglers: agent/solve
(harness-fed full ids) + avatar (Option-returning helper, different shape).

id_resolve's 4 tests green; conversion compiles.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit b25c40c into canary Jul 25, 2026
4 checks passed
@joelteply
joelteply deleted the fix/id-resolve-wall-pin branch July 25, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant