JT / SAGE IDEAS Work with me

Sample report: audit of this site, not a client

AI Release-Readiness Audit

Sage Atlas (this site): its chatbot and scoping assistant, eval engine, labs, tests and release path.

Audit date
Auditor
Jason Teixeira
Method
Read-only repo review, one test command run
Edition
Sample 1.0

Download the PDF Book a 15-minute call What the audit includes

Overall readiness

Readiness dial for this site: level 1.9 of 4, Defined 01234 1.9 of 4 · Defined

Defined, not yet gated.

01 · Executive summary

Ready to demo. Not yet gated.

The deterministic site is gated well and honest about its limits. The AI behaviour on top of it is not gated at all: a prompt or model change reaches visitors with no eval in between. Three High findings, two of them a day's work, one a real project.

1.9/4overall level: Defined
10findings: 3 High, 5 Medium, 2 Low
6fixes sized S, part of a day each

Fix first

  1. R-01 High S396 API tests sit outside the release gate
  2. R-02 High SThe headline eval result has no receipt you can re-run
  3. R-03 High LNo gate checks model behaviour when a prompt or model changes

What held up

  • Limits are published next to the numbers
  • Server-side allowlists, not trust
  • Cost and abuse are bounded

All 6 strengths

02 · Scorecard

Eight dimensions, scored against a rubric.

Levels are an assessed judgement against the rubric below, not a measurement. Each score carries its reason and the facts behind it.

Overall readiness: level 1.9 of 4, Defined 01234 1.9 of 4 · Defined

Mean of the eight levels below.

  1. Eval coverage

    2/4 Defined

    Three surfaces have defined checks. Committed eval data in this repo covers scoping mode only, and nothing maps failure modes to cases.

  2. Golden sets

    2/4 Defined

    Sets exist, are versioned and are published with their limits. They hold 4, 7 and 14 cases, which the site itself calls a start.

  3. Release gates

    2/4 Defined

    The deterministic gate is real and honest. No gate looks at model behaviour, and the API tests sit outside it.

  4. Regression

    2/4 Defined

    The pattern is proven in a labelled simulation. The real API tests pass when run, but nothing runs them on a change.

  5. Observability

    1/4 Ad hoc

    Error reporting is dormant until a DSN is set, and the chat handler records no conversation or quality signal.

  6. Guardrails

    3/4 Automated

    Layered and enforced server-side: caps, allowlists, rate and budget limits, a scripted fallback. One mode skips the price backstop.

  7. Rollout and rollback

    1/4 Ad hoc

    Prompts ship with code and the model is an environment variable. No flag, canary or written rollback path exists yet.

  8. Data handling

    2/4 Defined

    Inputs are bounded and error reports are scrubbed. The privacy page does not name the model provider that receives chat messages.

The rubric

  1. 0 AbsentNothing to inspect.
  2. 1 Ad hocExists, but only as a one-off or in someone’s head. Not repeatable from the repo.
  3. 2 DefinedWritten down and runnable, but run by hand or not on every change.
  4. 3 AutomatedRuns on every change, fails the build, and someone is told.
  5. 4 Gated and watchedAutomated, blocks the release, and production feedback flows back into it.

03 · Findings

Ranked by severity, then by size of fix.

Severity: High a claim or protection the site relies on can fail unnoticed. Medium a real gap with a contained blast radius, or a gap that blocks a High from being closed. Low hygiene. Cheap to fix, and worth fixing before it erodes trust in the numbers. Fix size is relative effort, never money: S part of a day for one engineer; M a few days; L about a week or more, or work that needs a decision first.

R-01HighSRegression

396 API tests sit outside the release gate

The 80 files in tests/unit-api cover the chat guardrails, rate limiting, price scrubbing, the scoping evals and the grader. The release command and CI run a different set, and the proof scorecard counts none of them.

Evidence
  • npm run verify runs npm test, which globs tests/*.test.mjs. test:api is a separate script. CI runs only npm run verify. F01
  • The scorecard lists 52 files and 541 tests; none are in tests/unit-api. F02 F03
  • Run by hand during this audit, npm run test:api reported 396 passed, 0 failed. F03
Impact
The code that enforces the guardrails can regress with a green build and a green public scorecard.
Fix
Add test:api to verify, include its files in the scorecard run, and republish the totals.
R-02HighSGolden sets

The headline eval result has no receipt you can re-run

The case page leads with a live chatbot eval that passed 11 of 11. The page also says the run artifact is not yet committed. Nothing in this repo re-runs that eval.

Evidence
  • The 4-case golden set, 7-case red-team set and the run script live in a different repository (jt-portfolio). In this repo, evals/ holds only the 14-case scoping set. F09
  • The limitation is disclosed on the case page itself, which is the honest part: the gap is known and stated. F09 F20
Impact
A reader cannot verify the number, so it works as an assertion. For a page that sells proof, that is the wrong place to be soft.
Fix
Commit the run artifact with its date, commit, model name and judge settings, and link it from the case page. Until then, keep the limitation line.
R-03HighLRelease gates

No gate checks model behaviour when a prompt or model changes

The personas are constants in the handler and the model is an environment variable. The only live evals are run by an operator, by hand. A prompt edit or a model swap reaches visitors with no eval between the change and production.

Evidence
  • Prompts are string constants in api/chat.js; LLM_MODEL, LLM_BASE_URL and LLM_API_KEY are read from the environment. F07
  • The scoping eval documents itself as an operator gate, "NOT a CI gate"; its CI test only checks the golden data is well formed. F08
Impact
The most likely regression on an LLM surface, a quiet behaviour change after an edit, is the one nothing is positioned to catch.
Fix
Two steps. First a recorded-replay gate on prompt diffs, deterministic and cheap. Then a scheduled live eval with a floor that only moves up.
R-04MediumSGuardrails

The price backstop is skipped in one mode

Every reply passes a server-side filter that strips dollar figures, except in the automations mode, which returns the raw model text. A code comment says that mode quotes fixed setup prices; its prompt now says not to.

Evidence
  • The handler routes automations replies around sanitizeScopeReply; all other modes pass through it. F06
  • The standing rule is that no service price appears anywhere on the site, enforced by a test over pages, content and API prompts. F06
Impact
The protection that makes the no-price rule hold on every other surface does not cover this one, and the comment misleads the next reader.
Fix
Send every mode through the backstop and delete the stale comment. Add a test that asserts a priced model reply is scrubbed in each mode.
R-05MediumSData handling

The privacy page does not name the model provider

Visitor messages are forwarded to whichever provider the environment points at. The privacy page lists two processors and the model provider is not one of them.

Evidence
  • privacy.html section 4 names Vercel and Resend. The chat handler sends up to 16 messages of 800 characters to the LLM endpoint. The CSP also permits a Supabase project and Cal.com. F15 F04
Impact
People type real business detail into a chat box. They are entitled to know who processes it.
Fix
Name each processor the code calls, what it receives and why. Add a test that compares the privacy list with the hosts the code and the CSP allow.
R-06MediumMEval coverage

The golden sets are too small for the claims made on them

Four, seven and fourteen cases are a start. The site says so. What is missing is the map from failure mode to case that shows where the holes are.

Evidence
  • The case page limits a pass to "those cases passed, nothing more" and calls the sets "a start, not coverage". F09 F20
  • Committed eval data in this repo covers scoping mode only; the other assistant modes have none here. F08 F09
  • The live probe engine runs 7 probes against one deliberately naive target. F11
Impact
A pass cannot be read as safety. The sets also cannot say which failure modes have no case at all.
Fix
Write the failure-mode map first (what can go wrong per mode), then grow each set to cover the map, with real transcripts once consent and logging exist (R-07).
R-07MediumMObservability

The chat handler produces no production signal

Nothing the handler does is recorded for review. Error reporting is off until a DSN is set. The published next step, growing the golden sets from real conversations, depends on records this handler never writes.

Evidence
  • The handler logs only provider and parse errors to the console and persists no conversation. F13
  • Sentry reporting is dormant until SENTRY_DSN is set. /api/health reports only which subsystems are configured. F13
Impact
No one can see refusal rate, fallback rate, budget exhaustion or how often the price backstop fires, so drift is invisible until a visitor reports it.
Fix
Emit four counters (fallback, budget exceeded, scrub hit, refusal) with no message content. Add consented, redacted transcript capture only after R-05 is closed.
R-08MediumMRollout and rollback

No rollout or rollback path for prompts and the model

A prompt change is a code deploy and a model change is an environment edit. Neither is behind a flag, neither has a canary, and no rollback document exists.

Evidence
  • Prompts ship with the code and the model is read from the environment. F07
  • The roadmap lists a rollback plan as unfinished Phase 7 work. No runbook exists in docs/. F14
Impact
When a change goes wrong, recovery is whatever someone works out under pressure.
Fix
Version each prompt, put it behind a flag with a percentage rollout, and write a one-page rollback runbook that names who does what and how to verify it worked.
R-09LowSRelease gates

Numbers drift, and the scorecard is stamped with an uncommitted tree

The roadmap still says 224 tests; the scorecard says 541. The scorecard commit reads "db2c228+uncommitted", so the receipt cannot be reproduced from a commit.

Evidence
  • docs/ROADMAP.md reports 224 tests for Phase 0; the scorecard reports 541. F16 F02
  • The roadmap’s own "fail the build on drift" script is not built. F16
Impact
Small stale numbers teach readers to discount the true ones.
Fix
Generate quoted numbers from the scorecard at build time and make the proof run refuse a dirty tree.
R-10LowSRegression

A recorded performance regression is missing from its own summary

The quality report records a desktop layout-shift score of 0.549 on one lab after the fixes, then leaves that row out of its "still under 95" list.

Evidence
  • The table shows /lab/concierge-trace desktop at performance 78 and CLS 0.549 after the fixes. The summary section does not list it. The figures date from the report and were not re-measured here. F17
Impact
A report that omits its own worst row is easy to doubt, even when the omission is an oversight.
Fix
Re-measure, then either fix the shift or list the row with its cause.

04 · 30/60/90 roadmap

What to do, in what order.

Sequenced so the cheap fixes land first and the first real behaviour gate is built on trustworthy numbers.

01

Days 0 to 30

Close the gaps that are small and cheap

  • R-01Put the API tests in the release command and the scorecardS
  • R-02Commit the live eval run artifact and link it from the case pageS
  • R-04Route every mode through the price backstop; add the testS
  • R-05Name every processor on the privacy pageS
  • R-09Generate quoted numbers from the scorecard; refuse a dirty treeS
  • R-10Re-measure the lab and fix or list the rowS

02

Days 31 to 60

Build the first real behaviour gate

  • R-03Recorded-replay gate on prompt diffs, in CIM
  • R-06Failure-mode map, then grow each set to cover itM
  • R-07Four content-free counters from the chat handlerM

03

Days 61 to 90

Make change safe, then keep it watched

  • R-03Scheduled live eval with a floor that only moves upL
  • R-08Versioned prompts behind a flag, plus a written rollback runbookM
  • ReviewRe-score this card. Target: gates and regression at level 3, rollout at 2S

05 · What held up

Strengths worth keeping.

  • Limits are published next to the numbers

    The case page says the sets are small, that a pass means only those cases, and that the live-run artifact is not yet committed.

  • Server-side allowlists, not trust

    Unknown modes get a 400, and the scoping assistant can only select capability keys that exist, enforced after the model answers.

  • Cost and abuse are bounded

    Turn, length, output, per-IP and daily limits are in place, and the failure path is a scripted fallback instead of an error.

  • The scorecard cannot go green by accident

    It is written only when the suite passes and at least one test ran.

  • CI cannot spend money by accident

    The runner is hardcoded to self-hosted and a test fails the build on any other.

  • Simulations say they are simulations

    The eval-gate lab states that no model is called and labels its starting floor illustrative.

Appendix A · Method

How this audit was done.

In scope

  • The chat and scoping assistant (api/chat.js, assets/scope-core.mjs)
  • The live eval engine (api/eval.js) and the eval-gate lab (src/lab/eval-gate)
  • The test suites, CI workflow and proof scorecard
  • Error reporting, health probe and rate limiting (lib/observe.mjs, api/health.js, lib/ratelimit.mjs)
  • The privacy page and the response headers (privacy.html, vercel.json)
  • The roadmap and quality report (docs/ROADMAP.md, docs/QUALITY-REPORT.md)

How

  • Read-only review of the repository as it stood on the audit date. Files are cited by path in the evidence index.
  • One command was executed: npm run test:api (396 passed, 0 failed). Everything else is read, not run.
  • Every finding states the evidence, the impact, a fix and a relative size. Levels are a stated judgement against the rubric, not a measurement.

Fix sizes in this report

S 6 findings M 3 findings L 1 finding

Appendix B · Evidence index

Every fact, and the files behind it.

Each fact is identified (F01 and up) next to the claim it supports. Paths are relative to the repository root. The same list is in docs/AUDIT-SOURCES.md.

Evidence index
FactWhat it saysWhere it comes from
F01npm run verify builds the site and runs npm test, which is node --test tests/*.test.mjs. The API tests are a separate script, test:api. CI runs only npm run verify.package.json
.github/workflows/ci.yml
F02The proof scorecard records 541 tests, 540 passed, 0 failed, 1 skipped, across 52 test files, generated 2026-11-21T23:59:22Z for commit "db2c228+uncommitted" with command SITE_ROOT=dist node --test tests/*.test.mjs.public/proof/scorecard.json
F03tests/unit-api holds 80 test files and none of them appear in the scorecard. Running npm run test:api during this audit (2026-11-21) reported 396 tests, 396 passed, 0 failed.tests/unit-api
package.json
public/proof/scorecard.json
F04The chat handler bounds every request: 16 turns, 800 characters per message, a per-mode output cap (220, 220, 500 and 280 tokens), 20 requests a minute per IP, a global daily ceiling of 1000 (CHAT_DAILY_MAX), and a 501 that sends the client to a scripted fallback when the model is unconfigured or over budget.api/chat.js
lib/ratelimit.mjs
F05The handler rejects unknown or non-string modes with a 400, and in scoping mode keeps only capability keys that exist in the rate card (filterSelection against RATE_CARD) before anything reaches the visitor.api/chat.js
assets/scope-core.mjs
F06A server-side backstop (sanitizeScopeReply) strips dollar figures from every reply in every mode except automations, which returns the raw model text; the code comment says that mode "intentionally quotes fixed setup prices" while its prompt now says not to quote a build price. The site-wide rule is that no service price is published.api/chat.js
tests/no-service-prices.test.mjs
F07The assistant personas are string constants inside api/chat.js and ship with the code. The model, provider endpoint and key come from the environment variables LLM_MODEL, LLM_BASE_URL and LLM_API_KEY.api/chat.js
F08The scoping-mode eval (scripts/eval-scope.mjs, 14 golden cases in evals/scope-golden.json) is documented as an operator gate run by hand, "NOT a CI gate". Its CI-side test only checks that the golden data is well formed and that every expected key exists in the rate card.scripts/eval-scope.mjs
evals/scope-golden.json
tests/unit-api/scope-eval.test.mjs
F09The case page says the chatbot is scored against a 4-case golden set and a 7-case red-team set (11 of 11 passed on the last live run) and states that the live-run artifact (chatbot-eval.json) is not yet committed to the public repository. The Tools page points readers to the jt-portfolio repo for evals/chatbot/*.json and the eval-chatbot script; in this repo, evals/ contains only scope-golden.json and scripts/ has no chatbot eval script.content/home.flagships.mjs
content/tools.bodies.mjs
evals/scope-golden.json
F10The pure grading functions for chatbot turns (price leak, prompt reveal, broken character) live in assets/chatbot-evals.mjs and are exercised by one unit test with scripted strings; no model is called.assets/chatbot-evals.mjs
tests/unit-api/chatbot-evals.test.mjs
F11/api/eval defines 7 probes (injection, jailbreak, faithfulness, hallucination, PII, scope, refusal) and one built-in target, a deliberately naive assistant, graded by an LLM judge; the public demo does not accept an arbitrary target URL.api/eval.js
F12The eval-gate lab runs 18 scripted cases (12 golden, 6 probe) against a scripted answer table; its data file says "No model is called anywhere", and the starting floor of 15 of 18 is labelled illustrative.src/lab/eval-gate/cases.json
src/lab/eval-gate/model.js
F13Error reporting (lib/observe.mjs) is dormant until SENTRY_DSN is set and scrubs emails and card-like numbers. /api/health reports only which subsystems are configured. The chat handler logs only provider and parse errors to the console and persists no conversation, so no quality signal (refusals, fallbacks, price-scrub hits) is recorded by it.lib/observe.mjs
api/health.js
api/chat.js
F14The roadmap lists a rollback plan as an unfinished Phase 7 item, cutover is waiting on an owner go, and no runbook or rollback document exists in docs/. The roadmap also lists a Lighthouse budget and visual regression in CI (Phase 6) as not yet done.docs/ROADMAP.md
F15privacy.html section 4 names two processors, Vercel and Resend. The chat handler forwards visitor messages to whatever provider LLM_BASE_URL points at, and the Content-Security-Policy allows connections to a Supabase project and to Cal.com.privacy.html
api/chat.js
vercel.json
F16docs/ROADMAP.md reports "224 tests" for Phase 0 while the scorecard reports 541, and its Phase 3 item for "a script that fails the build on drift" between site numbers and repos is not built. The scorecard itself is stamped with an uncommitted tree ("db2c228+uncommitted").docs/ROADMAP.md
public/proof/scorecard.json
F17docs/QUALITY-REPORT.md records /lab/concierge-trace on desktop at performance 78 and CLS 0.549 after the fixes, but its "Still under 95" section does not list that row. The figures are from the report date; they were not re-measured in this audit.docs/QUALITY-REPORT.md
F18CI runs on a self-hosted runner only (runs-on: [self-hosted, nexural]) and a unit test fails the build if any workflow names another runner..github/workflows/ci.yml
tests/ci-self-hosted-only.test.mjs
F19scripts/proof.mjs writes the scorecard only when the suite passes and at least one test ran ("no fake green"); the Quality report and the case pages publish their limits next to their numbers.scripts/proof.mjs
docs/QUALITY-REPORT.md
F20The case page publishes its own limits: the eval sets are small (4, 7 and 14 cases), a pass means only those cases passed, and deterministic assertions do not measure open-ended answer quality.content/home.flagships.mjs

Appendix C · Limits and independence

What this report cannot tell you.

Not examined

  • Production traffic, logs or provider dashboards. None were available, so no claim here describes live behaviour.
  • Live model quality. No evals were re-run against a model for this report.
  • The provider’s own data handling, infrastructure security or load behaviour.
  • Anything outside this repository, including the separate jt-portfolio repository that holds the chatbot eval sets.

Your system next

Want this report written about your AI feature?

The audit takes about a week and ends in this shape: a scorecard, ranked findings with fix sizes, a roadmap and a walkthrough call. Scoped and quoted in writing on the call. This report is open, so there is no form to fill in.

Book a 15-minute call See the audit Download the PDF

Looking for the probe-by-probe transcript format instead? See the sample evaluation report, which runs on a fictional target.