Skip to content

claude-memory + session-flow: memory_dir seam parsing residuals — '#' truncation in quoted values, absent-config save-point fallback #482

Description

@kyle-sexton

Category: bug (edge-case residuals) · Source: pre-merge digest of PRs #469/#470 — author-dispositioned VALID(defer) review findings that were deferred without a tracked follow-up (the gap the v4 lane rules now close).

Residuals

  1. seam="${seam%%#*}" truncates a quoted memory_dir value containing # — same naive-string-op class as the whitespace bug both PRs DID fix. Present in both the orphan-rule-check (fix(claude-memory): resolve memory_dir from topic-docs seam in orphan-rule-check #470) and retro HANDOFF_DIR (fix(session-flow): derive retro HANDOFF_DIR from resolved memory_dir #469) resolution snippets.
  2. fix(session-flow): derive retro HANDOFF_DIR from resolved memory_dir #469: when topic-docs.yaml is absent, the snippet defaults to .work without consulting a CLAUDE.md / .claude/rules-declared save-point location.

Ask

Harden the shared parsing shape once (both sites use the same sed/strip pattern — candidate for one shared helper per #474) and add the fallback lookup. Regression cases for #-in-quoted-value and absent-config.

Related

#419 #420 (source issues) · #474 (shared config-value parsing helper) · PRs #469 #470

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highSignificant impact, or blocks an imminent release; staff this cycle.status: readyTriaged, unblocked, and fully specified; eligible to pick up.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions