Skip to content

Fail closed when message ls targets an unknown agent - #101

Merged
myobie merged 1 commit into
mainfrom
agent/issue-91-message-ls
Jul 30, 2026
Merged

Fail closed when message ls targets an unknown agent#101
myobie merged 1 commit into
mainfrom
agent/issue-91-message-ls

Conversation

@myobie

@myobie myobie commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Closes #91

Summary

  • resolve message ls from one catalog discovery snapshot and reject identities absent from a valid or malformed catalog
  • preserve the intentional flat layout only when discovery proves the selected root is catalog-less
  • add explicit --orphan recovery for raw flat inbox/archive inspection and document the boundary
  • cover human, JSON, count, archive, known-native, catalog-less, orphan, and malformed-catalog paths

Verification

  • cargo test --test message_cli -- --test-threads=1
  • cargo test --test message -- --test-threads=1
  • cargo test --workspace --all-targets -- --test-threads=1
  • cargo clippy --workspace --all-targets -- -D warnings
  • rustfmt --edition 2024 --check src/message.rs src/main.rs tests/message_cli.rs
  • cargo doc --workspace --no-deps (passes with five pre-existing rustdoc warnings outside this change)
  • git diff --check
  • Hosted Nix: run 30555264193, job 90913979292, success against exact head 2ccf2de1b4045797dc5d4f8f8fc8b72d76d3c28d

This remains a draft pending exact semantic review.

@myobie
myobie marked this pull request as ready for review July 30, 2026 15:25
@myobie
myobie merged commit d99a481 into main Jul 30, 2026
1 check passed
@schickling schickling added area:message Native message bus, inbox, archive, and receipts · Set: manual origin:agent Filed or primarily produced by an AI agent · Set: manual type:bug Something broken or a regression · Set: manual labels Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:message Native message bus, inbox, archive, and receipts · Set: manual origin:agent Filed or primarily produced by an AI agent · Set: manual type:bug Something broken or a regression · Set: manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

message ls returns an empty inbox for an unknown identity

2 participants