Commit graph

899 commits

Author SHA1 Message Date
664be6e77a Merge pull request 'Desk wire, part 1: Libby's answer documents, the one n<seq> conversion, the projection and Mind::desk_answer' (#31) from eureka-substrate/desk-wire into main 2026-11-10 19:44:17 +00:00
bc6be42ae9 Desk wire tests: the replay's id map is asserted one-to-one
S11 applied with the sequential check off and seen to fail on it. Finding desk-wire-replay-id-map-not-injective.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:23:25 +00:00
fc25fc925b Desk wire tests: a key outside its fork's n<seq> form projects Unavailable; the conversion round-trips over many sequences
Soul's S12 (a second converter that agrees on every legal key) applied and seen to fail. Finding desk-wire-second-converter-evades-grep.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:23:03 +00:00
c23c415166 Desk wire tests: request id, retracts, note, choice and Unavailable pass through as sent
Padded, cased and trailing-junk spellings added to the existing tables; Soul's S1, S8, S9, S10 each applied and seen to fail. Finding desk-wire-pass-through-unpinned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:22:29 +00:00
ba6d90c7ad Desk wire tests: as_of pinned on refused and uncounted answers; the gate tried with a retraction and an illegal form
Kills Soul's S2, S3 and S5 (each applied and seen to fail). Finding desk-wire-asof-and-gate-thinly-pinned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:21:39 +00:00
83107b6f3d Desk wire: an over-long fork id is fork_unknown, pinned by exact field
Her vectors hold no over-long fork id (deviation recorded). Finding desk-wire-long-fork-id-body-invalid.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:20:50 +00:00
a3d788fa72 Desk wire: the nullable keys her schema requires must be sent
Finding desk-wire-required-keys-optional.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:20:10 +00:00
905cdd6793 Desk wire: the showability gate no longer shadows a stored answer's replay
answer_desk's (answerer, request_id) lookup is now bound_answer, pub(crate) in desk.rs, and
Mind::desk_answer asks it so the gate runs only when nothing is stored. Finding
desk-wire-gate-shadows-replay.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:19:16 +00:00
0a9d69679c Desk wire: repin Libby's vectors to CultLib 6231ecad; replay compares counted_answer_id and the refused target exactly; digest goldens pinned from the file
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:50:19 +00:00
75155b3b43 Desk wire tests: a replayed revision keeps its stored word while it counts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:44:37 +00:00
3936076629 Desk wire: clippy-clean test spelling and the contract named without the card word
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:37:22 +00:00
e84c7130dd Desk wire tests: Libby's 53 replayable scenarios through Mind::desk_answer, with the named target deviation pinned
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:35:21 +00:00
80697c959a Desk wire tests: the showability gate, byte bounds, request id pass-through and closed keys
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:34:54 +00:00
52a18ae3cb Desk wire tests: Libby's request, refusal and answer vectors byte for byte; projection, counts, conversion and refusal mapping
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:34:06 +00:00
2062902c80 Desk wire: Libby's answer documents, the one n<seq> conversion, the projection and Mind::desk_answer
Vendors fork-card-vectors.json at CultLib 8ca1d184 and retires the options-hash file it contains.
answer_desk's dead-code allowance goes: desk_answer is its live caller. No card is built here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:31:27 +00:00
f0ca504456 Merge pull request 'Desk digest covers the illegal form retracted flag; pin the s4 refusal bounds' (#30) from eureka-substrate/desk-digest-retracted into main 2026-11-10 18:20:45 +00:00
2d99e6ee6c Desk digest covers the illegal form's retracted flag; pin the s4 refusal bounds
body_digest writes retracted for the illegal form only, so forms (i) and
(iii) no longer share a digest; desk_steps refuses a value that is no
illegal form as body invalid. Tests pin the three illegal goldens, the
200-byte target, choice and Refused.retracts bounds, case-sensitive
labels and fork_closed before bad_retraction.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:07:10 +00:00
7ea11b4419 Merge pull request 'Desk answers, Huginn half 1: desk_answer kind and the Mind counting door' (#29) from eureka-substrate/desk-answer-record into main 2026-11-10 17:51:53 +00:00
583d6f52b7 desk: header facts derive whether an answer counts at the read's snapshot; refusals keep what was sent
PipelineFacts::DeskAnswer gains counts, derived through counted_answer over the
read's Docs::at(image, as_of); the stored outcome name stays the write-time record.
DeskOutcome::Refused carries the retraction target as sent; the record's choice is a
Short kept as sent (a choice_invalid choice is no label), and an illegal retraction
form keeps its choice and note. body_sha256 form unchanged. Schemas regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:38:36 +00:00
21674e134a desk: look up the retry before the probe validates
A bound (answerer, request_id) replays its stored outcome without re-running
probe validation; a malformed id binds nothing and still meets the probe.
Comment on the choice bound now says a Short (200 bytes).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:17:51 +00:00
e70a0fe13b huginn-mind: pin the faculty alias values to Faculty's serde names
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:08:40 +00:00
b4845aedcd huginn-mind: illegal retractions and non-label choices are stored refusals; claim_in_future follows the stored received_at
DeskBody::IllegalRetraction stores Refused bad_retraction after steps 4-6 (digest carries the form, so it never replays as a plain answer); a choice is any 1-200 byte text, stored Refused choice_invalid when no option label, grammar or not. claim_in_future compares against the whole-second received_at written to the record.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:08:40 +00:00
3a1677251b huginn-mind: Member and Steward faculties for desk receipts; pin the body digest, lookup position and sub-second claim
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 16:04:06 +00:00
368217a65a huginn-mind: tests for the desk fix batch (decider list, receipt faculty, older cards, times, notes, NFC, request_id Q1-Q6)
Each test was failed by a hand mutant of the rule it pins.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 15:49:53 +00:00
dcc51c170f huginn-mind: desk answers take the decider list as input, store attribution, received_at and request_id
DeskStamp carries answerer, attribution (Operator/Steward/Member per CultLib PR #72) and the decider
list; membership decides rule 5, the attribution never does. answer_desk and DeskStamp are crate-private.
The receipt names the operator only for the operator's account. counted_answer and R1 consider
options_hash. A stored answer keeps received_at, claim_in_future, request_id and a body digest;
the same (answerer, request_id) and body replays the stored outcome and writes nothing, another
body is request_id_conflict. Notes are Words (1..=4000 bytes, not blank); answered_at must be UTC.
The vector file is re-sliced byte for byte from PR #72 head 2dea6c56.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 15:46:02 +00:00
f1691ffc0d huginn-mind: pin that the desk door is refused before references are read
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 15:28:22 +00:00
5785c0c8c8 huginn-mind: options_hash at the bytes CultLib PR #72 pins
NFC every string, JCS (struct fields in key order through serde_json), SHA-256,
lowercase hex; the seam stays the single owner. Libby's 15 vectors, A-G included,
run as tests; the test fixture hash is gone. Adds unicode-normalization.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 15:26:03 +00:00
719b5104f5 huginn-mind: Mind::answer_desk, the counting door for desk answers
Rules 3-8, R1, R2, R4 of the binding spec; counted_answer derives which answer
counts; Door::Desk is the only door that may write a desk_answer, so Admit,
import and derivation refuse it. options_hash sits behind one seam, failing
closed until the bytes are filled; tests use a named fixture hash.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 15:24:08 +00:00
be35c72a16 eureka-pipeline: the desk_answer kind, tagged DeskOutcome and its key
One kind, key <campaign>:desk_answer:<question label>.n<sequence>, one tagged
outcome (Counted, Revision, Retraction, Refused). Published schema, index row,
golden line and the PipelineKind enum in sibling schemas regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 15:15:48 +00:00
1a04d0efd9 Merge pull request 'Persona: send chat_read for the newest placed event per room at the echo' (#28) from eureka/chat-read-receipt into main 2026-11-10 14:55:00 +00:00
3903cf6b51 Merge pull request 'huginn sources --front: search only a repo's front-page files' (#27) from eureka/prose-index-map into main 2026-11-10 14:51:21 +00:00
2f165d8d1e huginn sources --front: search only a repo's front-page files
SourceQuery gains `front` (serde default false, so an old client's request
decodes as before). The one owner of the list is sources::FRONT_PAGE_FILES;
the Qdrant filter matches `path` against it with MatchAny on the existing
keyword index, composed with the `repo` condition. The CLI prints the
citation line range as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:47:47 +00:00
db50e16a8a Persona: report the newest placed event per room as chat_read at the echo
One gamecult.persona.chat_read.v1 [persona, room, event_id, at_unix_ms] per room per echoed batch,
sent over the same RUDP endpoint as chat_ack, from PersonaInbox::echoed (the CLI has taken the line).
Newest placed event only; no event ids on earlier lines. Display-only: a failed report is dropped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:46:44 +00:00
a60e83fce9 Merge pull request 'Sources index: skip .obsidian, .voidbot, LICENSE and provenance files' (#26) from eureka/sources-skip-noise into main 2026-11-10 14:24:00 +00:00
c204e8ff12 Merge pull request 'Self run: deliver a result whole, never clipped' (#25) from eureka/self-run-full-result into main 2026-11-10 14:23:59 +00:00
59aca09c62 Self run: a refused reply holds back the replies behind it, so a long result reaches the mind in order
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:21:04 +00:00
8073a7c3bc Self run test: the whitespace tail of a long result is never offered to the mind
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:08:14 +00:00
6c5f83e607 Self run: a whitespace-only piece of a long result is no reply; every piece answers the briefs (tested)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:07:35 +00:00
1ee0b86f30 Sources: licence rule narrowed to bare or prose-extension names, chunker version stays 1
The skip list now matches `license`, `licence`, `copying` only with no extension or md/txt/rst, so src/license.rs and Copying.cs stay indexed. CHUNKER_VERSION is back to 1: a bump rebuilds the live collection; the already-indexed noise paths go by a one-time delete_by sweep instead (work/sweep/sweep-sources-noise.py, same rule).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:06:10 +00:00
6d1766dd72 Sources: skip .obsidian/.voidbot dirs, licence files and *.provenance; bump chunker version to rebuild
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:44:25 +00:00
6734cafafa Self run: deliver a result whole, never clipped
The journal line carries the full result; a result longer than a reply's
bound is emitted as consecutive replies (-r{n}), cut at character
boundaries, with the same answers. RESULT_TEXT_LIMIT and the
[truncated] marker are deleted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:43:36 +00:00
05f593476e Merge pull request 'AlreadyResolved names the closure in force' (#22) from eureka/refusal-names-the-closure into main 2026-11-09 12:10:30 +00:00
f4e419ef45 AlreadyResolved: the correction test takes closed_by from the refusal
Mutating the resolution path's closed_by to the subject fails the test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 12:08:34 +00:00
563b6f3bf4 Merge pull request 'Import: resolution of a window follow-up or idea is inert' (#23) from eureka/import-inert-resolutions into main 2026-11-09 12:05:24 +00:00
3b35fb8bae Import: order the use list, pin the later-batch collision, state it in the window_writes doc
A follow-up the receiver wrote natively, closed, and a later batch replays is inert to the
daemon now and refused as an identity collision when the batch arrives.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 12:05:24 +00:00
3269df77c2 Merge pull request 'mind-body: open work listed oldest first by origin, lines capped, hidden work named by campaign' (#24) from hands/eureka-body-follow-ups-oldest-first into main 2026-11-09 11:53:41 +00:00
0c4e700b9e Import: the resolution of a follow-up or idea the receiver wrote is inert in the window
inert_in_window covered FollowUp and Idea only, so a receiver's own resolution
of such a record, admitted after the import began, refused the rerun in both
the tool (resume/window_writes) and the daemon (root_holds_native_write).
A Resolution whose subject is a follow-up or idea the plan does not replay
touches nothing planned and now stays beside the replay. One predicate, both
callers; the resolution of a replayed follow-up, or of any other kind, still
refuses.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 11:48:19 +00:00
Meta Vens
72aa58050e tests: pin the exact-fit follow-up line and the six-campaign note edge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 12:43:10 +01:00
69ba61f054 AlreadyResolved names the closure in force, so a wrong closure can be corrected
A closed row is corrected by withdrawing its resolution and resolving the
subject again at the next sequence; admission already allows it, in one batch
too (new test). The refusal gave no way to find it: a Mind that tried to
Withdraw or re-resolve the follow-up itself got AlreadyResolved with only the
subject. It now carries closed_by, the resolution key to withdraw.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 11:41:21 +00:00
Meta Vens
e31c87cfb9 tests: the bound test's open count follows the clip; the import test checks follow-ups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 12:07:07 +01:00