Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
/**
* Hand-written cases for the Tier 3 fence-repair eval (#6188 T4).
*
* Each case is one page whose facts or takes fence Tier 1 leaves with a
* residual reason a model may clear (`short_row`, `no_header`,
* `row_before_header`, `extra_cells`, `header_unmapped`). `body` is the
* section as written; `expected` is the whole section after a correct
* repair, written by hand (the canonical header and separator, then every
* row). Tokens: {FB}/{FE} facts markers, {TB}/{TE} takes markers, {FH}/{FS}
* the canonical narrow facts header and separator, {FW}/{FWS} the wide
* facts ones, {TH}/{TS} the narrow takes ones and {TW}/{TWS} the wide takes ones.
*
* Sets:
* - `repairable`: a correct repair exists and passes every production gate
* (the oracle test proves it).
* - `adversarial`: the only correct outcome is to stay held.
* `ambiguous` cases have two readings and the gates cannot tell them apart,
* so only the model can hold (`probe` is a plausible wrong guess the gates
* accept). `unrecoverable` cases lack a required value, so any repair must
* invent one and the gates reject it (`probe` is such a repair).
* `split_claim` cases have a claim cut in two by an unescaped pipe; the
* claim cannot be rejoined (gate b), so a repair can only keep it cut.
* - `gate_limited`: a person would repair it, but the gates forbid the
* correct table (`expected` is that table; the oracle test proves the
* gates reject it). Diagnostic only.
*
* Names are placeholders only (alice-example, acme-example, fund-a, ...).
*/
export type CaseSet = 'repairable' | 'adversarial' | 'gate_limited';
export type CaseClass = 'short_row_trailing' | 'short_row_gap' | 'no_header' | 'row_before_header' | 'extra_cells' | 'header_unmapped' | 'mixed';
export interface Case {
id: string;
set: CaseSet;
adversarial?: 'ambiguous' | 'unrecoverable' | 'split_claim';
cls: CaseClass;
kind: 'facts' | 'takes' | 'both';
section?: 'body' | 'timeline';
vis?: 'private' | 'world';
tags: string[];
note: string;
body: string[];
expected: string[] | null;
/** Adversarial only: a whole answer a model might return for the sent rows (header, separator, rows). */
probe?: string[];
}
const FENCE_ROW = '| 1 | Acme-example signed a two-year lease in Austin | event | 0.9 | private | high | 2026-02-11 | | lease summary | |';
export const CASES: Case[] = [
// ── short rows, trailing cells missing (facts) ─────────────────────────
{ id: 'f-st-01', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', tags: [], note: 'valid_until, source and context dropped',
body: ['{FB}', '{FH}', '|---|---|---|---|---|---|---|---|---|---|', FENCE_ROW,
'| 2 | Acme-example closed its Series B | event | 0.9 | private | high | 2026-03-14 |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', FENCE_ROW,
'| 2 | Acme-example closed its Series B | event | 0.9 | private | high | 2026-03-14 | | | |', '{FE}'] },
{ id: 'f-st-02', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', tags: [], note: 'only the required cells',
body: ['{FB}', '{FH}', '{FS}', '| 1 | Bob-example prefers async standups | preference | 0.7 | private | medium |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Bob-example prefers async standups | preference | 0.7 | private | medium | | | | |', '{FE}'] },
{ id: 'f-st-03', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', vis: 'world', tags: ['link', 'world'], note: 'world page, link in the claim',
body: ['{FB}', '{FH}', '{FS}', '| 3 | Gamma-example sells in 12 countries | fact | 0.8 | world | medium | 2026-01-02 | | company site | |',
'| 4 | Gamma-example moved its pricing page to [the new site](https://example.com/pricing) | fact | 0.85 | world | low | 2026-01-05 | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 3 | Gamma-example sells in 12 countries | fact | 0.8 | world | medium | 2026-01-02 | | company site | |',
'| 4 | Gamma-example moved its pricing page to [the new site](https://example.com/pricing) | fact | 0.85 | world | low | 2026-01-05 | | | |', '{FE}'] },
{ id: 'f-st-04', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', tags: ['strike'], note: 'struck claim with both dates',
body: ['{FB}', '{FH}', '{FS}', '| 5 | ~~Delta-example plans a 2026 IPO~~ | belief | 0.4 | private | medium | 2025-11-02 | 2026-02-01 |',
'| 6 | Delta-example now plans to stay private | belief | 0.6 | private | medium | 2026-02-01 | | investor update | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 5 | ~~Delta-example plans a 2026 IPO~~ | belief | 0.4 | private | medium | 2025-11-02 | 2026-02-01 | | |',
'| 6 | Delta-example now plans to stay private | belief | 0.6 | private | medium | 2026-02-01 | | investor update | |', '{FE}'] },
{ id: 'f-st-05', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', tags: ['number'], note: 'money with M and k suffixes in the claim',
body: ['{FB}', '{FH}', '{FS}', '| 3 | Beta-example ARR reached $4.2M, up from 900k | fact | 0.95 | private | high |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 3 | Beta-example ARR reached $4.2M, up from 900k | fact | 0.95 | private | high | | | | |', '{FE}'] },
{ id: 'f-st-06', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', tags: [], note: 'two short rows around a valid one',
body: ['{FB}', '{FH}', '{FS}', '| 1 | Carol-example runs the platform team | fact | 1.0 | private | medium | 2026-01-20 |',
'| 2 | Carol-example reports to bob-example | fact | 0.8 | private | low |',
'| 3 | The platform team has nine engineers | fact | 0.7 | private | low | 2026-01-20 | | staff list | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Carol-example runs the platform team | fact | 1.0 | private | medium | 2026-01-20 | | | |',
'| 2 | Carol-example reports to bob-example | fact | 0.8 | private | low | | | | |',
'| 3 | The platform team has nine engineers | fact | 0.7 | private | low | 2026-01-20 | | staff list | |', '{FE}'] },
{ id: 'f-st-07', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', tags: ['pipe'], note: 'escaped pipe inside the claim',
body: ['{FB}', '{FH}', '{FS}', "| 7 | Fund-a's thesis is infra \\| devtools | belief | 0.6 | private | medium | 2026-04-02 |", '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', "| 7 | Fund-a's thesis is infra \\| devtools | belief | 0.6 | private | medium | 2026-04-02 | | | |", '{FE}'] },
{ id: 'f-st-08', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', tags: ['tier1_after'], note: 'percent confidence: copied as written, then Tier 1 writes 0.85',
body: ['{FB}', '{FH}', '{FS}', '| 2 | Alice-example plans to hire two engineers | commitment | 85% | private | medium | 2026-05-01 |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 2 | Alice-example plans to hire two engineers | commitment | 0.85 | private | medium | 2026-05-01 | | | |', '{FE}'] },
{ id: 'f-st-09', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', section: 'timeline', tags: ['timeline'], note: 'fence in the timeline section',
body: ['{FB}', '{FH}', '{FS}', '| 1 | Acme-example hired a CFO | event | 0.9 | private | high | 2026-06-02 |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Acme-example hired a CFO | event | 0.9 | private | high | 2026-06-02 | | | |', '{FE}'] },
{ id: 'f-st-10', set: 'repairable', cls: 'short_row_trailing', kind: 'facts', tags: ['tier1_after'], note: 'kind synonym: copied as written, then Tier 1 maps it and notes the original word',
body: ['{FB}', '{FH}', '{FS}', '| 3 | Beta-example shipped v2 to all customers | milestone | 0.9 | private | high | 2026-06-15 |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 3 | Beta-example shipped v2 to all customers | event | 0.9 | private | high | 2026-06-15 | | | original kind: milestone |', '{FE}'] },
// ── short rows, trailing cells missing (takes) ─────────────────────────
{ id: 't-st-01', set: 'repairable', cls: 'short_row_trailing', kind: 'takes', tags: [], note: 'since and source dropped',
body: ['{TB}', '{TH}', '|---|---|---|---|---|---|---|', '| 1 | Remote-first teams ship faster | take | brain | 0.7 | 2026-01-10 | team retro |',
'| 2 | Rates fall by Q3 | bet | people/alice-example | 0.6 |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | Remote-first teams ship faster | take | brain | 0.7 | 2026-01-10 | team retro |',
'| 2 | Rates fall by Q3 | bet | people/alice-example | 0.6 | | |', '{TE}'] },
{ id: 't-st-02', set: 'repairable', cls: 'short_row_trailing', kind: 'takes', tags: [], note: 'company holder',
body: ['{TB}', '{TH}', '{TS}', '| 1 | Acme-example will be acquired within a year | hunch | companies/beta-example | 0.3 |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | Acme-example will be acquired within a year | hunch | companies/beta-example | 0.3 | | |', '{TE}'] },
{ id: 't-st-03', set: 'repairable', cls: 'short_row_trailing', kind: 'takes', tags: ['strike', 'link'], note: 'struck claim with a link',
body: ['{TB}', '{TH}', '{TS}', '| 3 | Gamma-example keeps its lead | take | people/bob-example | 0.6 | 2026-01-15 | board chat |',
'| 4 | ~~[Gamma-example](https://example.com/g) wins the RFP~~ | bet | people/bob-example | 0.5 |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 3 | Gamma-example keeps its lead | take | people/bob-example | 0.6 | 2026-01-15 | board chat |',
'| 4 | ~~[Gamma-example](https://example.com/g) wins the RFP~~ | bet | people/bob-example | 0.5 | | |', '{TE}'] },
{ id: 't-st-04', set: 'repairable', cls: 'short_row_trailing', kind: 'takes', tags: [], note: 'world holder',
body: ['{TB}', '{TH}', '{TS}', '| 2 | Open-weight models close the gap by 2027 | take | world | 0.8 |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 2 | Open-weight models close the gap by 2027 | take | world | 0.8 | | |', '{TE}'] },
{ id: 't-st-05', set: 'repairable', cls: 'short_row_trailing', kind: 'takes', tags: ['number'], note: 'two short rows, money in a claim',
body: ['{TB}', '{TH}', '{TS}', '| 3 | Hiring slows in H2 | hunch | brain | 0.4 |', '| 4 | Seed valuations hold near $20M | bet | people/carol-example | 0.55 |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 3 | Hiring slows in H2 | hunch | brain | 0.4 | | |', '| 4 | Seed valuations hold near $20M | bet | people/carol-example | 0.55 | | |', '{TE}'] },
// ── short rows, a cell missing in the middle (facts) ───────────────────
{ id: 'f-sg-01', set: 'repairable', cls: 'short_row_gap', kind: 'facts', tags: [], note: 'valid_until dropped: the last cell is the source',
body: ['{FB}', '{FH}', '{FS}', FENCE_ROW, '| 2 | Carol-example joined acme-example as CTO | event | 0.9 | private | high | 2026-04-01 | intro call |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', FENCE_ROW, '| 2 | Carol-example joined acme-example as CTO | event | 0.9 | private | high | 2026-04-01 | | intro call | |', '{FE}'] },
{ id: 'f-sg-02', set: 'repairable', cls: 'short_row_gap', kind: 'facts', tags: ['link'], note: 'both dates dropped: a link source and a context note follow',
body: ['{FB}', '{FH}', '{FS}', '| 3 | Alice-example dislikes cold email | preference | 0.8 | private | medium | [call notes](https://example.com/notes/17) | mentioned again at the offsite |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 3 | Alice-example dislikes cold email | preference | 0.8 | private | medium | | | [call notes](https://example.com/notes/17) | mentioned again at the offsite |', '{FE}'] },
{ id: 'f-sg-03', set: 'repairable', cls: 'short_row_gap', kind: 'facts', tags: ['date_meaning'], note: 'the claim says the pilot ends on the date, so it is valid_until',
body: ['{FB}', '{FH}', '{FS}', "| 4 | Beta-example's pilot with acme-example ends on 2026-06-30 | commitment | 0.75 | private | medium | 2026-06-30 | contract summary |", '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', "| 4 | Beta-example's pilot with acme-example ends on 2026-06-30 | commitment | 0.75 | private | medium | | 2026-06-30 | contract summary | |", '{FE}'] },
{ id: 'f-sg-04', set: 'repairable', cls: 'short_row_gap', kind: 'facts', vis: 'world', tags: ['world'], note: 'no dates: the only optional cell is the source',
body: ['{FB}', '{FH}', '{FS}', "| 5 | Gamma-example's CEO is carol-example | fact | 1.0 | world | high | company site |", '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', "| 5 | Gamma-example's CEO is carol-example | fact | 1.0 | world | high | | | company site | |", '{FE}'] },
{ id: 'f-sg-05', set: 'repairable', cls: 'short_row_gap', kind: 'facts', tags: ['link', 'number'], note: 'valid_until dropped, link source, money in the claim',
body: ['{FB}', '{FH}', '{FS}', "| 8 | Fund-a led acme-example's seed at a $12M cap | event | 0.95 | private | high | 2025-10-09 | [term sheet](https://example.com/ts) |", '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', "| 8 | Fund-a led acme-example's seed at a $12M cap | event | 0.95 | private | high | 2025-10-09 | | [term sheet](https://example.com/ts) | |", '{FE}'] },
{ id: 'f-sg-06', set: 'repairable', cls: 'short_row_gap', kind: 'facts', tags: ['strike'], note: 'struck row, valid_until dropped',
body: ['{FB}', '{FH}', '{FS}', '| 9 | ~~Carol-example leads sales~~ | fact | 0.9 | private | medium | 2025-06-01 | org chart |',
'| 10 | Dave-example leads sales | fact | 0.9 | private | medium | 2026-02-01 | | org chart | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 9 | ~~Carol-example leads sales~~ | fact | 0.9 | private | medium | 2025-06-01 | | org chart | |',
'| 10 | Dave-example leads sales | fact | 0.9 | private | medium | 2026-02-01 | | org chart | |', '{FE}'] },
{ id: 'f-sg-07', set: 'repairable', cls: 'short_row_gap', kind: 'facts', tags: ['pipe'], note: 'valid_until dropped, escaped pipe in the source',
body: ['{FB}', '{FH}', '{FS}', '| 10 | Beta-example renewed with gamma-example | event | 0.85 | private | medium | 2026-02-20 | renewal email \\| thread 3 |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 10 | Beta-example renewed with gamma-example | event | 0.85 | private | medium | 2026-02-20 | | renewal email \\| thread 3 | |', '{FE}'] },
// ── no header (facts) ──────────────────────────────────────────────────
{ id: 'f-nh-01', set: 'repairable', cls: 'no_header', kind: 'facts', tags: [], note: 'two complete rows, no header or separator',
body: ['{FB}', '| 1 | Bob-example lives in Denver | fact | 0.9 | private | low | 2025-08-01 | | intro email | |',
'| 2 | Bob-example coaches youth soccer | fact | 0.7 | private | low | | | coffee chat | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Bob-example lives in Denver | fact | 0.9 | private | low | 2025-08-01 | | intro email | |',
'| 2 | Bob-example coaches youth soccer | fact | 0.7 | private | low | | | coffee chat | |', '{FE}'] },
{ id: 'f-nh-02', set: 'repairable', cls: 'no_header', kind: 'facts', tags: [], note: 'separator but no header; rows without the context cell',
body: ['{FB}', '|---|---|---|---|---|---|---|---|---|---|', '| 1 | Acme-example uses usage-based pricing | fact | 0.9 | private | medium | 2026-01-01 | | pricing page |',
'| 2 | Acme-example targets mid-market buyers | belief | 0.6 | private | medium | | | sales call |',
'| 3 | Acme-example will add an annual plan | commitment | 0.7 | private | low | 2026-07-01 | | roadmap |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Acme-example uses usage-based pricing | fact | 0.9 | private | medium | 2026-01-01 | | pricing page | |',
'| 2 | Acme-example targets mid-market buyers | belief | 0.6 | private | medium | | | sales call | |',
'| 3 | Acme-example will add an annual plan | commitment | 0.7 | private | low | 2026-07-01 | | roadmap | |', '{FE}'] },
{ id: 'f-nh-03', set: 'repairable', cls: 'no_header', kind: 'facts', tags: ['wide', 'number'], note: 'typed rows (14 cells) with 120k and 1,250 values: the wide header',
body: ['{FB}', '| 1 | Acme-example MRR | fact | 0.9 | private | high | 2026-05-01 | | finance deck | | mrr | 120k | USD | monthly |',
'| 2 | Acme-example headcount | fact | 0.85 | private | medium | 2026-05-01 | | HR export | | headcount | 1,250 | people | point in time |', '{FE}'],
expected: ['{FB}', '{FW}', '{FWS}', '| 1 | Acme-example MRR | fact | 0.9 | private | high | 2026-05-01 | | finance deck | | mrr | 120k | USD | monthly |',
'| 2 | Acme-example headcount | fact | 0.85 | private | medium | 2026-05-01 | | HR export | | headcount | 1,250 | people | point in time |', '{FE}'] },
{ id: 'f-nh-04', set: 'repairable', cls: 'no_header', kind: 'facts', vis: 'world', tags: ['world', 'strike', 'link'], note: 'world page, struck row superseded by a row with a link',
body: ['{FB}', '| 1 | Gamma-example is hiring in Lisbon | fact | 0.8 | world | low | 2026-02-01 | | [careers page](https://example.com/careers) | |',
"| 2 | ~~Gamma-example's only office is in Porto~~ | fact | 0.9 | world | low | 2025-01-01 | 2026-02-01 | careers page | superseded by #1 |", '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Gamma-example is hiring in Lisbon | fact | 0.8 | world | low | 2026-02-01 | | [careers page](https://example.com/careers) | |',
"| 2 | ~~Gamma-example's only office is in Porto~~ | fact | 0.9 | world | low | 2025-01-01 | 2026-02-01 | careers page | superseded by #1 |", '{FE}'] },
{ id: 'f-nh-05', set: 'repairable', cls: 'no_header', kind: 'facts', section: 'timeline', tags: ['timeline'], note: 'timeline fence without a header',
body: ['{FB}', '| 4 | Delta-example opened a waitlist | event | 0.9 | private | medium | 2026-03-02 | | launch email | |',
'| 5 | Delta-example crossed 10k signups | event | 0.8 | private | high | 2026-04-11 | | founder update | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 4 | Delta-example opened a waitlist | event | 0.9 | private | medium | 2026-03-02 | | launch email | |',
'| 5 | Delta-example crossed 10k signups | event | 0.8 | private | high | 2026-04-11 | | founder update | |', '{FE}'] },
{ id: 'f-nh-06', set: 'repairable', cls: 'no_header', kind: 'facts', tags: ['br'], note: 'no header; a context with a <br> line break',
body: ['{FB}', "| 3 | Bob-example's offsite is in May | event | 0.7 | private | low | 2026-05-12 | | calendar | agenda TBD<br>venue booked |",
'| 4 | Bob-example invited eight founders | fact | 0.8 | private | low | 2026-04-20 | | invite list |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', "| 3 | Bob-example's offsite is in May | event | 0.7 | private | low | 2026-05-12 | | calendar | agenda TBD<br>venue booked |",
'| 4 | Bob-example invited eight founders | fact | 0.8 | private | low | 2026-04-20 | | invite list | |', '{FE}'] },
// ── no header (takes) ──────────────────────────────────────────────────
{ id: 't-nh-01', set: 'repairable', cls: 'no_header', kind: 'takes', tags: [], note: 'two complete rows',
body: ['{TB}', '| 1 | Acme-example should raise prices | take | brain | 0.7 | 2026-01-05 | pricing review |',
'| 2 | Acme-example churn drops next quarter | bet | people/alice-example | 0.55 | 2026-01-05 | QBR |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | Acme-example should raise prices | take | brain | 0.7 | 2026-01-05 | pricing review |',
'| 2 | Acme-example churn drops next quarter | bet | people/alice-example | 0.55 | 2026-01-05 | QBR |', '{TE}'] },
{ id: 't-nh-02', set: 'repairable', cls: 'no_header', kind: 'takes', tags: [], note: 'three rows, mixed holders, one without a source',
body: ['{TB}', '| 1 | Vertical AI tools win in legal | take | world | 0.6 | 2026-02-01 | industry report |',
'| 2 | Beta-example ships an API this year | bet | companies/beta-example | 0.5 | 2026-02-01 |',
'| 3 | The market softens in Q4 | hunch | brain | 0.3 | 2026-02-01 | gut feel |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | Vertical AI tools win in legal | take | world | 0.6 | 2026-02-01 | industry report |',
'| 2 | Beta-example ships an API this year | bet | companies/beta-example | 0.5 | 2026-02-01 | |',
'| 3 | The market softens in Q4 | hunch | brain | 0.3 | 2026-02-01 | gut feel |', '{TE}'] },
{ id: 't-nh-03', set: 'repairable', cls: 'no_header', kind: 'takes', tags: ['strike', 'link'], note: 'struck row and a link',
body: ['{TB}', '| 1 | ~~Delta-example stays seed-stage through 2026~~ | bet | people/bob-example | 0.4 | 2025-12-01 | [notes](https://example.com/n/4) |',
'| 2 | Delta-example raises a Series A in 2026 | bet | people/bob-example | 0.6 | 2026-03-01 | partner sync |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | ~~Delta-example stays seed-stage through 2026~~ | bet | people/bob-example | 0.4 | 2025-12-01 | [notes](https://example.com/n/4) |',
'| 2 | Delta-example raises a Series A in 2026 | bet | people/bob-example | 0.6 | 2026-03-01 | partner sync |', '{TE}'] },
{ id: 't-nh-04', set: 'repairable', cls: 'no_header', kind: 'takes', tags: ['pipe'], note: 'separator but no header; escaped pipe in a source',
body: ['{TB}', '|---|---|---|---|---|---|---|', '| 5 | Fund-a should lead the round | take | people/carol-example | 0.65 | 2026-04-01 | IC memo \\| draft 2 |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 5 | Fund-a should lead the round | take | people/carol-example | 0.65 | 2026-04-01 | IC memo \\| draft 2 |', '{TE}'] },
// ── a row before the header (facts) ────────────────────────────────────
{ id: 'f-rb-01', set: 'repairable', cls: 'row_before_header', kind: 'facts', tags: [], note: 'one complete row above the header',
body: ['{FB}', '| 3 | Acme-example renewed its office lease | event | 0.8 | private | low | 2026-01-30 | | lease summary | |', '{FH}', '{FS}', FENCE_ROW,
'| 2 | Acme-example sublets one floor | fact | 0.6 | private | low | 2026-02-15 | | facilities email | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 3 | Acme-example renewed its office lease | event | 0.8 | private | low | 2026-01-30 | | lease summary | |', FENCE_ROW,
'| 2 | Acme-example sublets one floor | fact | 0.6 | private | low | 2026-02-15 | | facilities email | |', '{FE}'] },
{ id: 'f-rb-02', set: 'repairable', cls: 'row_before_header', kind: 'facts', tags: [], note: 'two rows above the header',
body: ['{FB}', '| 4 | Carol-example speaks Portuguese | fact | 0.9 | private | low | | | intro call | |',
'| 5 | Carol-example prefers mornings for calls | preference | 0.7 | private | low | | | scheduling thread | |', '{FH}', '{FS}',
'| 6 | Carol-example joined in 2024 | fact | 1.0 | private | medium | 2024-03-01 | | HR export | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 4 | Carol-example speaks Portuguese | fact | 0.9 | private | low | | | intro call | |',
'| 5 | Carol-example prefers mornings for calls | preference | 0.7 | private | low | | | scheduling thread | |',
'| 6 | Carol-example joined in 2024 | fact | 1.0 | private | medium | 2024-03-01 | | HR export | |', '{FE}'] },
{ id: 'f-rb-03', set: 'repairable', cls: 'row_before_header', kind: 'facts', tags: [], note: 'a short row above the header',
body: ['{FB}', '| 7 | Beta-example moved to weekly releases | event | 0.85 | private | medium | 2026-03-09 |', '{FH}', '{FS}',
'| 8 | Beta-example has 40 engineers | fact | 0.8 | private | low | 2026-03-01 | | org chart | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 7 | Beta-example moved to weekly releases | event | 0.85 | private | medium | 2026-03-09 | | | |',
'| 8 | Beta-example has 40 engineers | fact | 0.8 | private | low | 2026-03-01 | | org chart | |', '{FE}'] },
{ id: 'f-rb-04', set: 'repairable', cls: 'row_before_header', kind: 'facts', tags: ['pipe', 'link'], note: 'row above the header with an escaped pipe and a link',
body: ['{FB}', '| 9 | Gamma-example offers SSO \\| SCIM on the team plan | fact | 0.9 | private | medium | 2026-02-01 | | [docs](https://example.com/docs/sso) | |', '{FH}', '{FS}',
'| 10 | Gamma-example added audit logs | event | 0.8 | private | low | 2026-02-20 | | changelog | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 9 | Gamma-example offers SSO \\| SCIM on the team plan | fact | 0.9 | private | medium | 2026-02-01 | | [docs](https://example.com/docs/sso) | |',
'| 10 | Gamma-example added audit logs | event | 0.8 | private | low | 2026-02-20 | | changelog | |', '{FE}'] },
{ id: 'f-rb-05', set: 'repairable', cls: 'row_before_header', kind: 'facts', vis: 'world', tags: ['world'], note: 'world page, world row above the header',
body: ['{FB}', '| 1 | Delta-example is based in Oslo | fact | 1.0 | world | medium | | | company site | |', '{FH}', '{FS}',
'| 2 | Delta-example sells to utilities | fact | 0.8 | world | low | | | company site | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Delta-example is based in Oslo | fact | 1.0 | world | medium | | | company site | |',
'| 2 | Delta-example sells to utilities | fact | 0.8 | world | low | | | company site | |', '{FE}'] },
// ── a row before the header (takes) ────────────────────────────────────
{ id: 't-rb-01', set: 'repairable', cls: 'row_before_header', kind: 'takes', tags: [], note: 'one row above the header',
body: ['{TB}', '| 1 | Acme-example is underpriced | take | people/alice-example | 0.6 | 2026-01-12 | board dinner |', '{TH}', '{TS}',
'| 2 | Acme-example doubles revenue this year | bet | people/alice-example | 0.45 | 2026-01-12 | board dinner |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | Acme-example is underpriced | take | people/alice-example | 0.6 | 2026-01-12 | board dinner |',
'| 2 | Acme-example doubles revenue this year | bet | people/alice-example | 0.45 | 2026-01-12 | board dinner |', '{TE}'] },
{ id: 't-rb-02', set: 'repairable', cls: 'row_before_header', kind: 'takes', tags: [], note: 'a short row above the header',
body: ['{TB}', '| 3 | Usage pricing beats seats for infra | take | brain | 0.75 |', '{TH}', '{TS}',
'| 4 | Beta-example switches to usage pricing | bet | brain | 0.5 | 2026-02-02 | pricing review |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 3 | Usage pricing beats seats for infra | take | brain | 0.75 | | |',
'| 4 | Beta-example switches to usage pricing | bet | brain | 0.5 | 2026-02-02 | pricing review |', '{TE}'] },
{ id: 't-rb-03', set: 'repairable', cls: 'row_before_header', kind: 'takes', tags: ['strike'], note: 'two rows above the header, one struck',
body: ['{TB}', '| 5 | ~~Gamma-example IPOs in 2026~~ | bet | companies/fund-a | 0.3 | 2025-09-01 | LP letter |',
'| 6 | Gamma-example IPOs in 2027 | bet | companies/fund-a | 0.4 | 2026-03-01 | LP letter |', '{TH}', '{TS}',
'| 7 | Gamma-example stays founder-led | take | companies/fund-a | 0.7 | 2026-03-01 | LP letter |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 5 | ~~Gamma-example IPOs in 2026~~ | bet | companies/fund-a | 0.3 | 2025-09-01 | LP letter |',
'| 6 | Gamma-example IPOs in 2027 | bet | companies/fund-a | 0.4 | 2026-03-01 | LP letter |',
'| 7 | Gamma-example stays founder-led | take | companies/fund-a | 0.7 | 2026-03-01 | LP letter |', '{TE}'] },
// ── extra cells (facts) ────────────────────────────────────────────────
{ id: 'f-ex-01', set: 'repairable', cls: 'extra_cells', kind: 'facts', tags: [], note: 'an empty cell after the claim',
body: ['{FB}', '{FH}', '{FS}', FENCE_ROW, '| 2 | Acme-example opened a Denver office | | event | 0.8 | private | low | 2026-02-01 | | press release | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', FENCE_ROW, '| 2 | Acme-example opened a Denver office | event | 0.8 | private | low | 2026-02-01 | | press release | |', '{FE}'] },
{ id: 'f-ex-02', set: 'repairable', cls: 'extra_cells', kind: 'facts', tags: [], note: 'an empty cell after the kind',
body: ['{FB}', '{FH}', '{FS}', '| 3 | Bob-example agreed to mentor two founders | commitment | | 0.9 | private | medium | 2026-03-05 | | 1:1 notes | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 3 | Bob-example agreed to mentor two founders | commitment | 0.9 | private | medium | 2026-03-05 | | 1:1 notes | |', '{FE}'] },
{ id: 'f-ex-03', set: 'repairable', cls: 'extra_cells', kind: 'facts', tags: [], note: 'an empty cell after the visibility',
body: ['{FB}', '{FH}', '{FS}', '| 4 | Carol-example prefers written updates | preference | 0.75 | private | | medium | | | survey | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 4 | Carol-example prefers written updates | preference | 0.75 | private | medium | | | survey | |', '{FE}'] },
{ id: 'f-ex-04', set: 'repairable', cls: 'extra_cells', kind: 'facts', tags: ['number'], note: 'two empty cells inserted; a percentage in the claim',
body: ['{FB}', '{FH}', '{FS}', '| 5 | Delta-example cut list prices 20% | | event | | 0.85 | private | medium | 2026-04-10 | | pricing page | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 5 | Delta-example cut list prices 20% | event | 0.85 | private | medium | 2026-04-10 | | pricing page | |', '{FE}'] },
{ id: 'f-ex-05', set: 'repairable', cls: 'extra_cells', kind: 'facts', tags: [], note: 'a parenthetical note after the claim belongs in context',
body: ['{FB}', '{FH}', '{FS}', '| 6 | Alice-example moved to Berlin | (relocation) | event | 0.8 | private | medium | 2026-01-10 | | email | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 6 | Alice-example moved to Berlin | event | 0.8 | private | medium | 2026-01-10 | | email | (relocation) |', '{FE}'] },
{ id: 'f-ex-06', set: 'repairable', cls: 'extra_cells', kind: 'facts', tags: ['wide', 'number'], note: 'typed row with an empty cell after the claim',
body: ['{FB}', '{FW}', '{FWS}', '| 7 | Beta-example gross margin | | fact | 0.9 | private | high | 2026-06-30 | | Q2 report | | gross_margin | 0.62 | ratio | quarterly |', '{FE}'],
expected: ['{FB}', '{FW}', '{FWS}', '| 7 | Beta-example gross margin | fact | 0.9 | private | high | 2026-06-30 | | Q2 report | | gross_margin | 0.62 | ratio | quarterly |', '{FE}'] },
{ id: 'f-ex-07', set: 'repairable', cls: 'extra_cells', kind: 'facts', tags: ['strike', 'number'], note: 'struck row with an empty cell; the superseding row is valid',
body: ['{FB}', '{FH}', '{FS}', '| 8 | ~~Gamma-example raised $3.5M~~ | | event | 0.9 | private | high | 2025-12-01 | 2026-03-01 | news item | superseded by #9 |',
'| 9 | Gamma-example raised $5M | event | 0.9 | private | high | 2026-03-01 | | press release | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 8 | ~~Gamma-example raised $3.5M~~ | event | 0.9 | private | high | 2025-12-01 | 2026-03-01 | news item | superseded by #9 |',
'| 9 | Gamma-example raised $5M | event | 0.9 | private | high | 2026-03-01 | | press release | |', '{FE}'] },
// ── extra cells (takes) ────────────────────────────────────────────────
{ id: 't-ex-01', set: 'repairable', cls: 'extra_cells', kind: 'takes', tags: [], note: 'an empty cell after the claim',
body: ['{TB}', '{TH}', '{TS}', '| 3 | Vertical SaaS beats horizontal | | take | brain | 0.7 | 2026-01-01 | podcast notes |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 3 | Vertical SaaS beats horizontal | take | brain | 0.7 | 2026-01-01 | podcast notes |', '{TE}'] },
{ id: 't-ex-02', set: 'repairable', cls: 'extra_cells', kind: 'takes', tags: [], note: 'an empty cell after the holder',
body: ['{TB}', '{TH}', '{TS}', '| 1 | Acme-example keeps its CEO | take | companies/beta-example | 0.8 | 2026-01-20 | board deck |',
'| 4 | Acme-example misses Q3 targets | bet | companies/beta-example | | 0.35 | 2026-02-02 | board chat |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | Acme-example keeps its CEO | take | companies/beta-example | 0.8 | 2026-01-20 | board deck |',
'| 4 | Acme-example misses Q3 targets | bet | companies/beta-example | 0.35 | 2026-02-02 | board chat |', '{TE}'] },
{ id: 't-ex-03', set: 'repairable', cls: 'extra_cells', kind: 'takes', tags: ['strike', 'link'], note: 'struck claim with a link, empty cell after the kind',
body: ['{TB}', '{TH}', '{TS}', '| 5 | ~~[Delta-example](https://example.com/d) pivots to enterprise~~ | hunch | | people/alice-example | 0.4 | 2026-03-03 | dinner |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 5 | ~~[Delta-example](https://example.com/d) pivots to enterprise~~ | hunch | people/alice-example | 0.4 | 2026-03-03 | dinner |', '{TE}'] },
{ id: 't-ex-04', set: 'repairable', cls: 'extra_cells', kind: 'takes', tags: [], note: 'two empty cells after the claim',
body: ['{TB}', '{TH}', '{TS}', '| 6 | Rates stay flat through 2026 | | | bet | world | 0.5 | 2026-04-04 | market note |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 6 | Rates stay flat through 2026 | bet | world | 0.5 | 2026-04-04 | market note |', '{TE}'] },
// ── header with an unknown column (facts) ──────────────────────────────
{ id: 'f-hu-01', set: 'repairable', cls: 'header_unmapped', kind: 'facts', tags: [], note: '`certainty` is the confidence; visibility sits before it',
body: ['{FB}', '| # | claim | kind | visibility | certainty | notability | valid_from | valid_until | source | context |', '|---|---|---|---|---|---|---|---|---|---|',
"| 1 | Acme-example's CFO is bob-example | fact | private | 0.9 | high | 2026-01-15 | | org chart | |",
'| 2 | Acme-example plans a Tokyo office | idea | private | 0.5 | medium | | | offsite notes | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', "| 1 | Acme-example's CFO is bob-example | fact | 0.9 | private | high | 2026-01-15 | | org chart | |",
'| 2 | Acme-example plans a Tokyo office | idea | 0.5 | private | medium | | | offsite notes | |', '{FE}'] },
{ id: 'f-hu-02', set: 'repairable', cls: 'header_unmapped', kind: 'facts', tags: [], note: '`starts` and `ends` are the validity dates, written before the confidence',
body: ['{FB}', '| # | claim | kind | starts | ends | confidence | visibility | notability | source | context |', '|---|---|---|---|---|---|---|---|---|---|',
'| 1 | Bob-example chairs the audit committee | fact | 2025-07-01 | 2027-06-30 | 0.9 | private | medium | board minutes | |',
'| 2 | Bob-example is on parental leave | fact | 2026-03-01 | 2026-05-31 | 1.0 | private | low | HR note | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Bob-example chairs the audit committee | fact | 0.9 | private | medium | 2025-07-01 | 2027-06-30 | board minutes | |',
'| 2 | Bob-example is on parental leave | fact | 1.0 | private | low | 2026-03-01 | 2026-05-31 | HR note | |', '{FE}'] },
{ id: 'f-hu-03', set: 'repairable', cls: 'header_unmapped', kind: 'facts', tags: ['no_row_numbers'], note: 'no # column and an `origin` column (the source); Tier 1 numbers the rows after the model',
body: ['{FB}', '| claim | kind | confidence | visibility | notability | origin |', '|---|---|---|---|---|---|',
'| Carol-example runs a book club | fact | 0.8 | private | low | coffee chat |',
'| Carol-example wants to angel invest | preference | 0.6 | private | medium | dinner |',
'| Carol-example will intro two founders | commitment | 0.7 | private | medium | email |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Carol-example runs a book club | fact | 0.8 | private | low | | | coffee chat | |',
'| 2 | Carol-example wants to angel invest | preference | 0.6 | private | medium | | | dinner | |',
'| 3 | Carol-example will intro two founders | commitment | 0.7 | private | medium | | | email | |', '{FE}'] },
{ id: 'f-hu-04', set: 'repairable', cls: 'header_unmapped', kind: 'facts', tags: [], note: 'kind before claim and an `audience` column (the visibility)',
body: ['{FB}', '| # | kind | claim | confidence | audience | notability | valid_from | source |', '|---|---|---|---|---|---|---|---|',
'| 1 | event | Beta-example signed acme-example | 0.9 | private | high | 2026-02-14 | deal desk |',
'| 2 | fact | Beta-example sells annual contracts | 0.8 | private | medium | | sales deck |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Beta-example signed acme-example | event | 0.9 | private | high | 2026-02-14 | | deal desk | |',
'| 2 | Beta-example sells annual contracts | fact | 0.8 | private | medium | | | sales deck | |', '{FE}'] },
{ id: 'f-hu-05', set: 'repairable', cls: 'header_unmapped', kind: 'facts', vis: 'world', tags: ['world', 'link'], note: 'world page; a `reference` column (the source) before the confidence',
body: ['{FB}', '| # | claim | kind | reference | confidence | visibility | notability | valid_from | valid_until | notes |', '|---|---|---|---|---|---|---|---|---|---|',
'| 1 | Gamma-example open-sourced its SDK | event | [blog post](https://example.com/blog/sdk) | 0.95 | world | medium | 2026-03-20 | | |',
'| 2 | Gamma-example supports three languages | fact | SDK readme | 0.9 | world | low | 2026-03-20 | | Python, Go, Rust |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Gamma-example open-sourced its SDK | event | 0.95 | world | medium | 2026-03-20 | | [blog post](https://example.com/blog/sdk) | |',
'| 2 | Gamma-example supports three languages | fact | 0.9 | world | low | 2026-03-20 | | SDK readme | Python, Go, Rust |', '{FE}'] },
{ id: 'f-hu-06', set: 'repairable', cls: 'header_unmapped', kind: 'facts', section: 'timeline', tags: ['timeline'], note: 'timeline fence; `effective` is valid_from, notability before visibility',
body: ['{FB}', '| # | claim | kind | confidence | notability | visibility | effective | source |', '|---|---|---|---|---|---|---|---|',
'| 1 | Delta-example appointed a new CFO | event | 0.9 | high | private | 2026-05-04 | press release |',
'| 2 | Delta-example closed its Austin office | event | 0.8 | medium | private | 2026-05-30 | staff email |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Delta-example appointed a new CFO | event | 0.9 | private | high | 2026-05-04 | | press release | |',
'| 2 | Delta-example closed its Austin office | event | 0.8 | private | medium | 2026-05-30 | | staff email | |', '{FE}'] },
// ── header with an unknown column (takes) ──────────────────────────────
{ id: 't-hu-01', set: 'repairable', cls: 'header_unmapped', kind: 'takes', tags: [], note: '`conviction` is the weight; holder before kind',
body: ['{TB}', '| # | claim | holder | kind | conviction | since | source |', '|---|---|---|---|---|---|---|',
'| 1 | Acme-example wins the enterprise segment | people/alice-example | take | 0.7 | 2026-01-08 | strategy offsite |',
'| 2 | Acme-example hires a COO this year | people/alice-example | bet | 0.5 | 2026-01-08 | strategy offsite |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | Acme-example wins the enterprise segment | take | people/alice-example | 0.7 | 2026-01-08 | strategy offsite |',
'| 2 | Acme-example hires a COO this year | bet | people/alice-example | 0.5 | 2026-01-08 | strategy offsite |', '{TE}'] },
{ id: 't-hu-02', set: 'repairable', cls: 'header_unmapped', kind: 'takes', tags: ['link'], note: '`odds` is the weight and `link` the source',
body: ['{TB}', '| # | claim | kind | odds | who | date | link |', '|---|---|---|---|---|---|---|',
'| 1 | Beta-example lands a bank customer | bet | 0.4 | people/bob-example | 2026-02-10 | [pipeline](https://example.com/p) |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | Beta-example lands a bank customer | bet | people/bob-example | 0.4 | 2026-02-10 | [pipeline](https://example.com/p) |', '{TE}'] },
{ id: 't-hu-03', set: 'repairable', cls: 'header_unmapped', kind: 'takes', tags: ['no_row_numbers'], note: 'no # column; `confidence level` is the weight; Tier 1 numbers the rows',
body: ['{TB}', '| claim | kind | who | confidence level | since |', '|---|---|---|---|---|',
'| AI copilots become standard in CAD | take | brain | 0.65 | 2026-03-01 |',
'| Gamma-example ships a CAD copilot | bet | brain | 0.45 | 2026-03-01 |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | AI copilots become standard in CAD | take | brain | 0.65 | 2026-03-01 | |',
'| 2 | Gamma-example ships a CAD copilot | bet | brain | 0.45 | 2026-03-01 | |', '{TE}'] },
{ id: 't-hu-04', set: 'repairable', cls: 'header_unmapped', kind: 'takes', tags: ['strike'], note: '`probability` (the weight) before the kind; `as of` is since',
body: ['{TB}', '| # | claim | probability | kind | holder | as of | source |', '|---|---|---|---|---|---|---|',
'| 1 | ~~Delta-example sells by 2026~~ | 0.3 | bet | people/carol-example | 2025-10-01 | coffee |',
'| 2 | Delta-example sells by 2027 | 0.45 | bet | people/carol-example | 2026-04-01 | coffee |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | ~~Delta-example sells by 2026~~ | bet | people/carol-example | 0.3 | 2025-10-01 | coffee |',
'| 2 | Delta-example sells by 2027 | bet | people/carol-example | 0.45 | 2026-04-01 | coffee |', '{TE}'] },
// ── several problems in one fence ──────────────────────────────────────
{ id: 'f-mix-01', set: 'repairable', cls: 'mixed', kind: 'facts', tags: [], note: 'a short row and a row with an extra cell',
body: ['{FB}', '{FH}', '{FS}', '| 1 | Bob-example founded beta-example | fact | 1.0 | private | high | 2022-04-01 |',
'| 2 | Bob-example is raising a seed round | | event | 0.7 | private | medium | 2026-05-01 | | coffee chat | |',
'| 3 | Beta-example has six employees | fact | 0.8 | private | low | 2026-05-01 | | coffee chat | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Bob-example founded beta-example | fact | 1.0 | private | high | 2022-04-01 | | | |',
'| 2 | Bob-example is raising a seed round | event | 0.7 | private | medium | 2026-05-01 | | coffee chat | |',
'| 3 | Beta-example has six employees | fact | 0.8 | private | low | 2026-05-01 | | coffee chat | |', '{FE}'] },
{ id: 'f-mix-02', set: 'repairable', cls: 'mixed', kind: 'facts', tags: [], note: 'a row above the header and a short row below it',
body: ['{FB}', '| 4 | Gamma-example signed a reseller in Brazil | event | 0.8 | private | medium | 2026-02-27 | | partner email | |', '{FH}', '{FS}',
'| 5 | Gamma-example targets 30% growth | belief | 0.5 | private | medium |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 4 | Gamma-example signed a reseller in Brazil | event | 0.8 | private | medium | 2026-02-27 | | partner email | |',
'| 5 | Gamma-example targets 30% growth | belief | 0.5 | private | medium | | | | |', '{FE}'] },
{ id: 't-mix-01', set: 'repairable', cls: 'mixed', kind: 'takes', tags: [], note: 'a short row and a row with an extra cell',
body: ['{TB}', '{TH}', '{TS}', '| 1 | Climate software consolidates | take | world | 0.6 |',
'| 2 | Delta-example gets acquired | | bet | people/bob-example | 0.35 | 2026-01-30 | rumor mill |', '{TE}'],
expected: ['{TB}', '{TH}', '{TS}', '| 1 | Climate software consolidates | take | world | 0.6 | | |',
'| 2 | Delta-example gets acquired | bet | people/bob-example | 0.35 | 2026-01-30 | rumor mill |', '{TE}'] },
{ id: 'f-mix-03', set: 'repairable', cls: 'mixed', kind: 'facts', tags: [], note: 'no header and one of the rows is short',
body: ['{FB}', '| 1 | Alice-example leads product at acme-example | fact | 0.9 | private | medium | 2025-01-01 | | profile page | |',
'| 2 | Alice-example plans a sabbatical | idea | 0.4 | private | low |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Alice-example leads product at acme-example | fact | 0.9 | private | medium | 2025-01-01 | | profile page | |',
'| 2 | Alice-example plans a sabbatical | idea | 0.4 | private | low | | | | |', '{FE}'] },
{ id: 'b-mix-01', set: 'repairable', cls: 'mixed', kind: 'both', tags: ['two_fences'], note: 'a facts fence and a takes fence on one page, each with a short row (two model calls)',
body: ['{FB}', '{FH}', '{FS}', '| 1 | Acme-example moved HQ to Austin | event | 0.9 | private | high | 2026-01-03 |', '{FE}', '',
'{TB}', '{TH}', '{TS}', '| 2 | Acme-example regrets the move within a year | hunch | brain | 0.3 |', '{TE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Acme-example moved HQ to Austin | event | 0.9 | private | high | 2026-01-03 | | | |', '{FE}', '',
'{TB}', '{TH}', '{TS}', '| 2 | Acme-example regrets the move within a year | hunch | brain | 0.3 | | |', '{TE}'] },
// ── adversarial: two readings the gates cannot tell apart ──────────────
{ id: 'f-adv-01', set: 'adversarial', adversarial: 'ambiguous', cls: 'extra_cells', kind: 'facts', tags: [], note: 'two confidence values; either could be the real one',
body: ['{FB}', '{FH}', '{FS}', '| 2 | Beta-example breaks even in 2026 | belief | 0.6 | 0.9 | private | medium | 2026-01-01 | | board deck | |', '{FE}'],
expected: null,
probe: ['{FH}', '{FS}', '| 2 | Beta-example breaks even in 2026 | belief | 0.6 | private | medium | 2026-01-01 | | board deck | 0.9 |'] },
{ id: 'f-adv-02', set: 'adversarial', adversarial: 'ambiguous', cls: 'extra_cells', kind: 'facts', tags: [], note: 'two kinds (commitment, idea)',
body: ['{FB}', '{FH}', '{FS}', '| 3 | Acme-example launches in Japan | commitment | idea | 0.7 | private | medium | 2026-09-01 | | offsite | |', '{FE}'],
expected: null,
probe: ['{FH}', '{FS}', '| 3 | Acme-example launches in Japan | commitment | 0.7 | private | medium | 2026-09-01 | | offsite | idea |'] },
{ id: 'f-adv-03', set: 'adversarial', adversarial: 'ambiguous', cls: 'extra_cells', kind: 'facts', tags: [], note: 'two notability values (high, low)',
body: ['{FB}', '{FH}', '{FS}', "| 4 | Delta-example's CTO is leaving | fact | 0.8 | high | private | low | 2026-04-01 | | hallway chat | |", '{FE}'],
expected: null,
probe: ['{FH}', '{FS}', "| 4 | Delta-example's CTO is leaving | fact | 0.8 | private | high | 2026-04-01 | | hallway chat | low |"] },
{ id: 'f-adv-04', set: 'adversarial', adversarial: 'ambiguous', cls: 'extra_cells', kind: 'facts', vis: 'world', tags: ['world', 'privacy'], note: 'world page, the row says both private and world: picking world would publish it',
body: ['{FB}', '{FH}', '{FS}', '| 5 | Alice-example is raising a fund | fact | 0.7 | private | world | medium | 2026-05-01 | | coffee chat | |', '{FE}'],
expected: null,
probe: ['{FH}', '{FS}', '| 5 | Alice-example is raising a fund | fact | 0.7 | world | medium | 2026-05-01 | | coffee chat | private |'] },
{ id: 't-adv-01', set: 'adversarial', adversarial: 'ambiguous', cls: 'extra_cells', kind: 'takes', tags: [], note: 'two holders; either could hold the bet',
body: ['{TB}', '{TH}', '{TS}', '| 2 | Gamma-example sells within two years | bet | people/alice-example | people/bob-example | 0.6 | 2026-02-02 | dinner notes |', '{TE}'],
expected: null,
probe: ['{TW}', '{TWS}', '| 2 | Gamma-example sells within two years | bet | people/alice-example | 0.6 | 2026-02-02 | dinner notes | | | people/bob-example | | | |'] },
{ id: 'f-adv-05', set: 'adversarial', adversarial: 'ambiguous', cls: 'header_unmapped', kind: 'facts', tags: [], note: 'an `owner` column has no home in a facts table; the only free column is valid_until',
body: ['{FB}', '| # | claim | kind | owner | confidence | visibility | notability | valid_from | source | context |', '|---|---|---|---|---|---|---|---|---|---|',
'| 1 | The Q3 roadmap is approved | event | people/carol-example | 0.9 | private | medium | 2026-07-01 | planning doc | |', '{FE}'],
expected: null,
probe: ['{FH}', '{FS}', '| 1 | The Q3 roadmap is approved | event | 0.9 | private | medium | 2026-07-01 | people/carol-example | planning doc | |'] },
// ── adversarial: a required value is missing ───────────────────────────
{ id: 'f-unr-01', set: 'adversarial', adversarial: 'unrecoverable', cls: 'short_row_gap', kind: 'facts', tags: [], note: 'the confidence is missing; any value would be invented',
body: ['{FB}', '{FH}', '{FS}', "| 3 | Gamma-example's churn fell | fact | private | medium | 2026-02-01 | | dashboard |", '{FE}'],
expected: null,
probe: ['{FH}', '{FS}', "| 3 | Gamma-example's churn fell | fact | 1.0 | private | medium | 2026-02-01 | | dashboard | |"] },
{ id: 'f-unr-02', set: 'adversarial', adversarial: 'unrecoverable', cls: 'short_row_gap', kind: 'facts', tags: [], note: 'visibility and notability are missing',
body: ['{FB}', '{FH}', '{FS}', '| 4 | Bob-example left beta-example | event | 0.9 | 2026-03-31 | | email |', '{FE}'],
expected: null,
probe: ['{FH}', '{FS}', '| 4 | Bob-example left beta-example | event | 0.9 | private | medium | 2026-03-31 | | email | |'] },
{ id: 't-unr-01', set: 'adversarial', adversarial: 'unrecoverable', cls: 'short_row_gap', kind: 'takes', tags: [], note: 'the weight is missing',
body: ['{TB}', '{TH}', '{TS}', '| 5 | Remote work stays dominant | take | people/carol-example | survey |', '{TE}'],
expected: null,
probe: ['{TH}', '{TS}', '| 5 | Remote work stays dominant | take | people/carol-example | 0.5 | | survey |'] },
// ── gate-limited: a person would repair these; the gates forbid it ─────
{ id: 'f-gl-01', set: 'gate_limited', cls: 'no_header', kind: 'facts', tags: ['no_row_numbers'], note: 'no header and no # cells: read by position the claim is the kind cell, so gate (b) rejects the real claim',
body: ['{FB}', '| Acme-example opened a Denver office | event | 0.8 | private | low | 2026-02-01 | | press release | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Acme-example opened a Denver office | event | 0.8 | private | low | 2026-02-01 | | press release | |', '{FE}'] },
{ id: 'f-gl-02', set: 'gate_limited', cls: 'extra_cells', kind: 'facts', tags: ['pipe'], note: 'an unescaped pipe split the claim; rejoining it changes the claim cell (gate b)',
body: ['{FB}', '{FH}', '{FS}', '| 6 | Revenue grew 40% | driven by enterprise | fact | 0.9 | private | high | 2026-06-30 | | Q2 report | |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 6 | Revenue grew 40% \\| driven by enterprise | fact | 0.9 | private | high | 2026-06-30 | | Q2 report | |', '{FE}'] },
{ id: 'f-gl-03', set: 'gate_limited', cls: 'header_unmapped', kind: 'facts', vis: 'world', tags: ['world'], note: 'world page, `audience` column says world; moving it into visibility fails gate (d)',
body: ['{FB}', '| # | claim | kind | confidence | audience | notability | source |', '|---|---|---|---|---|---|---|',
'| 1 | Delta-example won a design award | event | 0.9 | world | low | press release |', '{FE}'],
expected: ['{FB}', '{FH}', '{FS}', '| 1 | Delta-example won a design award | event | 0.9 | world | low | | | press release | |', '{FE}'] },
];