Repository navigation
fix(persona): wall/pin resolves short/mistyped persona ids via id_resolve (#164) - #2002
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#164 (short-form uuids resolve on every id param) is mostly already done — the
id_resolveprimitive is wired intopersona/identity/{get,set},instances/{get,despawn},card, andwork.persona/wall/pinwas a straggler still doing rawUuid::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 aspersona/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