Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/spark-rsi-mv/tree/main/fixtures/canary-target # spark-rsi-mv Native Rust recursive self-improvement engine with paired bootstrap evaluation and cryptographic ledger Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `spark-rsi-mv / fixtures / canary-target` `eacf082` docs: README matches main on 2026-10-19 Drake Stapleton committed 2026-10-19 ``` .. src/ .crumb 178 .gitignore 8 Cargo.lock 2653 Cargo.toml 330 README.md 2208 canary-adapter.toml 147 workload.json 1357 ``` README.md # canary-target The first canary target: a small standalone worker that speaks the canary wire protocol (version 1, docs/CANARY-CONTRACT.md ) so the supervisor's execution pipeline can be exercised and qualified. It does not depend on spark_rsi. Build (offline, from the repository root): ``` cargo build --release --offline --locked --manifest-path fixtures/canary-target/Cargo.toml ``` The adapter manifest `canary-adapter.toml` names `release/canary-target` relative to this crate's `target` directory. `workload.json` is the pinned workload: 10 requests, 2000 ms deadlines. ## Worker behaviour The supervisor launches it with `--socket /workers/.sock`. It takes the generation id from the socket file name, sends `Ready` with `protocol_version` 1, answers the `AuthChallenge` with HMAC-SHA256(secret, ":") using the `SUPERVISOR_SECRET` environment variable, waits for `Ping`, then answers each `ExecuteRequest` with an `ExecuteResult`. Correct answers: "ping" gives "pong", "add A B" gives the sum, anything else echoes the input. ## Scripted misbehaviour Set `RSI_CANARY_FIXTURE_MODE` (default `correct`). `RSI_CANARY_FIXTURE_FAIL_AT` (default 3) is the request number the mode acts on. Mode Behaviour `correct` Answers every request correctly. `wrong_answer` Answers request N wrongly. `fabricate_success` Sends `CanaryReport` success frames and `worker_latency_us` 1 while answering wrongly. `duplicate` Sends every `ExecuteResult` twice. `replay` After answering request N, reconnects and resends all earlier results without a handshake. `timeout` Never answers request N. `wrong_request` Answers request N with a different request id. `premature_promotion` Sends `DrainComplete`, extra `Ready` and `CanaryReport` frames to try to be promoted, while answering correctly. `old_protocol` Sends `Ready` without a protocol version (reads as 0). `wrong_generation` Sends `Ready` naming another generation. `bare_connection` Connects and says nothing. `RSI_CANARY_FIXTURE_PROTOCOL_VERSION` (default 1) sets the version stated in `Ready`.