Commit Graph
127 Commits
Author SHA1 Message Date
ari b2a4059080 T: failing checks raise instead of exiting, so module mode keeps the session
run-steps and self-check ended with exit 1. With use dev/dev-test.nu * in a
Nushell config, exit ends the caller's session and cannot be caught, so any
red dev-test unit|all|ci closed the terminal right after the summary.

run-steps and self-check now raise a catchable error; only the script-mode
entry point (main) exits, after printing the reason. check-module-mode guards
that: it rejects exit outside main, rejects (exit ...) interpolated into a
message (a subexpression that ends the process; the cargo-tree message had
one), catches a real failing step in module mode and requires script mode to
still exit non-zero.
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 cfb3a400df C: document proxied unit names, status mapping and peer header rules 2026-10-19 22:35:51 -04:00
ari 7a4d64c051 C: review round 1 proxy fixes
Unit names go through the local route's validation, so escaped and
dash-rooted units work through the proxy; backslashes stay legal only
there. Response preparation (status classification, content-type check,
size/stream bounds) moves into proxy.rs for REST and MCP to share.
x-slinuxm-peer is only set for configured peers, proxied SSE is no-cache,
and the unreachable handler fallbacks are gone.
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
ari 767b198ed7 C: C4 REST error mapping through peer_error_to_app with per-row tests 2026-10-19 22:35:51 -04:00
ari 58012018d9 C: C3 x-slinuxm-peer response header on every proxied outcome 2026-10-19 22:35:51 -04:00
ari bab6959a94 C: C2 GET-only pass-through proxy with allowlist, hop guard and query filter 2026-10-19 22:35:51 -04:00
ari bec0ab5736 C: C1 peer status routes 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 80dec21afd A: use the shared temp-dir fixture in the config tests 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 92ad3c8128 A: wire peer check to the real client and probe a real socket in tests
B1/B2 are merged, so `real_transport` builds the `ReqwestTransport` with the
configured limits and deny list instead of bailing. Binary tests now probe a
real loopback server: ok with latency, rejected credential, unreachable peer
and an unknown name, none of which may print the token.
2026-10-19 22:31:29 -04:00
ari e2ff40beae A: test the token-free commands, snapshot print-config and tighten assertions
The peer-less `--print-config` output is now compared against the committed
pre-peers text plus the default `[peers]` block, and a config with a peer
must leave everything before that block byte-identical. New binary tests
cover `--print-config`, `peer list`, `token create|list` with an unreadable
token file, and `serve` refusing to start while naming the peer.
2026-10-19 22:31:29 -04:00
ari de7a47d040 A: cover a directory and a symlink escaping the credentials directory in the loader 2026-10-19 22:31:29 -04:00
ari a02e4f181b A: open peer token files only from serve and peer check
`Config::load` now runs structural checks only (names, URLs, CIDRs, paths,
timeouts) and never touches the host, so `token create|list`, `peer list`,
`peer check` and `--print-config` work where the credential is absent, e.g.
outside the unit. `Config::validate_token_readiness` opens the enabled peers'
files and runs at the top of `serve`; `peer check` checks the probed peer.
Also canonicalise IPv4-mapped IPv6 literals against the deny list and stop
putting the host in the plain-http error while the warning omits it.
2026-10-19 22:31:29 -04:00
ari c4850d0764 A: align the registry reload test with the peer timeout rule (B's fixture, exposed by the rebase) 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
ari 2eb1d2a78b A: A4 peer list and one-shot peer check CLI 2026-10-19 22:31:29 -04:00
ari 7d10153677 A: A3 secrets loader reads token files with redaction and permission checks 2026-10-19 22:31:29 -04:00
ari bcac6c76e6 A: A2 validate peer names, URLs, token files and timeouts 2026-10-19 22:31:29 -04:00
ari 40d18c2253 A: A1 peers config section, env overrides and print-config redaction 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
ari 5cb2c43e39 E: E2 outbound peer spans and traceparent injection helpers 2026-10-19 20:57:52 -04:00
ari eee253b162 E: E1 peer health gauges from the registry snapshot 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 7dd79c3851 B: cover token rotation and recovery against the in-process peer 2026-10-19 20:55:25 -04:00
ari c1a12abc19 B: refuse to proxy disabled peers and reject reloads the transport cannot apply
Also reset status when a peer URL changes, keep loops retired by a
reload and await them at shutdown, and cover the SIGHUP fan-out.
2026-10-19 20:55:25 -04:00
ari 26b9f8bdff B: report healthz latency and keep the last peer version below the threshold 2026-10-19 20:55:25 -04:00
ari 5ad94f249e B: bound peer calls with one deadline and let streams outlive it
Count DNS, token/CA reads and headers inside the timeout, treat SSE as
long-lived with an idle bound, take targets from url::Host so IPv6
literals work, exempt health probes from the concurrency limits and
tighten error classification. Reuse validate_target in request_url and
mark the Authorization value sensitive.
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
ari 734a6ed541 B: record B2-B5 outcomes and handoff in the workstream log 2026-10-19 20:55:25 -04:00
ari 000659a552 B: B5 enforce deny CIDRs and plain-HTTP opt-in before connecting 2026-10-19 20:55:25 -04:00
ari ed1c3a608e B: B4 start the peer registry from serve and reload peers on SIGHUP 2026-10-19 20:55:25 -04:00
ari d94c2b3a1d B: B2/B3 health probes, loops and the in-memory status model 2026-10-19 20:55:25 -04:00
ari bd5b21bcc4 B: B1 real reqwest peer client with caps, timeouts and ring TLS 2026-10-19 20:55:25 -04:00
ariandClaude Sonnet 5.5 58b41fa001 phase-loop: goose is the coder again (grok balance exhausted)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dpKwZWtahQU4V2NhpVmLt
2026-10-19 20:39:54 -04:00
ariandClaude Sonnet 5.5 274e3919ba A0: mark contract stubs merged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 20:02:42 -04:00
ari 0dbaf58c8c A0: review round 1 peer entry defaults and class strings 2026-10-19 20:02:17 -04:00
ari 4bfb097be6 A0: contract stubs types, transport, fake and registry seams
Land the shared peer contracts: types, error mapping, transport trait,
fake transport and fixtures, registry/proxy/health skeletons, the
AppState.peers and Config.peers seams, the ping and peers route stubs,
and unit plus integration tests. No loops, no network, feature off by
default.
2026-10-19 20:02:17 -04:00
ariandClaude Sonnet 5.5 746b389a2b D0: record spike status
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-19 19:31:08 -04:00