DECISIONS (ADR-style)
ADR-001: Claude Code project, not a standalone CLI
Context. Clem wants to evaluate domains from his iPhone with no local
install.
Decision. Ship a Claude Code project: CLAUDE.md + a skill + thin Python
helpers, invoked through the Claude app connected to this repo.
Why. A CLI would require installing and running software on the phone. A
Claude Code project runs in Claude's managed environment against the repo — the
repo is the only thing Clem needs to point at. The "UI" is the conversation.
Consequence. All durable behavior must live in versioned files
(CLAUDE.md, SKILL.md), because that is what Claude Code reads each session.
ADR-002: No Anthropic API wrapper
Context. The deep evaluation and screenshot reading need a capable model. Decision. Use Claude Code's native vision and reasoning. Scripts make zero model calls. Why. Claude Code is Claude. Wrapping the SDK to re-analyze the domain would duplicate the model already in the loop — extra cost, latency, API-key management, and a weaker answer (the wrapped call lacks conversation context). Consequence. Scripts stay deterministic and offline-testable; the intelligence stays in the prompt layer.
ADR-003: uv, not poetry
Context. Need reproducible Python dependency management.
Decision. Use uv.
Why. uv is fast, single-binary, and the uv run entrypoint matches how
CLAUDE.md invokes scripts (uv run python scripts/...). No separate
virtualenv-activation dance for Claude Code to manage.
Consequence. Contributors need uv; uv.lock is environment-regenerated
and gitignored.
ADR-004: Screenshots-first UX
Context. Clem lives in registrar carts and search pages on his phone.
Decision. Treat a screenshot as a first-class input and prefer on-screen
availability signals (Add-to-cart, "Available", price) over a WHOIS lookup.
Why. It matches Clem's real behavior, and the registrar's own UI is often a
more reliable availability signal than a flaky WHOIS query — and it's instant.
Consequence. CLAUDE.md instructs Claude to extract and proceed without
clarifying questions unless the image is unreadable.
ADR-005: Persist reports to the repo, not a database
Context. Clem wants a permanent audit trail of every domain considered.
Decision. Write each report as a JSON file under reports/ plus an
append-only history.jsonl, and commit them to the repo.
Why. Git already gives us versioning, durability, multi-device access, and a
browsable web view (GitHub) for free. A database would need hosting, backups,
auth, and a query layer for no added value at this scale.
Consequence. reports/ is intentionally not gitignored — the audit
trail is a committed artifact. This deliberately overrides the original spec's
offhand "gitignore reports/" note, because the audit-trail-on-GitHub behavior
(CLAUDE.md's commit-and-push step, the README promise, this ADR) is the headline feature and
requires the files to be tracked. Only secrets and transient caches are ignored.
ADR-006: Ahrefs data is a live tool call, not a wrapped script
Context. SEO potential was previously a strategist's guess (see PROJECT.md's
original "no live search-volume data" caveat). This session has Ahrefs MCP
tools connected.
Decision. Claude calls the Ahrefs MCP tools directly mid-conversation
before scoring seo_potential. No script wraps this.
Why. Same logic as ADR-002: Claude Code already has the tool access and
the conversation context; wrapping it in a script would just add an
indirection layer with no judgment benefit. The one operational rule that
matters: query Domain Rating for comparable/competitor domains, never for
the target domain itself when it's AVAILABLE/UNKNOWN — it has no history.
Consequence. seo_data.data_source in the report schema always records
whether real Ahrefs data or a fallback estimate was used, so the audit trail
never silently blurs the two.
ADR-007: estimate_value.py is a deterministic script, not prompt-layer judgment
Context. asking_price_range_usd was previously derived fresh each
session from the strategist's reasoning alone.
Decision. scripts/estimate_value.py computes a formula-based range
(composite-score bucket × TLD multiplier × search-volume adjustment, blended
toward priced historical comparables) and Claude treats its output as the
anchor.
Why. lookup_comparables.py already established this precedent: a
scored heuristic in code, not the prompt layer, because the same domain
should get the same comparable set and the same price anchor every session —
a formula re-derived from scratch each time isn't "grounded," it's just a
differently-worded guess.
Consequence. save_report.py's history.jsonl summary now carries
asking_price_range_usd and tld per entry (additive, backward-compatible)
so the comparable blend has real data to work against. Claude can still
deviate from the script's output, but must record why in
valuation_methodology rather than silently overriding it.
ADR-008: Dashboard on GitHub Pages, riddle gate is cosmetic only
Context. Clem wants to see the whole portfolio — reports, docs, and
build-out plans — as a hosted site at domains.axiaenterprises.io, gated by
something more fun than a typed password.
Decision. scripts/build_site.py renders a static site, deployed via
GitHub Pages + Actions (.github/workflows/deploy-pages.yml) on every push
to main. The gate is a 5-question riddle mini-quiz (every answer is
"3"/"Three") implemented in client-side JS.
Why. GitHub Pages fits the existing "git is the database, no backend"
philosophy — the dashboard is a read-only render of files already committed,
not a second data store. GitHub Pages from a private repository requires
the owning account/org to be on a paid plan (GitHub Pro for personal, Team+
for orgs) — confirmed axia-enterprises is on such a plan before building
this.
Consequence — read this before treating the gate as security. The riddle
gate, like a typed password would have been, is cosmetic only. This is a
static site: the full page content ships to every visitor's browser
regardless of the gate, and viewing page source or disabling JavaScript
bypasses it instantly. It keeps casual visitors out and nothing more. Don't
put anything in this repo more sensitive than "annoying if a stranger with
the URL reads it" — the domain research here is business-confidential but
not the kind of secret that would need real auth.
Correction. The Team-plan check above covers whether Pages is available
at all on a private repo — it does not cover the separate, one-time
repo-settings step of switching Pages' source to "GitHub Actions." That
setting was not flipped before this shipped, so the first deploy-pages.yml
run on main failed at actions/configure-pages@v5 ("Get Pages site
failed... Not Found") and the dashboard is not live as of this writing. See
the README's Dashboard section for the exact one-time setup steps and why a
previously-failed run needs a manual re-run or a new push, not just the
settings fix, to go green.
ADR-009: project-plans/ files are living docs, not timestamped snapshots
Context. The build-out planner (.claude/skills/project-builder/SKILL.md)
needed a place to persist its output, alongside reports/.
Decision. project-plans/{domain}.md — one file per domain, overwritten
in place on each revision, unlike reports/{domain}_{timestamp}.json.
Why. Reports are immutable point-in-time verdicts; you'd never want to
overwrite a past evaluation. A build-out plan is the opposite — it's meant to
evolve as Clem's thinking does, and re-deriving a whole new timestamped file
every time he tweaks the plan would just create noise. Git history already
gives the version log for free.
Consequence. Anyone touching project-plans/ should edit in place, not
add _v2/_updated suffixes — that asymmetry with reports/ is
intentional, not an inconsistency to "fix."
ADR-010: Hand-rolled frontmatter parser, not pyyaml
Context. Clem asked for a real Obsidian-style vault — every domain (both
the ~700-domain owned portfolio and strategic evaluations) as a wikilinked,
tagged, frontmatter'd .md file. That means writing and re-parsing YAML
frontmatter on every sync/import.
Decision. scripts/vault.py implements its own minimal
dump_frontmatter/parse_frontmatter pair instead of depending on pyyaml.
It only supports the shapes this project actually writes: string/bool/int/
null scalars and flat lists of strings — not the full YAML spec.
Why. This project already paid the cost of a compiled/native dependency
once: adding nh3 (a Rust wheel) caused a run of GitHub Actions CI failures
that took real effort to diagnose (see the bleach swap, below and in
git history) before the actual root cause turned out to be an unrelated
Actions-runner/billing issue. pyyaml's default install ships a C extension
(libyaml) with the same wheel-availability risk for a dependency this
project only needs a narrow slice of. A ~40-line hand-rolled reader/writer
that's fully unit-tested (round-trip tests in tests/test_vault.py) is
lower-risk than a general-purpose YAML library here.
Consequence. vault.py notes are still valid YAML frontmatter — a real
YAML parser (including Obsidian's own) reads them correctly — but Claude Code
must always go through vault.dump_frontmatter/parse_frontmatter to write
or read one, never hand-format frontmatter inline, or the round-trip
guarantee breaks silently.
ADR-011: The vault replaces reports/*.json as the rendered view; owned portfolio and evaluations are separate note kinds
Context. Two distinct needs arrived together: (1) turn the existing
3-report dashboard into a full wikilinked knowledgebase, and (2) catalog
Clem's entire pre-existing ~700+ domain portfolio (imported from Namecheap +
Squarespace exports) alongside it. A single "report" note shape can't serve
both — an owned production domain has no verdict or composite score, and a
strategic evaluation has no registrar/expiration/hosting-status.
Decision. Two separate vault note kinds, sharing one wikilink/backlink/
tag engine: vault/domains/ (heavyweight, verdict/composite_score/SEO
data, synced from reports/*.json via vault.py sync-domain) and
vault/owned/ (lightweight, registrar/expiration/hosting_status,
written by import_portfolio.py). The dashboard (build_site.py) renders
vault/domains/*.md, not reports/*.json directly, going forward — Clem
confirmed this should be a full replacement of the old report-detail pages,
not a second parallel view.
Why. Forcing ~700 production domains through the 8-dimension strategic
framework would be both wrong (most are active brand/land-grab domains, not
acquisition candidates) and prohibitively expensive (Ahrefs quota, model
time) — see the batch-mode reasoning already established in CLAUDE.md's
Step 1. Splitting by kind means the bulk import stays a fast, deterministic,
zero-model-call batch job (same script boundary as everything else in
scripts/), while a real evaluation still gets the full judgment-driven
treatment when Clem actually wants one.
Consequence. reports/*.json remains the untouched, immutable audit
trail (ADR-005 stands) — vault/domains/*.md is a synced, richer, wikilinked
view over it, refreshed by sync-domain on every (re-)evaluation, never the
other way around. Category hub notes (vault/categories/, mechanical regex
rules) and theme hub notes (vault/themes/, generated from evaluation
narrative_hooks) are two different flavors of auto-generated rollup, kept
deliberately separate from vault/clusters/ — the one directory in the vault
that is never mechanically populated, reserved for genuine cross-domain
opportunities Claude notices in conversation (see CLAUDE.md's Clusters
section).