rea-analysis-optimization
MOmorluto/rea485k7,690 new stars in the last 7 days
Health check over the compiled wiki in 4-Knowledge/, written up as a ranked report. Use when the human asks to check or lint the wiki, on the monthly maintenance pass, or before the vault gets trusted on a decision that matters.
Find what has rotted in the wiki, rank it, and hand the list to the human. Fixing is a separate decision.
Write the report in the language the wiki is written in.
Structural problems - missing citations, orphans, index drift, stale pages - it finds reliably, because they are mechanical.
Reasoning errors it finds badly. The model running this check shares its blind spots with the model that wrote the pages, so a clean report means the wiki is tidy, not that it is right. Say this out loud when you hand over a report with no errors.
Count the pages in 4-Knowledge/. Under ten, say there is not enough wiki to lint yet and stop. An empty report trains the human to ignore the next one.
Read 4-Knowledge/index.md, then every wiki page. This is the one workflow that does not get to work from the index alone.
| Severity | What to look for |
|---|---|
ERROR | Two pages that contradict each other |
ERROR | Claims with no [source: ...] citation |
ERROR | Index entries pointing at pages that do not exist, or pages missing from the index |
ERROR | A sources: entry or [source: ...] citation naming a file that is not in 5-Raw/ |
WARN | Orphan pages - nothing links to them |
WARN | Pages marked status: needs_update, or with last_updated older than six months |
WARN | Pages with source_count: 1 that assert more than one source can carry |
INFO | Concepts mentioned across several pages with no page of their own |
INFO | People, companies or tools named on three or more pages with no entity page |
INFO | Entity pages longer than the concept pages they point at - the argument is in the wrong place |
INFO | Connections worth making between existing pages |
Every finding names the page and says what to do about it. "Page X has issues" is not a finding.
On the source check: a citation is only checkable if the file it names sits in 5-Raw/. Match on the file name without its extension and compare character for character - a curly apostrophe in the archived file and a straight one in the citation are two different files, and neither looks wrong when you read it on its own. When a source really is absent, say which fix applies: archive the file, or correct the citation. Those are opposite moves and guessing wrong makes it worse.
Save it to 4-Knowledge/lint-[YYYY-MM-DD].md:
---
title: Lint report
created: [YYYY-MM-DD]
pages_checked: [n]
---
# Lint report - [YYYY-MM-DD]
Checked [n] pages. Found [x] errors, [y] warnings, [z] notes.
## ERROR
- **[[Page Name]]** - contradicts [[Other Page]] on [claim]. `[source-a.md]` says X,
`[source-b.md]` says Y. Neither is flagged.
- **[[Page Name]]** - cites `some-source.md`, not present in `5-Raw/`. The claim reads as
documented and cannot be checked.
## WARN
- **[[Page Name]]** - orphan, nothing links here. Closest candidates: [[A]], [[B]]
## INFO
- "[concept]" appears on 4 pages and has none of its own. Worth writing.
- "[person or company]" is cited on 5 pages with no entity page. It has become a hub
without one.
## Suggested next
1. [The single most valuable fix]
2. [Then this]
3. [Then this]
Rank the suggestions by what they unblock, not by severity order. An unranked report gets read once and never again.
Append a lint entry to 4-Knowledge/log.md. That file carries the format.
Report the counts and the top suggestion in the conversation, then stop. The human decides what gets fixed.
If they say go ahead, the fixes are a separate pass: make them, append an update entry to 4-Knowledge/log.md saying which pages changed and why, and refresh 4-Knowledge/index.md if any page description moved.
5-Raw/, character for character4-Knowledge/lint-[YYYY-MM-DD].md4-Knowledge/log.md has a lint entry with the counts5-Raw/ are read-only. A contradiction between a page and its source is a finding about the page.MOmorluto/rea485k7,690 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
Diagnose hard bugs and performance regressions by building a feedback loop with tests or scripts.
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days