Skip to content

About

Semantic Release Auditor: reads your app the way your users do, and turns every discovery into a check your next release has to pass. Built on Muse Spark.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Semantic Release Auditor

Semantic Release Auditor turns validated discoveries, from developers and AI agents, into reusable release checks. Each one keeps the user's journey, the rule that was broken, and the evidence, so the next release doesn't start from zero.

Watch the 3-minute demo video · live sample review

Demo video: Tests check the code. SRA checks what your users experience.

The Python package is semaudit; the short name is SRA. It was built during the Meta Global AI Developer Hackathon (Oct 26 – Nov 4, 2026). The reusable checks are a prototype: tested on one open-source store, with the limits listed below.

Try it in 2 minutes (no key)

No model key, no Docker, no browser download, no network after the install. Python 3.12:

git clone https://github.com/jaykay2000/semantic-auditor && cd semantic-auditor
python3.12 -m venv .venv && .venv/bin/pip install -e .
.venv/bin/semaudit demo

It rebuilds two pages from files committed in this repo and prints where they went (runs/demo/ by default):

  1. the release review page for Northbound 2.3 → 2.4 (a fictional travel app with synthetic travellers), the same page that is hosted;
  2. the saved-check cards from the owner's run of the two approved Spree checks (ic-owner-rec-1, 2026-11-01).

Each rebuilt file is compared byte for byte with its committed copy, and the command says so. To check the review itself against its pinned inputs, also offline: .venv/bin/semaudit verify-report docs/try-it/northbound-2.3-2.4/review-2.3-2.4.json (prints CONSISTENT). The sample review is the Northbound 2.3 → 2.4 review run sc-live-2 (2026-11-18, with the judge self-check on), from the recorded episodes and readings of the earlier sample with fresh defender replies, after the defender's instructions changed; one issue's verification moved from verified to partly verified (details). It makes no model call: it only re-renders recorded results, and its test runs it with every model call and network connection made to fail (tests/test_demo.py). The inputs are listed in docs/try-it/demo.json. Running a new review or a saved check needs a model key and the app (see Capture and Reproduce the Spree demo).

The loop

 discovery: a developer, a user or an AI agent reports a problem, in their own words
     │
     ▼
 Muse Spark Open drafts the user's JOURNEY (a persona and the steps the app's driver can perform)
 and the RULE it broke (one of the owner's rules, the page or email it applies to, a statement with no figures)
     │
     ▼
 a deterministic GATE checks every step against the report's own text and refuses what it cannot verify
     │
     ▼
 the owner APPROVES the check, pinned to its exact content
     │
     ▼
 REPLAY on a release: every page and email captured, beside the app's own records (for a store, the order record)
     │
     ▼
 three separate readings of the rule ──► fixed · still open · came back · did not reproduce · not confirmed
     │
     ▼
 SAVED: the next run loads the approved check from storage and runs it again

Two terms, used throughout:

  • A journey is what one user does: who they are (a persona) and the steps, written in the app's own action words (its adapter's verbs, such as add_to_cart or place_order).
  • A rule is one of the owner's written rules about what the user should experience, for example "the email's breakdown must add up to the order total, each part counted once, checked against the store's order record".

Reusable checks (prototype)

Code: src/semaudit/imported/. Measured results: docs/evidence/imported-checks/README.md.

What a saved check holds

A check is one YAML file, checks/<id>.yaml, in the app's contract folder (record.py):

  • actions: the persona and the journey's steps;
  • invariant: the owner's rule, the surface it applies to (a page or an email), and a statement of what must hold;
  • source: the original finding, word for word. Its quote is kept as evidence of what was reported. It is never shown to the model that judges the replay.

The owner approves the actions and the invariant. The source is kept but is not part of what is approved.

How a finding becomes a check

convert.py: one model call drafts the journey and the rule from the finding's own "how to reproduce" text. A deterministic gate then checks:

  • coverage: the draft's pieces are verbatim parts of the reproduce text and cover all of it, so no instruction is dropped silently;
  • verbs: every step uses a verb the app's driver has and the contract describes;
  • actions: every action in the text is carried out by a step, or named as unmapped;
  • persona: only fields the contract defines, with values that come from the text or a declared default;
  • invariant: a real contract rule, on a surface a step reaches, with none of the report's figures in it.

A draft that fails is redrafted once with the gate's errors. The result is one of converted, partially_converted, adapter_gap (needs a step the app's driver can't perform) or not_converted. Only a converted check can be approved. Conversion has no CLI command yet; an app's harness calls semaudit.imported.convert.convert(...).

Commands

Command What it does
semaudit checks approve --contract DIR --check ID --by NAME Approves one converted check at its current content. It writes check:<id> with the content digest (a short hash of the actions and the invariant), who approved, and the date into the contract's approvals.yaml.
semaudit checks run --contract DIR --base REL --head REL --run-id ID --max-usd N Loads the approved checks from storage only (approvals.yaml, checks/<id>.yaml, dispositions.yaml) and imports nothing. A check whose content changed since approval is refused and listed. Each approved check is replayed fresh on both releases, judged, and its outcome is added to the memory. Writes runs/<id>/saved-checks.json with the hash of every file it loaded.
semaudit checks card --contract DIR --out FILE [--saved saved-checks.json] [--check ID] Renders the check cards page: the original finding, the journey and rule, the four statuses, and the older release beside the newer one.

Saved checks run with semaudit checks run. They are not yet part of semaudit review or shown on the release review page.

Four separate statuses per release

recheck.py records four statuses and never merges them:

Status Values What it says
Replay succeeded · failed Every step ran, nothing was left unmeasured, the app did not refuse a step the finding needs, and the rule's page or email was captured with at least one message. No model is involved.
Rule result pass · fail · not_measurable The majority of 3 seeded readings by the same model. Each reading sees the rule, the captured messages on that surface and the app's own record, never the original quote.
Readings that agree 3/3 · 2/3 · lower How many of the 3 readings agree with the majority. The replay can be repeatable while the reading varies; this says how much.
Evidence verified · partially_verified · unverified Every quote in the majority readings is checked against the captured text, and every record value they cite against the record itself.

A PASS needs both a satisfied rule and verified evidence. A majority pass whose evidence is less than verified becomes not_measurable, and the card says why. A replay that failed is never judged. A reading whose reply is not JSON, or is JSON that does not match the judgment schema, counts as not_measurable (the schema check was added in 9cfdde2).

Memory: what happened between two releases

decide/memory.py compares the older release (base) with the newer one (head):

Status Meaning
fix_confirmed fails on the base, passes on the head with verified evidence
still_open fails on both releases
regressed passes on the base, fails on the head ("came back")
not_reproduced passes on both: the reported condition did not reproduce on the base
not_confirmed something was not measured: a replay failed, no majority, or a head pass without verified evidence

Outcomes are appended to the contract's dispositions.yaml, beside the owner's decisions on release issues.

Owner approval is pinned to content

Outside measurement runs, a check replays only if approvals.yaml holds the digest of its current actions and invariant. Edit a step or the rule and the old approval no longer applies: checks run refuses the check until it is approved again (contract/approve.py, saved.py).

What was measured

All from docs/evidence/imported-checks/README.md:

  • Held-out set: 57 agent findings from Spree experiments, set aside before any converter code was written (holdout.json). The converter was frozen, then run once.
  • Conversion: 6 of 57 converted fully (11%); 15 partially; 5 needed a step the store's driver can't perform; 31 not converted (heldout-conversions.txt). No converted check contains an invented action.
  • Replay: 6 checks × 3 releases × 3 fresh replays. The rule result was the same in all 3 replays for 17 of 18 check-and-release pairs (heldout-replays.json).
  • The demo check (C1-04, an agent's free-shipping email finding). Picked before its result was seen (DEMO-PICKS.md). It FAILs on Spree 6.0.0.beta2, where the email's lines add up to $179.38 but it shows $194.38. It PASSes on beta3, where shipping shows $15.00 and the lines add up.
  • The video run is Run 3c, started from storage with nothing imported (run3c-transcript.txt, cards-run3c.html). C1-04: beta2 FAIL 3/3 with verified evidence, beta3 PASS 3/3 with verified evidence, memory fix_confirmed. A variant with a different basket (three blenders) gives the same FAIL then PASS, also fix_confirmed.
  • Why keep discoveries at all. Three AI agents (one built on Muse Spark) explored the same store against the same rules, two runs each, graded blind. Each run found real problems, but a different set: two runs of one agent shared as little as about half of the problem types they found, and the best single run found 13 of the 18 types all runs found together. SRA's own reviews found fewer, the same ones every run (evidence).
  • A second app, refused. Finablo's 401(k) limit bug was tried as a check. The developers' written record names what the user saw but no step they took, so the frozen converter graded it partially_converted and SRA refused to approve it. That is the gate working. The bug stays one of SRA's own release-review journeys (docs/evidence/imported-checks/finablo/README.md).
  • Earlier runs, kept as they came out. Run 2 did not pass: the newer release was not_measurable because 2 of 3 readings ran to the reply-length cap. In Run 3, one reading wrongly passed the broken email and was outvoted 2 to 1; that is why agreement is its own status.
  • Stability: 10 more runs from storage (2026-11-01, after the owner's approval), in two batches of 5. The same run-saved against the live local stores, nothing changed between runs. No run gave a wrong outcome: whenever the replay and the evidence held, it was FAIL on beta2 and PASS on beta3. Batch 1: C1-04 fix_confirmed in 3 of 5 runs, the blender variant in 2 of 5; the misses were 2 garbled record values and 3 browser replays that timed out on dev-mode storefronts that had slowed down after nearly two days. Batch 2, after restarting the two storefronts: 8 of 10 check runs confirmed, every replay finished, and both misses were garbled record values (one of three readings still wrote junk such as '$179.98 converted to 179.98 copied as 179.98' for the item total after its re-asks, so its evidence was only partly verified). Together 13 of 20; $4.40 for the 10 runs (evidence). So the check gives the right answer when it gives one, and about 1 run in 5 still ends without one because of garbled record values.
  • Cost (Muse Spark Open on Baseten): about $0.05 per conversion; $0.035 to $0.087 per replay on the held-out set, before the two judging fixes. With them, Run 3c cost $0.54 all-in for 2 checks on 2 releases, about $0.14 per check per release, because garbled replies are asked again. Run 3c cost $0.54 for 12 readings, because garbled record values forced re-asks.

Limits

  • Prototype. Saved checks have run on one store (Spree) only, with one driver and one converter version.

  • Narrow import. 6 of 57 held-out findings converted (11%). In the six finding groups reported only by the agents, 0 of 24 findings converted.

  • Two judging fixes were made after results were seen, and both are disclosed in the evidence README: a reply cap with fresh retries for runaway replies (the judge role is capped at 6,000 tokens, up to 4 tries), and a re-ask, up to 3 times, when a reading writes a garbled record value. A clean number that is wrong is never re-asked. Neither touches the frozen converter, the gate or the rule. One rule was made stricter at the same time: a PASS now needs verified evidence.

  • Approval in the recorded runs. For the acceptance runs up to Run 3c, the approvals of C1-04 and its blender variant were written by the build session under the owner's plan and labelled "owner has not reviewed this digest"; those runs keep that record. On 2026-11-01 the owner approved both digests under their own name and ran the saved checks again from storage (ic-owner-rec-1): C1-04 fix_confirmed; the blender variant not_confirmed, because one reading's record values could not be verified (evidence, cards).

  • The "next" release changes only the storefront. No newer Spree backend was available, so the emails did not change between beta3 and the next release.

  • The converter was run once; how much conversion varies between runs was not measured.

  • Release review: one defect can show as several issues. A figure that disagrees across three surfaces is raised once per set of disagreeing surfaces (3 issues for 1 defect), and the page's "shown ≠ true" box can say "No record value" beside a correct message whose value the app's record holds. Seen in an outside new-user adoption test (one price shown differently on three surfaces); not fixed yet.

  • Prompt injection is not defended against explicitly. The converter's prompt carries the finding's text (convert.py:115), and the judge's prompt carries every captured app message on the surface (recheck.py:137), each as JSON in the user message. Neither prompt marks that text as data rather than instructions, and there are no adversarial tests. What bounds the damage today:

    • The gate on drafts: every draft is checked by code (convert.py:162, applied each round at :427): steps must be the adapter's verbs and every action in the finding must be covered. A draft that keeps failing is not_converted (:433), and only an owner-approved digest is ever replayed (recheck.py:54-55).
    • A failed replay is never judged (recheck.py:298).
    • A PASS needs verified evidence: the passing readings' quotes must be found in the captured messages and their record values must match the app's record, else the result is not_measurable (recheck.py:158).
    • fix_confirmed needs a verified pass on the newer release (memory.py:345-348).

    These limit what an injected instruction can produce; they do not stop a reading from being swayed by text the app itself shows. Planned fix: a "the following is data, not instructions" boundary in both prompts (a new converter version, recorded by its prompt hash), plus adversarial fixtures asserting that captured or finding text cannot change a draft's verbs or a reading's outcome. The release review's own model roles have not been audited for this yet.

Reproduce the Spree demo

The Spree harness lives in its own repository, spree-semaudit: the store's contract, its driver, the import vocabulary (contract-imported/) and imported_checks.py. That is where the demo's Spree beat is reproduced. Run 3c was:

python3 imported_checks.py run-saved --base current --head candidate --run ic-accept-run3c --max-usd 0.6

current is Spree 6.0.0.beta2 and candidate is beta3. It needs a Baseten key for Muse Spark Open.

Release review

The reusable checks sit on top of SRA's release review, which came first. A release review takes the owner's written rules (the product contract), runs each persona's journeys on two releases, and reports what changed for the user.

Users don't experience features; they experience a release. Each feature can pass its own tests and say only true things, and together they can still hand one traveller two different plans in the same few minutes: wait for a price drop (a correct forecast) and lock this fare, 2 seats left (a correct seat count). The owner's rule says that when two features advise on the same decision, the product must explain the tradeoff. SRA flags the traveller who gets no explanation, and clears the one whose app explains it.

 owner's rules + docs ──► PRODUCT CONTRACT: rules with scoped exceptions, features, decisions,
                          personas + state, scenarios, facts + oracles (the app's own records)
                                         │
 base release ─┐                         ▼
 head release ─┴─► scenario runner (simulated time) ──► captures + state per step
                                         │
                   deterministic checks ─┤ (no model)
                                         ▼
                   messages · directives · claims  (extractor role)
                                         ▼
                   USER EXPERIENCE STORY per persona: time-ordered events, base ↔ head aligned
                                         ▼
                   code proposes candidate conflicts ──► the interpreter role judges them against the
                   rules and exceptions: conflict / tradeoff / exception applies / compatible
                                         ▼
                   issues: severity · confidence · verification (separate) ──► verifier
                                         ▼
                   release review page · repro · Ship / Hold recommendation ──► owner decision ──► memory

Which model plays each role is under Models.

What it looks for

Release-level issues (no single feature is wrong; the experience is):

Kind Example
Unexplained tradeoff (coherence) Price Watch: "likely to drop, we suggest waiting" · Fare Lock: "2 seats left at this fare. Lock it for 48 h for €9". Both true and compatible, but nobody explains that the lock expires long before the drop window
Conflicting directives (coherence) Price Watch: "wait" · Fare Lock's urgent variant: "Book now". Incompatible and unreconciled
Stale guidance after booking: "Keep waiting to book. We'll tell you when prices drop."
Rule breach for this persona urging immediate booking on a trip six months away, which the owner's rule forbids for non-imminent trips
Attention load four non-booking messages in 24 hours

Factual issues (the conventional layer, still checked):

Kind Example
Fact divergence the lock is shown at €9, and a couple buying it is charged €18
False claim "only 2 seats left" when inventory shows 9

What it deliberately does not raise:

  • urgency that an approved exception permits, with every condition met (departs within 72 h, seat count true, tradeoff explained);
  • an explained tradeoff;
  • messages that are never live at the same time;
  • persona-specific facts;
  • transactional repetition;
  • actionable post-purchase offers.

An exception to one rule never excuses another: permitted urgency can still be raised for incoherence.

These examples come from Northbound, a fictional travel app written for this project (examples/northbound). Its rules are written by the owner, not imported.

Capture

semaudit capture runs each persona's scenarios against one release of the app and writes episodes: the ordered steps, everything the product showed or sent, and the oracle state after each step. It costs no model budget.

pip install -e '.[test]' && playwright install chromium     # the same extras as "Run the tests" below
semaudit capture --contract examples/northbound/contract --release 2.4 [--persona maya --persona omar] [--run-id ID] [--runs-dir runs]

The runner starts the release from the contract's app.launch on a free port and stops it afterwards. For each step it sets the simulated clock (which runs due jobs, so emails and pushes sent between steps exist), lets the app's adapter (app.adapter, here examples/northbound/adapter.py) perform the verb in Chromium (1280x900), captures the page it landed on (DOM, screenshot, marked elements), captures every new email, push, chat transcript and PDF, and snapshots every oracle. Output: runs/<run-id>/episodes/<release>/<persona>__<scenario>.json plus artifacts under runs/<run-id>/captures/. Exit 0 when every step ran; exit 2 if a release would not boot or a step failed or a surface could not be measured (the episodes are still written). Format: src/semaudit/story/episode.py. Adding an app means writing its adapter; the runner is generic.

Review a release

semaudit contract check examples/northbound/contract        # validate; lists items not yet owner-approved
semaudit review --contract examples/northbound/contract --base 2.3 --head 2.4 --max-usd 3
semaudit repro <issue-id> --review runs/<id>/review-2.3-2.4.json --max-usd 1   # re-capture + re-derive one finding
semaudit verify-report runs/<id>/review-2.3-2.4.json                           # offline: is the report what its inputs give?
semaudit review ... --repeats 3                                                # each model-judged verification step 3 times (n of k)
semaudit compare-prompts runs/<id>/review-2.3-2.4.json --old <commit> --repeats 3 --max-usd 2   # old vs current defender prompt
semaudit coverage runs/<id>/review-2.3-2.4.json [--draft --max-usd 0.1]       # what the personas never exercised; drafts
semaudit coverage-accept runs/<id>/coverage-drafts.yaml --id <draft> --contract <dir>   # add one draft, owner's call
semaudit decide <issue-id> fix --review runs/<id>/review-2.3-2.4.json --by <you>   # or not-an-issue --reason …, accept --expires …
semaudit decide-release hold --review runs/<id>/review-2.3-2.4.json --by <you>
semaudit serve --review runs/<id>/review-2.3-2.4.json --by <you>                 # the page with working decision buttons

review exits 0 only for a decided Ship: every persona measured, every contract item owner-approved at its current content, and the judge self-check passed (or turned off). Otherwise the recommendation is provisional (exit 1) or not_measurable (exit 2), and the release review page says why. In review --reader mode (used for the Spree and Finablo reviews in the demo) the model reads every rule and every captured story and names the issues, and SRA checks each citation against the captures (docs/03-architecture.md).

Judge self-check (on by default). Before a review may say Hold or Ship, its model judge (the interpreter role) answers 6 fixed cases with the review's own prompt, in calls of its own: 3 with one planted mistake it must catch, 3 correct ones it must clear (examples/judge-self-check.yaml, built only from the Northbound dev fixture). Code scores the answers. The review page and the CLI show one line, such as "Judge self-check: 6 of 6 planted cases answered correctly". If the judge gets any case wrong, or the self-check cannot run (no key, no budget left, an unreadable reply), the outcome is not_measurable ("can't tell", exit 2) with the reason and the case ids. Its spend counts toward --max-usd; --no-self-check turns it off and says so on the page. It never changes an issue or the policy row. First live run, Northbound 2.3 → 2.4 on Muse Spark 1.3: 6 of 6 for $0.046 in rules mode, and 6 of 6 for $0.042 for the reader-mode cases run on their own. It covers the interpreter only, not the extractor, the verifier or semaudit visual, and its cases come from the fixture the prompts were tuned on, so it is a canary, not an accuracy figure (evidence).

Verdict stability (opt-in). One model reply can move a verdict. review --repeats K runs the second-model check and the defence K times per issue: a step passes only if every run passed, fails only if every run failed, and is otherwise mixed, which neither verifies nor drops the issue and caps its confidence at low; each step records n of k and the page shows "held in n of k runs". compare-prompts re-runs a recorded review's verification under the defender instructions of an earlier commit and under the current ones, K runs each, so a prompt change can be told from run-to-run variation. First measurement, the Spree 6.0.4 false alarm (a payment read as the tax), 3 runs per prompt: with the old instructions the defence never stood (0 of 12 runs dropped an occurrence); with the current ones 3 of the 4 occurrences were disputed in all 3 runs, and the fourth in 2 of 3, so it is mixed, not verified. $1.97 (evidence).

Coverage drafting. semaudit coverage <review> lists, offline and for free, what a review's personas never exercised: rules that never fired, figures a rule never compared (and how often each was shown at all), screens nobody reached, exceptions that never applied. Figures no persona can get checked (no oracle value, or text with no word list) are listed apart, with what the contract would need. --draft asks one model call for personas that would close the gaps; code checks each draft against the contract, and coverage-accept adds one only when the owner says so. A draft is a guess until it runs: on the Spree 6.0.4 store the first draft's code was refused, and the owner moved the code step after delivery; the second closed the discount total on every surface. Readings are kept per message, so adding a persona reads only its own pages. $0.68 in all (evidence).

On a real app, Finablo v707 → v731 (24 release numbers apart, reader mode, 2026-11-01). SRA reported 3 fixes, all real per the code history. It flagged 2 new issues that the owner confirmed: 1 regression, bisected to v708, and 1 small one, both on target personas (written earlier to reproduce a known bug), not blind ones. It raised 2 pre-existing issues (the owner: 1 real, 1 unsure). Limits: each reading alone missed items the other caught, and reworded copy gave 1 false "new" label and left 4 fixed items unconfirmed until checked by hand. $6.26 for both runs (counts and verdicts only).

Visual confirmation (opt-in, off by default). semaudit visual <review.json> --out <copy.json> --max-usd 0.10 asks a model that reads images ([roles.vision] in semaudit.toml) whether each issue's flagged value is visible on its screenshot and says what the text says, and writes a copy of the review with visual (confirmed, contradicted or unreadable) and its basis on each issue it checked: verifier if the verifier confirmed the issue, evidence_linked if only its quote was matched to the capture. It never changes a verdict, a verification status, PASS, fix_confirmed or the outcome, and it does not find new issues or read emails or PDFs (first measured on the Spree tax line). On every eligible issue with a screenshot in 21 review files of three apps (Northbound, Spree, Finablo: 65 issues, but only 31 distinct crops, because many issues point at the same element), one figure in each claim was changed to another figure from the same page: all 58 planted wrong values came back contradicted. The real claims came back 58 confirmed, 2 contradicted and 5 unreadable. One contradicted caught a reader issue that cited the wrong element; the 5 unreadable are exact readings that differ only by an emoji or a curly apostrophe, which SRA's strict comparison does not normalize. $0.15 in all, one seed, mostly clean text (evidence).

Add your app

Adding an app needs no core change: a contract (rules, decisions, features, surfaces, facts and oracles, subject.yaml for who the user is and what describes their situation, personas, scenarios, release policy), an adapter for its scenario verbs, and, in the app, read-only "oracle" endpoints for its own record plus optional test hooks (reset, persona, clock, world). Start from a copy of examples/northbound/. The step-by-step guide, with the first run and what it costs: docs/10-add-your-app.md.

Without a model key you can run the tests, check and render a contract, and capture releases. A review needs a key: the model cache and run folders are not committed, so a fresh clone has no cached answers to replay. tests/test_core_is_generic.py keeps app vocabulary out of src/semaudit/ and runs a non-travel contract through the rules.

Use another model

Muse Spark is the measured default (next section). semaudit.toml maps each role to a provider and model; besides the built-in meta, baseten and anthropic, any OpenAI-compatible endpoint can be added as [providers.<name>] with base_url, key_env and optional prices. Built-in names cannot be redefined, an unpriced model is logged as unpriced (never $0) and refused under --max-usd, and a non-schema reply can never pass. The config is tested offline only, with a mocked HTTP layer. Trust boundary: semaudit.toml and the contract are trusted, owner-controlled code: SRA runs the contract's adapter as Python, and a provider entry sends the environment variable it names to the URL it names (https only; plain http only to a loopback host). Run semaudit only where you trust both. A key the endpoint echoes back is redacted as sent, URL-encoded, base64 or hex, but a key split across fields cannot be caught by redaction: the endpoint receives the key anyway, so only use one you trust. See docs/10-add-your-app.md, "Use another model" and semaudit.toml.example.

Models (measured)

Every model call goes through semaudit.models.complete(role=…); the role names a job, and the model for each role is set in the app's semaudit.toml (defaults in router.py). This table is what the runs actually used.

Role Job Northbound (fictional travel app) Finablo (real finance app) Spree (real open-source store)
extractor reads messages, directives and claims out of each capture Muse Spark 1.3 (Meta API) not called (reader-mode review) Muse Spark Open (Baseten)
interpreter judges candidate conflicts against the rules; in reader mode, reads every rule and story Muse Spark 1.3 Muse Spark 1.3 (Meta API) Muse Spark Open
cross_checker_extract, cross_checker_interpret second pass over extraction and interpretation Muse Spark 1.2 not called Muse Spark Open (extract only; interpret had 0 calls)
defender argues against every issue occurrence Muse Spark 1.2 not called Muse Spark Open
importer drafts a check's journey and rule from a finding — Muse Spark Open (1 call; the draft was refused) Muse Spark Open
check_judge the 3 readings of a saved check's rule — — Muse Spark Open

Model IDs: muse-spark-1.3 and muse-spark-1.2 on the Meta Model API; meta-models/muse-spark-open-1026 on Baseten.

How this was measured (2026-10-31): the models and model_settings fields in each review's manifest (Northbound runs/e2e-2/review-2.3-2.4.json; Finablo review-10ff1e3-a183626.reader.json; Spree spree-scale-2t/review-v6.0.0.beta2-v6.0.0.beta3.reader.json), the role and model on every row of each run ledger (this repo's runs/ledger.jsonl, the Spree harness's review-root and import-root ledgers, and the Finablo harness's import-root ledger), and the models recorded on every saved-check result (for example run3c-saved-checks.json). Run folders and ledgers are not committed.

Not independent. Each app uses one model family for every role (on Spree, one model), so a second pass is not independent agreement. The verifier records "reduced independence" and caps confidence at medium.

Not built: Muse Voice Transcribe (turning the owner's spoken intent into draft rules), and onboarding, which would draft a contract from the owner's docs (src/semaudit/onboard/ and explore/ are empty). The router can also call a non-Meta provider, added for a control experiment; no result in this README or the demo comes from it.

Run the tests

No model key, no app and no network beyond the package install. Python 3.12:

git clone <this repo> semantic-auditor && cd semantic-auditor
python3.12 -m venv .venv
.venv/bin/pip install -e '.[test]'
.venv/bin/python -m playwright install chromium
.venv/bin/pytest
.venv/bin/ruff check .
  • .[test] installs the demo app's server (FastAPI, uvicorn, fpdf2), the anthropic SDK (the router supports it; its tests mock every call), pytest and the pinned ruff.
  • Without the playwright install chromium step, the tests that drive a real browser skip with that reason; everything else still runs.
  • About 40 tests always skip on a fresh clone: they check facts of runs/e2e-2, the recorded Northbound demo run (10 MB of captures, kept out of git), and say so in their skip reason.
  • Every model call in the suite is mocked.

Documents

Also: Hackathon compliance and provenance · Northbound demo app · Benchmark · Finablo integration · Spree tax line, reported and fixed upstream

Layout

src/semaudit/  adapters · capture · contract · story · extract · relate (rules and conflict candidates)
               · verify · decide (issues, memory, reader) · report (review page, tickets) · imported (reusable checks)
               · models (role router) · bench
               (check · explore · graph · onboard are empty placeholders)
examples/      Northbound: a fictional multi-feature travel app (2.3 / 2.4 / 2.4.1)
bench/         frozen-fixture protocol, baselines, results
integrations/  how a consumer app adopts the auditor (first: Finablo)
demo/          video assets and upstream evidence
docs/          design documents and measured evidence

Publication notes

  • Dependencies are not locked. pyproject.toml gives lower bounds only (ruff is pinned exactly); there is no lock or constraints file, so a fresh install resolves the newest compatible versions.
  • The git history was rewritten once, on 2026-11-03, before submission. An editor swap file and an API key (since revoked) were removed from old commits, and three lines of unrelated wording were dropped from old file versions. Every commit keeps its author, committer, dates and message; commit ids changed, and every id cited in this repo and in jaykay2000/spree-semaudit was updated to match. Commits carry the author's name and email and co-author trailers.

Status

Built during the Meta Global AI Developer Hackathon (Oct 26 – Nov 4, 2026). Licensed under Apache-2.0 (LICENSE).

About

Semantic Release Auditor: reads your app the way your users do, and turns every discovery into a check your next release has to pass. Built on Muse Spark.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages