Desk wire, part 1: Libby's answer documents, the one n<seq> conversion, the projection and Mind::desk_answer #31
Loading…
Reference in a new issue
No description provided.
Delete branch "eureka-substrate/desk-wire"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cut desk-wire (spec eureka-substrate:cut_spec:cut-desk-wire.r5), part 1: Libby's answer-side documents as Rust types, the one
n<seq>conversion, the projection of stored answers with derived counts, the refusal mapping, the showability gate andMind::desk_answer. Huginn builds no card. Nothing is deployed; no decider, door, socket, envelope, schema file or read is touched.crates/huginn-mind/src/desk_wire.rs(new,pub mod):ForkAnswerRequest,ForkAnswer,ForkDeskAnswer,ForkRefusal,ForkAnswerCode(+ForkRefusalCodeand three single-variant schema enums that const-checkschemaVersion),DeskResponse; privateanswer_key/answer_seqpair (the only spelling and parsing of a desk answer key),request_of,project,door_refusal,showable;Mind::desk_answer(deciders, subject, attribution, request, now) -> (DeskResponse, replayed). Her nullable keys are required on decode (present, null if empty).desk.rs:answer_desk's(answerer, request_id)lookup is nowbound_answer,pub(crate), called byanswer_deskand bydesk_answer, so the showability gate runs only when nothing is stored for that request and a stored answer replays whatever the decider list is now. The dead-code allowance onanswer_deskis deleted;vectors()reads theoptionsHasharray of the vendored file.vectors/fork-card-vectors.jsonat CultLib 6231ecad (blob7701ff02, 943,940 bytes);fork-card-options-hash.jsondeleted.bc6be42, 45 mutants, 32 caught, 13 unviable, 0 missed, 0 timeouts; Soul's survivors S1 S2 S3 S5 S8 S9 S10 S11 S12 each applied by hand and seen to fail.Fixes after Soul's verdict cut-desk-wire.s1 (report cut-desk-wire.h3): desk-wire-gate-shadows-replay, desk-wire-required-keys-optional, desk-wire-long-fork-id-body-invalid, desk-wire-asof-and-gate-thinly-pinned, desk-wire-pass-through-unpinned, desk-wire-second-converter-evades-grep, desk-wire-replay-id-map-not-injective.
Deviations: an over-long (over 200 bytes) fork_id is
fork_unknown(her vectors and schema do not say; pinned); her answer ids are still mapped to the Mind's sequence in 19 scenarios whose fixtures number arbitrarily (the map is one-to-one and the identity where hers are sequential); the 2 changed-card scenarios are not replayed (questions are immutable); the ygg mutation harness was unavailable, so cargo-mutants ran directly.🤖 Generated with Claude Code