Repository navigation
feat: Muse gated passthrough stage 2 (hold, approval plane, ntfy notifier) - #29
Conversation
…ew outcome codes Config: Grant.path_patterns (paths optional, one required), hold allowed on passthrough grants with path_patterns only, [passthrough] hold limits, [approval] and [notify] tables with validation. Policy: Verdict and Snapshot::evaluate_verdict (whole-path segment match, hold beats allow). Codes: HumanDenied, Expired, ContentType, ContentEncoding, CredentialMissing, TableFull, IdentityCap, Cooldown, Superseded, Shutdown, DroppedOnReload, AuditUnavailable with the design 3.5 outcome rows. Verified on macmini: cargo fmt --all --check ok; cargo clippy --workspace --all-targets -D warnings ok; cargo test -p ap-core 189 passed; cargo test --workspace all ok (sidecar rendering tests unchanged).
…udit Library only, no pipeline wiring (design 3.4 steps 4-8, 3.9). - hold::Table: admit (cooldown, dedupe/supersede, caps; audit persist runs before any change), approve with 2 s confirm oneshot, deny, expire, abandon, drop_identities_missing, drop_all, drain_pending, view. Every row of the approve table is an ApproveResult. Cooldown starts only on deny/expire. Hand-written Debug on everything that holds headers, bodies or the fingerprint. - hold::digest: length-prefixed encoding; credential-blind audit digest (sha256) and per-process HMAC-SHA256 equality fingerprint. - ap-core: HoldRec with a fixed key set; ap-proxy AuditSink gains try_write_line/try_write_hold (Err on write or flush failure) and a best-effort write_hold. - ap-proxy deps: hmac, sha2, getrandom (normal), tokio test-util (dev). Verified on macmini (cargo target on the RAID volume): - cargo fmt --all --check: ok - cargo clippy --workspace --all-targets -- -D warnings: ok - cargo clippy -p ap-proxy --features stage1-probe --all-targets -- -D warnings: ok - cargo test -p ap-proxy hold::: 38 passed - cargo test --workspace: all suites passed (ap-proxy lib 111 passed)
A hold grant now buffers the request, parks it in the hold table and forwards it only after a human approves it (design 3.4, 3.5, 3.9). - passthrough/hold_path.rs: content-type, content-encoding, credential, declared-length and buffered-body checks; admission with the fallible `held` audit write; wait on decision, hold timer or caller drop (guard moves Pending to Abandoned); deny 423, expiry 410, superseded, dropped and shutdown 503; approved forward with two milestones, fallible `forward_started`, `completed` on the response stream, no synthetic answer after a reset. - forward: buffer_body, drain_body, held client (HTTP/1.1, no idle pool). - refusals after caller auth drain the unread body first (skipped for Expect: 100-continue), so a denied 1 MiB POST reads its 423. - PtApp gains the hold table, a notifier slot (None) and test pause gates (cfg(test) or matrix-upstream; AP_TEST_HOLD_PAUSE_MS only under the feature). notify.rs holds the trait only. Spike results: hyper drops the handler future on peer close, and no request byte leaves before forward_started, so neither plan fallback (decisions 5 and 6) was needed. An empty held body is sent chunked because hyper never polls a zero-length body. Verified on macmini: cargo fmt --check; clippy -D warnings (workspace all-targets, stage1-probe, matrix-upstream+stage1-probe) clean; cargo test --workspace ok (ap-proxy lib 137, 26 new hold tests); ap-proxy --features stage1-probe --lib ok (141); stage 1 black-box matrix 16/16 and matrix_passthrough test ok.
A second loopback listener (approval.listen) serves the approval API and
page (design 3.6). It is its own socket, router and credential: the public
router mounts no /pending route, the caller key is refused here and the
approver credential is refused on the public listener.
- listener/approval.rs: hyper http1 accept loop, 16 connections, 10 s header
read, 16 KiB header buffer. run_passthrough binds it only when [approval]
exists and serves it next to the public listener (either stopping ends the
process).
- approval/auth.rs: one Basic user, sha256 of the password compared in
constant time, one Authorization header only, 250 ms wait before a 401
with the Basic realm.
- approval/csrf.rs: random per-view token bound to the entry id, single
use, 4 per entry and 256 in total, dies with the entry or hold_secs.
- approval/{mod,page}.rs: GET /pending, GET /pending/<id> (HTML or JSON on
Accept), POST /pending/<id>/approve|deny with a form or JSON csrf field
and a 1 KiB body limit; ApproveResult/DenyResult map to {"result"} with
200 only for success; the approver name goes into the audit transition.
Pages escape everything, carry no script or style, show credential
headers as present and the body as escaped text with a banner when not
UTF-8, and a superseded entry shows a banner, a link to the newest id and
disabled buttons. harden() adds the six headers to every response.
- hold::Table::list() (admission order), digest::random_hex made pub,
base64 is now a normal dependency of ap-proxy.
Verified on macmini: cargo fmt --all --check; clippy -D warnings
(workspace all-targets, stage1-probe, matrix-upstream+stage1-probe) clean;
cargo test --workspace ok (ap-proxy lib 174); cargo test -p ap-proxy
approval ok (38 tests: headers on 200/401/404/405/413/400/403, realm,
CSRF missing/reused/wrong entry, script body escaped, no credential in
page or JSON, concurrent HTTP approves = one success + one upstream
request, approve after each state, cross-credential refusals both ways,
no /pending route on the public router); ap-proxy --features
stage1-probe --lib ok (178); matrix_passthrough (16 stage 1 rows) ok.
Notifier trait, NtfyNotifier (own client, 5 s timeout, no redirects, POST base/topic, fixed text body, Click header, optional Bearer), secret-file loader (opened file must be regular with no group/other bits), and MockNotifier for tests. PtApp announces each new distinct hold entry once after insert (not on supersede); failure writes one notify_failed audit line and leaves the entry untouched. run_passthrough builds the notifier from [notify]; absent means none. Verification on macmini (cargo only there): - cargo fmt --all --check: ok - cargo clippy --workspace --all-targets -D warnings: ok - cargo clippy -p ap-proxy --all-targets --features stage1-probe: ok - cargo clippy -p ap-proxy --all-targets --features matrix-upstream,stage1-probe: ok - cargo test --workspace: all pass (ap-proxy lib 187) - cargo test -p ap-proxy notify: 13 passed
…trix rows - run_passthrough: 1 s policy reload ticker (policy gone drops every hold, removed identities drop theirs) and SIGTERM/SIGINT drain: stop accepting, graceful close of connections, pending holds answered 503 shutdown, approved forwards run to the end or request_deadline_secs, exit 0. - listener::public::serve_public_until with a watch-based shutdown. - tests/matrix/passthrough.py: rows PT-18..PT-25 (approve, deny, expiry via the real approval listener; kill -9 held and inside AP_TEST_HOLD_PAUSE_MS; SIGTERM held and approved; reload drop) and, with --noprobe-bin, PT-26, PT-12n, PT-13n. - matrix_passthrough.rs: ROWS 24 (+3 with AP_MATRIX_NOPROBE_BIN); matrix.rs finds the binaries through CARGO_BIN_EXE. - ci.yml: clippy with matrix-upstream, AP_TEST_HOLD_PAUSE release grep, no-probe matrix build in target/noprobe and both matrix passes. Verified on the build host: cargo fmt --check ok; clippy workspace, stage1-probe and matrix-upstream+stage1-probe with -D warnings clean; cargo test --workspace ok (ap-core 192, ap-proxy lib 188 incl. the new reload tick test); stage1-probe lib tests ok (192); release build ok and the release auth-proxy has none of __ap_probe, __ap_test_panic, AP_TEST_HOLD_PAUSE, AP_TEST_UPSTREAM_CA; ap-egress does not depend on ap-broker; cargo test --features matrix-upstream --test matrix ok; tests/matrix/matrix.py 41 PASS of 41; matrix_passthrough cargo test ok with and without AP_MATRIX_NOPROBE_BIN; passthrough.py 24 PASS of 24 (--bin only) and 27 PASS of 27 (with --noprobe-bin).
Adds leak_tests.rs (sentinel sweep over every hold outcome, caller-key positions, and a table generating all 26 codes of design 3.5 through the real pipeline), black-box row PT-27 (approval page/list, panic while a hold exists, file and log scan), README stage 2 section, the stage 2 runbook, and the design status note with implementation deviations. Verified on macmini (OpenSSL 3 first on PATH for the python drivers): fmt --check, clippy x3 (-D warnings), cargo test --workspace, probe lib tests, release build + hook greps (no __ap_probe, __ap_test_panic, AP_TEST_HOLD_PAUSE, AP_TEST_UPSTREAM_CA), ap-egress dep check, matrix test + matrix.py 41/41, matrix_passthrough test, passthrough.py 28/28 (25 default rows + 3 no-probe rows). All passed. macmini root disk had 3.0 GiB free at the time.
Run on macmini (3.0 GiB free on /), round 1, HEAD ada1b03: - fmt --check clean; clippy -D warnings clean (workspace all-targets, ap-proxy stage1-probe, matrix-upstream+stage1-probe) - cargo test --workspace all ok; ap-proxy --features stage1-probe --lib 195 passed - release build: no __ap_probe, __ap_test_panic, AP_TEST_UPSTREAM_CA, AP_TEST_HOLD_PAUSE in auth-proxy; ap-egress does not depend on ap-broker - cargo test --test matrix ok; matrix.py 41 PASS of 41 - cargo test --test matrix_passthrough ok; passthrough.py 25 PASS of 25 - note: matrix scripts need OpenSSL 3 (not macOS LibreSSL) first on PATH
…ted; allowed-route deadline test Review round 1 findings (sol, MEDIUM x2): - Table::claim_start takes the same lock as drain_pending. The approved forward claims at the first body poll, before forward_started is written; if shutdown closed the table first, nothing is sent, the approve call gets approved_but_abandoned, the audit shows abandoned_after_approve with code shutdown, and the caller gets 503 shutdown. A request that claimed first runs to its end. PT-24 pause case now expects 503 shutdown and zero upstream requests; the streaming case still proves a started request completes. New unit test shutdown_between_approve_and_the_send_sends_nothing. - New unit test allowed_requests_are_closed_at_the_idle_and_total_deadlines (idle after head, trickle past the total deadline, no head at all; three allow/upstream_reset audit lines). Run on macmini, round 2 (OpenSSL 3 first on PATH for python drivers, /usr/bin/python3): fmt --check clean; clippy -D warnings clean (workspace all-targets, stage1-probe, matrix-upstream); cargo test --workspace ok (ap-proxy lib 193); probe lib tests 197 passed; release build: no __ap_probe, __ap_test_panic, AP_TEST_UPSTREAM_CA, AP_TEST_HOLD_PAUSE; ap-egress has no ap-broker dependency; cargo test --test matrix ok; matrix.py 41 PASS of 41; cargo test --test matrix_passthrough ok; passthrough.py 28 PASS of 28 (with --noprobe-bin). Root disk had 3.2 GiB free.
…er the table lock; stricter identity encoding; header-distinctness test Round 3 fixes for round-2 findings: - MEDIUM: Table::claim_start now runs the closed check and the forward_started audit write under the same lock drain_pending takes, so shutdown cannot land between them. New test pauses inside the claim (after the closure check, before the audit write), starts the drain and shows it waits, then the claim completes as a whole. - MEDIUM: pipeline test that a changed ordinary header (x-note) gives two pending ids, two notifications, no supersede, and independent decisions. - LOW: Content-Encoding must be absent or exactly one value equal to identity; empty elements, repeats and duplicate headers refuse content_encoding (cases added). Verified on macmini (OpenSSL 3 first on PATH, /usr/bin/python3): fmt --check clean; clippy -D warnings clean (workspace all-targets, stage1-probe, matrix-upstream); cargo test --workspace ok (ap-proxy lib 195); stage1-probe lib 199 ok; release hook greps 0 for __ap_probe, __ap_test_panic, AP_TEST_UPSTREAM_CA, AP_TEST_HOLD_PAUSE; ap-egress has no ap-broker dependency; matrix test + matrix.py 41/41; matrix_passthrough test ok; passthrough.py 25/25.
Conflicts (both in the passthrough matrix, no source conflicts): - tests/matrix/passthrough.py: main added PT-18 and PT-19 (canonicalization rows) where stage 2 had PT-18..PT-25 and PT-26/PT-27. Both kept; the stage 2 rows (and their functions) are renumbered PT-20..PT-27, PT-28 (no-probe), PT-29 (sentinel sweep). main's canon_* helpers and rows are unchanged. - crates/ap-proxy/tests/matrix_passthrough.rs: ROWS 25 -> 27 (main's two rows added to stage 2's count); ROWS_NOPROBE stays 3. Also: leak_tests.rs and the runbook point at the renumbered rows; new test canonicalization_attack_forms_are_refused_before_a_hold_exists. Checked on the merged tree: fmt, clippy (default, stage1-probe, matrix-upstream+stage1-probe), cargo test --workspace, sidecar matrix 48/48, passthrough matrix 30/30, 4 fuzz targets x 120s with 0 crashes, release hook greps clean, deploy/k8s validator and its tests pass.
|
Merged main into this branch (merge commit 056c358, no rebase). Two conflicts, both in the passthrough matrix: |
…old bypass - Refuse a route-relative path or query that repeats the authenticated caller key (layered percent-decoding, case-insensitive, fail-closed) before the Trail has a path, a hold exists or the upstream is called: caller_key_ambiguous. - Passthrough refuses percent-escapes of RFC 3986 unreserved bytes (path_ambiguous_passthrough), so the matched form equals the sent form. The sidecar keeps accepting them (matrix row C1-3). - Policy load refuses an allow grant that overlaps a hold pattern of the same identity, route and method; the matcher denies the trailing-slash spelling of a held path; hold still wins. - RFC 3986 oracle in the differential test and the canon_path fuzz target; regression forms per pattern position; two matrix rows (PT-30, PT-31, 29 rows plus 3 without the probe). - Hold canonicalization test asserts the refusal code per form and sends path-form requests without the key header. Verified on the build host: fmt, clippy x3, workspace tests, probe lib tests, sidecar matrix 48/48, passthrough matrix 32/32, four fuzz targets 180 s each with no crash, release hook greps, k8s validator.
|
Review round 5, pushed as 4890dfa. These are my own review findings on the head 056c358. 1. MEDIUM, caller key repeated in the routed path ( 2. MEDIUM,
Oracle (family closed). 3. LOWs.
Checks on the build host: fmt, clippy (default, The PR stays a draft. |
Conflicts: crates/ap-proxy/src/lib.rs (keep both mod netguard and mod notify), crates/ap-proxy/tests/matrix.rs (doc comment: both-binaries wording plus the Cargo layout note). Docs: netfilter runbook states how the gate and holds compose.
…sthrough 32/32; fmt, clippy x3, tests, fuzz x4 clean on macmini)
|
Merged main (#30, netfilter self-check) into this branch with a normal merge commit; head is now 6a14134. Conflicts, both mechanical:
Composition: the netfilter gate runs only in the sidecar profile. Holds, approval listener and notifier exist only in a passthrough-only config, and that config refuses any Checks on the merged tree: fmt, clippy (3 feature sets), workspace tests, sidecar matrix 59/59, passthrough matrix 32/32, k8s validator and its 58 tests, release hook greps, and 4 fuzz targets (2 min each) all clean. |
… approve, one route per authority - notifier and upstream clients: no_proxy(), so HTTP_PROXY/HTTPS_PROXY/ALL_PROXY (either case) and system proxies never carry the topic, bearer, approval link or a request. Tests set all six variables to a capture listener, with a control client proving the listener sees a request when the variables are honoured. - reload_tick re-evaluates every pending hold against the new policy and drops those whose identity, route, method or path no longer yields hold (dropped_on_reload). Approve re-checks the current policy under the table lock and answers policy_changed (410) if the grant is gone. - loader refuses two passthrough routes with the same host and port, since the upstream resource is the authority and path, not the route name. - docs: design and runbook text for the three rules. Checks on this commit: fmt, clippy (default, stage1-probe, matrix-upstream+stage1-probe), cargo test --workspace, sidecar matrix 59/59, passthrough matrix 32/32, validator and its 58 tests, release hook greps 0 hits. 18 mutations of the guarantees each fail a named test.
|
Review round 6 follow-up. These are my own review findings on head 6a14134. 1. MEDIUM, the notifier honoured proxy environment variables. Fixed. Why this was reported fixed before. The fix never existed. 2. Removing a hold grant on reload kept its pending holds, and an approve could run it. Fixed.
3. Two passthrough routes on one host and port bypassed the hold. Fixed in the loader by the simpler option: two passthrough routes with the same host and port are refused (host compared lowercased with a trailing dot removed; the default port is the same number). Hosts must already be canonical, so uppercase and trailing-dot spellings are refused earlier by the host rule. Existing policies, the matrices and the k8s manifests have no such pair. Tests in 4. Guarantee sweep. Each row was broken on purpose in a scratch copy; the named test failed every time (a test not run for one mutation is noted).
No guarantee in the list was found without a test. Items 1 and 2 were the two that had none. Other LOWs. The commit-message note about the build host: no history rewrite and no new mention (the new commit says "build host"); leave those lines out of the squash message. Checks on this head (build host, internal disk was low, so everything ran on the RAID volume): The PR stays a draft. |
…n at the start claim; holds are bound to their upstream - approve_checked reads the policy inside approve_if's critical section; the start claim re-checks still_held (and the recorded upstream) under the same lock before forward_started. A reload landing before the claim yields an approved send under the current policy or policy_changed (410) with caller 503 dropped_on_reload and no request byte sent. - HeldRequest records upstream (scheme, host, port, keep_auth_headers) and the policy generation; still_held compares them, so a host or port change, a rename or other kept headers drops the hold at reload and refuses the approve. The page shows 'Sent to'; the held audit record carries upstream and policy_generation. - The proxy-variable tests run in a child process, so no test mutates the shared environment. - Tests: interleavings at five injection points (revoke and keep), the reported schedule, host, port, rename, kept-header, unchanged and swap cases. Checks: fmt, clippy x3, cargo test --workspace (ap-proxy lib 248), release hook greps clean, sidecar matrix 59/59, passthrough matrix 32/32, k8s validator, fuzz x4 x 180 s 0 crashes.
|
Review round 7 follow-up. These are my own review findings on head 6f3e678. 1. MEDIUM, an approve could use a stale policy snapshot and forward after the hold grant was removed. Fixed.
2. MEDIUM, a route whose host or port changed under the same name kept its holds and sent to the old authority. Fixed.
3. LOW, the proxy-variable tests changed the process environment while other tests ran. Fixed. Both tests now run in a child copy of the test binary ( 4. Documentation and commit messages. The design sentence about the reload and approve race is now worded to match the behaviour (section 3.9), and the runbook describes the claim-time re-check and the recorded upstream. The commit-message note about the build host stands: leave those lines out of the squash message. Guarantees added to the sweep (each broken on purpose in a scratch copy; the named test failed every time):
One finding of my own while testing: a reload that lands while the claim holds the connection open cannot stop the connection itself, only the request bytes. The tests therefore assert on requests recorded upstream, not on connection counts. Checks on this head (build host, everything on the RAID volume): The PR stays a draft. |
Action boundary at the first request byte, supported local storage with a statfs check, secure directory and file checks, blocked-writer state machine, immutable segments, secrecy allow-list, reader conclusions, readiness rules, reordered test plan, new disk and DoS bound section, first stage cut to held writes, open questions marked DECIDED or PROPOSED DEFAULT. Verified: re-read PR #29 at e7818ad (admit, claim_start, approved) and Rust std sync_data at rustc 0ef1bc386. Docs only, nothing built or run.
PolicyStore::current() returned the cached snapshot whenever the file's (mtime, length) matched. A same-length rewrite with the mtime restored therefore bypassed reload_tick, approve_if and still_holds. Reproduced on macmini: a held POST /discord/hold/ok, pattern /hold/* changed to /deny/*, mtime restored, approve returned Success and forwarded. The store now reads the file's bytes on each check and compares them with the bytes the snapshot was parsed from. The table critical section and the approval-time read ordering are unchanged. Regression: passthrough::hold_tests:: a_same_length_same_mtime_swap_that_removes_the_hold_grant_drops_it_at_approve - before the fix (e7818ad): FAILED at hold_tests.rs assert_eq! left: Success, right: PolicyChanged - after the fix: ok Gates on macmini (rsync of the worktree, cargo in ~/work/pr29-digest-fix): - cargo fmt --all --check: exit 0 - cargo clippy --workspace --all-targets -- -D warnings: exit 0 - cargo clippy -p ap-proxy --all-targets --features stage1-probe -- -D warnings: exit 0 - cargo clippy -p ap-proxy --all-targets --features matrix-upstream,stage1-probe -- -D warnings: exit 0 - cargo test --workspace: exit 0 - cargo test -p ap-proxy --features stage1-probe --lib: exit 0 (249 passed, 2 ignored)
run() parsed the policy text once, but PolicyStore::new read the file again and stored that second read as the source of the startup Config. If the file changed in between (for example a grant was revoked), current() saw the new bytes match the cached source and kept returning the old policy. PolicyStore::new now takes the startup text and uses it as Loaded.source. It never re-reads the file for the initial source. The byte comparison on every later read is unchanged. Every constructor that reaches PolicyStore::new (PtApp::new, with_held_client, build, pipeline App::new) takes the text too. App::new carries an allow for clippy::too_many_arguments because it now has 8 parameters. Regression test: policy_store::tests:: startup_policy_is_not_replaced_by_a_file_changed_before_the_store_is_built. It parses synthetic allow policy A, replaces the file with policy B that grants a different path, builds the store with A's Config and text, and expects Err(PolicyDenied) from current(). Before (8db9126 + test, 2-arg PolicyStore::new): FAILED on the assertion, left Some(Ok(Allow)), right Some(Err(PolicyDenied)). Not a compile error. After: passed. Gates, run on macmini in ~/repo/auth-proxy-pr29, PATH=$HOME/.cargo/bin first. Matrix gate also had Homebrew openssl@3 first on PATH and OPENSSL_DIR set. Before: fmt pass; clippy default pass; clippy stage1-probe pass; clippy matrix-upstream,stage1-probe pass; cargo test --workspace FAILED only on the new test (245 passed, 1 failed); cargo test -p ap-proxy <new test> FAILED. After: cargo fmt --all -- --check pass cargo clippy --workspace --all-targets -- -D warnings pass cargo clippy --workspace --all-targets --features stage1-probe -- -D warnings pass cargo clippy --workspace --all-targets --features matrix-upstream,stage1-probe -- -D warnings pass cargo test --workspace pass (ap-proxy lib 246 passed, 2 ignored) cargo test -p ap-proxy startup_policy_is_not_replaced pass All feature names exist at workspace level, so no -p substitution was needed.
Stage 2 of the Muse gated passthrough (design:
docs/design/muse-gated-passthrough.md, sections 3.4-3.9, 5, 6, stage 2 acceptance 1-29). Draft: not merged, not deployed. Branch base is 8006147;mainhas since gained two commits (#26, #27), so a rebase may be needed before merge.What was built (one commit per FEAT)
Grant.path_patterns,holdallowed on passthrough grants (patterns only), hold limits in[passthrough],[approval]and[notify]tables,Snapshot::evaluate_verdict(hold beats allow), 12 new outcome codes with the 3.5 rows.hold::Tablestate machine (Pending, Approved, Denied, Expired, Abandoned, Superseded, Dropped), admission order (cooldown, dedupe/supersede, caps), 2 s approve confirm, credential-blind digest plus in-memory HMAC fingerprint,HoldRecaudit and fallible audit writes.heldaudit before insert, wait on decision/timer/caller drop, 423 deny, 410 expiry, 503 for superseded/dropped/shutdown, approved forward with two milestones, fallibleforward_started,completedon the response stream. Refusals drain unread bodies first.harden()headers on every response.Notifiertrait, ntfy implementation (own client, 5 s timeout, no redirects, fixed text,Clicklink, optional bearer), 0600 secret-file loader, one attempt per new entry,notify_failedaudit line on failure.docs/runbooks/muse-stage2.md, design status note.Review: two reviewers (opus, sol) ran three rounds; both LGTM at the head of this PR. Round 1 and 2 findings (shutdown vs approved-before-send, claim/
forward_startedatomicity, Content-Encoding strictness, idle/total deadline test, header-distinctness test) are fixed in the last two commits.Acceptance mapping (design stage 2 list)
"Tested here" = covered by unit, in-process or black-box tests in this PR. "Deployment-only" = a half that cannot be proven without the real front, Muse or the network.
Expecton the direct path only)Evidence (run on the build host, from the commit messages)
Final head sequence (round 3):
cargo fmt --checkclean; clippy-D warningsclean on workspace all-targets,stage1-probe,matrix-upstream;cargo test --workspaceok (ap-proxy lib 195);stage1-probelib tests 199 ok; release binary has none of__ap_probe,__ap_test_panic,AP_TEST_UPSTREAM_CA,AP_TEST_HOLD_PAUSE;ap-egresshas noap-brokerdependency; stage 1 matrix 41/41;matrix_passthroughtest ok;passthrough.py25/25 for the default build (28/28 with--noprobe-bin: 25 default + 3 no-probe rows).Earlier counts: ap-core 189-192 tests; ap-proxy lib 111 (hold table), 137 (hold path, 26 new), 174 (approval, 38 approval tests), 187 (notifier, 13 notify tests), 188-195 later. Black-box rows grew from 16 (stage 1) to 24 (+3 no-probe).
Spike results recorded in the FEAT-003 commit: hyper drops the handler future on peer close, and no request byte leaves before
forward_started, so neither fallback in the plan was needed.CI (
ci.yml) is workflow_dispatch only; the sequence above was run by hand, not by Actions.What is not claimed
Flagged deviations from the design
route_unknown), not 404. Tests assert no route and zero upstream hits.dropped_on_reload.shutdown, nothing sent); one that has claimed runs to its end.Nothing here contains hostnames, addresses, logins, keys, tokens or topics; the runbook is generic.