(#11) @-addressing parse + must-respond #18

Merged
jacisjake merged 2 commits from task/11-addressing-must-respond into main 2026-10-28 10:54:20 +00:00
jacisjake commented 2026-10-28 10:54:10 +00:00 (Migrated from github.com)
  • parseAddressing: first @CrowName (case-insensitive, trailing punctuation stripped) that names a nest member becomes to; an unknown handle stays literal text.
  • Addressed-crow-must-respond: a request to a member crow triggers a reply through Flock.ask with a KIND: claim/deliver/decline contract. Non-responsive reply → retried once with a stricter prompt; still non-responsive → the crow gets a Sentry flag (no fake reply posted).
  • Deliver goes back to whoever requested: claim/deliver/decline with no explicit to inherit the author of the message they refers_to.
  • decline added as a crow-postable kind in EVENTS.md; MockBrain answers nest requests responsively.

Closes #11 · Epic: #2

Red (impl reverted to main):

s.respondToRequest undefined
FAIL somanycrows [build failed]

Green (after):

--- PASS: TestParseAddressing / TestAddressedCrowMustRespond / TestRespondedRequestNoFlag / TestDeliverAddressesRequester
go test -race . → ok somanycrows (47 tests)
- `parseAddressing`: first `@CrowName` (case-insensitive, trailing punctuation stripped) that names a nest member becomes `to`; an unknown handle stays literal text. - **Addressed-crow-must-respond:** a `request` to a member crow triggers a reply through `Flock.ask` with a `KIND: claim/deliver/decline` contract. Non-responsive reply → retried once with a stricter prompt; still non-responsive → the crow gets a Sentry `flag` (no fake reply posted). - **Deliver goes back to whoever requested:** claim/deliver/decline with no explicit `to` inherit the author of the message they `refers_to`. - `decline` added as a crow-postable kind in `EVENTS.md`; `MockBrain` answers nest requests responsively. Closes #11 · Epic: #2 **Red (impl reverted to main):** ``` s.respondToRequest undefined FAIL somanycrows [build failed] ``` **Green (after):** ``` --- PASS: TestParseAddressing / TestAddressedCrowMustRespond / TestRespondedRequestNoFlag / TestDeliverAddressesRequester go test -race . → ok somanycrows (47 tests) ```
Sign in to join this conversation.