Skip to content

docs: gated passthrough for Muse (configuration and flows) - #49

Merged
chaodu-agent merged 2 commits into
mainfrom
doc-muse-gated
Nov 23, 2026
Merged

chaodu-agent merged 2 commits into
mainfrom
doc-muse-gated

Conversation

@chaodu-agent

@chaodu-agent chaodu-agent commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Adds docs/gated-passthrough-for-muse.md: roles, architecture flowchart, blocking and async polling sequence diagrams, an annotated placeholder TOML, credentials, operations, and known limits.

Docs only (one file). Uses the names Gated passthrough, Stage 1 and Stage 2, consistent with the parallel docs-naming PR.

Mermaid: all three diagrams were rendered with npx @mermaid-js/mermaid-cli@11 on macmini (exit 0, no syntax errors) after the review fixes.

Not verified in the doc: whether the Muse connector sends a caller key, a token, or both; where the audit stream ends up (code writes to stdout only).

Review fixes (46c7672), each checked against origin/main code, which matched all four findings: blocking order is cooldown, dedupe or supersede, caps, then the held write (async writes first); [approval] is validated when present, not required for a hold; the Telegram token file check is regular file plus no group or other bits only; held records carry a credential-blind request digest and never a token, Authorization value or credential hash.

Operator summary with one flowchart and two sequence diagrams, annotated placeholder policy, secrets, operations and limits. Facts checked against config.rs, audit.rs and the design and runbook docs. Mermaid was only syntax-checked by hand, not rendered: mmdc was not available on macmini or mini. No code run.
…l], token file, audit digest)

Verified against origin/main d4ae61a:
- hold/mod.rs Table::admit (blocking: cooldown, dedupe, caps, then persist) and admit_async (persist first)
- ap-core config.rs Config::validate (approval validated only when present) and ap-proxy lib.rs:331-366 (no approval listener, holds expire)
- ap-proxy notify.rs read_secret_file (regular file, mode & 0o077 == 0; no ownership or exact 0600 check)
- ap-core audit.rs HoldRec.digest (credential-blind SHA-256 of outbound request)
Mermaid: 3 blocks rendered with npx @mermaid-js/mermaid-cli@11 on macmini, no syntax errors.
@chaodu-agent
chaodu-agent marked this pull request as ready for review November 23, 2026 02:42
@chaodu-agent
chaodu-agent merged commit 7b32d26 into main Nov 23, 2026
1 check 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