Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

IsaAlign: a restate answered in a language other than English never counts as a clean yes

Open drpaulobernardy opened this issue 1 month ago • 2 comments

Summary

In 8.761.0, restateIsClean in LifeOS/install/LIFEOS/TOOLS/IsaAlign.ts decides whether a principal's answer to a restate block is a clean yes by matching CLEAN_YES, an English-only list (yes, ok, sounds good, ship it…). A principal who answers in another language never gives a clean yes. A restate answered "sim." (Portuguese for "yes.") counts as a correction or hedge, so IsaAlign.ts status keeps returning DISCUSS · align on an ISA whose direction was confirmed, and AlgorithmNudge keeps asking for a Discuss round that is not owed.

Example

### 2026-11-04 07:49 · restate
Shown: L3 + L2 + L1
Principal: "sim."

bun LIFEOS/TOOLS/IsaAlign.ts status <isa> → DISCUSS · align · quick before the change, ALIGNED after it.

What I did locally

I left CLEAN_YES exactly as it is and added a second list beside it, taken from the principal's own approvals in their ISAs and messages (sim, ok, é isso, manda ver, pode seguir, aprovo, concordo…). An answer is clean when it is made only of those forms, in any order or punctuation, with or without accents (compared after NFD normalization). An answer that approves and then adds a request ("sim, mas o L2…") stays unclean, which matches how CLEAN_YES treats "yes, but…". A phrase that only goes with a yes ("por favor", "please") doesn't count on its own.

Proposed direction

A per-install list of extra approval phrases, read from USER config (or the principal's language from identity), would let non-English principals use Restate without patching IsaAlign.ts. The comparison could stay as it is for English and add the user list with accent-insensitive matching. I can open a PR with the change and a test if this direction is wanted.

drpaulobernardy avatar Nov 04 '26 11:11 drpaulobernardy

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @drpaulobernardy, this is a real gap: restateIsClean only knows English approvals, so a "sim." counts as a hedge and keeps IsaAlign reporting DISCUSS. Your direction is the one we would take, and we would accept a PR for it. Conditions: leave CLEAN_YES as it is, read the extra approval phrases from a per-install file under USER config, compare after NFD normalization so accents do not matter, keep "approval plus a request" (for example "sim, mas o L2...") unclean, and include a test for each of those. Open it against main and we will review it.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @drpaulobernardy, you found that a restate answered in a language other than English never counted as a clean yes in IsaAlign. restateIsClean now also accepts answers made only of the per-install phrases listed in USER/CONFIG/approval-phrases.txt, in LIFEOS/TOOLS/IsaAlign.ts. It ships in the next public release after 8.761.0.

danielmiessler avatar Nov 12 '26 20:11 danielmiessler