Commit graph Weksa/crates/weksa/src
Author SHA1 Message Date
36297f8d97 calibrate: per-arm candidate counts and mild-arm offsets (#82) 2026-11-13 14:53:42 +00:00
0761f4ae7c calibrate: split prompted trials by R's role (#81) 2026-11-13 13:50:40 +00:00
d8afc4ab85 calibrate-harness: weksa loop calibrate over answered draws (#78)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 09:18:54 +00:00
2dcc90796f cycle floor: paired_floor over round 1 and three prompted replicates (#73) 2026-11-13 05:02:31 +00:00
516eb4b885 round: per-item Validation scores in the round record (cycle-floor-scores) (#71) 2026-11-13 03:47:53 +00:00
98ab798ca5 paired floor: one composite formula and its pin; docs state the power measure (#72) 2026-11-13 03:39:17 +00:00
353dd2138f relower: paired per-item noise floor over >=3 prompted repeats; panel gain clears the noise of the sum (#70) 2026-11-13 03:01:52 +00:00
97aa026498 weksa loop relower: fixed-packet re-lowering measure with a lowering-only floor (#69) 2026-11-13 02:05:41 +00:00
736b6a4acb test-text-guard: AnswerFiles refuses a prompt that holds the text of an item in a Test group (#65) 2026-11-13 00:57:32 +00:00
887e79ef44 mint-prompt-door: the mint prompt teaches the shape the admit door admits (#64) 2026-11-12 23:54:01 +00:00
754322252b ontology-mint-probe: weksa loop mint-ontology proposes entries from Train items only, never writes the run ontology (#63) 2026-11-12 22:20:44 +00:00
981ad0ea1f ja-seed-pairs: ja-JP :5/:7/:8 get certainty and restraint bounds (AtMostOrUnset) so the seed pairs never co-select (#58) 2026-11-12 19:52:14 +00:00
07c2755b95 ja-item19: encoder prompt states one role per predication and the group shape for coordination (#56) 2026-11-12 18:48:40 +00:00
7babf8aadc ja-inventory: rev 5 concepts and frames for the original bed (model-drafted, Validation-informed), weksa inventory admit, onto:ja-JP:15 (#54) 2026-11-12 18:08:04 +00:00
Weksa
139fa94b29 language-ontology-scene r2: a run reads entries and scenes at its own head, default bed is seed+proof+scene rev 3 (no Dao), politeness keyword guard replaced by model readings, nine seed entries reworded
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 17:11:57 +00:00
Weksa
71b9d0e055 language-ontology-scene fix: default bed carries rev 3-4, scene entries never co-select in a layer, en-US:8 names no register, keeper rank re-derived from situation, README and doc true
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:48:52 +00:00
Weksa
966a3678a7 language-ontology-scene s3-6: inventory rev 4 in both beds, empty speaker-state stores committed, scene tests, original corpus checks, lowering map
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:31:55 +00:00
Weksa
f7f4e58d78 language-ontology-scene s1-2: the run pins the speaker-state store, assembled is the one scene door, select reads slot Scene, Prompt::lower refuses an unread scene, weksa scene put|dump, speaker_scene_revision(n)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:27:13 +00:00
Weksa
e46f933268 One language-tag owner: is_language_tag is canonical-case; tests for the case arms and Hangul fillers; leak-owner doc
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 14:51:31 +00:00
Weksa
602f7c2cd5 Ontology fix pass s1: refuse format and separator characters, canonical-case language, entries on retired features; kill six surviving mutants; two-language round test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 14:31:35 +00:00
Weksa
cd435e2a48 Ontology tests: select, admit rules, prompt section, run pin, round prompts, draft door, CLI
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 14:14:44 +00:00
Weksa
0ea07d21fa Ontology entries per language, selected inside Prompt::lower and pinned by the run
OntologyEntry, OntologyStore::admit, ontology::select over the view's stance and discourse, OntologyDraft, run keys 15 and 16 with Drift(Ontology), weksa ontology admit and dump.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 14:11:51 +00:00
Weksa
f05906b1f7 Pin the panel sum rule's liveness, fix stale Ladder docs, name the composite verdict in the map record column
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 13:34:48 +00:00
Weksa
edb7fff339 Accept rule: composite tolerance back in the one regression test, panel accepts on a composite sum past one step; bound 1.5 L / LADDER_STEP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 13:25:36 +00:00
Weksa
379c69eb06 decide owns the composite rule: no composite falls, non-finite readings fail closed; decide_panel only aggregates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 13:11:22 +00:00
Weksa
14e94d4cb8 decide_panel rejects a composite fall past its floor; pin cycle floors, ablation, offer, recall and the ja-JP no-text check; drop the redundant tag branch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 12:58:09 +00:00
Weksa
9e4486b789 Panel tests: each item lowers in its own language, per-language means, floors and feedback, bad panels, unspaced recall
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 12:34:53 +00:00
Weksa
3e4b035be6 Loop tests follow the panel: en-US panel in every fixture run, per-language reads, recall at word boundaries
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 12:29:23 +00:00
Weksa
167ce83cfc Loop: lower each item in its own language, read and decide Validation per panel language
Prompt::lower takes the language; RunRecord carries the panel; RoundRecord and
Decision hold per-language readings (pooled keys retired); decide_panel is
Pareto non-regression over decide(); recall splits at UAX #29 word bounds.
Integration tests follow in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 12:22:26 +00:00
Weksa
ff3261a50f Lows: show-working publishes by allowlist and prints Display, edition_year says first appearance
The split guard failed open on any new split name; it now allows Train and
split-less items only. The page printed Debug of Refusal/StoreError and the
EntityRead store message; it prints Display and a fixed line. edition_year
held the first-appearance year of the work or translation, not the page read:
the doc comment and published schema say so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 09:46:50 +00:00
Weksa
707e0204bf Encode prompt: participants are node ids, never an entity id
Both bad-form refusals in orig-5 put the speaker entity (entity:keeper) in
context.participants. One sentence, pinned by a plain test; no new rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:27:48 +00:00
Weksa
e8a9bbc5ab Ablation reads none for an empty set, pins its line, names a missing round answer
Soul s1 findings: an empty mean printed 0.00 beside n=0 (now Option, printed
none, like SplitMean); the printed line and whole ablate output are pinned by
exact string, with drop and permute each carrying their own n; a missing
recorded round answer is RunError::Unrecorded and says the prompt digest
drifted or the head inventory moved, not that a store would not read; the
unusable count is pinned for variant and item sides.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 19:01:24 +00:00
Weksa
00feb1d310 Lowering brief states the grade scale
LOWER_INSTRUCTIONS gains 'a grade is permille, 0 to 1000' (the encode brief
already states it). The pinned lowering test requires the sentence and asserts
the item's speaker entity id and group are in no prompt text.

This edits context.rs, a PROMPT_SOURCE_DIGEST input: the digest moves and runs
opened before this commit stop opening; open a fresh run to ablate under the
new brief.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:28:14 +00:00
Weksa
e0e3c93d97 Stance ablation: replay, drop and permute a packet's stance beside recall
RecordedAnswers is the one reader of <digest>.answer files (AnswerFiles reads
through it). RunStores::stance_ablation asks a fresh lowerer the round's own
lowering prompt again (replay), with the stance emptied (drop) and with the
next item's stance in its split (permute), for live Train and Validation
packets only, and reads how far the lowering moves and what the item's own
stance adds to fidelity. A diagnostic in <root>/ablation-<n>: records nothing,
never writes round-<n>. `weksa loop ablate <root> --round n`; exits 3 until
answered. Touches no pinned prompt-source file.

The source tripwire now allows the ablation as a second Prompt::lower call site.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:26:31 +00:00
Weksa
829559bbc3 Pin every DraftClass code string; feed Other real serde errors
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:03:26 +00:00
Weksa
7ee9d73c72 Encode prompt: a referent's concept is never null
Both parse refusals in the original-corpus round (runs/orig-3) were a null
referents[].concept; the prompt gave 'or null' to entity, setting, medium and
addressee and never said concept could not be. One sentence, pinned by a test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:34:44 +00:00
Weksa
99cf0cb39f Remove rustfmt diffs the parse-reason cut added to run.rs and tests
Only hunks on lines that cut changed; import ordering and older code untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:33:53 +00:00
Weksa
99286d3892 DraftClass: split the data-message reader out and pin each class with a real serde error
serde_json exposes no kind for a data error, so the prefix reader stays as
DraftClass::of_data; the test feeds each class a real answer and an unknown
message to Other.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:33:53 +00:00
Weksa
2759c0f12d Round records carry a closed reason for every parse refusal and an own-family count
DraftClass (closed set from serde's category and leading words, never the
message) rides on DraftError; the round counts parse_reasons by code
('unreadable' for an answer that did not read as text) beside admit_rules.
RunRecord keeps the answerer's ModelFamily (loop open --answerer-family);
the round counts offered ModelWritten items of that family and the line
says own-family N. The corpus rule is documented as binding model judges:
the loop labels, it does not forbid. New fields and admit_rules are
cultcache default, so older run.cc records decode; schemas regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:05:07 +00:00
Weksa
2259b9f8c3 WIP (does not build): DraftClass on DraftError; create() call sites take a ModelFamily argument
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:26:14 +00:00
Weksa
5ebdb3cff4 Soul s2 lows: the id-form test lists a real inventory; the floor reads 14 to 20
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:24:15 +00:00
Weksa
3d3ca915ea Encode prompt states the id form; recall line states the real chrF floor; probe test over data/original
Five of six encoders in the first original-corpus round wrote bare integer ids and
were refused at parse (encoder-prompt-concept-ids). The prompt now says ids are
written in full with their family prefix. Soul s1 on the original corpus: unrelated
English scores chrF 13 to 18, not near 0, so the recall line says so; a test runs the
probe over the real original items.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:21:31 +00:00
Weksa
1c08b2abac Original corpus (data/original): six passages written for the non-memorised target; recall probes every live item
Six short original sentences, model-written (Anthropic, claude-sonnet-5-5) and so
labelled, three Train and three Validation, over the Dao revision-3 inventory and
one live entity. The recall probe now covers every offered item, naming the work
only for a public-domain one, so it can show the original set reads near the
guessing floor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:18:28 +00:00
Weksa
d954cfb9e9 weksa loop recall: a recitation probe for public-domain items; admit_rules not required in the round schema
Each live public-domain Train and Validation item is offered to a model by its
opening alone and the completion is scored by chrF against the item's second
half (lowering-recall-diagnostic). Answers live in <root>/recall; the reading is
printed, recorded nowhere, never a gate. The round schema stops requiring
admit_rules, which older records lack.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:12:30 +00:00
Weksa
d502cb396a Admit rules are a set: one count per item per rule, pinned by a packet that breaks V5 many times
Soul s1 low: the per-item dedup was unpinned. A BTreeSet makes it structural.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:08:46 +00:00
Weksa
c527d0eb08 RoundRecord names the admission rules that refused items; the round line prints them
admit_rules (key 18) counts, over both splits, each rule an admission refusal
broke: validator codes (V2, V5) or a store refusal's variant name. Rule codes
only, no identifiers or text. The printed line gains admit-rules=... before the
lowerer-reach label.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:05:13 +00:00
Weksa
00250088a8 Lows: summary_line leaves the public surface; lowering bound pinned in bytes, CR refused
RoundRecord and Decision no longer expose an unlabelled summary_line; the only
public spellings are RunStores::round_line and cycle_line, which label with the
run's lowerer reach. The lowering bound tests now kill the chars-for-bytes and
CR-allowed mutants.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 13:58:28 +00:00
Weksa
b569028f48 Soul s1 fixes: pin the lowerer reach, bound lowering text, pin the build refusal and the I/O discard
RunRecord key 12 LowererReach set by a required --lowerer-reach flag and
shown in round and cycle lines. PROMPT_SOURCE_DIGEST covers packet.rs.
Lowering text is refused when blank, over 4096 bytes or holding a control
character. Unanswered lowering digests are listed once. Tests for the
Prompt::lower build refusal and the packets.cc discard after a port error.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 09:32:28 +00:00
Weksa
74ebafbc65 The round lowers through the ModelPort: Prompt::lower over a LoweringInput, two answer phases
run::score_round no longer calls lower::lower. Prompt::lower prints the
meaning of an admitted view, en-US entity forms and the inventory at the
view's revision, and no item text, key, group, speaker or packet key. The
answer is a LoweringDraft {text}, held in score_round's locals and scored,
never written to run.cc, a RoundRecord, a Decision or EditFeedback. A round
or cycle asks every encode prompt, then every lowering prompt, all or
nothing. An entry an edit adds can now be lowered.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 09:18:38 +00:00
Weksa
3b7a6803bc Retire the lowerer source pin: one prompt pin over context, split and lower
Deletes LOWERER_SOURCE_DIGEST, DriftOf::Lowerer, RunRecord key 7 and
RoundRecord key 3 (retired, never reused). PROMPT_SOURCE_DIGEST now covers
lower.rs, which the lowering prompt will read. Schemas regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 09:10:56 +00:00