Skip to content

Handoff: look-alike fake end lines in agent notes are not quoted #838

Closed

Description

@scuttletoby

Follow-up from #824, round-1 finding B1 (fixed in part).

The exact fake end line in an agent's handoff notes is now quoted, but look-alikes still pass unquoted: a leading zero-width space, the line in bold or backticks, em-dashes or ===== instead of hyphens.

Fix: normalise before matching (strip zero-width and format characters, markdown emphasis and code marks; treat any run of dash-like or = characters as the rule line), then quote every match. Test each look-alike above.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions