Skip to content

Documentation Inventory — Knowledge Hub

Archived S504 (ruling R2): superseded by Pagefind search + generated stats — see the docs-site keep-docs-in-sync skill. S205C-era snapshot retained below.

⚠️ HISTORICAL SNAPSHOT (noted S491, 22/07/2026). This inventories the pre-migration in-repo docs/ tree of the canonical repo. Most of that tree has since moved into this private docs-site (or been retired); the canonical repo’s docs/ now holds only reference/testing/. Counts and paths here are S205C-era (28/04/2026) and earlier — do not trust them against the filesystem. Archive candidate.

Date: 28 April 2026 (S205C — §2.1 refreshed, §2.5b runbooks added, §1 totals re-counted; non-tracked-doc tables left at S153 snapshot) Session: 117 original → S152B WP1/WP2 partial refresh → S153 full rewrite of §2.1–§2.5 → S205C <-/kpf:refresh-reference-docs> seed run Trust level: Authoritative for §1 totals (re-counted S205C), §2.1 (docs/reference/), and §2.5b (docs/runbooks/). §2.2–§2.5 (specs, audits, design, operations) and §2.6–§2.16 are S153/older snapshots — counts may drift from the filesystem; refer to docs/generated/codebase-stats.md for live numbers and run /kpf:refresh-reference-docs to refresh tracked-doc headers. Purpose: Comprehensive catalogue of every documentation file in the project, with purpose, audience, currency, and recommended actions.


  • S318 (06/06/2026): New ontology register entry docs/ontology/33-reference-item.md — Layer-5 reference_item entity for the ID-75 reference layer (WP-F, BI-22), authored in the 32-q-a-pair.md shape. Companion register edits in the same change: 13-ingest-source.md (§6.3/OQ-T1 re-homing of rss_feed/url_import to reference_items.ingestion_source + reserved adopted_from_reference), 29-cocoindex-source-kind.md (remote_url baseline value), and docs/ontology/README.md (new “Where does new data live?” decision rule with the Q1a/Q1b split + register-table rows for 33). The docs/ontology/ register (33 CV/entity files + README) is not yet enumerated as a §2 directory section in this inventory — flagged for the next full refresh.
  • S205C (28/04/2026): First end-to-end run of /kpf:refresh-reference-docs. All 11 tracked canonical docs (§2.1 highlighted rows + §2.5b runbooks) now carry <!-- Last verified: S205C (28/04/2026) against commit 3a563758 --> headers (replacing the S205B WP2a seed placeholder). §2.1 table extended with a Last verified column and a new entry for auth-hooks.md (24 total). §2.5b added to inventory the three tracked runbooks plus the new ci.md introduced in kh-prod-readiness-S7. §1 Summary file counts refreshed: docs/reference/ 23 → 24, docs/runbooks/ 0 → 4, docs/operations/ 11 → 20 (operations table refresh remains out of scope for this run).
  • S153 (07/04/2026): Full rewrite of §2.1 (docs/reference/), §2.2 (docs/specs/), §2.3 (docs/audits/), §2.4 (docs/design/), and §2.5 (docs/operations/) against filesystem ground truth. Matches the post-S152B-WP1 layout (23 reference files, 12 specs, 44 audits grouped into 5 sub-folders, 4 design files, 9 operations files). §1 Summary totals refreshed. §2.6–§2.16 not touched — they remain pre-S117 snapshots.
  • S152B WP1 (07/04/2026): Executed the S151 reference-folder audit. 22 files moved out of docs/reference/ — 14 to docs/audits/{sector-intelligence,ai-eval,classification,strategic,content}/, 3 to docs/operations/ (including taxonomy-change-runbook.md), and 5 to .planning/.archive/.reference/ or .planning/.archive/.research/. New file docs/reference/prompt-improvement-methodology.md created from the archived prompt-improvement docs. New file docs/reference/state-of-the-product-history.md created by S152B WP10 split. Final docs/reference/ count: 23 Live reference files. The §2.1 table below still reflects the pre-move state — full rewrite is tracked as follow-up WP in the next session’s handoff.
  • S152B WP2 (07/04/2026): Partial cross-reference sweep. Stale refs to the moved files updated in docs/reference/state-of-the-product.md, docs/reference/product-roadmap.md, docs/reference/entity-type-taxonomy-spec.md, docs/reference/product-differentiation-audit.md, docs/specs/si-prompt-refinement-skill-spec.md, and docs/specs/ai-eval-phase2-classification-skill-spec.md. The inventory itself and state-of-the-product-history.md (frozen snapshot) are intentionally NOT fully rewritten.

The project underwent a large-scale archive reorganisation between S108 and S117. The key structural changes are:

  1. .planning/specs/ removed entirely — all 37 specs moved to .planning/.archive/.specs/
  2. .planning/feasibility/ removed — 18 files moved to .planning/.archive/.feasibility/
  3. .planning/research/ removed — 79 files moved to .planning/.archive/.research/
  4. .planning/audits/ removed — files moved to .planning/.archive/.audits/
  5. .planning/session-extracts/ removed — 20 files moved to .planning/.archive/.session-extracts/
  6. .planning/continuation-prompts/ removed — files moved to .planning/.archive/.continuation-prompts/
  7. .planning/ root post-mvp-backlog.md removed — moved to .planning/.archive/.specs/
  8. docs/audits/ reduced from 18 to 6 — s105 audit files and wp4 verification moved to .planning/.archive/.audits/
  9. docs/session-exports/ removed entirely — s77 and s91 exports moved to .planning/.archive/.session-exports/
  10. docs/continuation-prompts/ reduced from 98 to 14 — older prompts (S1-S103) moved to .planning/.archive/.continuation-prompts/
  11. docs/specs/ reduced from 67 to 9 — completed/historical specs archived to .planning/.archive/.specs/
  12. docs/reference/ gained 3 new filesai-visibility-policy.md, product-backlog.md (renamed from critique-product-backlog.md in S150), product-backlog-completed.md (renamed from critique-product-backlog-completed.md in S150); lost 1 (critique-gap-crossref.md archived)
  13. docs/design/ lost 1 filedesign-brainstorm-session.md archived to .planning/.archive/.specs/
  14. Archive path changed — from .planning/archive/ to .planning/.archive/ (dot-prefixed)
LocationFilesNotes
docs/reference/24Live reference (S205C re-count; +1 since S153 — auth-hooks.md, see §2.1)
docs/runbooks/5Tracked runbooks for prod-readiness + sidecar ops (see §2.5b)
docs/specs/12Active implementation specs (S153 snapshot — re-count pending, see §2.2)
docs/audits/4425 top-level + 19 in 6 topic sub-folders (S153 snapshot, see §2.3)
docs/design/4Design system (includes 1 PDF, see §2.4)
docs/operations/20Production + operational runbooks (S205C re-count; +9 since S153, §2.5)
docs/continuation-prompts/14S153 snapshot — older prompts archived to .planning/.archive/
docs/generated/4Auto-generated stats (2 JSON + 2 Markdown)
docs/product-functionality/4Skeleton — README + 3 templates
docs/database/2Schema snapshot + Q&A backup
docs/uat/5UAT scenario results and research
docs/client-documentation/22Client-facing docs (9 .docx, 1 .pdf, 12 .md)
.planning/codebase/7Codebase analysis documents
.planning/reviews/52Codebase review runs and findings
.planning/.archive/442+Archived documents (10 subdirectories; recent S132–S196 add ~58 files)
.claude/checks/10Quality check files
Project root1CLAUDE.md
Total active189Excluding archived files (S205C re-count)
Total archived500+In .planning/.archive/ (≥58 added S205C archive sweep)
Grand total689+All documentation files
Trust LevelCountPercentage
Authoritative~40~24% of active
Historic~127~76% of active
Archived~442Separate category
CurrencyCountPercentage
Current~35~21%
Needs update~10~6%
Outdated~5~3%
Historic~117~70%

1.5 Refresh tooling — /kpf:refresh-reference-docs

Section titled “1.5 Refresh tooling — /kpf:refresh-reference-docs”

A reusable slash-command (/kpf:refresh-reference-docs) refreshes the 11 canonical reference docs tracked in lib/docs/tracked-reference-docs.ts against the live codebase, schema, env vars, and MCP inventory. Each refresh also regenerates this inventory file so its tables match the on-disk state.

When to run:

  • The /update-docs Step 6.5 drift list crosses ~5 entries.
  • Quarterly, even if no drift signal has fired.
  • After a major schema change, env-var rotation, or AI-stack overhaul.

What it does:

  • Spawns 4 parallel kpf-reference-doc-refresher agents (Schema / AI–classification / Data flow / Runbooks). Each agent diffs claimed facts in its partition against the live codebase, surgically rewrites drifted sections, and bumps the doc’s <!-- Last verified: ... --> header in the same edit (the WP2b edit-coupled freshness guard rejects body-only edits).
  • Orchestrator regenerates docs/reference/documentation-inventory.md (this file) as a final non-agent step.
  • Single review-ready commit; nothing is auto-pushed.
  • Typical runtime: ~30–60 minutes.

Underpinning artefacts:

  • ~/.claude/commands/kpf/refresh-reference-docs.md — slash-command definition (orchestrator, partition table, inline workflow).
  • ~/.claude/agents/kpf-reference-doc-refresher.md — agent definition.
  • lib/docs/tracked-reference-docs.ts — single source of truth for the 11-doc tracked list. Adding or removing a tracked doc requires updating both this constant and the partition table inside the slash-command file.

Upstream drift detector: /update-docs Step 6.5 — emits the drift list that triggers this command.


2.1 docs/reference/ — Core Reference Documents (24 files)

Section titled “2.1 docs/reference/ — Core Reference Documents (24 files)”

Authoritative, long-lived reference. Every file in this directory is intentionally kept live — historical/archived content lives under .planning/.archive/.reference/ instead. The 8 reference docs marked tracked in the Last verified column are also enforced by the WP2b edit-coupled freshness guard (__tests__/docs/reference-doc-edit-coupled-freshness.test.ts) and listed in lib/docs/tracked-reference-docs.ts. Post-S152B WP1 audit layout, S205C seed-run refresh.

FilePurposeAudienceTrustLast verifiedFeeds Into
SCHEMA-QUICK-REFERENCE.mdRetired — redirect stub. Schema truth now lives in supabase/types/database.types.ts + database-overrides.ts (ID-47.9)agentdeprecatedretired — ID-47.9All areas
state-of-the-product.mdCurrent tech stack, architecture, feature state (canonical — 798 lines post-WP10 split)bothauthoritativecurrent (S153)All areas
state-of-the-product-history.mdAppend-only history of session additions S93–S151 (WP10 — frozen reference)bothhistoricfrozenAll areas
product-roadmap.mdActive roadmap — pre-launch blockers, forward-looking onlybothauthoritativecurrent (S153)All areas
product-backlog.mdMain product backlog — items not currently on the roadmap (renamed from critique-product-backlog.md S150)bothauthoritativecurrent (S150)All areas
product-backlog-completed.mdCompleted items archive extracted from product backlogbothhistoriccurrentAll areas
documentation-inventory.mdThis file — comprehensive catalogue of all project documentationbothauthoritativecurrent (S205C)All areas
_archive/task-list-discipline.mdPer-field write discipline for the workflow ledgers — ID-34. Archived S491 (low-read/stale; discipline now enforced by ledger-cli soft-warn budgets + update-ledgers skill)agenthistoricarchived (S491)All areas
decision-graph.mdIntended-vs-current rosetta stone — phase-0 decisions (S227–S233) mapped to ratified+built state (S234–S251). Promoted + rebuilt S267 from phase-0-investigation/0.9-decision-graph.md (now a stub)bothauthoritativecurrent (S267)All areas
deferral-register.mdForward register of every [DEFERRED-v1.1]/[DEFERRED-v2]/[DEFERRED-POST-LAUNCH] item (source + rationale) — seeds the new product roadmap. Sibling of decision-graph.md (S267)bothauthoritativecurrent (S267)All areas
ai-integration-strategy.mdMaster AI strategy — four-layer modelbothauthoritativetracked — S205Cai-integration
ai-integration-layers.mdFour-layer AI architecture reference guidebothauthoritativetracked — S205Cai-integration
ai-visibility-policy.mdAI visibility and branding policy — invisible infrastructurebothauthoritativecurrentAll areas
auth-hooks.mdAuth hooks reference — getAuthorisedClient() discriminated union, authFailureResponse() HTTP routingagentauthoritativecurrentadministration
classification-prompt.mdClassification prompt — loaded by Python pipeline at runtimeagentauthoritativetracked — S205Cknowledge-organisation
classification-architecture.mdClassification architecture — Pass 1/Pass 2 flow, diagnostic questionsagentauthoritativetracked — S205Cknowledge-organisation
entity-type-taxonomy-spec.mdEntity type taxonomy — source of truth for entity classificationagentauthoritativetracked — S205Cknowledge-organisation
field-consumer-dependency-map.mdField → consumer dependency map for schema changesagentauthoritativetracked — S205CAll areas
data-entry-points.mdCanonical reference for every write path into content_items + Appendix D change_reason vocabularyagentauthoritativetracked — S205CAll areas
two-pass-validation-architecture.mdTwo-pass classification validation architectureagentauthoritativecurrentknowledge-organisation
two-pass-validation-results.mdS151 WP3 measurement results — precision 41.7% against ≥70% launch targetbothauthoritativecurrent (S151)knowledge-organisation
sector-intelligence-pathway.mdSector Intelligence product pathwaybothauthoritativecurrentsector-intelligence
prompt-improvement-methodology.mdPrompt-improvement methodology (created S152B WP1 from archived prompt-improvement docs)agentauthoritativecurrent (S152B)ai-integration
product-differentiation-audit.mdSales-ready competitive analysis and demo readinesshumanauthoritativecurrentbid-management
mcp-app-build-guide.mdTechnical guide for building, testing, deploying MCP Appsagentauthoritativecurrent (S151)ai-integration
ux-principles.mdThe 13 governing UX principles, extracted from ADS v1.0 §6bothauthoritativecurrentAll areas

Changes from the S108/S117 inventory:

  • Added (S152B WP1): state-of-the-product-history.md (split from canonical), prompt-improvement-methodology.md (new), data-entry-points.md (from elsewhere), classification-architecture.md, entity-type-taxonomy-spec.md, field-consumer-dependency-map.md, two-pass-validation-architecture.md, two-pass-validation-results.md, sector-intelligence-pathway.md.
  • Removed from docs/reference/ (S152B WP1 — moved, not deleted): content-readiness-tracker.mddocs/operations/; taxonomy-change-runbook.mddocs/operations/ (was in reference briefly); si-feed-onboarding-strategy.mddocs/operations/; content-enrichment-candidates-s98.mddocs/audits/content/; strategic-product-assessment.md + strategic-assessment-gap-analysis.mddocs/audits/strategic/; sector-intelligence-phase0-research.md + sector-intelligence-phase1-research.md + si-extraction-audit-s149.md + si-gap-analysis-s149.md + si-gap-analysis.mddocs/audits/sector-intelligence/; ai-eval-gap-analysis-s149.md + ai-eval-research-s149.md + ai-touchpoint-map-and-improvement-strategy.mddocs/audits/ai-eval/; classification-framework-analysis.md + classification-investigation-report.md + entity-taxonomy-gap-analysis.mddocs/audits/classification/; content-readiness-review.md + 2026-03-03-knowledge-platform-design.md + prompt-skill-engineering-vision.md + systematic-prompt-improvement-approach.md.planning/.archive/.reference/; context-graph-research.md.planning/.archive/.research/.

2.2 docs/specs/ — Implementation Specs (12 files)

Section titled “2.2 docs/specs/ — Implementation Specs (12 files)”

Active and recently-landed specs. Completed and historical specs are archived to .planning/.archive/.specs/ as part of the S108/S123 archive reorganisation — specs in this directory are expected to be referenced from the current roadmap or from an in-flight WP.

FilePurposeTrustCurrencyFeeds Into
demo-bootstrap-spec.mdPre-launch demo environment bootstrap (S136, roadmap §1.3) — seed.sql + bootstrap-instance.sh + onboard-client.shauthoritativecurrent (S136)administration
si-prompt-refinement-skill-spec.mdPrompt refinement skill (§2.2 PRE-LAUNCH BLOCKER post-S151 elevation) — entity precision recoveryauthoritativecurrent (S151)knowledge-organisation
ai-eval-phase2-classification-skill-spec.mdAI evaluation Phase 2 — classification skill evaluation layerauthoritativecurrent (S144)ai-integration
mcp-evaluation-spec.mdMCP evaluation Layer 5 spec (L1/L3/L4 live — see scripts/mcp-eval/)authoritativecurrentai-integration
bid-testing-strategy-spec.mdBid workflow UAT scenario specsauthoritativecurrentbid-management
template-driven-completeness-spec.mdTemplate-driven completeness — phases complete + remainingauthoritativecurrentbid-management
workspaces-launcher-spec.mdWorkspaces launcher design specauthoritativecurrentcontent-management
workspaces-launcher-gap-analysis.mdGap analysis for the workspaces launcher spec against current implementationhistoriccurrentcontent-management
silent-failure-prevention-spec.mdSilent failure prevention — sb() wrapper + ESLint rules (S151/S152C)authoritativecurrent (S152C)administration
silent-failure-migration-s152c.mdS152C migration plan for the silent failure prevention rollouthistoriccurrent (S152C)administration
structured-logging-spec.mdStructured logging spec — domain.entity.action naming, logBestEffortWarn helperauthoritativecurrent (S152C)administration
python-pipeline-config-env-vars-spec.mdPython pipeline configuration and environment variable referenceauthoritativecurrentknowledge-organisation

Changes from S108 (67 → 12): bid-session-coverage-spec.md, bid-session-implementation-plan-s116.md, jsonb-normalisation-spec.md, jsonb-data-model-assessment-s116.md, and upload-page-review-spec.md archived after their work completed. New specs landed via S136 (demo-bootstrap-spec.md), S144 (ai-eval-phase2-classification-skill-spec.md), S149 (si-prompt-refinement-skill-spec.md), S151 + S152C (silent-failure-prevention-spec.md, silent-failure-migration-s152c.md, structured-logging-spec.md), and earlier sessions (python-pipeline-config-env-vars-spec.md, workspaces-launcher-*). pipeline-parity-spec.md archived after S151 (now at .planning/.archive/.specs/pipeline-parity-spec.md).

2.3 docs/audits/ — Audits, Reviews, and Research (44 files)

Section titled “2.3 docs/audits/ — Audits, Reviews, and Research (44 files)”

Grew from 6 files (S108 inventory snapshot) to 44 files. The growth is driven by (a) S151 comprehensive codebase audit wave producing ~22 audit documents, (b) S152A/B production-bug investigations, and (c) the S152B WP1 reference-folder reorganisation which moved all time-bounded audit/research material out of docs/reference/ into topic subfolders under docs/audits/.

Top level — session-scoped audit and investigation documents:

FilePurposeSessionStatus
s151-ai-integration-audit.mdAI integration end-to-end auditS151historic
s151-api-silent-failure-audit.mdAPI silent-failure patterns audit — feeds into silent-failure-prevention-spec.mdS151historic
s151-clean-routes-reaudit.mdClean-routes re-audit after first-pass fixesS151historic
s151-continuation-prompt-audit.mdContinuation-prompt archival recommendationsS151actioned (S152B WP13)
s151-decision-responses.mdLiam’s Q&A responses to S151 findings (actioned S152B WP12)S151actioned
s151-context-graph-research-implementation-status.mdContext-graph research vs implementation statusS151historic
s151-e2e-coverage-gaps.mdE2E test coverage gap analysisS151historic
s151-fail-fast-partial-response-decisions.mdFail-fast / partial response decisions recordS151historic
s151-guard-tests-adversarial-review.mdAdversarial review of S151 guard testsS151historic
s151-lint-cleanup-report.mdLint-cleanup report for S151S151historic
s151-lint-triage.mdLint warning triage for S151S151historic
s151-mcp-app-build-guide-gap-analysis.mdMCP app build guide gap analysisS151actioned (S152B P-1)
s151-phase5-verification.mdPhase 5 verification logS151historic
s151-prompt-skill-engineering-vision-coverage.mdPrompt skill engineering vision coverage checkS151historic
s151-reference-folder-audit.mdPlan for the reference-folder reorganisation (executed S152B WP1)S151actioned (S152B WP1)
s151-silent-failure-recheck.mdSilent failure re-check after initial fixesS151historic
s151-silent-failure-root-cause-analysis.mdRoot-cause analysis for S151 silent failure findingsS151historic
s151-specs-gap-analysis.mdSpecs gap analysisS151historic
s151-wave1-adversarial-review.mdWave 1 adversarial reviewS151historic
s151-wave2-adversarial-review.mdWave 2 adversarial reviewS151historic
s151-wp14-fk-indexes-and-perf.mdS151 WP14 FK indexes + performance investigationS151historic
s152a-bid-drafting-production-bugs.mdThree production bugs (#16 CharacterCount, #17 sync guard, #18 reload)S152Aactioned (S152B WP14)
s152a-feed-sources-rootcause.mdFeed sources root-cause analysisS152Ahistoric
s152a-wp2-phase4-verification-log.mdPhase 4 §8.0.8 verification logS152Aactioned (S152B WP14)
s152b-wp15-test-infra.mdWP15 test-infrastructure audit (written S153; verification runs tracked in §6)S152B / S153partial — awaiting 3× —workers=3 verification

docs/audits/ai-eval/ — AI evaluation research (3 files, moved S152B WP1):

FilePurpose
ai-eval-gap-analysis-s149.mdAI eval gap analysis — source of truth for AI eval roadmap items (§3 in roadmap)
ai-eval-research-s149.mdAI eval research document
ai-touchpoint-map-and-improvement-strategy.mdMap of AI touchpoints + improvement strategy

docs/audits/classification/ — Classification audits (3 files, moved S152B WP1):

FilePurpose
classification-framework-analysis.mdClassification framework analysis
classification-investigation-report.mdClassification investigation report
entity-taxonomy-gap-analysis.mdEntity taxonomy gap analysis

docs/audits/content/ — Content audits (1 file, moved S152B WP1):

FilePurpose
content-enrichment-candidates-s98.mdAnalysis of 68 sales_brief layer items for enrichment potential

docs/audits/design/ — Design critique sessions (6 files, moved main 184f505):

FilePurposePersona
design-critique-session-1.mdDashboard, Login, SettingsSarah
design-critique-session-2.mdBrowse, Item DetailJames
design-critique-session-3.mdReview Queue, CoverageRachel
design-critique-session-4.mdSearch, Q&A LibraryTom
design-critique-session-5.mdCreate Content, Uploadall
design-critique-session-6.mdBid Detail, Session, Guideall

docs/audits/sector-intelligence/ — SI audits/research (5 files, moved S152B WP1):

FilePurpose
sector-intelligence-phase0-research.mdPhase 0 research for the Sector Intelligence pathway
sector-intelligence-phase1-research.mdPhase 1 research
si-extraction-audit-s149.mdSI extraction audit
si-gap-analysis-s149.mdSource of truth for remaining SI roadmap items (roadmap §2 references this)
si-gap-analysis.mdEarlier SI gap analysis

docs/audits/strategic/ — Strategic assessment (2 files, moved S152B WP1):

FilePurpose
strategic-product-assessment.mdPre-client-access product positioning assessment
strategic-assessment-gap-analysis.mdGap analysis against strategic assessment recommendations

2.4 docs/design/ — Design System (4 files)

Section titled “2.4 docs/design/ — Design System (4 files)”

Warm Meridian design system — unchanged since S108 in file count.

FilePurposeAudienceTrustCurrencyFeeds Into
warm-meridian-philosophy.mdDesign philosophy — foundational principlesbothauthoritativecurrentAll areas
warm-meridian-implementation-spec.mdImplementation spec — semantic tokens, colour system, componentsagentauthoritativecurrentAll areas
warm-meridian-identity.pdfVisual identity referencehumanauthoritativecurrentAll areas
warm-meridian-audit-report.mdPost-migration audit — zero raw Tailwind violations foundagenthistoricfrozenAll areas

2.5 docs/operations/ — Operational Guides (11 files)

Section titled “2.5 docs/operations/ — Operational Guides (11 files)”

Grew from 6 → 9 files in S152B WP1 by relocating operational runbooks out of docs/reference/ where they had accumulated. S156 added database-rebuild-runbook.md. S168 WP1c added re-ingestion-quality-protocol.md.

FilePurposeAudienceTrustCurrencyFeeds Into
production-setup-guide.mdStep-by-step Vercel + Supabase deployment guidehumanauthoritativecurrentadministration
bid-library-import-guide.mdGuide for importing Q&A pairs from .docx filesbothauthoritativecurrentcontent-management
search-evaluation-guide.mdHow to run and interpret the 24-case search evaluation suitebothauthoritativecurrentsearch
e2e-test-flows.mdComprehensive E2E test flow specificationsbothauthoritativecurrentadministration
e2e-test-setup.mdE2E test data setup runbookbothauthoritativecurrentadministration
test-bid-resources.mdTest bid templates, portals, and sample documentsbothhistoricfrozenbid-management
taxonomy-change-runbook.mdRunbook for taxonomy changes — 7-step chain with 2 manual steps (moved from reference S152B WP1)agentauthoritativecurrentknowledge-organisation
content-readiness-tracker.mdCentral task tracker for pre-client-access quality gates (moved from reference S152B WP1)bothhistoricfrozencontent-management
si-feed-onboarding-strategy.mdTier 1/Tier 2 SI feed onboarding strategy (moved from reference S152B WP1)bothauthoritativecurrentsector-intelligence
database-rebuild-runbook.mdEnd-to-end runbook for rebuilding a Supabase project (pilot/demo/client)bothauthoritativecurrentadministration
re-ingestion-quality-protocol.mdSix-step quality gate for re-ingestion: snapshot, compare, divergence assessment, DOCX checklistbothauthoritativecurrentcontent-management

Note: docs/operations/ count drifted from 11 (S153) to 20 (S205C re-count). The §2.5 table above still reflects the S153 layout and is missing 9 newer files. A full §2.5 refresh is out of scope for the S205C seed run (operational runbooks are not in TRACKED_REFERENCE_DOCS); flag for next inventory wave.

2.5b docs/runbooks/ — Tracked Operational Runbooks (7 files)

Section titled “2.5b docs/runbooks/ — Tracked Operational Runbooks (7 files)”

Tracked runbooks introduced post-S153 by the kh-prod-readiness track. Three are in TRACKED_REFERENCE_DOCS (enforced by the WP2b edit-coupled freshness guard); ci.md is informational and not yet tracked.

FilePurposeAudienceTrustLast verifiedFeeds Into
local-development.mdLocal dev setup — .env.local single source, prod/staging opt-in via --env=prod, sandbox bypass for CLI commandsbothauthoritativetracked — S205Cadministration
staging-refresh.mdPersistent staging branch refresh procedure (kh-prod-readiness-S3) + S8 user_profiles parity verificationagentauthoritativetracked — S205Cadministration
github-environments.mdGitHub Environments setup — case-sensitive Production/Staging, env-var allocation post WP-S5.1/S5.2humanauthoritativetracked — S205Cadministration
ci.mdCI workflow runbook — added kh-prod-readiness-S7 WP-G4.1 (PR-blocking ci.yml chain). Not in TRACKED_REFERENCE_DOCS.bothauthoritativenot trackedadministration
cocoindex-deploy.mdRETIRED (S298) — cocoindex sidecar Cloud Run deploy (historical only; Cloud Run decommissioned, pipeline now on-prem via Coolify — see onprem-b1-deploy.md). Documents the two boot-required DBs (COCOINDEX_DB_DSN secretKeyRef + COCOINDEX_DB LMDB path), in-memory volume choice + Filestore persistence OQ, deploy + verify-GREEN commands (ID-49.9).humanhistorictracked — S271administration
_archive/staging-coolify-cocoindex.mdStaging Coolify stand-up runbook — staging mirror of the on-prem cocoindex stack (ID-66.21). Archived S491 (stand-up executed; live staging-stack ops + idle-mode boot triage now in onprem-b1-deploy.md; stale-era project refs + pullmd content)humanhistoricarchived (S491)administration
secret-rotation.mdPipeline + app secret-rotation runbook — inventory of rotatable secrets + their surfaces, the {127.18} dual-accept pattern, cadence + ownership, and the S424 leaked-staging-set first-rotation checklist (4a–4h). Names + surfaces only, no values. Recovered from the S454 exec-127-18 transcript, landed S458.humanauthoritativelanded S458administration

2.6 docs/continuation-prompts/ — Session Handoffs (14 files)

Section titled “2.6 docs/continuation-prompts/ — Session Handoffs (14 files)”

Reduced from 98 files (S108) to 14. Older prompts (S1-S103) moved to .planning/.archive/.continuation-prompts/ (73 files).

Audience: agent | Trust level: historic | Currency: historic | Action: keep

FileSession
continuation-prompt-kh-104-cert-cards-diff-engine.mdS104
continuation-prompt-kh-105-frontend-audit-layer-fix.mdS105
continuation-prompt-kh-106-diff-actions-product-docs.mdS106
continuation-prompt-kh-108-product-docs-auto-gen.mdS108
continuation-prompt-kh-109-critique-implementation.mdS109
continuation-prompt-kh-110-dashboard-workspaces-reader.mdS110
continuation-prompt-kh-111-dashboard-phase3-diff-review.mdS111
continuation-prompt-kh-112-content-discovery-and-backlog.mdS112
continuation-prompt-kh-113-content-discovery-p2-p3-and-quick-wins.mdS113
continuation-prompt-kh-s114.mdS114
continuation-prompt-kh-s115.mdS115
continuation-prompt-kh-s116.mdS116
continuation-prompt-kh-s117.mdS117
continuation-prompt-template.mdTemplate

2.7 docs/generated/ — Auto-Generated Documents (4 files)

Section titled “2.7 docs/generated/ — Auto-Generated Documents (4 files)”
FilePurposeAudienceTrustCurrencyActionFeeds Into
codebase-stats.mdAuto-generated codebase statistics (Markdown)bothauthoritativecurrent (S116)keepAll areas
codebase-stats.jsonMachine-readable codebase statisticsagentauthoritativecurrent (S116)keepAll areas
mcp-inventory.mdAuto-generated MCP tool/resource/prompt inventory (Markdown)bothauthoritativecurrent (S116)keepai-integration
mcp-inventory.jsonMachine-readable MCP inventoryagentauthoritativecurrent (S116)keepai-integration

2.8 docs/product-functionality/ — Product Documentation (4 root files + subdirectory docs)

Section titled “2.8 docs/product-functionality/ — Product Documentation (4 root files + subdirectory docs)”
FilePurposeAudienceTrustCurrencyActionFeeds Into
README.mdDirectory structure, templates, authoring guidancebothauthoritativecurrent (S108)keepAll areas
_templates/user-journeys.template.mdTemplate for user journey documentationagentauthoritativecurrent (S108)keepAll areas
_templates/workflows.template.mdTemplate for system workflow documentationagentauthoritativecurrent (S108)keepAll areas
_templates/technical.template.mdTemplate for API/component technical documentationagentauthoritativecurrent (S108)keepAll areas

bid-management/ (3 files, last verified S188):

FilePurposeAudienceTrustCurrencyActionFeeds Into
technical.mdAPI routes, components, hooks, DB tables, MCP toolsbothauthoritativecurrent (S188)keepbid-management
user-journeys.mdBid creation, drafting, and export user journeysbothauthoritativecurrent (S188)keepbid-management
workflows.mdBid lifecycle state machine, 3-pass AI drafting pipelinebothauthoritativecurrent (S188)keepbid-management

content-management/ (3 files, last verified S188):

FilePurposeAudienceTrustCurrencyActionFeeds Into
technical.mdAPI routes, components, DB tables, dedup, supersession, quality gatebothauthoritativecurrent (S188)keepcontent-management
user-journeys.md7 user journeys with role permissionsbothauthoritativecurrent (S188)keepcontent-management
workflows.md9 data-flow workflows with state transitionsbothauthoritativecurrent (S188)keepcontent-management

knowledge-organisation/ (3 files, last verified S188):

FilePurposeAudienceTrustCurrencyActionFeeds Into
technical.mdTaxonomy, entities, layers, guides — components, hooks, API routesbothauthoritativecurrent (S188)keepknowledge-organisation
user-journeys.mdTaxonomy admin, entity management, guide authoring user journeysbothauthoritativecurrent (S188)keepknowledge-organisation
workflows.mdTaxonomy sync pipeline, entity lifecycle, layer validation, guide publishingbothauthoritativecurrent (S188)keepknowledge-organisation

Subdirectories with .gitkeep only: search/, quality-governance/, ai-integration/, administration/

Note: Several of the above subdirectories now contain real .md files beyond .gitkeep and need inventory entries added. This was identified during S188 content-management refresh but is out of scope for this update.

2.9 docs/database/ — Database Documents (2 files)

Section titled “2.9 docs/database/ — Database Documents (2 files)”
FilePurposeAudienceTrustCurrencyActionFeeds Into
schema-2025-03-05.sqlHistorical schema snapshot (context only, not executable)agenthistoricoutdatedkeepadministration
qa-backup-pre-reingestion-20260319.jsonBackup of Q&A pairs before S97 re-ingestionagenthistorichistorickeepcontent-management
FilePurposeAudienceTrustCurrencyActionFeeds Into
uat-scenario-1-results.mdUAT Scenario 1: Standard Selection Questionnaire resultsbothhistorichistoric (S77)keepbid-management
uat-scenario-2a-results.mdUAT Scenario 2a resultsbothhistorichistorickeepbid-management
uat-scenario-2b-results.mdUAT Scenario 2b resultsbothhistorichistorickeepbid-management
s77-uat-research-synthesis.mdConsolidated findings from UAT Scenario 1 and 8 research agentsbothhistorichistoric (S77)keepbid-management
e2e-results-session-57.mdE2E test results from Session 57 (12 flows, all passed)agenthistorichistoric (S57)keepadministration

2.11 docs/client-documentation/ — Client-Facing Documents (22 files)

Section titled “2.11 docs/client-documentation/ — Client-Facing Documents (22 files)”
FilePurposeAudienceTrustCurrencyActionFeeds Into
Knowledge Hub — Platform Overview.mdClient-facing platform overview documenthumanauthoritativecurrent (S191)keepAll areas
Knowledge Hub — Claude Integration Guide.mdClient-facing Claude integration guidehumanauthoritativecurrent (S107)keepai-integration
sector-intelligence-analysis.mdAnalysis of sector intelligence brief from clientbothhistorichistoric (S77)keepcontent-management

Source bid library documents from client (Phew Design). Not individually inventoried — these are input data files, not documentation.

  • 4 “2026 Audit” template .docx files (FAQs, Functionality, Implementation, Security)
  • 3 “DRAFT 2026 Phew” template .docx files
  • 1 Product KB Dev Brief .docx
  • 1 Sector Intelligence Brief .docx

Markdown Conversions (8 files in markdown/ subdirectory)

Section titled “Markdown Conversions (8 files in markdown/ subdirectory)”

Markdown versions of the .docx files above, produced by pandoc conversion for pipeline processing. All historic.

FilePurposeAudienceTrustCurrencyAction
Telehouse-South-Fact-Sheet-2025.pdfClient reference document (data centre fact sheet)humanhistorichistorickeep

2.12 .planning/codebase/ — Codebase Analysis (7 files)

Section titled “2.12 .planning/codebase/ — Codebase Analysis (7 files)”

All produced by Session 96 codebase review. Analysis date: 2026-03-20.

FilePurposeAudienceTrustCurrencyActionFeeds Into
ARCHITECTURE.mdArchitecture patterns, layers, data flowagentauthoritativecurrent (S96)keepAll areas
CONCERNS.mdTechnical debt, known issues, risk areasagentauthoritativeneeds-updateupdateadministration
CONVENTIONS.mdCoding conventions, naming patterns, file structureagentauthoritativecurrent (S96)keepAll areas
INTEGRATIONS.mdExternal API integrations (Anthropic, OpenAI, Supabase)agentauthoritativecurrent (S96)keepai-integration
STACK.mdTechnology stack details (languages, frameworks, versions)agentauthoritativecurrent (S96)keepAll areas
STRUCTURE.mdFull directory layout with file-level detailagentauthoritativeneeds-updateupdateAll areas
TESTING.mdTesting patterns, frameworks, mock strategiesagentauthoritativeneeds-updateupdateadministration

2.13 .planning/reviews/ — Codebase Reviews (52 files)

Section titled “2.13 .planning/reviews/ — Codebase Reviews (52 files)”

Structured codebase review runs from Session 84/91. All historic.

Audience: agent | Trust: historic | Currency: historic | Action: keep

CategoryCountContents
2026-03-13 root (run 1)17Scope 1-6 findings, verification 1-3, triage, partitions, deterministic findings, combined findings, plugin improvements, review report
2026-03-13 run 214Scope 1-6 findings, verification 1-4, triage, partitions, deterministic findings, review report
2026-03-13 run 315Scope 1-6 findings, verification 1-4, triage, partitions, pattern checker, deterministic findings, review report
Combined findings1COMBINED-FINDINGS-RUNS-3-4.md
Session 47 reviews5Content CRUD, settings/taxonomy, spec, implementation, cross-spec consistency

2.14 .planning/.archive/ — Archived Documents (442 files)

Section titled “2.14 .planning/.archive/ — Archived Documents (442 files)”

All documents here have been moved from their original locations during the S116/S117 reorganisation. They are kept for decision context and historical reference. All are historic.

Audience: agent | Trust: historic | Currency: historic | Action: keep (archived)

SubdirectoryCountContents
.specs/121All completed implementation specs — from docs/specs/, .planning/specs/, including verification subdirectory, historical plan documents, session-94 specs, design brainstorm, post-mvp-backlog
.research/79Claude capabilities (29), plugin examples (5), tool evaluations (14), market research (5), competitor analysis (3), other research (23)
.continuation-prompts/73Session handoffs from S1-S103, s50 redesign plans, s84 fix prompts, standalone prompts
.audits/70Session-level audits (S36-S98), s105 audit report and all sub-reports, wp4 verification, gap analyses, critique-gap-crossref, investigation reports, content/data audits, schema/pipeline reviews
.session-exports/32S77 transcript + 6 subagent outputs, s91 20 subagent outputs + prompts, session-66b stub, s54 conversation
.claude-desktop/21Claude Desktop subagent outputs and feedback files
.session-extracts/20Session 36 subagent outputs (17 numbered + main-session + prompts)
.feasibility/18Original feasibility study from S34-34b (00-state-of-play through track4-tool-investigation)
.design-audit/15Design audit findings — browse, bid-detail, etc.
.extracted-patterns/8Extracted patterns — drawer-panel-system, loading-states-pattern, etc.

2.15 .claude/checks/ — Quality Checks (10 files)

Section titled “2.15 .claude/checks/ — Quality Checks (10 files)”
FilePurposeAudienceTrustCurrencyAction
accessibility.mdWCAG 2.1 AA compliance checksagentauthoritativecurrentkeep
architecture.mdArchitecture pattern checksagentauthoritativecurrentkeep
design-system.mdWarm Meridian design system adherenceagentauthoritativecurrentkeep
error-handling.mdError handling pattern checksagentauthoritativecurrentkeep
image-quality.mdImage quality and optimisation checksagentauthoritativecurrentkeep
multi-user-patterns.mdMulti-user and RLS pattern checksagentauthoritativecurrentkeep
package-manager.mdPackage manager (bun) checksagentauthoritativecurrentkeep
supabase-patterns.mdSupabase usage pattern checksagentauthoritativecurrentkeep
testing.mdTesting pattern checksagentauthoritativecurrentkeep
uk-english.mdUK English spelling and date format checksagentauthoritativecurrentkeep
FilePurposeAudienceTrustCurrencyActionFeeds Into
CLAUDE.mdProject instructions for Claude Code — commands, architecture, gotchas, conventionsagentauthoritativecurrent (S116)keepAll areas

3.1 Documents That Need Updating (Priority Order)

Section titled “3.1 Documents That Need Updating (Priority Order)”
DocumentIssueEffort
docs/reference/ai-integration-strategy.mdTool counts, sprint status may be stale (last substantive update S82)Medium — major doc
docs/reference/ai-integration-layers.mdTool counts, “what’s built vs planned” section may be staleMedium
.planning/codebase/STRUCTURE.mdFile counts and directory listing do not reflect S109-S116 additions and archive reorganisationLow — can be regenerated
.planning/codebase/TESTING.mdTest count (4,183 in doc vs 6,418 actual) and file counts staleLow
.planning/codebase/CONCERNS.mdSome concerns may have been resolved in S109-S116Low
docs/design/warm-meridian-implementation-spec.mdToken map is foundational but may not include tokens added S100+Low
docs/operations/production-setup-guide.mdMay not reflect current Vercel/Supabase configLow
docs/operations/e2e-test-flows.mdE2E now has 11 spec files; may not cover newer flowsLow
docs/reference/mcp-app-build-guide.mdMCP App architecture may have evolved since S72Low
docs/reference/state-of-the-product.mdLast updated S107; S108-S116 added significant featuresMedium
  1. The archive reorganisation is a major improvement. Active documentation has been reduced from ~557 files to ~167 active files. This makes it far easier for agents to find what matters.

  2. The archive uses dot-prefixed subdirectories (.specs/, .audits/, etc.) inside .planning/.archive/. This keeps them visually separated in directory listings.

  3. Continuation prompts now only show recent sessions (S104-S117). The 73 older prompts are archived but still accessible if needed for cross-session archaeology.

  4. docs/specs/ is now focused. The 9 remaining files are genuinely active or recently relevant specs, not a mix of completed and active work.

  5. Auto-generated docs remain the most trustworthy for volatile numbers. docs/generated/codebase-stats.md and docs/generated/mcp-inventory.md should be the canonical source for tool counts, route counts, component counts, and test counts.

  6. Client-facing documentation is well-maintained. The Platform Overview was refreshed to S191 state (23/04/2026). The Claude Integration Guide was last updated in S107 and is pending a separate refresh.


Which existing documents feed into each of the 7 docs/product-functionality/ areas.

DocumentRelevance
docs/operations/search-evaluation-guide.mdSearch evaluation methodology and 24 test cases
docs/audits/design-critique-session-4.mdTom persona critique of search page
docs/reference/classification-prompt.mdClassification drives search relevance
DocumentRelevance
docs/specs/upload-page-review-spec.mdUpload page improvements (S107)
docs/operations/bid-library-import-guide.mdImport pipeline operations
docs/audits/design-critique-session-2.mdJames persona critique of browse/item detail
docs/audits/design-critique-session-5.mdAll personas critique of create content/upload
.planning/.archive/.reference/content-readiness-review.mdContent quality analysis (historic but informative)
DocumentRelevance
docs/specs/bid-session-coverage-spec.mdBid session enhancements (active spec, B2/B3 remaining)
docs/specs/template-driven-completeness-spec.mdTemplate completeness (active spec)
docs/specs/bid-testing-strategy-spec.mdBid UAT scenarios (active spec)
docs/uat/uat-scenario-1-results.mdUAT Scenario 1 results
docs/uat/uat-scenario-2a-results.mdUAT Scenario 2a results
docs/uat/uat-scenario-2b-results.mdUAT Scenario 2b results
docs/uat/s77-uat-research-synthesis.mdUAT research synthesis
docs/audits/design-critique-session-6.mdAll personas critique of bid detail/session
docs/reference/product-differentiation-audit.mdCompetitive positioning for bid features
DocumentRelevance
docs/audits/design-critique-session-3.mdRachel persona critique of review queue/coverage
docs/reference/product-backlog.mdMain product backlog (renamed from critique-product-backlog.md in S150)
DocumentRelevance
docs/product-functionality/knowledge-organisation/technical.mdAPI routes, components, hooks, DB tables, MCP tools (S188)
docs/product-functionality/knowledge-organisation/user-journeys.mdUser journeys for all knowledge-organisation subsystems (S188)
docs/product-functionality/knowledge-organisation/workflows.mdData flows: taxonomy, entity, layer, tag, coverage workflows (S188)
docs/reference/classification-prompt.mdClassification taxonomy (7 domains, 34 subtopics)
.planning/.archive/.research/context-graph-research.mdContext graph research decision
DocumentRelevance
docs/reference/ai-integration-strategy.mdMaster AI strategy document
docs/reference/ai-integration-layers.mdFive-layer architecture reference
docs/reference/ai-visibility-policy.mdAI branding and visibility policy
docs/generated/mcp-inventory.mdCurrent MCP tool/resource/prompt inventory
docs/specs/mcp-evaluation-spec.mdMCP evaluation L5 (active spec)
docs/reference/mcp-app-build-guide.mdMCP App build guide
docs/client-documentation/Knowledge Hub — Claude Integration Guide.mdClient-facing integration docs
DocumentRelevance
docs/specs/jsonb-normalisation-spec.mdJSONB normalisation (active spec)
docs/operations/production-setup-guide.mdDeployment guide
docs/operations/e2e-test-flows.mdE2E test specifications
docs/operations/e2e-test-setup.mdE2E test data setup
.planning/codebase/CONCERNS.mdTechnical debt tracker
.planning/codebase/TESTING.mdTesting patterns and infrastructure
docs/reference/SCHEMA-QUICK-REFERENCE.mdRetired — redirect to generated types

These documents are relevant across all functional areas and should be consulted regularly by authoring agents:

DocumentWhy It Matters
docs/reference/state-of-the-product.mdSingle source of truth for what is built
docs/reference/SCHEMA-QUICK-REFERENCE.mdRetired — redirect to generated DB types
docs/generated/codebase-stats.mdVolatile counts — always current
docs/generated/mcp-inventory.mdMCP tool/resource/prompt list — always current
docs/reference/ai-visibility-policy.mdAI branding policy — invisible infrastructure
docs/design/warm-meridian-philosophy.mdDesign principles
docs/design/warm-meridian-implementation-spec.mdSemantic tokens and component patterns
.planning/codebase/ARCHITECTURE.mdArchitecture patterns and layers
.planning/codebase/CONVENTIONS.mdCoding conventions
CLAUDE.mdProject instructions, commands, gotchas