Skip to content

3.0.1: one through-line — clean-up, security and docs from a full audit - #41

Open
stuinfla wants to merge 9 commits into
mainfrom
fix/review-findings-3.0.1
Open

stuinfla wants to merge 9 commits into
mainfrom
fix/review-findings-3.0.1

Conversation

@stuinfla

@stuinfla stuinfla commented Nov 5, 2026

Copy link
Copy Markdown
Owner

What this is

A full clean-up of explainmyrepo 3.0.0 into one through-line (target version 3.0.1). Fragments of older architectures are removed, every file was read by an auditor, two independent audit rounds drove the fixes, and an independent Brain-Score re-grade followed.

Headline changes

  • One station table (src/stations.mjs) read by the orchestrator, hosted runner, help text and tests. Orchestrator 647 -> 175 lines, runner 901 -> 428, diagram code split into tools/diagrams/*.
  • Gate advises, never destroys (ADR-0011): deploy refuses only on integrity; ship bar 82/70, exemplary 90/85, below-bar pages ship with disclosure.
  • Share card and mobile: blocking share-card checks (1200x630, absolute URLs, legibility measured), phone twins for every diagram, responsive AVIF.
  • Security: clone token scoped to github.com and passed by env, SVG palette/CTA/ImageMagick @file injection closed, SMTP header-injection guard, publish-repo ownership marker, ask-service AIMDS guard with bounded index read and per-caller cap, npm audit 5 high -> 0.
  • Two defects found only by a real rebuild (ruvllm): light palettes inherited the dark skeleton's --ink-2/--bg-2 (body copy unreadable) and a re-assemble dropped the narrated video. Both fixed with tests that fail without the fix.
  • Docs: README, ADRs 0005-0016, SKILL.md and contracts now match the code; TOOLS-CONTRACT.md is generated and drift-tested.

Verification

  • node --test tests/*.test.mjs: 763 pass, 0 fail. On a clean npm ci of the declared dependencies (@ruvector/rvf 0.4.2, sharp 0.35.5): 756/756 at the time, plus tests-e2e 9/9.
  • Guard tests were proven by mutation (revert the fix in a scratch copy, watch the test fail).
  • Independent Brain-Score: baseline 56.5 -> 72.8 before the final fix wave (F6 and later closed several of its findings; not re-scored).
  • Live: the rebuilt ruvllm explainer was checked at 390px and 1440px, with share card, favicon and the 75 s video.

Not in this PR / for the owner

  • Not done: splitting quality-grade.mjs / assemble-page.mjs (over the 500-line rule), de-duplicating esc(), branch protection on main.
  • CI has not run on this branch yet.
  • Image engine prices are UNKNOWN and reported as UNPRICED, never $0.
  • No release, no tag, no merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PRnZSn8vMUZJLZgrz4Vbks

…ck, budget stop, image cache, grounding, claims check

Verified against the code before each change; every new test was shown to fail on the old code.
- quality-grade: record gateRefusal; grader outage writes a fresh quality slot; render devices concurrently
- deploy/orchestrator: deliver refused/ungraded pages with disclosure; restore best iteration with its own scorecard; refine only on content-fixable weaknesses; per-station timing
- cure/agentic-runner: snapshot+restore site/assets/build.json after a rejected repair; native + estimated USD budget stop; near-miss limits for delivered pages
- generate-image: cache keyed on prompt/size/engine/quality; unpriced images reported as UNPRICED, not $0
- brain: README-first deterministic passage selection; image brief no longer contradicts its own ban
- new tools/check-claims.mjs (advisory)
npm audit 5 high -> 0 (sharp, protobufjs override, playwright range), @ruvector/rvf ^0.4.2,
SHA-pinned Node 22 workflow actions, e2e suite in CI, 160 generated build outputs and the
ruv-explainer-* directories removed, kb/ no longer carries its own package manifest.
…match the code

Gate advises never destroys (ship 82/70, exemplary 90/85), Ask box local-door only with AIMDS,
one station table, Known limits section, five README diagrams redrawn as SVG with ASCII fallbacks,
TOOLS-CONTRACT generated from tool headers, docs-drift tests.
… (3.0.1)

src/stations.mjs is the single table the orchestrator, runner, help text and tests read. Orchestrator
and hosted runner split into focused modules; dead fragments of older architectures removed; share card,
mobile twins, hero scene, responsive AVIF; clone token scoped to github.com; ask-service AIMDS guard with
bounded index read and per-caller cap; light palettes complete their sibling tokens at AA; the narrated
overview survives a re-assemble; make-pack sees the per-build KB overlay; version 3.0.1.
@netlify

netlify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for explainmyrepo canceled.

Name Link
🔨 Latest commit 0ff4195
🔍 Latest deploy log https://app.netlify.com/projects/explainmyrepo/deploys/6aed733c5ab3e45747f838d4

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant