Skip to content

Commit 598f1f2

Browse files
Train lexical anti-centers for candidate competition
1 parent 6e27b8c commit 598f1f2

31 files changed

Lines changed: 6836 additions & 3012 deletions

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lay"
3-
version = "0.2.251"
3+
version = "0.2.252"
44
edition = "2021"
55
description = "Alpha Double Shift RU/EN layout rescue for Linux desktops"
66
license-file = "LICENSE"

VERSIONING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ number from `git rev-list`.
1313

1414
Current publication branch version:
1515

16-
- `0.2.251`
16+
- `0.2.252`
1717

1818
Do not rely on commit counts. Before publishing or pushing, run the bump script
1919
or verify the version fields manually.

data/nanda_training/generated_cases.tsv

Lines changed: 233 additions & 0 deletions
Large diffs are not rendered by default.

docs/phase-word-recovery-canonical-cutover.md

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ L2 CANDIDATE LATTICE
104104
+-- lexical phase readout (LAYLPH02)
105105
+-- layout, boundary, typo, morphology, completion adapters
106106
+-- local usage/context priors
107-
+-- transition phase readout (LAYPC004)
107+
+-- transition phase readout (LAYPC005)
108108
|
109109
v
110110
L3 PHRASE EVIDENCE
@@ -186,22 +186,26 @@ vocabulary. Its graph contains enough Unicode arc information to reconstruct
186186
known surfaces. Therefore it is not yet a purely emergent phase generator that
187187
can invent every valid unseen word from centers alone.
188188

189-
#### LAYPC004 transition phase artifact
189+
#### LAYPC005 transition phase artifact
190190

191191
LIVE and PROVEN:
192192

193193
```text
194194
transition relation atoms
195195
-> operator profile
196-
-> positive phase centers
197-
-> anti-centers
198-
-> learned margin threshold
196+
-> structural positive / anti-centers
197+
-> lexical candidate positive / anti-centers
198+
-> learned margin thresholds
199199
-> Support / Repel / Unknown
200200
```
201201

202202
The package stores quantized centers, anti-centers, promotion state, support
203203
counts, and thresholds without raw words.
204204

205+
The installed package is compiled from the same fixed dataset used by the
206+
release proof. Live actions and applied edits are not silently appended after
207+
the proof; explicit user feedback remains a separate future training input.
208+
205209
Current production-artifact proof:
206210

207211
```text
@@ -210,13 +214,21 @@ heldout positive support 72 / 72
210214
heldout negative false accepts 0 / 169
211215
positive support without phase 0 / 72
212216
negative false accepts without anti 169 / 169
213-
lexical negative rows deferred 163
217+
same-operator negatives observed 396
218+
local lexical candidate negatives 222
219+
nonlocal negatives deferred to L3 174
220+
lexical heldout false supports 0 / 48
221+
false supports without lexical anti 48 / 48
222+
paired candidate top-1 48 / 48
223+
paired top-1 without lexical anti 46 / 48
214224
```
215225

216-
Truthful boundary: current anti-centers primarily separate structural operator
217-
transitions and typed counterfactuals. They do not yet prove that one concrete
218-
lexical candidate is the correct word among several candidates with the same
219-
operator.
226+
The structural lane proves that the typed operator is admissible. The lexical
227+
lane redistributes candidate energy inside that operator. Its compact
228+
projection contains position-sensitive 4-gram trits and authority buckets, not
229+
raw words. The 174 nonlocal rows are deliberately excluded from lexical
230+
training because they change phrase context or multiple tokens and belong to
231+
L3/L4.
220232

221233
#### Joint transition interference
222234

@@ -247,8 +259,8 @@ This is a candidate arbitration mechanism, not a verifier. `Repel` and
247259

248260
OPEN:
249261

250-
- train lexical competitor anti-centers from clean accepted/rejected pairs;
251-
- separate same-operator lexical competition from operator classification;
262+
- expand lexical competitor anti-center coverage from clean accepted/rejected
263+
current-token pairs;
252264
- replace remaining hand-calibrated L2 peak components with learned package
253265
calibration after a fixed heldout proves parity;
254266
- raise candidate coverage without loading source corpora into the hot path.
@@ -380,7 +392,7 @@ src/nanda_wave/lexical_phase/{compiler,format,runtime}.rs
380392
cold lexical compiler and hot LAYLPH02 readout
381393
382394
src/nanda_wave/l2_candidate_phase.rs
383-
LAYPC004 operator phase training, package, and readout
395+
LAYPC005 structural and lexical phase training, package, and readout
384396
385397
src/nanda_wave/l2_wave_peak.rs
386398
current calibrated lexical peak evidence; still partly hand-calibrated
@@ -436,7 +448,7 @@ The hot runtime must expose bytes, counts, version, checksum, and warmup time.
436448

437449
### Runtime truth
438450

439-
`raw_words_stored=false` for LAYPC004 means the transition package stores no
451+
`raw_words_stored=false` for LAYPC005 means the transition package stores no
440452
raw words. It must not be generalized into the false claim that all lexical
441453
runtime state is non-reversible. LAYLPH02 deliberately keeps a reversible
442454
grapheme graph so output text can be produced.
@@ -499,11 +511,12 @@ synchronization, and candidate generation must be timed separately.
499511

500512
## 9. Debt Queue
501513

502-
### P0: clean truth and lexical anti-centers
514+
### P0: expand clean truth and lexical anti-centers
503515

504-
Build a fixed heldout from explicit user correction, immediate undo/reject, and
505-
curated corpus corruption. Do not label every applied edit as true. Mine
506-
top-k wrong candidates as negatives and train candidate-specific anti-centers.
516+
Extend the fixed heldout from explicit user correction, immediate undo/reject,
517+
and curated corpus corruption. Do not label every applied edit as true. Only
518+
same-token alternatives may train candidate-specific anti-centers. Multiword
519+
and left-context negatives remain L3/L4 evidence.
507520

508521
Exit gate:
509522

@@ -636,7 +649,7 @@ no unsafe multiword or left-context mutation
636649
quality, latency, RSS, and causal ablations all pass on fixed artifacts
637650
```
638651

639-
The current code has the authority skeleton and compact phase memories. The
640-
main remaining intelligence debt is clean lexical competition: L2 often births
641-
the right candidate, but its field still needs learned same-operator
642-
anti-centers and stronger phrase/state evidence to settle the correct basin.
652+
The current code has the authority skeleton and compact phase memories. Learned
653+
same-operator anti-centers now provide local destructive interference. The main
654+
remaining intelligence debt is broader clean lexical coverage plus stronger
655+
L3/L4 phrase and state evidence for context-dependent ambiguity.

docs/structural_gates/lay-live-transition-gate.profile.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"registry": "not-required",
2424
"inspector": "not-required"
2525
},
26+
"response_runtime": {
27+
"registry": "docs/structural_gates/receipts/RESPONSE_RUNTIME_NOT_REQUIRED.registry",
28+
"miner_status": "docs/structural_gates/receipts/RESPONSE_RUNTIME_NOT_REQUIRED.json"
29+
},
2630
"deployment": {
2731
"health_url": "not-required",
2832
"services": []

0 commit comments

Comments
 (0)