Strict mask-seed detection + WARNING on seeded answers #20

Merged
onibot merged 1 commits from feature/strict-mask-seed into main 2026-10-23 16:03:40 +02:00
Owner

Makes the mask seed strict, and loud when it fires.

Why (his 23/10 review): Q1's answer was missing from the stream — the seed detector had auto-answered it silently, and wrongly: his run's INIT phrasing ('does the title "President" refer to in relation to PERSON_1?') tripped the loose 'refer to' clause, seeding 'Pedro Sanchez' as the answer to which OFFICE was meant.

What changed:

  • identity_answer strict: the mechanism clause fires only when the placeholder is the REFERENT of 'refer(s) to' (regex adjacency, both word orders); the literal 'who/what is ' clause unchanged. Also found and fixed while verifying: possessives ('Who is PERSON_1's predecessor?') passed the literal clause via the apostrophe in its lookahead — the old test only covered 'Who WAS…'.
  • New RunStreams.warn() channel: every seeded answer now emits WARNING SEED auto-answered Q1 '…' -> 'Pedro Sanchez' (mask map; zero expert calls) — log always, screen always ([W], even non-verbose). Auto-answers are self-improvement signal: which phrasings the seed eats goes to META's lessons bank, and it must be legible.
  • ARCHITECTURE.md §9-bis: OpenTelemetry observability roadmap as a future plan (run = trace, calls/steps/rows = spans with today's log fields, events.jsonl as the shared bus, warnings as first-class span events) — deferred until the loop hardening settles.

Tests: anonymize +4 assertions (his false positive as the counterexample, the possessive trap, the strict positive shapes), machine +1 (the WARNING lands in run.log). Suite 17/17.

How to test: cd code && uv run python tests/anonymize.py && uv run python tests/machine.py; on his next run the [W] line appears on screen for any seeded question.

Makes the mask seed strict, and loud when it fires. **Why (his 23/10 review):** Q1's answer was missing from the stream — the seed detector had auto-answered it silently, and wrongly: his run's INIT phrasing ('does the title "President" refer to in relation to PERSON_1?') tripped the loose 'refer to' clause, seeding 'Pedro Sanchez' as the answer to which OFFICE was meant. **What changed:** - `identity_answer` strict: the mechanism clause fires only when the placeholder is the REFERENT of 'refer(s) to' (regex adjacency, both word orders); the literal 'who/what is <ph>' clause unchanged. Also found and fixed while verifying: possessives ('Who is PERSON_1's predecessor?') passed the literal clause via the apostrophe in its lookahead — the old test only covered 'Who WAS…'. - New `RunStreams.warn()` channel: every seeded answer now emits `WARNING SEED auto-answered Q1 '…' -> 'Pedro Sanchez' (mask map; zero expert calls)` — log always, screen always ([W], even non-verbose). Auto-answers are self-improvement signal: which phrasings the seed eats goes to META's lessons bank, and it must be legible. - ARCHITECTURE.md §9-bis: OpenTelemetry observability roadmap as a future plan (run = trace, calls/steps/rows = spans with today's log fields, events.jsonl as the shared bus, warnings as first-class span events) — deferred until the loop hardening settles. **Tests:** anonymize +4 assertions (his false positive as the counterexample, the possessive trap, the strict positive shapes), machine +1 (the WARNING lands in run.log). Suite 17/17. **How to test:** `cd code && uv run python tests/anonymize.py && uv run python tests/machine.py`; on his next run the [W] line appears on screen for any seeded question.
onibot added 1 commit 2026-10-23 16:03:22 +02:00
His 23/10 review of the merged run found Q1's answer missing from the
stream. Chain, verified against the real code:

1. Q1 ('...does the title "President" refer to in relation to
   PERSON_1?') fired the mask-seed detector's loose mechanism clause —
   any 'refer to' in the sentence, even when the verb governs the
   TITLE, not the placeholder. The seed answered 'Pedro Sanchez' to a
   question that asked which OFFICE 'President' means: wrong semantics,
   a false positive born from the collision of the detector's word
   list with INIT's new hidden-precondition phrasing.

Fixes (both his ask):
- identity_answer STRICT: the mechanism clause now fires only with the
  placeholder as the REFERENT of 'refer(s) to' (regex adjacency, both
  orders). The literal 'who/what is <ph>' clause is unchanged.
- Found while verifying: the literal clause's lookahead accepted
  apostrophes, so 'Who is PERSON_1's predecessor?' (possessive) seeded
  too — the old test only covered 'Who WAS...'. Apostrophe removed from
  the end-of-question char class; possessives never seed again.
- THE SEED IS NOW LOUD: RunStreams.warn() (new channel — WARNING line
  in run.log, [W] on screen ALWAYS, even non-verbose) fires on every
  seeded answer: 'WARNING SEED auto-answered Q1 ... (mask map; zero
  expert calls)'. Self-improvement signal (META): which phrasings the
  seed eats belongs to the lessons bank, and it must be legible that
  the machine auto-answered without any expert.

Also: ARCHITECTURE.md §9-bis — OpenTelemetry observability roadmap
(his future plan ask): run = trace, calls/steps/rows = spans carrying
today's log fields, events.jsonl as the shared bus, warnings as
first-class span events; deferred until the loop hardening settles.

Tests: anonymize +4 assertions (his false positive, possessive trap,
strict positive shapes), machine +1 (seed WARNING lands in run.log).
Suite 17/17.
onibot merged commit 1df3ec591b into main 2026-10-23 16:03:40 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onibot/floop#20