{"file":"scripts/autosettle/extract.ts","version":318,"total":196,"from":1,"to":196,"lines":[{"n":1,"text":"// Build scored test cases from a project's past settles (#19), read through the","atom":"a2127","author":"autosettle","version":190},{"n":2,"text":"// abso client in a seat folder joined to that project (a reader seat is enough).","atom":"a2127","author":"autosettle","version":190},{"n":3,"text":"//","atom":"a2127","author":"autosettle","version":190},{"n":4,"text":"//   node scripts/autosettle/extract.ts <seat folder> <cases.json> [--since 8d]","atom":"a2127","author":"autosettle","version":190},{"n":5,"text":"//","atom":"a2127","author":"autosettle","version":190},{"n":6,"text":"// For each settle: the file before theirs (their version - 1, the best guess at","atom":"a2190","author":"autosettle","version":195},{"n":7,"text":"// what both started from), theirs, and the settle's result. git's line diff","atom":"a2190","author":"autosettle","version":195},{"n":8,"text":"// finds each of their hunks that the settler's change touched. The held agent's","atom":"a2190","author":"autosettle","version":195},{"n":9,"text":"// own lines are only recoverable from the result when it kept yours or both;","atom":"a2190","author":"autosettle","version":195},{"n":10,"text":"// otherwise \"yours\" is null and score.ts skips the case.","atom":"a2190","author":"autosettle","version":195},{"n":11,"text":"","atom":"a2127","author":"autosettle","version":190},{"n":12,"text":"import { execFileSync } from \"node:child_process\";","atom":"a2127","author":"autosettle","version":190},{"n":13,"text":"import { mkdtempSync, rmSync, writeFileSync } from \"node:fs\";","atom":"a2190","author":"autosettle","version":195},{"n":14,"text":"import { tmpdir } from \"node:os\";","atom":"a2190","author":"autosettle","version":195},{"n":15,"text":"import { join } from \"node:path\";","atom":"a2190","author":"autosettle","version":195},{"n":16,"text":"","atom":"a2127","author":"autosettle","version":190},{"n":17,"text":"const [seat, out] = process.argv.slice(2);","atom":"a2127","author":"autosettle","version":190},{"n":18,"text":"if (!seat || !out) {","atom":"a2127","author":"autosettle","version":190},{"n":19,"text":"\tconsole.error(\"usage: node scripts/autosettle/extract.ts <seat folder> <cases.json> [--since 8d]\");","atom":"a2127","author":"autosettle","version":190},{"n":20,"text":"\tprocess.exit(2);","atom":"a2127","author":"autosettle","version":190},{"n":21,"text":"}","atom":"a2127","author":"autosettle","version":190},{"n":22,"text":"const since = process.argv.includes(\"--since\") ? process.argv[process.argv.indexOf(\"--since\") + 1]! : \"8d\";","atom":"a2127","author":"autosettle","version":190},{"n":23,"text":"const abso = (...args: string[]): string =>","atom":"a2127","author":"autosettle","version":190},{"n":24,"text":"\texecFileSync(\"abso\", args, { cwd: seat, encoding: \"utf8\", maxBuffer: 1 << 28, shell: process.platform === \"win32\" });","atom":"a2127","author":"autosettle","version":190},{"n":25,"text":"","atom":"a2127","author":"autosettle","version":190},{"n":26,"text":"const fileAt = (version: number, file: string): string[] | null => {","atom":"a2127","author":"autosettle","version":190},{"n":27,"text":"\ttry {","atom":"a2127","author":"autosettle","version":190},{"n":28,"text":"\t\treturn abso(\"show\", `${version}:${file}`).split(/\\r?\\n/);","atom":"a2127","author":"autosettle","version":190},{"n":29,"text":"\t} catch {","atom":"a2127","author":"autosettle","version":190},{"n":30,"text":"\t\treturn null;","atom":"a2127","author":"autosettle","version":190},{"n":31,"text":"\t}","atom":"a2127","author":"autosettle","version":190},{"n":32,"text":"};","atom":"a2127","author":"autosettle","version":190},{"n":33,"text":"","atom":"a2127","author":"autosettle","version":190},{"n":34,"text":"interface Settled {","atom":"a2127","author":"autosettle","version":190},{"n":35,"text":"\tfile: string;","atom":"a2127","author":"autosettle","version":190},{"n":36,"text":"\tkept: \"yours\" | \"theirs\" | \"both\" | \"rewrote\";","atom":"a2127","author":"autosettle","version":190},{"n":37,"text":"\ttheirs: { agent: string; version: number };","atom":"a2127","author":"autosettle","version":190},{"n":38,"text":"\tversion: number;","atom":"a2127","author":"autosettle","version":190},{"n":39,"text":"\theld?: string;","atom":"a2127","author":"autosettle","version":190},{"n":40,"text":"}","atom":"a2127","author":"autosettle","version":190},{"n":41,"text":"interface Change {","atom":"a2190","author":"autosettle","version":195},{"n":42,"text":"\tagent?: string;","atom":"a2190","author":"autosettle","version":195},{"n":43,"text":"\tauthor?: string;","atom":"a2190","author":"autosettle","version":195},{"n":44,"text":"\tmessage?: string;","atom":"a2190","author":"autosettle","version":195},{"n":45,"text":"\tsettled: Settled[];","atom":"a2190","author":"autosettle","version":195},{"n":46,"text":"\tversions?: { version: number; message: string }[];","atom":"a2190","author":"autosettle","version":195},{"n":47,"text":"}","atom":"a2190","author":"autosettle","version":195},{"n":48,"text":"const review = JSON.parse(abso(\"review\", \"--since\", since, \"--json\")) as { changes: Change[] };","atom":"a2190","author":"autosettle","version":195},{"n":49,"text":"const messages = new Map<number, string>();","atom":"a2127","author":"autosettle","version":190},{"n":50,"text":"for (const c of review.changes) for (const v of c.versions ?? []) messages.set(v.version, v.message);","atom":"a2127","author":"autosettle","version":190},{"n":51,"text":"const messageOf = (v: number): string | undefined => {","atom":"a2127","author":"autosettle","version":190},{"n":52,"text":"\tif (!messages.has(v)) {","atom":"a2127","author":"autosettle","version":190},{"n":53,"text":"\t\ttry {","atom":"a2127","author":"autosettle","version":190},{"n":54,"text":"\t\t\tconst head = abso(\"show\", String(v)).split(/\\r?\\n/).slice(0, 6).join(\"\\n\");","atom":"a2127","author":"autosettle","version":190},{"n":55,"text":"\t\t\tmessages.set(v, /\"([^\"]*)\"/.exec(head)?.[1] ?? head.split(\"\\n\")[0]!);","atom":"a2127","author":"autosettle","version":190},{"n":56,"text":"\t\t} catch {","atom":"a2127","author":"autosettle","version":190},{"n":57,"text":"\t\t\treturn undefined;","atom":"a2127","author":"autosettle","version":190},{"n":58,"text":"\t\t}","atom":"a2127","author":"autosettle","version":190},{"n":59,"text":"\t}","atom":"a2127","author":"autosettle","version":190},{"n":60,"text":"\treturn messages.get(v);","atom":"a2127","author":"autosettle","version":190},{"n":61,"text":"};","atom":"a2127","author":"autosettle","version":190},{"n":62,"text":"","atom":"a2127","author":"autosettle","version":190},{"n":63,"text":"interface Hunk {","atom":"a2190","author":"autosettle","version":195},{"n":64,"text":"\t/** 0-based start and length on each side; a length of 0 is an insertion before (or deletion at) start. */","atom":"a2190","author":"autosettle","version":195},{"n":65,"text":"\taStart: number;","atom":"a2190","author":"autosettle","version":195},{"n":66,"text":"\taLen: number;","atom":"a2190","author":"autosettle","version":195},{"n":67,"text":"\tbStart: number;","atom":"a2190","author":"autosettle","version":195},{"n":68,"text":"\tbLen: number;","atom":"a2190","author":"autosettle","version":195},{"n":69,"text":"}","atom":"a2127","author":"autosettle","version":190},{"n":70,"text":"","atom":"a2127","author":"autosettle","version":190},{"n":71,"text":"/** Line hunks from a to b, by git's diff. */","atom":"a2190","author":"autosettle","version":195},{"n":72,"text":"function hunks(a: string[], b: string[]): Hunk[] {","atom":"a2190","author":"autosettle","version":195},{"n":73,"text":"\tconst dir = mkdtempSync(join(tmpdir(), \"autosettle-\"));","atom":"a2190","author":"autosettle","version":195},{"n":74,"text":"\twriteFileSync(join(dir, \"a\"), a.join(\"\\n\"));","atom":"a2190","author":"autosettle","version":195},{"n":75,"text":"\twriteFileSync(join(dir, \"b\"), b.join(\"\\n\"));","atom":"a2190","author":"autosettle","version":195},{"n":76,"text":"\tlet text = \"\";","atom":"a2190","author":"autosettle","version":195},{"n":77,"text":"\ttry {","atom":"a2190","author":"autosettle","version":195},{"n":78,"text":"\t\ttext = execFileSync(\"git\", [\"diff\", \"--no-index\", \"-U0\", \"--no-color\", join(dir, \"a\"), join(dir, \"b\")], {","atom":"a2190","author":"autosettle","version":195},{"n":79,"text":"\t\t\tencoding: \"utf8\",","atom":"a2190","author":"autosettle","version":195},{"n":80,"text":"\t\t\tmaxBuffer: 1 << 28,","atom":"a2190","author":"autosettle","version":195},{"n":81,"text":"\t\t});","atom":"a2190","author":"autosettle","version":195},{"n":82,"text":"\t} catch (e) {","atom":"a2190","author":"autosettle","version":195},{"n":83,"text":"\t\t// git diff --no-index exits 1 when the files differ.","atom":"a2190","author":"autosettle","version":195},{"n":84,"text":"\t\ttext = (e as { stdout?: string }).stdout ?? \"\";","atom":"a2190","author":"autosettle","version":195},{"n":85,"text":"\t}","atom":"a2190","author":"autosettle","version":195},{"n":86,"text":"\trmSync(dir, { recursive: true, force: true });","atom":"a2190","author":"autosettle","version":195},{"n":87,"text":"\tconst list: Hunk[] = [];","atom":"a2190","author":"autosettle","version":195},{"n":88,"text":"\tfor (const m of text.matchAll(/^@@ -(\\d+)(?:,(\\d+))? \\+(\\d+)(?:,(\\d+))? @@/gm)) {","atom":"a2190","author":"autosettle","version":195},{"n":89,"text":"\t\tconst aLen = m[2] === undefined ? 1 : Number(m[2]);","atom":"a2190","author":"autosettle","version":195},{"n":90,"text":"\t\tconst bLen = m[4] === undefined ? 1 : Number(m[4]);","atom":"a2190","author":"autosettle","version":195},{"n":91,"text":"\t\tlist.push({","atom":"a2190","author":"autosettle","version":195},{"n":92,"text":"\t\t\taStart: aLen === 0 ? Number(m[1]) : Number(m[1]) - 1,","atom":"a2190","author":"autosettle","version":195},{"n":93,"text":"\t\t\taLen,","atom":"a2190","author":"autosettle","version":195},{"n":94,"text":"\t\t\tbStart: bLen === 0 ? Number(m[3]) : Number(m[3]) - 1,","atom":"a2190","author":"autosettle","version":195},{"n":95,"text":"\t\t\tbLen,","atom":"a2190","author":"autosettle","version":195},{"n":96,"text":"\t\t});","atom":"a2190","author":"autosettle","version":195},{"n":97,"text":"\t}","atom":"a2190","author":"autosettle","version":195},{"n":98,"text":"\treturn list;","atom":"a2190","author":"autosettle","version":195},{"n":99,"text":"}","atom":"a2127","author":"autosettle","version":190},{"n":100,"text":"","atom":"a2190","author":"autosettle","version":195},{"n":101,"text":"/** Where a line of b sits in a, given the hunks from a to b. */","atom":"a2190","author":"autosettle","version":195},{"n":102,"text":"const backTo = (hs: Hunk[], bAt: number) =>","atom":"a2190","author":"autosettle","version":195},{"n":103,"text":"\ths","atom":"a2192","author":"autosettle","version":195},{"n":104,"text":"\t\t.filter((h) => h.bStart + h.bLen <= bAt && !(h.bLen === 0 && h.bStart === bAt))","atom":"a2192","author":"autosettle","version":195},{"n":105,"text":"\t\t.reduce((n, h) => n - (h.bLen - h.aLen), bAt);","atom":"a2192","author":"autosettle","version":195},{"n":106,"text":"","atom":"a2127","author":"autosettle","version":190},{"n":107,"text":"/**","atom":"a2190","author":"autosettle","version":195},{"n":108,"text":" * The collisions a settle went through in one file: each of their hunks (before to theirs) that the","atom":"a2190","author":"autosettle","version":195},{"n":109,"text":" * settler's own change (theirs to result) touches, with the lines on every side.","atom":"a2190","author":"autosettle","version":195},{"n":110,"text":" */","atom":"a2190","author":"autosettle","version":195},{"n":111,"text":"function regions(before: string[], theirs: string[], result: string[]) {","atom":"a2190","author":"autosettle","version":195},{"n":112,"text":"\tconst d1 = hunks(before, theirs);","atom":"a2190","author":"autosettle","version":195},{"n":113,"text":"\tconst d2 = hunks(theirs, result);","atom":"a2190","author":"autosettle","version":195},{"n":114,"text":"\tconst touches = (h: Hunk, g: Hunk) => g.aStart <= h.bStart + h.bLen && h.bStart <= g.aStart + g.aLen;","atom":"a2190","author":"autosettle","version":195},{"n":115,"text":"\tconst found = [];","atom":"a2190","author":"autosettle","version":195},{"n":116,"text":"\tfor (const h of d1) {","atom":"a2190","author":"autosettle","version":195},{"n":117,"text":"\t\tconst near = d2.filter((g) => touches(h, g));","atom":"a2190","author":"autosettle","version":195},{"n":118,"text":"\t\tif (near.length === 0) continue;","atom":"a2190","author":"autosettle","version":195},{"n":119,"text":"\t\tconst tStart = Math.min(h.bStart, ...near.map((g) => g.aStart));","atom":"a2190","author":"autosettle","version":195},{"n":120,"text":"\t\tconst tEnd = Math.max(h.bStart + h.bLen, ...near.map((g) => g.aStart + g.aLen));","atom":"a2190","author":"autosettle","version":195},{"n":121,"text":"\t\tconst rStart = d2","atom":"a2190","author":"autosettle","version":195},{"n":122,"text":"\t\t\t.filter((g) => g.aStart + g.aLen <= tStart && !near.includes(g))","atom":"a2190","author":"autosettle","version":195},{"n":123,"text":"\t\t\t.reduce((n, g) => n + (g.bLen - g.aLen), tStart);","atom":"a2190","author":"autosettle","version":195},{"n":124,"text":"\t\tconst rEnd = rStart + (tEnd - tStart) + near.reduce((n, g) => n + (g.bLen - g.aLen), 0);","atom":"a2190","author":"autosettle","version":195},{"n":125,"text":"\t\tconst bStart = backTo(d1, tStart);","atom":"a2190","author":"autosettle","version":195},{"n":126,"text":"\t\tconst bEnd = bStart + (tEnd - tStart) - (h.bLen - h.aLen);","atom":"a2190","author":"autosettle","version":195},{"n":127,"text":"\t\tfound.push({","atom":"a2190","author":"autosettle","version":195},{"n":128,"text":"\t\t\tbase: before.slice(bStart, bEnd),","atom":"a2190","author":"autosettle","version":195},{"n":129,"text":"\t\t\ttheirs: theirs.slice(tStart, tEnd),","atom":"a2190","author":"autosettle","version":195},{"n":130,"text":"\t\t\tresult: result.slice(rStart, rEnd),","atom":"a2190","author":"autosettle","version":195},{"n":131,"text":"\t\t\tcontext: { before: theirs.slice(Math.max(0, tStart - 15), tStart), after: theirs.slice(tEnd, tEnd + 15) },","atom":"a2190","author":"autosettle","version":195},{"n":132,"text":"\t\t});","atom":"a2190","author":"autosettle","version":195},{"n":133,"text":"\t}","atom":"a2190","author":"autosettle","version":195},{"n":134,"text":"\treturn found;","atom":"a2190","author":"autosettle","version":195},{"n":135,"text":"}","atom":"a2190","author":"autosettle","version":195},{"n":136,"text":"","atom":"a2190","author":"autosettle","version":195},{"n":137,"text":"const cases: { kept: string; yours: string[] | null }[] = [];","atom":"a2135","author":"autosettle","version":191},{"n":138,"text":"const groups = new Map<string, { change: Change; settled: Settled[] }>();","atom":"a2190","author":"autosettle","version":195},{"n":139,"text":"for (const c of review.changes)","atom":"a2190","author":"autosettle","version":195},{"n":140,"text":"\tfor (const s of c.settled) {","atom":"a2127","author":"autosettle","version":190},{"n":141,"text":"\t\tconst key = `${s.version} ${s.file}`;","atom":"a2190","author":"autosettle","version":195},{"n":142,"text":"\t\tconst g = groups.get(key) ?? { change: c, settled: [] };","atom":"a2190","author":"autosettle","version":195},{"n":143,"text":"\t\tg.settled.push(s);","atom":"a2190","author":"autosettle","version":195},{"n":144,"text":"\t\tgroups.set(key, g);","atom":"a2190","author":"autosettle","version":195},{"n":145,"text":"\t}","atom":"a2190","author":"autosettle","version":195},{"n":146,"text":"for (const { change: c, settled } of groups.values()) {","atom":"a2190","author":"autosettle","version":195},{"n":147,"text":"\tconst first = settled[0]!;","atom":"a2190","author":"autosettle","version":195},{"n":148,"text":"\tconst before = fileAt(first.theirs.version - 1, first.file);","atom":"a2190","author":"autosettle","version":195},{"n":149,"text":"\tconst theirs = fileAt(first.theirs.version, first.file);","atom":"a2190","author":"autosettle","version":195},{"n":150,"text":"\tconst result = fileAt(first.version, first.file);","atom":"a2190","author":"autosettle","version":195},{"n":151,"text":"\tconst found = before && theirs && result ? regions(before, theirs, result) : [];","atom":"a2190","author":"autosettle","version":195},{"n":152,"text":"\t// Marker blocks the settler changed, in file order; a block where it kept theirs left no trace to find.","atom":"a2190","author":"autosettle","version":195},{"n":153,"text":"\tconst changed = settled.filter((s) => s.kept !== \"theirs\");","atom":"a2190","author":"autosettle","version":195},{"n":154,"text":"\tsettled.forEach((s, i) => {","atom":"a2190","author":"autosettle","version":195},{"n":155,"text":"\t\tconst notes: string[] = [];","atom":"a2127","author":"autosettle","version":190},{"n":156,"text":"\t\tconst r = s.kept === \"theirs\" ? undefined : found[changed.indexOf(s)];","atom":"a2190","author":"autosettle","version":195},{"n":157,"text":"\t\tif (!before || !theirs || !result) notes.push(\"a version of the file couldn't be read\");","atom":"a2190","author":"autosettle","version":195},{"n":158,"text":"\t\telse if (s.kept === \"theirs\")","atom":"a2192","author":"autosettle","version":195},{"n":159,"text":"\t\t\tnotes.push(\"kept theirs: the region and yours aren't recoverable from versions alone\");","atom":"a2192","author":"autosettle","version":195},{"n":160,"text":"\t\telse if (!r) notes.push(`found ${found.length} changed regions for ${changed.length} settled blocks`);","atom":"a2190","author":"autosettle","version":195},{"n":161,"text":"\t\tif (r && found.length !== changed.length)","atom":"a2190","author":"autosettle","version":195},{"n":162,"text":"\t\t\tnotes.push(`found ${found.length} changed regions for ${changed.length} settled blocks: the pairing may be off`);","atom":"a2190","author":"autosettle","version":195},{"n":163,"text":"\t\tlet yours: string[] | null = null;","atom":"a2127","author":"autosettle","version":190},{"n":164,"text":"\t\tif (r && s.kept === \"yours\") yours = r.result;","atom":"a2190","author":"autosettle","version":195},{"n":165,"text":"\t\telse if (r && s.kept === \"both\") {","atom":"a2190","author":"autosettle","version":195},{"n":166,"text":"\t\t\tconst tail = r.result.slice(r.result.length - r.theirs.length);","atom":"a2190","author":"autosettle","version":195},{"n":167,"text":"\t\t\tif (tail.join(\"\\n\") === r.theirs.join(\"\\n\")) yours = r.result.slice(0, r.result.length - r.theirs.length);","atom":"a2190","author":"autosettle","version":195},{"n":168,"text":"\t\t\telse notes.push(\"kept both, but the result doesn't end with theirs\");","atom":"a2190","author":"autosettle","version":195},{"n":169,"text":"\t\t} else if (r) notes.push(`yours isn't recoverable from the result when the agent kept ${s.kept}`);","atom":"a2190","author":"autosettle","version":195},{"n":170,"text":"\t\tcases.push({","atom":"a2127","author":"autosettle","version":190},{"n":171,"text":"\t\t\tid: `${s.version}-${s.file}#${i + 1}`,","atom":"a2190","author":"autosettle","version":195},{"n":172,"text":"\t\t\tfile: s.file,","atom":"a2127","author":"autosettle","version":190},{"n":173,"text":"\t\t\tkind: \"lines\",","atom":"a2127","author":"autosettle","version":190},{"n":174,"text":"\t\t\tsettler: {","atom":"a2128","author":"autosettle","version":190},{"n":175,"text":"\t\t\t\tagent: c.agent ?? c.author ?? \"?\",","atom":"a2128","author":"autosettle","version":190},{"n":176,"text":"\t\t\t\theldMessage: s.held,","atom":"a2128","author":"autosettle","version":190},{"n":177,"text":"\t\t\t\tsettleVersion: s.version,","atom":"a2128","author":"autosettle","version":190},{"n":178,"text":"\t\t\t\tsettleMessage: messageOf(s.version),","atom":"a2128","author":"autosettle","version":190},{"n":179,"text":"\t\t\t},","atom":"a2128","author":"autosettle","version":190},{"n":180,"text":"\t\t\ttheirs: { agent: s.theirs.agent, version: s.theirs.version, message: messageOf(s.theirs.version) },","atom":"a2127","author":"autosettle","version":190},{"n":181,"text":"\t\t\tbase: r?.base ?? null,","atom":"a2190","author":"autosettle","version":195},{"n":182,"text":"\t\t\tyours,","atom":"a2127","author":"autosettle","version":190},{"n":183,"text":"\t\t\ttheirsLines: r?.theirs ?? null,","atom":"a2190","author":"autosettle","version":195},{"n":184,"text":"\t\t\tcontext: r?.context ?? { before: [], after: [] },","atom":"a2190","author":"autosettle","version":195},{"n":185,"text":"\t\t\tresult: r?.result ?? null,","atom":"a2190","author":"autosettle","version":195},{"n":186,"text":"\t\t\tkept: s.kept,","atom":"a2127","author":"autosettle","version":190},{"n":187,"text":"\t\t\tissue: null,","atom":"a2127","author":"autosettle","version":190},{"n":188,"text":"\t\t\tnotes: notes.join(\"; \"),","atom":"a2127","author":"autosettle","version":190},{"n":189,"text":"\t\t} as (typeof cases)[number]);","atom":"a2190","author":"autosettle","version":195},{"n":190,"text":"\t});","atom":"a2190","author":"autosettle","version":195},{"n":191,"text":"}","atom":"a2127","author":"autosettle","version":190},{"n":192,"text":"writeFileSync(out, JSON.stringify(cases, null, \"\\t\"));","atom":"a2127","author":"autosettle","version":190},{"n":193,"text":"const count = (k: string) => cases.filter((c) => c.kept === k).length;","atom":"a2127","author":"autosettle","version":190},{"n":194,"text":"console.log(","atom":"a2127","author":"autosettle","version":190},{"n":195,"text":"\t`${cases.length} settled collisions: yours ${count(\"yours\")}, theirs ${count(\"theirs\")}, both ${count(\"both\")}, rewrote ${count(\"rewrote\")}; ${cases.filter((c) => c.yours !== null).length} with both sides recoverable.`,","atom":"a2127","author":"autosettle","version":190},{"n":196,"text":");","atom":"a2127","author":"autosettle","version":190}],"atoms":[{"atom":"a2127","author":"autosettle","message":"","time":1792017294288,"timeIso":"2026-10-14T22:34:54.288Z","publish":{"draft":null,"version":190,"agent":"autosettle","message":"Jev auto-settle (#19): extract.ts builds test cases from a project's past settles through a seat's own abso client (review --json, show <version>:<file>).","time":1792017309129,"timeIso":"2026-10-14T22:35:09.129Z"}},{"atom":"a2128","author":"autosettle","message":"","time":1792017308725,"timeIso":"2026-10-14T22:35:08.725Z","publish":{"draft":null,"version":190,"agent":"autosettle","message":"Jev auto-settle (#19): extract.ts builds test cases from a project's past settles through a seat's own abso client (review --json, show <version>:<file>).","time":1792017309129,"timeIso":"2026-10-14T22:35:09.129Z"}},{"atom":"a2135","author":"autosettle","message":"","time":1792017924026,"timeIso":"2026-10-14T22:45:24.026Z","publish":{"draft":null,"version":191,"agent":"autosettle","message":"Auto-settle (#19): a Workers AI settler. scripts/autosettle/workers-ai is a Worker (wrangler dev --port 8845) that asks Llama 3.3 70B, in JSON mode, for one of keep yours, keep theirs, keep both or needs an agent, plus a confidence and a one-line reason. settle-one and score use it by default (--via jev for Jev). On the commonmark hold (nesting 64 vs 1000) it picks needs an agent, 0.90, in 2.5 s.","time":1792017924660,"timeIso":"2026-10-14T22:45:24.660Z"}},{"atom":"a2190","author":"autosettle","message":"","time":1792020834129,"timeIso":"2026-10-14T23:33:54.129Z","publish":{"draft":null,"version":195,"agent":"autosettle","message":"Auto-settle (#19): score it on project abso's own past settles. extract.ts now finds each collided region with git's line diff (before theirs, theirs, the settle's result) instead of one span over the whole file. rules.ts turns down a keep-both that holds one statement in two versions (an import from the same module with different names): on abso's history the model picked keep both there at 1.00, which wouldn't have compiled.","time":1792021015753,"timeIso":"2026-10-14T23:36:55.753Z"}},{"atom":"a2192","author":"autosettle","message":"","time":1792021015313,"timeIso":"2026-10-14T23:36:55.313Z","publish":{"draft":null,"version":195,"agent":"autosettle","message":"Auto-settle (#19): score it on project abso's own past settles. extract.ts now finds each collided region with git's line diff (before theirs, theirs, the settle's result) instead of one span over the whole file. rules.ts turns down a keep-both that holds one statement in two versions (an import from the same module with different names): on abso's history the model picked keep both there at 1.00, which wouldn't have compiled.","time":1792021015753,"timeIso":"2026-10-14T23:36:55.753Z"}}]}