Skip to content

feat: add transactional inbound policy controls and durable audit - #11

Merged
shmlkv merged 1 commit into
mainfrom
codex/policy-forward-port-2026-09-07
Sep 7, 2026
Merged

feat: add transactional inbound policy controls and durable audit#11
shmlkv merged 1 commit into
mainfrom
codex/policy-forward-port-2026-09-07

Conversation

@shmlkv

@shmlkv shmlkv commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Incoming messages now pass through an owner-local policy gate with persistent configuration and metadata-only audit. This ports the functional layers of historical PRs #2#6 onto the current authenticated DM/group runtime without replacing its transport security or reliable delivery.

Message storage, ratchet/replay state, delivery deduplication and policy audit commit together. An audit failure rolls reception back so the sender can retry; queue entries and decision events are published only after commit. Authenticated DMs count as addressed, while group mention rules remain configurable. Decisions do not execute tools or implement an approval UI.

Adds bounded private inbound-event reads and policy controls through MCP, plus local SQLite-only CLI commands. Schema 10 preserves configuration/audit when upgrading historical policy schemas 2/3 and upgrades runtime schema 9 additively. Handshake remains v3.

Validation: 679 tests across the workspace and final CLI subprocess checks; production build; workspace and dashboard-client TypeScript; five npm tarball consumer checks from an isolated source snapshot; Linux arm64/Node 22 Docker build and live publication/authentication smoke test. CI verifies the committed tree separately. No production deployment has been performed.

See docs/releases/2026-09-07-policy-port.md and docs/POLICY.md for migration, retention and runtime boundaries.

@shmlkv
shmlkv merged commit d9c789b into main Sep 7, 2026
2 checks passed
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