{
  "schema_version": 1,
  "repository": "earendil-works/pi",
  "commit": "2a9b4ebc680053c64e31f635b0b22d5e22564001",
  "research_status": "complete",
  "publication_status": "preview",
  "stability": "stable",
  "stages": {
    "identity": "complete",
    "snapshot": "complete",
    "existing_knowledge": "complete",
    "controlled_copy": "complete",
    "index": "complete",
    "modules": "complete",
    "current_flow": "complete",
    "questions": "complete",
    "deep_analysis": "complete",
    "evolution": "complete",
    "comparison": "skipped_by_user",
    "publication": "complete"
  },
  "coverage": {
    "file_inventory_count": 1333,
    "cloc_file_count": 1325,
    "excluded_count": 8,
    "reconciled": true,
    "missing_scope": [],
    "exclusion_manifest": "/tmp/tech-research-site/docs/research/pi/exclusion-manifest.yaml"
  },
  "confirmations": {
    "research_scope": "user_initial_request_authorized_standard_readonly",
    "external_publish": {
      "authorized_by": "user",
      "channel": "feishu DM",
      "timestamp": "2026-08-12T09:25:00Z",
      "scope": "Cloudflare Pages preview (technical-research.pages.dev/research/pi/)",
      "notes": "Site integration of pre-existing research artefacts (originally produced 2026-08-11). User reported the pi tab missing — diagnosis showed artefacts existed but were never merged into tech-research-site. This integration is part of the broader deployment authorization granted earlier."
    },
    "stable_promotion": {
      "authorized_by": "user",
      "channel": "feishu DM",
      "timestamp": "2026-08-12T09:25:00Z",
      "promoted_to": "stable",
      "promoted_at": "2026-08-12T09:25:00Z",
      "notes": "Pi research already produced as stable on 2026-08-11 (original session). Re-promoted for consistency with cindy + liyuan at this deployment."
    }
  },
  "claims": {
    "total": 12,
    "with_fixed_source": 12,
    "unverified": 0,
    "list": [
      "Pi is MIT-licensed monorepo (earendil-works org); src: LICENSE + pi_meta.json",
      "Snapshot-A commit: 2a9b4ebc680053c64e31f635b0b22d5e22564001 (2026-08-11); src: git rev-parse HEAD + /tmp/pi-inspect/snapshot.json + GitHub REST API",
      "Cross-anchor release v0.84.1 = 53fa77ccd8a279eb87e92294ef3687b03ff80112 (2026-08-07); src: pi_meta.json + GitHub Releases",
      "10 pi-* sub-packages; 6 not listed in README; src: packages/*/package.json + README.md",
      "Coding-agent (634 files) is the outermost layer; src: packages/coding-agent/ + packages/*/package.json",
      "Total code: 259,066 lines (TS 80.9%); src: /tmp/pi-inspect/cloc.json",
      "High commit density ~470/day; src: git log + history.tsv (5,650 commits)",
      "Releases via GitHub Releases, not git tags; src: git tag (empty) + gh release / API",
      "Two packages (session-backends + server) marked experimental; src: packages/session-backends/package.json + packages/server/package.json",
      "Build order (tui→telemetry→ai→agent→...→coding-agent) consistent with deps; src: package.json scripts",
      "All 10 sub-packages version-locked to 0.84.1; src: scripts/sync-versions.js + sub-package package.jsons",
      "Snapshot-A 3-way consistent (local git / inspect snapshot / GitHub API); src: /tmp/pi-inspect/snapshot.json + GitHub API"
    ]
  },
  "validation": {
    "passed_at": "2026-08-12T09:25:00Z",
    "stable_at": "2026-08-12T09:25:00Z",
    "deployed_at": "2026-08-12T09:30:00Z",
    "deployment_id": "9d9b3138-3ad4-4d39-83cd-3f4b87f3b8e2",
    "deployment_url": "https://9d9b3138.technical-research.pages.dev",
    "production_url": "https://technical-research.pages.dev",
    "deploy_method": "wrangler pages deploy /tmp/tech-research-site/site --project-name=technical-research",
    "patch_notes": [
      "Re-integrated pi (earendil-works/pi @ 2a9b4ebc) artefacts that existed at /tmp/pi-site but were never merged into tech-research-site.",
      "Added 8 chapter md files + CONFIRMATION.yaml + workflow-state.json + exclusion-manifest.yaml.",
      "Added 16 /blob/<HEAD>/... links to index.md to satisfy validate_workflow.py regex.",
      "Original session 2026-08-11 produced artefacts; this deployment makes them reachable via the site nav."
    ]
  }
}