Do not rewrite Foundry.
The right next layer is to extend the existing Foundry control/evidence spine into four tightly-coupled product surfaces:
Those should ship as one staged Local AI Ops layer with clear boundaries:
The approved Hermes/PDF Ops seam is already strong enough to act as the first proof workflow. The missing work is mostly productization and contract wiring, not invention.
/Users/lilly/clawd/projects/foundry-core/src/foundry_core/manifest.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/daemon.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/adapter_manager.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/runtime_inspector.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/observability.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/support_bundle.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/store.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/runtime/truth.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/adapters/hermes.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/capacity_guard.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/cli.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/status_dashboard.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/support_summary.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/foundry_ops.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/localmaxxing_pipeline.py/Users/lilly/clawd/agents/tes/project-foundry/docs/evaluation-framework.md/Users/lilly/clawd/agents/tes/project-foundry/docs/observability-schema-v1.1.mdvisibility_summary handling: /Users/lilly/clawd/projects/local-llm-stats/src/llm_stats/foundry.py/Users/lilly/clawd/projects/local-llm-stats/src/llm_stats/status.py/Users/lilly/clawd/projects/foundry-commercialisation/contracts/foundry-v1-contract.md/Users/lilly/clawd/projects/foundry-commercialisation/packs/pack-system-v0-contract.md/Users/lilly/clawd/projects/foundry-commercialisation/decisions/localmaxxing-foundry-boundary-2026-05-01.md/Users/lilly/clawd/projects/foundry-commercialisation/release-candidate/foundry-pack/v0pdf-ops-pack contents wired to existing Hermes/PDF evidenceFoundry is the only control plane and product truth for:
Local LLM Stats owns:
It must not own:
Hermes owns:
It does not own:
LocalMaxxing owns:
It does not own:
| Surface | Existing code to reuse | Extend | Missing |
|---|---|---|---|
| Local AI Doctor | foundry_core/runtime_inspector.py, foundry_core/daemon.py::doctor, project_foundry/status_dashboard.py, project_foundry/support_summary.py, llm_stats/status.py | unify runtime, harness, capacity, pack, and permissions into one doctor verdict | pack-aware doctor clauses, operator remediation per failed clause |
| Flight Recorder | foundry_core/observability.py, foundry_core/store.py, foundry_core/support_bundle.py, project_foundry/status_dashboard.py | add route decision logs, pack run IDs, eval result links, permission-resolution snapshots | explicit flight-recorder schema, query/export command, pack-run timeline |
| Specialist Eval Harness | project_foundry/localmaxxing_pipeline.py, project_foundry/docs/evaluation-framework.md, foundry_core/store.py::benchmark_runs | convert benchmark runs into Foundry-owned route/pack eval records with thresholds and promotion state | pack/route eval registry, eval CLI/API, readiness gating on eval pass |
| Pack System v0 | pack-system-v0-contract.md, foundry_core/manifest.py, foundry_core/daemon.py, foundry_core/adapter_manager.py | add pack manifest compile/validate, lifecycle commands, grouped permissions, pack evidence spine | actual foundry pack ... implementation and persisted pack state |
| Router / model registry | foundry_core/manifest.py, foundry_core/runtime/truth.py, project_foundry/capacity_guard.py, status_dashboard.py | separate declared model roles, route readiness, fallback state, parked/offline state | pack-facing model registry/status view and route registry surfaced in status/support bundle |
| Grouped permissions | pack-system-v0-contract.md, foundry_core/security.py, foundry_core/support_bundle.py | persist grants/denials by capability group and include in status/evidence | permission resolver, storage model, doctor clauses, pack partial/demo-only states |
A single truthful operator command that answers:
foundry_core/runtime_inspector.pyproject_foundry/status_dashboard.pyproject_foundry/support_summary.pydoctor() seam in foundry_core/daemon.pyDoctor must become clause-based and pack-aware. It should report, per pack:
Without pack-aware doctor output, Pack System v0 becomes packaged mystery meat. Doctor is the first anti-theater layer.
A Foundry-owned timeline of what happened during install/check/run/eval, with enough context to debug failures and enough redaction to be support-safe.
foundry_core/observability.pyfoundry_core/store.pyfoundry_core/support_bundle.pyproject_foundry/status_dashboard.pyAdd explicit entities:
pack_idpack_versionrun_idroute_idpermission_snapshot_ideval_run_idworkflow_stephuman_review_eventEach pack run should emit a linked record chain:
Pam's Local AI Doctor / Flight Recorder recommendation is right. Supportability and trust depend on reconstructing a truthful sequence, not just showing current status.
Make route readiness and pack readiness evidence-backed instead of intuition-backed.
project-foundry/docs/evaluation-framework.mdproject_foundry/localmaxxing_pipeline.pyfoundry_core/store.pyFoundry should own a route/pack eval layer with:
declared, declared-not-proven, ready, degradedThe modular thesis only becomes commercially defensible when route choice is tested. Otherwise the router is vibes.
Turn pre-skilled workflow teams into an installable, supportable, auditable unit.
projects/foundry-commercialisation/packs/pack-system-v0-contract.mdfoundry_core/manifest.pyfoundry_core/daemon.pyprojects/foundry-commercialisation/contracts/foundry-v1-contract.mdImplement:
foundry pack install <pack>foundry pack check <pack>foundry pack run <pack>foundry pack support-bundle <pack>pdf-ops-pack should be the first real pack because it already has:
Expose, in a product-safe way, which model serves which route and whether that claim is proven.
foundry_core/manifest.pyfoundry_core/runtime/truth.pyproject_foundry/capacity_guard.py and status_dashboard.pyAdd a Foundry registry view that distinguishes:
This should remain a Foundry export first, with Local LLM Stats only displaying it.
Avoid the per-exec approval death spiral and make packs auditable as capability bundles.
pack-system-v0-contract.mdfoundry_core/security.pyfoundry_core/support_bundle.pyFoundry must persist and display permission groups with scope and state, for example:
fs.read_onlyshell.local_safeservices.controldata.customer_processoutbound.sendPack status must surface:
ready or declared-not-proven.projects/foundry-commercialisation/packs/pack-system-v0-contract.mdfoundry pack install/check/support-bundlepdf-ops-pack manifestfoundry pack run pdf-ops-pack --demodeclared-not-proven vs ready state in status/doctor/support bundleWhat this delivers A Foundry-native pack lifecycle path that validates foundry-pack/v0, resolves grouped permissions, runs pack-aware doctor/checks, and emits a pack support bundle.
Grounding files
/Users/lilly/clawd/projects/foundry-core/src/foundry_core/manifest.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/daemon.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/store.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/observability.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/support_bundle.py/Users/lilly/clawd/projects/foundry-commercialisation/packs/pack-system-v0-contract.mdMust implement
foundry pack install/check/support-bundleBinary acceptance criteria
readyfoundry pack check emits route and permission summariesWhat this delivers A real pdf-ops-pack built by wrapping the approved Hermes/PDF workflow seam into pack contents, not rebuilding the harness.
Grounding files
/Users/lilly/clawd/projects/foundry-commercialisation/packs/pack-system-v0-contract.md/Users/lilly/clawd/projects/foundry-commercialisation/contracts/foundry-v1-contract.md/Users/lilly/clawd/projects/foundry-commercialisation/adapters/hermes//Users/lilly/clawd/projects/foundry-commercialisation/release-candidate/Must implement
pack.yamlBinary acceptance criteria
What this delivers A truthful demo run path for pdf-ops-pack where Foundry records route choices, Hermes run facts, and emitted evidence as one linked supportable trace.
Grounding files
/Users/lilly/clawd/projects/foundry-core/src/foundry_core/observability.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/store.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/support_bundle.py/Users/lilly/clawd/projects/foundry-commercialisation/contracts/foundry-v1-contract.mdMust implement
foundry pack run pdf-ops-pack --demoBinary acceptance criteria
declared-not-proven state.Approve Stage 1 now.
The first implementation step should be Tes building the Foundry pack runtime spine on the existing manifest/daemon/observability/store code, because that is the smallest honest move that unlocks Doctor, Flight Recorder, Eval Harness, and PDF Ops Pack work without re-arguing architecture.
/Users/lilly/clawd/projects/foundry-core/src/foundry_core/manifest.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/daemon.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/runtime_inspector.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/observability.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/support_bundle.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/store.py/Users/lilly/clawd/projects/foundry-core/src/foundry_core/adapters/hermes.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/cli.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/capacity_guard.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/status_dashboard.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/support_summary.py/Users/lilly/clawd/agents/tes/project-foundry/src/project_foundry/localmaxxing_pipeline.py/Users/lilly/clawd/agents/tes/project-foundry/docs/evaluation-framework.md/Users/lilly/clawd/agents/tes/project-foundry/docs/observability-schema-v1.1.md/Users/lilly/clawd/projects/local-llm-stats/src/llm_stats/foundry.py/Users/lilly/clawd/projects/local-llm-stats/src/llm_stats/status.py/Users/lilly/clawd/projects/foundry-commercialisation/decisions/localmaxxing-foundry-boundary-2026-05-01.md/Users/lilly/clawd/projects/foundry-commercialisation/contracts/foundry-v1-contract.md/Users/lilly/clawd/projects/foundry-commercialisation/packs/pack-system-v0-contract.md