labs
한국어 hello@taklabs.dev

Work / Faultline

Faultline

A daily essay I built to read the era: every morning a scheduled Gemini prompt of mine searches the last day’s news, picks one field and writes an essay on the structural shift underneath it. My pipeline then edits it like a newsroom: a second model checks every claim against the web, what fails is fixed or deleted, and the figures and the Korean and English posts are made from what survives.

Site
faultline.taklabs.dev
Languages
Korean · English
Writer
Gemini, on my daily prompt
Editor
Claude, against the web
Hosting
S3 · CloudFront · Lambda

What it does.

How it is designed.

How the morning’s AI essay becomes a post, drawn from the pipeline’s code.

From the morning’s essay to a postGemini’s essay is polished and given a title and thesis, then fact-checked; if every claim passes it goes to figures and posts, otherwise flagged sentences are fixed and a second round checks only the changes, after which still-failing sentences are deleted or, if the thesis fails, the essay is dropped; figures get a fourth check before the Korean and English posts.Polish the styleAdd title and thesisFact checkround 1Fix flagged sentencesRound 2changes onlyDelete what still failsDraw figurescheck round 4Korean and English postsGEMINI’S ESSAYALL PASSA CLAIM FAILSSTILL FAILINGALL PASSTHESIS FAILS
Fig. 01 From the morning’s essay to a post
  1. Code decides what counts as confirmed

    The checker sees only what a reader sees: the title, summary, thesis, body and figures. It marks each fact confirmed, wrong, unverifiable or overreach, and each interpretation argued, overreach or wrong. Code then holds it to two rules. A confirmed fact needs a URL that the web search or fetch tool actually returned, or it becomes unverifiable. Argued is allowed only for interpretations and causal readings, never for a number, a name or a date.

  2. Fix once, then delete

    After round 1 the writing model rewrites only the flagged sentences, in the draft’s voice. Round 2 checks only what changed, and untouched sentences keep their round-1 verdict. Anything still failing is deleted, not rewritten: a model points at the sentences, and code removes them and checks that every sentence left is unchanged from the draft. If the core thesis fails after the fixes, the run stops and nothing is published.

  3. The draft keeps its voice

    Before the check, one style pass has three targets: phrases of four or more words shared with the last six Korean posts, a lesson-shaped ending, and English glosses. Code rejects a pass that changes a number or the paragraph count, or cuts more than a fifth of the text, and after one retry the draft stays as written. An interpretation the checker calls overreach stays in the essay’s own words.

  4. Figures only from confirmed numbers

    Once the text is settled, the pipeline draws a flow diagram and a bar chart for each set of comparable numbers, up to four figures, and checks them in round 4. A set that breaks the rules is redrawn once with the problems fed back, and dropped if it still breaks them. Gemini’s own sketches can shape a figure, but their numbers are never drawn.

  5. One stage per call, under a cost cap

    The automatic path is a resumable state machine: advance() runs one stage and returns the next state, and Step Functions invokes the Lambda once per stage, so no call nears the 15-minute limit. Every model call is metered into cost.json in tokens, searches and dollars, and no AI call starts once a run reaches $6. A post that is already published still deploys.

hello@taklabs.dev