This morning, BlazerLiu, writing on 4 December 2026, asked the question I keep wanting a vault to answer: "Does the second brain handle conflicting notes, or does the newest one just win?"

The day before, a post from Mr. Buzzoni had been circulating the usual Karpathy LLM-wiki setup, now running on Claude, Obsidian, Hermes Agent, and Gemini 4 Neon. Three agents, one vault: Gemini reads every link, PDF, and voice note in raw/ and never edits those files; Claude cuts each source into zettelkasten notes "and updates every page it touches"; Hermes Agent "checks the vault at 02:00 for contradictions, stale claims and orphan notes."

That split of labor is the right shape. I do not buy the implication that a nightly lint is the check. If Hermes "fixes" a contradiction by writing last night's note onto the canonical page, the newest note just won. The vault looks consistent. The signed rule is gone.

GavinCampbellAI put the better rule in a reply: "a lesson only changes once a person has signed it off. agents can suggest all they like." illya_shalko24 asked the obvious follow-up: "who checks the answers before they become notes though."

So this post is an 841-line, stdlib-only Python script called clash_check.py. You point it at a Markdown vault. It extracts named measures — lead times, cure hours, opening hours, fabric — and compares the values across pages. check exits 1 if any finding is blocking. report writes a diagnosis queue outside the vault and also exits 1 when the vault fails. Twenty-four tests pin that down, including that neither command edits a wiki page. The checker does not pick a winner.

A daily note, an unsigned rewrite, and a signed wiki page disagree; clash_check flags the newer note instead of letting it win

A nightly lint is not a check

The failure mode I keep seeing is a vault that looks tidy at breakfast because an agent resolved the fight in favor of whatever was written last. A checker should fail specific disagreements and leave the signed value in place.

  • Pages carry optional frontmatter: updated, updated_by, previous_updated_by, writers, and reviewed_by. A date in a daily/2026-12-03-... filename counts when frontmatter is missing. Role is inferred from the path — daily/, zettel/, index.md — or set explicitly.
  • Measures are named shop facts, not free-text diffs. "Custom tents, including the Ridge4 Alpine, ship in 6 weeks" is a Ridge4 lead. "A Dyneema special-order fly ships in 10 weeks" is a different measure. The two are allowed to coexist.
  • newest_wins is the headline finding. An unsigned later page — a daily note, a zettel, an index, or a canonical page with no reviewed_by — asserts a value the signed pages do not carry. If you ranked by recency, that later note would win. The checker names both values and both paths, and it does not rewrite either file.
  • page_clash is the fallback when two pages disagree and recency does not point at an unsigned later note. Two signed pages that drifted apart would land here.
  • multi_writer fires when two agents appear in updated_by, previous_updated_by, or writers and no person has signed the page off. It is blocking when that page also participates in a clash, and a warning otherwise. A lone unsigned agent is not a finding. A page two agents touched, then a person signed, is not a finding.
  • Negated advice is not treated as an assertion. "Do not use a 4-week lead" does not count as the vault claiming 4 weeks. "Do not pack until 24 hours have passed" still asserts 24 hours, because the number sits in a requirement clause.
  • check ./fixture-messy exits 0 only when nothing is blocking. report ./fixture-messy --out CLASHES.md writes the diagnosis queue outside the vault — it refuses to write inside the wiki — and still exits 1 if anything is blocking. Neither command rewrites a page.

Core of clash_check.py (unsigned later notes vs signed pages)
signed = reviewed_keys.get(measure, set()) # newest_wins: an unsigned later page would beat a signed one, # or would install a value the signed pages do not carry. newest_ok = ( newer is not None and older is not None and is_unsigned(newer) and ( is_reviewed(older) or (newer.role != "canonical" and older.role == "canonical") ) and (not signed or not set(n_txt.split(", ")) <= signed) ) if newest_ok: findings.append(Finding( kind="newest_wins", rel=newer.rel, message=f"{label}: newer note would win over {older.rel}", evidence=f"{n_txt} vs {o_txt}", severity="block", measure=measure, other_rel=older.rel, )) continue # Skip a pair where the later page already matches a signed value # and the earlier page is the stray note — that stray is compared # directly to the signed page in another pair. if newer is not None and signed and set(n_txt.split(", ")) <= signed: continue 

The fixture

The fixture in this post is made up: a fictional loft I called Ridgeline Tent & Tarp, in Whitefish, Montana. The owner, in the story, is Cal Herrera. These pages are not a real shop, person, address, tent, tarp, sealer, or order. 'Ridge4 Alpine', 'Creekbed Tarp', 'RidgeSeal', and order RT-441 are invented for the fixture.

The clean vault is six human-authored pages, all signed by Cal, and they agree:

  • lead-time.md — custom tents, including the Ridge4 Alpine, ship in 6 weeks. The Creekbed Tarp ships in 10 days. A Dyneema special-order fly ships in 10 weeks, and that does not change the standard Ridge4 lead.
  • ridge4-alpine.md — the fly is 20D silnylon, 1.1 oz/yd². It is not Dyneema unless the customer places a special order. The standard model uses the 6-week custom lead.
  • seam-sealer.md and packing-rule.md — RidgeSeal needs 24 hours at 60°F before a tent or tarp can be packed. Do not pack until 24 hours have passed.
  • shop-hours.md — public hours at the fictional workroom at 9 Railway Cut are Tuesday–Saturday 9:00–17:00. Closed Sunday and Monday.
  • creekbed-tarp.md — stock sizes ship in 10 days. The same 24-hour cure applies.

check ./fixture on that tree exits 0: six pages, nine measures, no findings. The 10-week Dyneema special-order lead sits next to the 6-week Ridge4 lead and does not clash with it.

The messy version is what the feed has been describing. Claude writes a daily note on 3 December: the Ridge4 lead is "now 4 weeks" because of a promise on RT-441; the door should move to Monday–Saturday 10:00–18:00; the Creekbed Tarp "can ship in 5 days." A zettel the same day says RidgeSeal "cures in 12 hours, so we can pack the same day," and that the Ridge4 fly "is Dyneema now." At 02:00, Hermes rewrites lead-time.md to 4 weeks — updated_by: hermes, previous_updated_by: claude, no reviewed_by — and copies the new hours and the 4-week lead onto index.md. The signed pages are still in the vault. They still say 6 weeks, Tuesday–Saturday 9:00–17:00, 24 hours at 60°F, and silnylon. If you asked the vault after the nightly lint, and you trusted recency, you would not see them.

Running it on the messy vault

check ./fixture-messy exits 1:

wiki ./fixture-messy · 9 pages · 9 measures 11 blocking · 0 warnings BLOCK newest_wins daily/2026-12-03-claude.md shop hours: newer note would win over wiki/shop-hours.md · Mon,Tue,Wed,Thu,Fri,Sat 10:00-18:00 vs Tue,Wed,Thu,Fri,Sat 09:00-17:00 BLOCK newest_wins daily/2026-12-03-claude.md Ridge4 custom lead time: newer note would win over wiki/ridge4-alpine.md · 4 weeks vs 6 weeks BLOCK newest_wins daily/2026-12-03-claude.md Creekbed Tarp lead time: newer note would win over wiki/creekbed-tarp.md · 5 days vs 10 days BLOCK newest_wins wiki/index.md shop hours: newer note would win over wiki/shop-hours.md · Mon,Tue,Wed,Thu,Fri,Sat 10:00-18:00 vs Tue,Wed,Thu,Fri,Sat 09:00-17:00 BLOCK newest_wins wiki/index.md Ridge4 custom lead time: newer note would win over wiki/ridge4-alpine.md · 4 weeks vs 6 weeks BLOCK newest_wins wiki/lead-time.md Ridge4 custom lead time: newer note would win over wiki/ridge4-alpine.md · 4 weeks vs 6 weeks BLOCK newest_wins zettel/fast-cure.md RidgeSeal cure time: newer note would win over wiki/creekbed-tarp.md · 12 hours vs 24 hours BLOCK newest_wins zettel/fast-cure.md RidgeSeal cure time: newer note would win over wiki/packing-rule.md · 12 hours vs 24 hours BLOCK newest_wins zettel/fast-cure.md RidgeSeal cure time: newer note would win over wiki/seam-sealer.md · 12 hours vs 24 hours BLOCK newest_wins zettel/fast-cure.md Ridge4 fly fabric: newer note would win over wiki/ridge4-alpine.md · dyneema vs silnylon BLOCK multi_writer wiki/lead-time.md agents hermes and claude wrote this page with no reviewed_by · hermes (after claude) fail: clash check found blocking issues 

Terminal output of clash_check.py check on the messy Ridgeline vault: 11 blocking findings

Four things I care about in that report.

The newest_wins on daily/2026-12-03-claude.md against ridge4-alpine.md is BlazerLiu's question, in miniature. The signed variety page still says 6 weeks. The daily note, written later and left unsigned, says 4. If an agent — or a teammate skimming the vault by recency — trusted the later file, the one-off promise on RT-441 would become shop policy. The checker names both numbers and stops there.

The rewrite of lead-time.md is the nightly lint becoming the problem. Hermes did what the 02:00 job is supposed to do: it saw a contradiction and "fixed" the canonical page. There is still a signed Ridge4 page that says 6 weeks, so the finding is not "the vault has no 6-week lead." It is "an unsigned later page would win over the signed one." multi_writer on the same file is the paper trail: claude then hermes, and no reviewed_by.

The hours and the tarp lead are the same move with different numbers. The door schedule on shop-hours.md is still Tuesday–Saturday 9:00–17:00, signed 4 October. The daily note and the Hermes index would both win at Monday–Saturday 10:00–18:00. The Creekbed Tarp page still says 10 days; the daily note would win at 5. A lint that only asks "do these files still mention hours?" would miss both.

The zettel is the one I would show a teammate first. "RidgeSeal cures in 12 hours, so we can pack the same day" is a complete, confident shop rule, and it would beat three signed pages that still say 24 hours. The same note would also replace the signed 20D silnylon fly with Dyneema. A special-order Dyneema fly already has its own 10-week lead on the signed pages. That measure does not appear in the report, because it does not disagree with the 6-week standard lead. The checker is not allergic to a second product. It is allergic to an unsigned note overwriting the first one.

A diagnosis queue, then a human edit

report ./fixture-messy --out CLASHES.md exits 1 on the messy vault, because the findings are still blocking, and writes a queue. It does not move a file, and it will not write that report inside the vault.

The queue lists each finding with the writers, the dates, and a suggested diagnosis: keep the signed 6-week custom lead and record the RT-441 promise as an order exception; keep Tuesday–Saturday 9:00–17:00; keep the 10-day tarp lead; keep the 24-hour RidgeSeal cure; keep silnylon on the standard Ridge4; put a person's name on lead-time.md after they read both versions. That is as far as I would take the 02:00 job. The report is a place to spend a person's attention. It does not resolve the clash.

After a human actually does that work, the reviewed fixture still has the daily note, the zettel, and the index — nine pages, same as the messy tree. The wording changed. The 4-week promise is named as a one-off exception and is not policy; "Do not use a 4-week lead" is not treated as a 4-week claim. Hours stay Tuesday–Saturday 9:00–17:00, and the Monday–Saturday window is rejected. The zettel now says "Do not use a 12-hour cure. RidgeSeal needs 24 hours at 60°F." lead-time.md is back to 6 weeks, with reviewed_by: Cal Herrera. Two agents still appear in its history. Because a person signed it, multi_writer is silent.

check ./fixture-reviewed on that tree exits 0:

wiki ./fixture-reviewed · 9 pages · 9 measures 0 blocking · 0 warnings ok: clash check passed 

After a human works the diagnosis queue, the Ridgeline vault passes clash_check with no blocking findings

Nine pages and a clean check is not a smaller vault. It is a vault where a later note can exist without becoming the rule. The agents can still draft tomorrow's notes, as long as the next check is allowed to fail.

Put the check where the team already writes

A script like this is only useful if the pages it reads are the pages people will actually correct. The source of truth for a team LLM wiki should be the workspace the team already edits, not a parallel dump an agent maintains overnight and then quotes by recency. If you are building an LLM wiki for more than one person, start with access and review, then connect a model. The same instinct shows up when you self-host an AI workspace: keep the knowledge layer where you can see it, and treat the model as a writer with a checker, not as the person who signs off. A self-hosted AI stack does not fix a newest-note-wins vault by itself. It just gives you a place to run the check before the next agent session inherits the rewrite.

I work on AFFiNE, which is knowledge base software and an AI knowledge base software option teams can run in the cloud or self-host. It is also an open source Notion alternative in the sense that the docs, whiteboards, and databases live in one workspace you can export. None of that replaces a clash check. It is the place you would keep one.

If you already have a Markdown vault, start with check on the tree your agents wrote last night. If it fails, read the diagnosis queue, then edit the pages yourself — or record the exception on the order, not as a rewrite of the rule. The next session should inherit pages a person has signed, not whichever note happened to land last.