Skip to content

application: retain verifiable inter-app messages and head-race contention - #63

Merged
0thernet merged 1 commit into
mainfrom
spike/m5
Sep 23, 2026
Merged

0thernet merged 1 commit into
mainfrom
spike/m5

Conversation

@0thernet

Copy link
Copy Markdown
Member

Summary

  • algal.interapp-message.v1: sender-bound delivery evidence minted alongside every settled deliver dispatch — {application, operation, intent, route, to, body} recomputable byte-for-byte; verify-message re-checks CAS + history + dispatch + channel pair (channel v2 bytes unchanged)
  • algal.application-contention.v1: retained serial race on one captured head — first attempt commits, the rest get "Stale application head"; verify-contention replays and requires identical rejections
  • Adaptive-inventory example now produces/verifies both records (three-writer contention, per-delivery message binding); docs report the measured deterministic result
  • Native + Bun CLIs: application verify-message|contend|verify-contention with --policy/--channels admission; spec sections + bounds row

Test plan

  • bun run check (895 tests incl. 9 new native-side test groups)
  • cargo fmt / clippy -D warnings / test / build
  • application-parity 250 steps identical on the full stack (drain + experiment + message + contention legs)
  • adaptive-inventory with ALGAL_MEMORY_NATIVE verifies contention + message evidence

Generated with Devin

…ntion

A settled deliver dispatch now mints algal.interapp-message.v1 inside the
lifecycle execute path on both runtimes, binding the sender application,
committing operation, exact work intent, route, admitted mailbox recipient,
and payload body. CAS-level and full delivery verification replay those
bindings against the intent, validated history, the retained settled
dispatch, and the durable channel outcome.

Racing writers against one expected head now retain
algal.application-contention.v1: every attempted command digest, the single
committed winner, and each stale-head rejection. Verification re-derives the
fence's verdict structurally without re-executing commits.

Both contracts ship in TypeScript and Rust with byte-identical canonical
records, CLI commands (verify-message, contend, verify-contention),
colocated tests on both sides, parity legs including forged-record
rejections with pinned reasons, adaptive-inventory evidence, and spec
updates.
@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
algal Building Building Preview Sep 23, 2026 8:47am UTC

Request Review

@0thernet
0thernet merged commit 7ded1a1 into main Sep 23, 2026
10 checks passed
@0thernet
0thernet deleted the spike/m5 branch September 23, 2026 09:10

This branch was successfully deployed

1 active deployment
Preview — e41ee716 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant