Commit graph Weksa/crates/weksa/src/lower.rs
Author SHA1 Message Date
Weksa
461f4f8126 Error text stops echoing identifiers: fixed Display for LowerError and Refusal, clap unknown-argument/subcommand rewrite, pronunciation-language echo pinned
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 11:11:12 +00:00
Weksa
34ce2dc413 Merge origin/main (fd18056, phones line) into weksa/dao-de-jing-test-bed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 10:19:37 +00:00
Weksa
8a78761a7a Merge origin/main (2308b91) into weksa/dao-de-jing-test-bed
Main's proof revision owns concept:6 and frame:3; Dao ids renumbered to
start at concept:7 and frame:4 (daodejing.rs, lower.rs rows).
data/daodejing inventory.cc and packets.cc regenerated with weksa inventory
seed/proof/dao and weksa packet dao.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 10:16:22 +00:00
Weksa
9ab3274af1 Merge origin/main into weksa/dao-de-jing-test-bed
lower.rs: keep main's frame:2 (agent will stop patient), keep PR frames 3-7.
daodejing.rs: Discourse gains addressee_consent (packet schema v5).
tests/daodejing.rs: lower takes the entity port.
data/daodejing/packets.cc regenerated with weksa packet dao.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 10:15:10 +00:00
Weksa
0ca9b5ebfe Merge main into phones-line (keeps both LowerError sets and both test groups)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 10:13:36 +00:00
Weksa
0bf9499ac0 Lower 'You asked Nibu to stop.' behind addressee consent: request concept and frame:3, consent gate in the lowerer
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 10:07:52 +00:00
Weksa
5508000d21 Phone inventory, segmenter and weksa lower --phones
data/phonology/en-US.phones.tsv lists the phones (tense/lax a column); the
segmenter splits ruled IPA into {ipa, stress} by longest inventory match and
refuses a symbol it does not list (LowerError::UnknownPhone) or a stress mark
with no vowel (DanglingStress). No durations, pitch or acoustics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 01:04:03 +00:00
Weksa
81572b1a54 Packet carries an addressee-consent fact (schema v5, V14, V15)
Discourse.addressee_consent names the predication the addressee asked for or
agreed to. V4 checks it resolves, V14 needs an addressee and a predication,
V15 allows only Authored or GameTelemetry sources. The English lowerer renders
no consent and refuses a packet carrying one.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 22:04:59 +00:00
Weksa
e7a3406b89 Entity forms carry a ruled pronunciation; lower --ipa emits it
LanguageForms gains an optional Pronunciation: bare stress-marked IPA, ruled_by,
date, source and a rejected list. The store checks its shape and freezes a
ruling once set. pronounce() and `weksa lower --ipa` print the stored IPA of each
cited entity and refuse with NoPronunciation / NoEntityReferent; rejected
variants are never read. Nibu is the first entry: ˈnibu, rejected ˈnɪbu.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:04:41 +00:00
Weksa
02e376f126 Proof line in Nibu's voice: the intervention frame says "will stop", no purpose clause
Nibu ruled "Nibu will prevent that to protect you." is not her voice. The
intervention row is now "{agent} will stop {patient}" and the proof packet no
longer fills the beneficiary role; a packet that does is refused as a role the
frame does not name, so a purpose is never silently dropped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 10:00:41 +00:00
Weksa
3f644c138e Lowerer reads entity forms: a referent that cites an entity lowers to its en-US citation form
lower() takes an EntityForms port (one entity by id; EntityStore implements it).
A referent with an entity renders as the first form stored under en-US, verbatim
and never re-cased at a clause start; the addressee stays "you". An entity the
port lacks, one with no en-US form, or a port read fault is refused by name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 09:58:21 +00:00
Weksa
5eb58c3100 Dao De Jing test bed: PublicDomain provenance fields, Legge slice, first golf-loop number
Source::PublicDomain now requires licence, jurisdiction, translator and
edition_year; the store refuses an item missing any. data/daodejing holds
five Legge items (Gutenberg 216, no Gutenberg matter stored), inventory
revision 3, five packets with stance, and the lowerer rows to render them.
docs/targets/dao-de-jing-test-bed.md reports the first closeness number and
what the scorer cannot see.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 02:10:10 +00:00
Weksa
22eba3a106 lower: refuse role fills the frame does not name and referents no role mentions; header states what is and is not rendered (Soul pass on 3d851bf)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 18:27:18 +00:00
Weksa
3d851bf0e1 lowerer-first-cut: lower(&LoweringInput,&Inventory) by a fixed English table keyed by inventory ids; weksa lower, score, packet proof, inventory proof; inventory rev 2 and the nibu-proof-001 packet
Measured against the proof lowering: item:nibu:1 chrF 23.12 cosine 0.6313,
item:nibu:2 chrF 25.98 cosine 0.7245, item:brokkr:1 chrF 19.42 cosine 0.4516.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 08:29:38 +00:00