Repository avatar
Other Tools
v0.1.0
active

augeron

io.github.R-Hruthvik/augeron

Parse, view, patch, and audit NLS specs with Augeron's deterministic Oberon engine.

Documentation

Augeron

Augeron is a local-first workbench for reviewing AI-generated specs. A dense spec in a flat editor hides its structure, its contradictions, and its broken links. Two paragraphs can disagree on a retention period, and a § reference can point at a section that was renamed, and a reader will not see either without a careful read. Augeron parses the spec into numbered sections and paragraphs, then runs deterministic checks that point at those problems.

It borrows two interaction ideas from computing history:

  • Engelbart's NLS (1968) inspired the view codes. Every section and paragraph gets a structural § coordinate (§2.1b). Coordinates are re-indexed on edit, so inserting a paragraph renumbers the ones after it. The view codes a, h, f, u, and r are Augeron's own, and they are not NLS's letters.
  • Wirth's Oberon System (1987) inspired the command model. There are no menus and no modal dialogs. Any Module.Action token that names a registered command is a live command.

Every core command runs offline with deterministic analyzers. An optional OpenAI-compatible key, entered with AI.Config(key), adds an advisory review after Spec.Audit. The review never changes the flags. An optional in-browser NLI pass, AI.Nli, is opt-in: the first run downloads the Xenova/nli-deberta-v3-xsmall model from Hugging Face, then it runs locally in the browser and is advisory only.

Quickstart

npm install
npm run dev        # builds core, then starts the workbench at http://127.0.0.1:5173
npm test           # core unit and property tests, then mcp-server tool tests
npm run test:pbt   # the fast-check property suite in core (INV-1 to INV-5, plus two more)
npm run build      # core, cli, web, mcp-server, and the VS Code extension bundle, in that order
npm run start:mcp  # stdio MCP server (run npm run build first)

npm test runs the test script of each workspace that has one: packages/core (vitest unit tests and fast-check property tests), packages/cli (vitest tests for augeron check), packages/mcp-server (vitest tests for the MCP tool logic), and packages/vscode (vitest tests for the diagnostic mapping, with no VS Code runtime). packages/web has no test script. The repository declares no engines field. CI runs on Node.js 22.

At commit 7ab8210, npm test runs 212 core tests in 21 files, including the 7 property tests, and 35 mcp-server tests in one file. The fonts, IBM Plex Mono and IBM Plex Serif, are bundled from the @fontsource npm packages, so the app does not request fonts from Google.

View codes

Press a key with the Document Track focused. The keys are off while you type in System.Tool.

KeyViewShows
aAllEvery node, with its text unchanged. Also clears any View.Level clip.
hHeadingsHeadings only.
fFirst sentenceEach paragraph's opening sentence and every sentence with an RFC 2119 keyword (SHALL, MUST, SHOULD, MAY, OPTIONAL, RECOMMENDED, and the rest), with [+Nw] for hidden words. Node roles and audit flags do not depend on this list.
uUnverifiedClaims and assumptions with no citation or § reference.
rRequirementsSHALL and MUST requirements, plus nodes with CONTRADICTION or BROKEN_REF.

View codes are projections. They never change the document text or the coordinate index.

Level clipping: View.Level(n)

View.Level(n) clips the view to heading depth n, as NLS level clipping does. A heading deeper than n is hidden with its whole subtree. Body text follows the heading that owns it, so View.Level(1) shows the top-level sections and their paragraphs only.

The clip layers on the active view code. View.Level(1) followed by View.Spec(u) shows unverified claims under top-level headings only. View.Spec(h), f, u, and r keep the clip. View.Spec(a) clears it. n must be a positive integer. Other arguments return an error and leave the clip as it was.

Level clipping is a projection. It does not change the tree, rawText, or the coordinates.

Oberon command catalog

Tokens take the form Module.Action or Module.Action(arg). Pipelines look like Spec.Audit -> Outline.ExtractTasks. The whole line is validated before any stage runs. The first error stops the chain.

TokenMutates textWhat it does
View.Spec(a|h|f|u|r)NoSwitches the view code. Same as the keys. View.Spec(a) also clears the level clip.
View.Level(n)NoClips the view to heading depth n. See Level clipping.
View.Brief(n)NoExcerpt view. Keeps up to n whole sentences per section (default 2), picked by RFC 2119 keyword, then numbers and definitions, then words shared with the heading. Each sentence shows its § address. A footer gives the word counts. Any View-Spec or View.Level turns it off.
View.Theme(light|dark|halloween)NoWeb only. Switches the theme. light is the default. The choice is saved in the browser.
Spec.AuditNoFlags contradictions (including All against No on the same subject, modal, and verb), broken § references, unverified claims, vague terms, and requirement smells. The smells are placeholders (TBD), open-ended clauses (etc.), and/or, compound SHALL or MUST, absolutes (always, never, every time, at all times, 100%), escape clauses (where applicable, as necessary, if practicable), and duplicate requirements (INCOSE R30, listed up to 500 per document, then one notice). Also a modal sentence that opens with It, They, This, That, These, or Those followed by a modal (INCOSE R24), a bound such as at most 5000 with no unit after it (INCOSE R40), and an all-caps acronym in a modal sentence that no visible text defines (INCOSE R37, listed up to 500 per document, then one notice). A definition is Full Name (ACR), ACR (Full Name), or ACR: in a heading or table row. Common acronyms such as API and HTTPS are exempt. A modal sentence with SHALL, MUST, SHALL NOT, or MUST NOT, followed by be and a past participle, is flagged as passive voice with no actor (INCOSE R2). Lowercase shall and must stay flagged too, because they pass the same MODAL_KEYWORD gate as every other smell check. The flag is not raised when a by phrase after the participle names an actor. The phrases by default, by design, by convention, by contract, by policy, and by hand name no actor, so the sentence is still flagged. This is a heuristic with lower precision (Femmer et al. 2017), because some passive requirements are valid. To hide the flags on one paragraph, put <!-- augeron-disable-next REQUIREMENT_SMELL --> above it. That hides every requirement smell on the paragraph, not only the R2 flag. Spec.Tighten does not change these sentences. When the document quotes BCP 14, RFC 2119, or RFC 8174, mixed-case keywords such as Must or MUST not are flagged too. Only requirement sentences with a modal keyword count, except for placeholders and the BCP 14 check. With a selection, it flags only the selected nodes, and a selected heading covers its subtree. Contradictions still name partners outside the selection. The checks are deterministic text rules, so on real specs they can produce false positives. Treat each flag as a prompt to look. HTML comments, code, headings, and URLs are not read as prose. The log also gives a quality score out of 100 for the requirement nodes and flagged nodes in scope: each starts at 100 and loses 40 per CONTRADICTION, 25 per BROKEN_REF, 15 per REQUIREMENT_SMELL, 15 per AMBIGUOUS_TERM, and 10 per UNVERIFIED_CLAIM, and the document score is their rounded mean.
Spec.Ledger(n)NoLists every sentence with an RFC 2119 keyword: address, modal, condition or exception clause, and whether View.Brief(n) keeps it (default n is 2). Also checks that every row is in the brief or marked omitted.
Review.Mark(§x)NoWeb only. Marks one § paragraph reviewed. The mark is kept in the browser, outside the text, and stops counting when that paragraph changes.
Review.Clear(§x)NoWeb only. Removes the review mark from one § paragraph. The text is unchanged.
Review.Comment(text)NoWeb only. Adds an open comment to the one selected paragraph or heading, up to 2,000 characters. The comment shows in the margin and stays out of the text and the undo history. It is marked stale when its paragraph changes.
Review.Resolve(c3) / Review.Reopen(c3)NoWeb only. Marks a comment resolved, or open again, by its id. The text is unchanged. An unknown id is an error.
Review.ListNoWeb only. Lists the comments, open first, with each id, § address and status. A comment is marked (stale: paragraph changed) or (orphaned) when its address no longer exists.
Review.ExportNoWeb only. Logs a Markdown review summary with open and resolved sections. Each comment has its § address and the first sentence of its paragraph. The web app downloads augeron-review.md and logs a receipt.
Spec.TightenYesRemoves the filler phrases "it is important to note that", "basically", and "very". Turns "in order to" into "to". It never changes modal verbs such as "should", "will", or "is required to", and it does not rewrite passive voice into EARS form. It skips headings and code fences, and it acts on the selection when one exists.
Cite.VerifyNoChecks § references and citations. With a selection, it checks only the selected nodes, and a selected heading covers its subtree. A § written in code is a syntax example, not a citation.
Outline.PromoteYesMoves the selected heading and its subtree up one heading level. A heading at H1 cannot be promoted. Needs exactly one selected heading.
Outline.DemoteYesMoves the selected heading and its subtree down one heading level. Fails if any heading in the branch is already H6. Needs exactly one selected heading.
Outline.Move(§x)YesMoves the selected paragraph or heading branch to directly after §x, the target's last line in document order. Refuses a move into itself. Heading levels do not change, so the new position follows from them.
Outline.ExtractTasksNoBuilds a prioritized checklist. P0 is CONTRADICTION or BROKEN_REF, P1 is other requirements, and P2 is other flagged nodes.
Doc.InjectFlawYesDemo helper. Appends a latency conflict and a broken reference.
Doc.Load(rfc|brief|prd)YesWeb only. Loads a showcase fixture. Undoable.
Doc.OpenYesWeb only. Opens a .md, .markdown or .txt file up to 200 KB from your computer. Dropping a file on the document does the same. Undoable.
Doc.CompareNoWeb only. Asks for an earlier version of the spec, in a .md, .markdown or .txt file up to 200 KB, and logs how it differs from the current document: new and resolved flags, added, removed and changed paragraphs, and the score before and after. The document and its history do not change. Same as augeron diff.
System.Undo / System.RedoYesSteps through the history stack.
System.ClearLogNoClears the log and keeps the welcome block.
System.ExportNoLogs the audited Markdown. The web app downloads augeron-audited-spec.md and logs a receipt.
Find.Look(text)NoAcme-style Look. Lists every paragraph and heading that contains text, ignoring case, with its § address and an excerpt. Empty text is an error.
Link.Back(§x)NoLists every paragraph and heading whose text refers to §x, with an excerpt. An address that does not exist is an error.
Help.Show(Module.Action)NoDescribes one command: what it does, its argument, whether it changes the tree, and an example. With no argument, lists every command by module.
Tool.CheckNoWeb only. Checks every line of System.Tool. Each token and -> pipeline must parse and name a known command. Gives the line number of each problem, and for each line what it reads and whether it changes the tree.
System.HistoryNoWeb only. Lists the core commands that ran this session. The browser also appends them to System.Tool under # HISTORY, where each line runs again on a click. Only the pad changes.
AI.Config(key)NoWeb only. Turns on the advisory AI review for this session. AI.Config() turns it off.
AI.NliNoWeb only. Opt-in. Scores candidate contradiction pairs with a local NLI model. The first run downloads the model from Hugging Face. The log lists likely contradictions as advisory only. Flags, text, and history never change.
Audio.On / Audio.OffNoWeb only. Turns the soundscape on or off.
System.VeilNoWeb only. Brings back the entry page.
Exhume.WorkbenchNoWeb only. Closes the entry page and opens the workbench.
Edit.SourceNoWeb only. Opens the Markdown source for editing. The tree does not change until Done.
Edit.DoneYesWeb only. Re-parses the edited Markdown and replaces the document tree.

Using commands

  • Middle-click or Ctrl/Cmd-click a token to run it. The target is the current selection. With no selection, every command acts on the full document. Spec.Audit, Cite.Verify, Spec.Tighten, and Outline.ExtractTasks narrow to the selection when one exists.
  • Ctrl/Cmd+Enter in System.Tool runs the command line at the cursor. A line with -> runs as one pipeline, and a bad stage stops the whole line before anything runs. A line with several tokens runs the token under the cursor, or the nearest token before it.
  • A plain click on a token in System.Tool or System.Log shows a hint. It does not run the command. The exceptions are Edit.Source, Edit.Done and Doc.Open in the document header, which run on a plain click.
  • Click a § coordinate to open that node in the split pane.
  • The workbench opens behind an entry page, shown once per browser session. Press Enter or Escape, or click its button, to close it. System.Veil brings it back.

Suppressing findings

To hide a finding you have reviewed, put an HTML comment on its own line, with a blank line above and below it. The comment must be a block by itself. A comment sharing a paragraph with text does nothing.

  • <!-- augeron-disable-next --> hides every flag on the next paragraph or heading.
  • <!-- augeron-disable-next AMBIGUOUS_TERM, REQUIREMENT_SMELL --> hides only the listed flag types. Separate names with commas or spaces. Unknown names are ignored, so a list of only unknown names hides nothing.
  • <!-- augeron-disable AMBIGUOUS_TERM --> starts a range that hides the listed types, or every type with no list, on each node after it, across headings. <!-- augeron-enable --> ends the range. It takes no list. A range with no matching enable runs to the end of the document.

Comments inside a fenced code block or inside a sentence do nothing. A suppressed flag disappears everywhere flags show: Spec.Audit, Cite.Verify, and the document view. Spec.Audit's log ends with a count of the flags it hid. The text itself never changes. With a CONTRADICTION pair, suppressing one paragraph leaves the other paragraph's flag, which still names the hidden coordinate.

Kiro

This repo ships two Kiro integrations for Augeron. Both need a build first:

npm ci
npm run build

The spec-check hook

.kiro/hooks/augeron-spec-check.json runs when you save a Markdown file under .kiro/specs/. It runs:

node packages/cli/dist/index.js check --fail-on CONTRADICTION,BROKEN_REF .kiro/specs

The check is deterministic and needs no network or API key. It prints every finding, and it fails only for contradictions and broken § references. Other findings, such as unverified numeric claims, are listed but do not fail the run.

To run the same check by hand, use the same command. Add --format json or --format sarif for a machine-readable report.

Connecting Kiro to the MCP server

The MCP server exposes Augeron's analyzers to Kiro as tools. This repo already has a server entry in .kiro/settings/mcp.json, and it uses a path relative to the repo root.

To set up the server yourself, add this under mcpServers in your Kiro MCP config. Replace the path with the absolute path to your checkout. You can get it by running realpath packages/mcp-server/dist/index.js from the repo root.

{
  "mcpServers": {
    "augeron": {
      "command": "node",
      "args": ["/absolute/path/to/augeron/packages/mcp-server/dist/index.js"]
    }
  }
}

The server needs npm run build to have created packages/mcp-server/dist/index.js.

Install as an MCPB bundle

Download augeron-mcp-<version>.mcpb from the Releases page. Open it in a client that supports MCPB, such as Claude Desktop. The bundle runs the same five tools with its own Node.js entry point, so you need Node.js 20 or later and no clone of this repo. Check the file's SHA-256 against the value in the release notes.

The server is also listed in the MCP Registry as io.github.R-Hruthvik/augeron. Releases are cut by pushing a v* tag. The .github/workflows/release-mcp.yml workflow builds the bundle, attaches it to a GitHub Release, and publishes server.json to the registry.

Two passes: Augeron and Analyze Requirements

Augeron is the fast, deterministic pre-check. It finds mechanical problems: broken § references, paragraphs that contradict each other, and numeric claims with no citation. It gives the same output on every run.

Kiro's Analyze Requirements is the slower pass that uses an LLM. Use it for the reading that needs judgment after the pre-check is clean. Run Augeron first, so the LLM pass does not spend time on problems a script can find.

Kiro Power

power-augeron/ is a Kiro Power. It bundles two skills: review-spec, which runs the audit and fixes flags through the MCP tools, and kiro-specs, which runs the CLI gate on .kiro/specs before Analyze Requirements. The power's mcp.json starts the same stdio server as the entry above.

The power runs the built code from your Augeron checkout. Install it like this:

  1. Clone the repo and build it:

    git clone https://github.com/R-Hruthvik/kiroween
    cd kiroween
    npm ci
    npm run build
    
  2. Set AUGERON_HOME to the absolute path of that checkout, in the shell you start Kiro from:

    export AUGERON_HOME=/absolute/path/to/kiroween
    
  3. In Kiro, open the Powers panel and choose Add Custom Power. Then either:

    • choose Import power from GitHub, and point it at https://github.com/R-Hruthvik/kiroween with the folder power-augeron, or
    • choose to add a power from a folder, and select power-augeron inside your checkout.
  4. Start Kiro from the same shell, so it inherits AUGERON_HOME. Then ask for a spec review, for example "review this spec with Augeron".

The power does not install the augeron-spec-check hook into your project. Copy .kiro/hooks/augeron-spec-check.json yourself if you want it. The kiro-specs skill explains what the hook runs.

The power uses node and a path under AUGERON_HOME, not npx. The root package.json has no bin, the augeron-mcp bin is declared only in packages/mcp-server, and dist/ is not committed. A GitHub install would not produce a runnable augeron-mcp command.

Kiro Crew

Kiro Crew is a separate Gateway that runs agents, apps, and hooks. Build the checkout first, as in the Kiro section above. The details below come from the Kiro Crew docs at https://kiro.dev/docs/crew.

MCP server

Add the server under Customize → MCP Servers in the Crew dashboard. Earlier Crew versions call this panel Agent Capabilities → Integrations (MCP). Use the absolute path to the built server:

node /absolute/path/to/augeron/packages/mcp-server/dist/index.js

Crew runs this server through the Kiro CLI harness, so that harness must be set up. A Shared Crew also needs the MCP tools control turned on.

Skills

Copy the two skills into Crew's skills folder:

mkdir -p ~/.kiro/crew/skills
cp -R power-augeron/skills/* ~/.kiro/crew/skills/

Crew reads the files on the next agent invocation.

Why the save hook does not run

.kiro/hooks/augeron-spec-check.json runs on PostFileSave. Crew's file events never fire, so that hook does nothing in Crew. The Stop hook and the PreToolUse gate below replace it.

Stop hook and PreToolUse gate

scripts/crew/augeron-gate.sh serves both hooks. Create each hook under Agent Capabilities → Hooks in the dashboard, or in ~/.kiro/crew/hooks.json. A hook needs a trigger, an optional matcher, and a command.

  • Stop hook. Trigger: Stop. Command: sh /absolute/path/to/augeron/scripts/crew/augeron-gate.sh --report. The script prints the spec check report and exits 0. The Crew docs say a Stop hook continues the agent only when its stdout has a specific form. The copy of the docs used here does not show that form, so check what this report does on a real install.
  • PreToolUse gate. Trigger: PreToolUse. Matcher: *, which sends every tool call through the script. Command: sh /absolute/path/to/augeron/scripts/crew/augeron-gate.sh. The script reads the tool event from stdin. Any call that is not a git commit exits 0. A git commit runs the spec check with --fail-on CONTRADICTION,BROKEN_REF. A failing check exits 2, which denies the call and sends the findings to the model.

Keep these limits in mind:

  • Crew hooks do not inherit the Gateway environment. Use absolute paths, and set AUGERON_SPECS or AUGERON_HOME inside the command if you need them.
  • The gate can deny a call only when the Gateway controls approval. If Kiro CLI already approved the call, the hook can report it but cannot stop it.
  • The gate matches git, whitespace, and commit. It does not catch forms such as git -C dir commit.
  • Without a build, the gate blocks git commit calls with a message to run npm run build. Other calls still pass. A PreToolUse hook that crashes or times out blocks the call.

Crew App

crew-augeron/ is a Crew App. It bundles the two skills, an MCP server entry for Augeron, and a spec-reviewer agent. The agent reviews specs with the Augeron tools and does not edit files unless you ask it to.

Install it from a local path in the App Store, or send POST /api/apps/install with {"source": "/absolute/path/to/augeron/crew-augeron"}. Then enable it with POST /api/apps/augeron/enable. The app runs node against your built checkout, so build it first.

The skills in crew-augeron/skills/ are a copy of power-augeron/skills/. After you change the power's skills, run node scripts/crew/sync-skills.mjs. CI runs the same script with --check and fails when the copies differ.

These parts are unverified on a real Crew install:

  • The ${AUGERON_HOME} value in the MCP entry. The docs do not say whether Crew expands environment variables there. If it does not, replace the value with the absolute path.
  • Whether spec-reviewer gets the Augeron MCP tools. Its tools list names @augeron, the Kiro CLI form for all tools of one MCP server. The Crew agent docs do not show an MCP entry, so check the agent's tool list after install.
  • Whether kirocrew accepts this manifest. The CLI was not available when this was written.

Task Runner

To run the deterministic check from a Task Runner spec, put node /absolute/path/to/augeron/packages/cli/dist/index.js check --fail-on CONTRADICTION,BROKEN_REF .kiro/specs in the spec's acceptance criteria. The Task Runner docs do not say how to set the test command, so this is unverified. On a real install, confirm that a failing check stops the step. Do not pass --no-test, which skips test verification.

CLI

augeron check runs the same deterministic audit as the workbench over Markdown files, and prints the findings. It makes no network calls and needs no API key. Build first with npm run build, then run node packages/cli/dist/index.js, or npx augeron from the repo root after npm install.

augeron check docs/                              # every .md and .markdown file under docs/
augeron check --format sarif --output augeron.sarif docs/spec.md
augeron check --fail-on BROKEN_REF,CONTRADICTION specs/
  • --format text|json|sarif picks the report format. The default is text.
  • --output <file> writes the report to a file instead of stdout.
  • --fail-on <list> takes comma-separated flag types, or any (the default). Only findings of those types set exit code 1. The report still lists every finding.
  • -q, --quiet prints nothing in text format when there are no findings.
  • --config <file> reads rule settings from a JSON file. Without it, .augeron.json in the working directory is used when it exists. See Configuration.

A directory is searched recursively for *.md and *.markdown files. node_modules and directories whose names start with . are skipped. Each file must be UTF-8 and at most 204,800 bytes.

Text format prints one line per finding, path:line:col TYPE coordinate message, sorted by file, line, column, and type. Then it prints one path score S/100 line for each file that has findings, and a summary such as 5 findings in 1 file. The file count is the files that have at least one finding. Each file's score uses the same weights as the Spec.Audit score (CONTRADICTION 40, BROKEN_REF 25, REQUIREMENT_SMELL 15, AMBIGUOUS_TERM 15, UNVERIFIED_CLAIM 10): each requirement or flagged node starts at 100 and loses those points per flag, and the file score is the rounded mean of those nodes, or 100 when there are none.

JSON format prints { version: 1, files: [{ path, score, findings: [...] }] }, where score is the file's quality score from 0 to 100. Each finding has type, coordinate, message, relatedCoordinate (when the flag names another paragraph), and startLine, startColumn, endLine, endColumn. Every checked file is listed, including files with no findings.

SARIF format prints a SARIF 2.1.0 log with one run. CONTRADICTION and BROKEN_REF are error results, and the other flag types are warning. Each result carries partialFingerprints (augeron/v1), so GitHub code scanning can match a finding across runs.

Exit codeMeaning
0No failing findings.
1At least one finding has a type named by --fail-on.
2Usage error, an invalid config file, or a file that cannot be read, is not UTF-8, or is over 204,800 bytes.

A file that fails with exit code 2 does not stop the run, so the other files are still checked and reported. Exit code 2 takes priority over exit code 1.

Configuration

augeron check reads rule settings from a JSON file named by --config, or from .augeron.json in the working directory. Without either, every rule runs with its default settings and the output does not change. The VS Code extension reads the same keys from .augeron.json at the root of each workspace folder.

{
  "disable": ["UNVERIFIED_CLAIM"],
  "disableRules": ["INCOSE R24", "RFC 8174"],
  "glossary": ["PSIRT", "as needed"],
  "severity": { "AMBIGUOUS_TERM": "info", "BROKEN_REF": "error" }
}
KeyMeaning
disableFlag types to drop from every document. Names: UNVERIFIED_CLAIM, CONTRADICTION, AMBIGUOUS_TERM, REQUIREMENT_SMELL, BROKEN_REF.
disableRulesRule prefixes of REQUIREMENT_SMELL findings to drop. A prefix matches only up to a word boundary, so INCOSE R4 does not match INCOSE R40. See the table below.
glossaryTerms that count as defined. Matching ignores case and runs on whole words. A glossary term gets no INCOSE R37 flag (undefined acronym) and no AMBIGUOUS_TERM flag.
severityLevel for each flag type: error, warning, or info. It sets the text report label and the SARIF level, where info becomes note.

Unknown keys, a value of the wrong type, and an unknown flag type or severity name are errors. Each error prints to stderr as <file>: <message>, and the run exits with code 2. Settings are checked before any input file is read.

Disabled findings are left out of the report, the file score, and the --fail-on count. Without a severity entry, contradictions and broken references are error and every other type is warning.

disableRules prefixRule
PlaceholderPlaceholder words: TBD, TBC, TBR, TBS.
INCOSE R8Escape clauses: where applicable, as necessary, if practicable.
INCOSE R9Open-ended clauses: etc., and so on, including but not limited to.
INCOSE R17/R19The "and/or" combinator.
INCOSE R18Compound requirement: two SHALL or MUST in one sentence.
INCOSE R24Pronoun as subject: It, They, This, and so on.
INCOSE R26Absolutes: always, never, every time, at all times, 100%.
INCOSE R30Duplicate requirement.
INCOSE R37Undefined acronym.
INCOSE R40Bound number with no unit.
RFC 8174Requirement keyword in the wrong case, when the document cites BCP 14.

Comparing two versions

augeron diff <before.md> <after.md> compares an earlier and a later version of one spec. It reads both files with the same rules as check. Each run prints a summary line, N new flags, M resolved, A added, R removed, C changed paragraphs. Score B -> A., then a section for each non-empty list: new flags, resolved flags, and changed paragraphs.

augeron diff docs/spec-v1.md docs/spec-v2.md
augeron diff --format json docs/spec-v1.md docs/spec-v2.md > diff.json

Paragraphs are matched by their text first, so inserting a paragraph does not mark every later paragraph as changed. The rest are matched by coordinate and role. A flag is the same flag in both versions when its type and message match. The message quotes the text it flags, so rewording a flagged phrase counts as one new flag and one resolved flag.

  • --format text|json picks the output. text is the summary and sections. json prints the comparison object, with added, removed, changed, newFlags, resolvedFlags, beforeScore, and afterScore.
  • Exit code 0 means no flag is new. 1 means at least one flag is new. 2 means a usage error, or a file that cannot be read.

VS Code

packages/vscode is a VS Code extension that runs the same audit in-process through @augeron/core. It has no language server. Each Markdown file is checked on open, on save, and 300 ms after an edit. Contradictions and broken § references show as errors. Other findings show as warnings. Set augeron.enable to false to turn it off.

To build and install the extension:

npm install
npm run build                       # also bundles packages/vscode/dist/extension.cjs
cd packages/vscode
npx --yes @vscode/vsce@latest package --no-dependencies --allow-missing-repository
code --install-extension augeron-vscode-0.1.0.vsix

The first npx run downloads @vscode/vsce from npm. The .vsix is gitignored.

Architecture

PathPurpose
packages/coreDomain engine: parser, view projections, level clip, analyzers, tokenizer, command registry, history. No DOM, React, fs, or network calls.
packages/cliaugeron command-line checker over @augeron/core: text, JSON, and SARIF reports. See CLI.
packages/webReact and Vite workbench. Owns DOM events, hotkeys, localStorage, and the optional LLM adapter.
packages/mcp-serverStdio MCP server with five tools over @augeron/core: augeron_parse_document, augeron_project_viewspec, augeron_run_pipeline, augeron_verify_audit, and augeron_patch_node.
packages/vscodeVS Code extension that runs the audit in-process over @augeron/core and shows its findings as diagnostics. See VS Code.

MCP server

  • The server uses the MCP TypeScript SDK v2. It imports McpServer from @modelcontextprotocol/server 2.4.0 and serves stdio with serveStdio from the same package. Schemas use zod 4. @modelcontextprotocol/client 2.4.0 is a dev dependency, used by the tests. The server supports protocol revisions 2025-11-25 and 2026-07-28. A client that sends no version probe, or uses the default handshake, gets 2025-11-25. A client that probes with server/discover or pins 2026-07-28 gets 2026-07-28.
  • augeron_run_pipeline returns logTitle, logBody, affectedCoordinates, mutated, and flags. flags lists every flag in the resulting document, in document order. updatedMarkdown appears only when mutated is true. The full updatedTree is left out unless the caller passes includeTree: true. response_format takes concise (the default) or detailed. The two return the same payload today, because logBody already holds the full log text.
  • Each tool returns its result twice: as JSON text, and as structuredContent that matches the tool's outputSchema. A failed call returns isError: true with the error text and no structuredContent. All five tools declare readOnlyHint, idempotentHint, and no destructive or open-world effects.
  • augeron_patch_node replaces the text of one § paragraph or heading and returns updatedMarkdown, affectedCoordinates, and flags. The replacement must be one block of the same kind. The result is re-audited.
  • targetCoord selects a § coordinate before the pipeline runs. Commands whose catalog scope includes the selection honor it, and a selected heading covers its subtree for Spec.Audit and Cite.Verify.
  • Limits: Markdown is at most 200 KB (204,800 UTF-8 bytes). A replacement is at most 20 KB. A pipeline has at most 10 stages. A response larger than 1 MiB is replaced by an error, so the server never sends an oversized payload. The payload is counted once, although a successful response carries it both as text and as structuredContent.
  • System.Undo, System.Redo, System.ClearLog, System.History, Tool.Check, Review.Mark, Review.Clear, Review.Comment, Review.Resolve, Review.Reopen, Review.List, and Review.Export are rejected, because they need browser state. The browser-only tokens are rejected too. Find.Look, Link.Back, and Help.Show run here.
  • View.Level is accepted and logs the clip. Within one augeron_run_pipeline call, stages share the full state, including the clip. Each call starts without a clip, so the clip does not carry into later calls.

Invariants

packages/core/tests/invariants.prop.test.ts checks eight properties with fast-check. Most run 600 generated cases, and the outline-command property runs 200. Five cover INV-1 to INV-5, listed below. Two more cover View.Brief and Spec.Ledger: brief and ledger leave rawText, node ids, and indexByCoord unchanged, every ledger row is either in the brief or listed as omitted, and every keyword sentence in the brief has a ledger row. The last checks that undo and redo restore exact trees after Outline.Promote, Outline.Demote, and Outline.Move.

  • INV-1: View-Spec projections leave the tree unchanged. The a view shows every node, and rawText is never altered.
  • INV-2: Every node has a unique § coordinate that resolves back to its id.
  • INV-3: Undoing a mutating command restores the earlier tree, and redo restores the result.
  • INV-4: parseCommand(formatCommand(c)) equals c.
  • INV-5: Auditing a document after Doc.InjectFlaw gives strictly more flags than auditing it before.

View.Level has unit tests in packages/core/tests/view-level.test.ts. It is not part of the property suite.

Continuous integration

.github/workflows/ci.yml runs on every push and pull request. It uses Node.js 22 and runs npm ci, npm run build, npm run typecheck --workspaces --if-present, and npm test. The build runs first because the web and mcp-server typechecks resolve @augeron/core from its dist output.

Built with Kiro

This project was built with Kiro as a spec-driven workflow. The repository keeps its Kiro artifacts at the root, on purpose.

  • .kiro/specs/augeron-workbench/: requirements.md, design.md, tasks.md (the phase checklist), and ui-design.md (the drafting-sheet design system and its three themes).
  • .kiro/steering/: product.md (zero-menu UX and scope), architecture.md (package boundaries and the deterministic-fallback rule), and oberon-nls-grammar.md (the § coordinate and command token grammar).
  • .kiro/hooks/verify-invariants.json: a PostFileSave hook named verify-core-invariants. It matches saves under packages/core/src and runs the fast-check suite.
  • .kiro/skills/kiroween-preflight/: checks repo structure and submission readiness.
  • .kiro/settings/mcp.json: registers the local augeron stdio server. Kiro starts it from the repo root with node packages/mcp-server/dist/index.js, which needs npm run build first. kiro-cli 3.5.0 loads it and lists the server.

License

MIT. See LICENSE.


Hackathon context

Built for Kiroween 2026 (Kiro × Devpost). Category: Resurrection. Research notes are in docs/, which is listed in .gitignore and not tracked in git.

MCPB
https://github.com/R-Hruthvik/kiroween/releases/download/v0.1.0/augeron-mcp-0.1.0.mcpb
Install Command
# mcpb: https://github.com/R-Hruthvik/kiroween/releases/download/v0.1.0/augeron-mcp-0.1.0.mcpb