A developer portal whose catalog stays true. Most service catalogs are filled in once and then drift: services change
hands and nobody edits catalog-info.yaml, dependencies get added without being declared, and old ones are never
removed. Then an incident page goes to a team that gave the service away months ago.
This platform builds the catalog from evidence instead:
- Ownership: recent commits, deploys and pager acknowledgements decide who owns each service.
- Dependencies: traces and deploy configuration decide what each service calls.
- Disputes: where the evidence disagrees with what was declared, the platform asks the teams to confirm rather than silently overwriting.
It also scores every service for production readiness, offers a golden path that creates new services which pass every check on day one, and answers catalog questions through Claude.
idp evaluate --gate builds synthetic engineering organisations of 12 teams and 120 services, where the truth is known.
In each one a quarter of services changed hands during the year, 10% of engineers moved teams, bots commit, and a
release team runs some deploys. The weights were tuned on 3 tuning organisations. The numbers below come from 10
held-out organisations, and from 5 high-churn organisations (40% of services changed hands, and the catalog was
rarely updated), run after the weights were frozen.
| Who owns each service? | Held-out: owner right | Changed hands | Pages misrouted next quarter | High churn: owner right |
|---|---|---|---|---|
| Declared catalog | 82.8% | 31.3% | 135 of 730 (2,700 min lost) | 62.0% |
| Team of the top committer | 79.5% | 48.7% | 153 of 730 | 65.8% |
| Discovered from evidence (this platform) | 99.3% | 97.3% | 7 of 730 (140 min) | 98.5% |
| What does each service call? (held-out) | Dependency F1 | What breaks when it fails: precision / recall |
|---|---|---|
| Declared catalog | 0.769 | 0.36 / 0.84 |
| A week of traces | 0.876 | 1.00 / 0.74 |
| Traces + deploy configuration (this platform) | 0.972 | 0.80 / 0.96 |
Golden path: all 8 combinations of options were generated, linted and tested (28 tests), and all scored A on the readiness scorecard.
What the numbers show:
- Declared ownership goes stale exactly where it matters. Only 31% of services that changed hands were updated in the catalog. Pager acknowledgements and recent deploys say who really runs a service, and with a 30-day half-life the new owner shows within weeks. Misrouted pages fall by 95%.
- "Who commits most" is a worse shortcut than the stale catalog. Over a whole year the previous owner's history outweighs the new owner's, and drive-by contributors add noise.
- Traces alone miss quiet dependencies. With 1% trace sampling, a dependency called a few times a day often never appears in a week. Deploy configuration fills that gap, so blast-radius recall rises from 0.74 to 0.96. The cost is precision (0.80): a dependency left in config after it was removed still counts. For "what breaks if this fails", a missed dependent is the costlier mistake, so the gate tracks recall.
- Disputes are flagged, not applied. 17% of services show a different owner from the declared one; the evidence is right 99% of the time, and the teams are asked to confirm. Declared dependencies with neither traces nor config behind them are flagged as probably stale (81% really are).
commits (humans only, by today's team) ┐
deploys (owning team, not release-eng) ├─► recency-weighted vote ─► owner + confidence ─► dispute if ≠ declared
pager acknowledgements ┤
declared owner (weak prior) ┘
traces (synthetic monitors excluded) ∪ deploy config ─► dependencies ─► blast radius (reverse closure)
declared edges with neither ─────────────────────────► "probably stale"
repo files / catalog facts ─► scorecard (11 checks, A–F, tier 1 capped without runbook or SLO)
golden path ─► FastAPI service + tests + Dockerfile + CI + catalog-info + SLO + runbook + CODEOWNERS
- Discovery (
discovery.py). Votes decay with a 30-day half-life. Pager acknowledgements weigh most (the people who get woken up), then deploys, then commits. Bots and release engineers never count as owners. The weights come from the search inidp tune. - Scorecards (
scorecard.py). The same 11 checks run on a repository on disk or on catalog facts. Each check says why it matters. - Golden path (
scaffold.py). It creates a FastAPI service with health, readiness and metrics endpoints, JSON logs with request ids, and tests. It also adds a non-root container with a health check, CI (lint, tests, image build, gitleaks), a catalog entry, an SLO, a runbook and CODEOWNERS. Options add SQLite storage, API-key auth and a queue worker with retries and dead letters. CI generates every combination and runs each one's tests. - Questions (
ask.py). Claude (claude-opus-5-5, low effort, refusal fallbacks) answers "who owns…", "what breaks if…" and "which services lack…" through strict catalog tools, and returns the calls it made.
Decisions: docs/adr. Gaps: docs/known-limitations.md.
python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
idp serve # the portal with a demo organisation
idp new orders-api --owner checkout --database # a new service from the golden path
idp score ./orders-api # its readiness scorecard
idp tune # the weight search on the tuning organisations
idp evaluate --gate # eval/reports/report.{md,json,html}
pytestAPI: GET /api/services?team=&grade_at_most=, GET /api/services/{name}, POST /api/golden-path (returns a ZIP),
and POST /api/ask (needs ANTHROPIC_API_KEY).
Tests cover:
- the world's truth and signals;
- discovered owners beating the declared catalog, and bots and release engineers never owning anything;
- dependencies from traces and config, with monitors excluded, and the dependents closure;
- scorecard grading;
- the golden path's validation, and a generated service passing its own lint and tests and scoring A;
- Claude's catalog questions through the real Anthropic SDK with canned responses: the tool loop, unknown services returned as errors, and a refusal;
- the portal and the ZIP download.
CI runs ruff, mypy --strict, the tests on Python 3.12 and 3.13, the full evaluation gate, the container serving
the portal, and a gitleaks scan of the full history.
MIT


