floop: strict mask-seed detection + WARNING on seeded answers
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.
This commit is contained in:
@@ -260,6 +260,28 @@ branches compete for budget, a learned router earns its place (v2).
|
||||
becomes data-driven. v1's logs — enriched by meta-level critiques — are v2's training
|
||||
data, and the same data feeds prompt optimization and fine-tuning (META.md).
|
||||
|
||||
## 9-bis. Observability roadmap (future plan): OpenTelemetry
|
||||
|
||||
Today a run's observability is files: `runs/<ts>/run.log` (the line-based technical
|
||||
superset), `prompts/NN-stage.txt` (every exact rendered prompt + raw response), and the
|
||||
WARNING channel (machine judgements worth a human's eye — the mask seed that
|
||||
auto-answered a question, guards refusing ingests, budget starvation). This is complete
|
||||
but closed: reading it means tailing files.
|
||||
|
||||
**Planned, not built:** export the run as **OpenTelemetry** traces/spans so floop is
|
||||
observable from the standard tooling that already exists — Jaeger, Grafana Tempo,
|
||||
any OTLP consumer — instead of floop growing its own dashboards. The mapping is
|
||||
natural: one run = one trace; each LLM call, engine step (probe, search, fetch, check,
|
||||
merge) and evidence append = one span, carrying the fields the logs carry today
|
||||
(stage, budget tick, duration, prompt-file pointer, verification flags, warnings).
|
||||
The planned `events.jsonl` (machine-readable event stream) becomes the in-process
|
||||
event bus this exporter reads — one schema, two consumers (offline self-analysis in
|
||||
META.md, live OTel export). Warnings export as span events first-class, since they are
|
||||
the self-improvement signal the lessons bank counts.
|
||||
|
||||
Deferred until the loop hardening is done — building it before v1's shape settles
|
||||
would instrument a moving target.
|
||||
|
||||
## 10. Risks
|
||||
|
||||
1. **Misformalization** (top failure mode) — wrong formalization, correct math, wrong
|
||||
|
||||
Reference in New Issue
Block a user