93 Commits
Author SHA1 Message Date
ariandClaude Sonnet 5.5 f5e5f752e3 Fold Phase 5 into docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 16:35:11 -04:00
ariandClaude Sonnet 5.5 6be774e98b H: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 16:32:08 -04:00
ari 3d82eefcc7 H: review-1 handoff log 2026-10-20 16:28:35 -04:00
ari 33a49533a3 H: handoff log for the final-review fixes 2026-10-20 16:16:40 -04:00
ariandClaude Sonnet 5.5 c478bef930 Plan WS-H: final review fixes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
2026-10-20 16:04:52 -04:00
ariandClaude Sonnet 5.5 a6d451f23f G: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
2026-10-20 15:59:48 -04:00
ari 33c70442a1 G: review-1 handoff and deviation log 2026-10-20 15:54:13 -04:00
ari e7f1d1a488 G: handoff for G1-G4 2026-10-20 15:54:13 -04:00
ari 214e074cca G: G4 document every error code and both content types per response 2026-10-20 15:54:13 -04:00
ari 34a1e1644c G: G4 Drift guard and docs commit the spec and fail tests on drift 2026-10-20 15:54:13 -04:00
ari 869b6818e9 G: G3 Serving and CLI serve the spec behind auth and print it offline 2026-10-20 15:54:13 -04:00
ari 7078ed15b1 G: G2 MCP description document POST /mcp and x-mcp-tools from the tool router 2026-10-20 15:54:13 -04:00
ari 3d8e840427 G: G1 REST spec derive the OpenAPI document from the handlers 2026-10-20 15:54:13 -04:00
ariandClaude Sonnet 5.5 5f4a0583f3 F: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 15:54:03 -04:00
ari 2769c6f999 F: record review round 3 in the workstream log
Log entry for the round and the hook-check port noted in the dated
Handoff, so the orchestrator knows why four files outside the F list
changed and what is left for the fold.
2026-10-20 15:04:09 -04:00
ari 2a9339c673 F: handoff for review round 3 2026-10-20 15:04:09 -04:00
ari dde6a12ce4 F: try every resolved peer address instead of the first
A peer whose name resolves to both families but which listens on only one
of them was reported unreachable, which the documented 0.0.0.0 binding
produces on a dual-stack LAN and in the NixOS test network.

resolve_target now returns the whole address set (still refusing the name
if any address is denied), the HTTP client pins it with
resolve_to_addrs so the connector falls through to the next address, and
tcp_check tries each address in order with a per-attempt share of the
remaining deadline. ClientKey keys on the set.

Regression cover: a client test that resolves localhost against a
single-family listener, a tests/peers.rs case declaring the peer as
http://localhost:<port>, and the VM test's TLS peer gamma now binds
0.0.0.0 (IPv4 only) while alpha and beta stay dual stack. Docs and the
contracts section 10 address note describe the new behaviour.
2026-10-20 15:04:09 -04:00
ari 2455486205 F: handoff for F2 to F4
Status, the nix commands to run, the blocking proxy defect reported to WS-C,
and the dev-test/doc seams.
2026-10-20 15:04:09 -04:00
ari 4d83c2eff5 F: F4 peers docs, agenix example and tool-count note
README peers section, docs/consolidator.md (threat model, tokens, firewall,
worked agenix example, reload/restart), the MCP tool count in both tables,
and config.example.toml commentary.
2026-10-20 15:04:09 -04:00
ari 66ee41a672 F: F3 end-to-end peer tests
Real registry and transport against in-process peers and hand-written
listeners: plain, TLS with an rcgen CA, a wrong CA, redirects, oversize
bodies, a silent peer, the 64-peer cap and shutdown mid-follow. Two proxy
cases are ignored: the proxied path is missing its /api/v1 prefix.
2026-10-20 15:04:09 -04:00
ari ca000d973f F: F2 promote the peers VM test and the module eval test into checks
The test nodes declare peers through the first-class module options, so
LoadCredential and RefreshOnReload come from the module. Every node binds
:: because the test network resolves node names to IPv6 first. poll()
raises with the last observed status JSON.
2026-10-20 15:04:09 -04:00
ari 4f5fa589ac F: F1 record review round 1 in the workstream log 2026-10-20 15:04:09 -04:00
ari 95e3533e83 F: F1 record module options, tests and handoff in the workstream log 2026-10-20 15:04:09 -04:00
ariandClaude Sonnet 5.5 38f1bf99fc Plan WS-G: generated OpenAPI doc
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
2026-10-20 10:22:34 -04:00
ariandClaude Sonnet 5.5 8c0f996262 Fix hook flake checks, relax markdownlint style rules, add hook pointers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
2026-10-20 10:21:52 -04:00
ariandClaude Sonnet 5.5 3798e330af D: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 23:14:04 -04:00
ari db345fb0f8 D: fix test names in the round-1 log 2026-10-19 23:10:15 -04:00
ari c0e76607f6 D: reuse the shared proxy bounds and status table in MCP peers
The peer follow stream had no byte cap and kept a whole unterminated
frame in memory, and the MCP surface carried its own peer status table
that already disagreed with REST for peer 400.

- mcp::peers::fetch now returns proxy::PreparedResponse, so the status
  comes from proxy::classify_status and the body from
  proxy::prepare_response (peer byte cap, deadline, shutdown), the same
  two steps REST uses. status_error, body_bytes and the local 2xx check
  are gone.
- tail_journal consumes that prepared stream; a Frames cursor keeps a
  partial frame from being rescanned from byte 0 on every chunk, the
  entry cap truncates the result, and the end of the stream maps to the
  note (entry cap, shutdown, byte cap, deadline or close).
- Prompts resolve the peer argument against the registry (unknown or
  disabled peer is refused); list_peers returns the error registry()
  produced; one wording for an unknown peer name.
- Tests: byte cap on an unterminated frame, entry cap, buffered body,
  follow 404/500, deadline with an open stream, shutdown, frame cursor,
  REST/MCP parity for peer 400/404/401/5xx, and a full golden snapshot of
  the peers-off tool table. Peer scripts use the stripped path form C2
  forwards.
2026-10-19 23:09:45 -04:00
ari e2c553dbe4 D: share tool-name fixture and dedupe MCP peer tests 2026-10-19 22:59:49 -04:00
ari d1bec4a3d8 D: handoff for D1-D3 2026-10-19 22:59:49 -04:00
ariandClaude Sonnet 5.5 95fac95389 T: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 22:57:56 -04:00
ari 4d7d7defe6 T: a dispatch error raises, so a module-mode session survives a typo 2026-10-19 22:37:08 -04:00
ari e736c12a0e T: log review round 2 (module-mode exit, filter-cache root, handoffs) 2026-10-19 22:37:08 -04:00
ari b476ac2b0c T: rename runner to dev-test 2026-10-19 22:37:08 -04:00
ari 6dade6239d T: review round 1 fix runner argv, filter cache, and the test builtin 2026-10-19 22:37:08 -04:00
ari 40cf1073f4 T: T7 nushell test runner, devenv test script, command lists, docs testing section 2026-10-19 22:37:08 -04:00
ariandClaude Sonnet 5.5 396c382046 C: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 22:37:03 -04:00
ari 8b7569363c C: review round 2 proxy query unit rule and shared status classifier
Proxied journal/unit values now use the local unit-name helper instead of a
second, stricter check, so escaped units pass through as text, %5C or %5c.
The peer status table is one function shared with the transport, and the
segment/encoding cases left untested get allowlist and rejection cases.
2026-10-19 22:35:51 -04:00
ari da2e8d7be2 C: record review round 1 responses and handoff for WS-D 2026-10-19 22:35:51 -04:00
ari 9be74b9dd8 C: record C1-C4 completion and handoff in the workstream log 2026-10-19 22:35:51 -04:00
ariandClaude Sonnet 5.5 b1338fdc36 A: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 22:32:35 -04:00
ari 0ade90523c A: note the one serve() line the token check needs in the WS-A log 2026-10-19 22:31:29 -04:00
ari 47868aa402 A: record the review round 2 responses in the WS-A and WS-B logs 2026-10-19 22:31:29 -04:00
ari d3bef6bd94 A: share tracing capture and peer config fixtures in tests (gate round 1) 2026-10-19 22:31:29 -04:00
ari 6bff60c210 A: record A1-A4 completion and handoff in the workstream log 2026-10-19 22:31:29 -04:00
ariandClaude Sonnet 5.5 12c3a40708 E: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 20:59:09 -04:00
ari 7fe498ed66 E: record E1 and E2 results, seams and handoff in the workstream log 2026-10-19 20:57:52 -04:00
ariandClaude Sonnet 5.5 f0b6c29eac B: mark merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 20:55:58 -04:00
ari df5b55ecf9 B: record the round 1 review responses in the workstream log 2026-10-19 20:55:25 -04:00
ari 9d6fbd3288 B: B4 empty the peer snapshot when a reload disables the feature 2026-10-19 20:55:25 -04:00