Repository navigation
feat: Muse gated passthrough stage 1 (measurement + allow/deny) - #17
chaodu-agent wants to merge 6 commits into
Conversation
…passthrough pipeline, public listener, evidence, probe) Verified on macmini (rsync of worktree): cargo clippy --workspace --all-targets -D warnings clean; cargo clippy -p ap-proxy --features stage1-probe,matrix-upstream clean; cargo test --workspace all pass; cargo test -p ap-proxy --lib --features stage1-probe: 61 pass. Black-box matrix, docs and CI follow.
… for muse stage 1 Ran on macmini (rsync of worktree, PATH with homebrew openssl 3): - cargo fmt --all --check: ok - cargo clippy --workspace --all-targets -D warnings: clean; same with -p ap-proxy --features stage1-probe,matrix-upstream - cargo test --workspace: all pass (ap-core 176, ap-proxy lib 57, 61 with stage1-probe, others unchanged) - release build (default features): no AP_TEST_*, __ap_probe or __ap_test_panic strings; ap-egress does not depend on ap-broker - python3 tests/matrix/passthrough.py: summary 13 PASS of 13 rows; cargo test --test matrix_passthrough ok - sidecar python3 tests/matrix/matrix.py: 41 PASS of 41 rows under /usr/bin/python3. Under Homebrew python 3.14 + OpenSSL 4, row R4-2 fails in the harness client (certificate verify: missing AKI), unrelated to this change. The existing cargo test --test matrix cannot find its binaries with cargo 1.100's split build dir (pre-existing, left unchanged). - deploy/k8s/test_validate_manifests.py not run: no pyyaml on macmini (files untouched).
- passthrough audit record gets bytes_sent: None (field added by #16) - drop dead __ap_probe reserved-name check; mark caller key header values sensitive - evidence digest comment says what the digest covers - PT-12: obs-fold row, GET CL+TE and bare-LF measured as known gap - design 3.1/3.5/acc 12 and runbook: hyper behaviour, loopback + front reliance, stage 2 raw-head scanner Checked on macmini: fmt, clippy (default and stage1-probe,matrix-upstream) -D warnings, cargo test --workspace, release hook greps clean, sidecar matrix 41/41, passthrough matrix 13/13, matrix_passthrough cargo target ok. cargo matrix target fails on this host only (new cargo test-exe layout; bin_dir lookup), driver run directly instead.
|
Round 2, head 47605fe (still a draft).
|
…nd 3 review fixes Verified on macmini: fmt, clippy (default, stage1-probe, stage1-probe+matrix-upstream), workspace tests, stage1-probe lib tests (66), sidecar matrix 41/41, passthrough matrix 15/15, release hook greps all 0.
|
Follow-up to my review of 47605fe, fixed in 4ed4388.
The framing gap (identical duplicate Run on macmini: fmt, clippy (default, |
…every refusal body - passthrough: caller key from the header OR the /ap/<key>/ prefix (parse_ap_path), exactly one source (both: 400 caller_key_ambiguous); prefix stripped before routing/forwarding; probe works under the path form - no-leak tests and matrix rows extended to the path form (PT-06), new PT-17, table-driven test over every refusal row (status, header, exact body) - docs: design 3.1/3.2/3.5/stage 1/open questions, runbook Verified on macmini: fmt --check, clippy (default, stage1-probe, matrix-upstream+stage1-probe) -D warnings, cargo test --workspace, ap-proxy stage1-probe --lib (74), release hook greps clean, sidecar matrix.py 41/41, passthrough matrix 16/16 (cargo target matrix_passthrough ok). The sidecar cargo target 'matrix' fails on this host only on its binary-dir lookup (cargo build-dir layout), file untouched.
|
Round 3 pushed (d108ceb), after Muse-reported facts about the Discord helper (not measured by us). Code (additive; no existing check weakened or reordered)
Docs: design 3.1, 3.2, 3.5, stage 1 and open questions, plus a short [M-reported] facts list. The 30 s JSON timeout is recorded as a hard limit on the stage 2 hold window. The gate constrains the agent only if the new connector is its only route. Runbook updated for both key sources. Verification (macmini): fmt, clippy (default, Known gap unchanged: strict rejection of duplicate identical Content-Length, bare LF and CL+TE is documented, not built. Nothing was deployed or restarted. The PR stays a draft. |
Summary
Stage 1 of the Muse gated passthrough: measurement only, plus allow/deny passthrough.
Tested
cargo fmt --check,cargo clippy,cargo testci.ymlstepsDeferred to stage 2
Note: the in-flight port PRs also touch
config.rs,audit.rsandpipeline.rs. This branch is based on currentorigin/main, so expect a rebase on whichever lands second.