Skip to content

Land FOC Platform v1 demo-to-production stack #5

Description

@snissn

Goal

Land the FOC Platform v1 demo-to-production stack selected in spec.md: platform EOA/KMS payer, FOC session-key coordinator, hosted coordination, section 6.7 registry semantics, Token Host Builder-generated app/admin/read/upload scaffolding, and a reproducible Filecoin Calibration demo with production hardening gates.

Current Evidence

Desired State

The repo contains an executable implementation, not only a spec:

  • FocPlatformRegistry preserves the section 6.7 lifecycle, access, idempotency, receipt, and accounting invariants.
  • A hosted coordinator uses Synapse SDK and FOC session keys to execute uploads and finalize compact receipts.
  • A platform API/relay surface exposes normal product upload/status/object/usage flows.
  • Token Host Builder is used strongly for generated app, admin/read surfaces, upload adapter wiring, manifest metadata, and sponsored transaction UX.
  • A Calibration demo is reproducible and the production-readiness boundary is explicit.

Scope

  • Build the first executable FOC Platform implementation from the current spec.
  • Keep FocPlatformRegistry / section 6.7 semantics authoritative unless Token Host Builder proves equivalent generated module support.
  • Use Token Host Builder strongly for generated demo app, admin/read surfaces, upload adapter wiring, manifest metadata, and sponsored transaction UX.
  • Produce a Calibration-backed demo that is honest about what is demo-ready versus production-ready.

Non-Goals And Boundary

  • Do not make smart-account payer, contract treasury payer, direct browser-to-FOC upload, BYO coordinator, or proof/challenge finalization v1 defaults without Phase 0 evidence plus a spec update.
  • Do not treat generic Token Host CRUD generation as production-equivalent to section 6.7 lifecycle/accounting/receipt semantics.
  • Do not put platform root keys, coordinator private keys, or privileged session keys into browser or generated static artifacts.

Dependency Graph

M0 Phase 0 compatibility report
M1 Repo/toolchain/CI scaffold

Core lane:
  M2 FocPlatformRegistry v1 contract
  M3 Vertical-slice upload spine
  M4 Contract deploy/read/index surface
  M5 Hosted Synapse/session-key coordinator
  M6 Platform API/relay surface

Demo/generated lane:
  M7 Token Host Builder wrapper/demo app
  M8 Admin/reconciliation views

Release lane:
  M9 End-to-end Calibration demo
  M10 Production hardening/runbook
Node Issue Blocks / enables
M0 #6 Blocks production registry/coordinator/demo claims; validates v1 FOC assumptions
M1 #7 Blocks all implementation PRs that need repo commands/CI
M2 #8 Blocks vertical slice, deploy/read model, coordinator, API, and demo integration
M3 #9 Enables early demo/UI integration with a dev/mocked coordinator path
M4 #10 Enables API, coordinator, Token Host wrapper, admin, and demo release
M5 #11 Enables real FOC upload/finalization and end-to-end demo
M6 #12 Enables product/generated clients to drive the lifecycle
M7 #13 Enables public generated demo app path; can use wrapper mode if builder custom module lags
M8 #14 Enables operator/admin/reconciliation demo proof
M9 #15 Proves demo-ready lifecycle on Calibration
M10 #16 Closes production-minded hardening/runbook boundary

External Token Host Builder Dependencies

The platform graph must not wait for perfect builder generation before proving the v1 platform path. Use wrapper mode around the hand-written registry whenever builder work lags, and keep any remaining builder gap linked.

North-Star Gates

Gate Current Target Required evidence If the gate fails
Calibration session-key path Spec only One object uploaded through platform EOA/KMS root plus FOC session-key coordinator tx hashes/logs, SDK/tool commands, receipt evidence Keep Phase 0 open and block production coordinator/contract claims
Registry lifecycle correctness Spec only Section 6.7 lifecycle, access, idempotency, receipt, and accounting invariants pass focused tests contract tests and event/error assertions Block dependent API/coordinator/demo claims
Generated demo integration Spec only Token Host generated/wrapped app can drive or display the upload flow without weakening registry semantics build artifact, manifest, UI/demo proof Use wrapper mode or keep builder issue linked as blocker
Reconstructable state Spec only Object, usage, coordinator, and receipt state can be reconstructed from chain/events plus FOC evidence index/read tests and reconciliation proof Add/keep reconciliation blocker before production hardening closes
Secret isolation Spec only no root/coordinator private key material in browser/static/generated artifacts config review, secret scan, docs Block release/demo publication
Reproducible demo None exact commands run on a clean checkout against Calibration runbook, env template, final evidence table Keep demo issue open

Branch And PR Policy

No repo-local AGENTS.md, CONTRIBUTING.md, or PR template exists today. Until the repo adds stricter governance:

  • Work happens on topic branches.
  • Direct pushes to main are avoided unless explicitly authorized.
  • Each child issue lands through a focused PR.
  • PRs must be mergeable before merge: latest-head checks, focused tests, required evidence, and resolved review threads.
  • Codex, Copilot, and CodeRabbit reviews are requested only after the PR is mature enough to avoid review-credit churn: coherent code, focused tests, required evidence or rationale, current PR body/status evidence, no known local blockers, and latest-head CI running or green.
  • Stale non-head CI runs should be canceled when CI exists; only latest-head checks count.

Required PR Body Sections

  • Linked tracker issue and graph node.
  • Start-phase test/evidence plan.
  • Close-phase test evidence.
  • Close-phase demo/compatibility evidence when relevant.
  • Security/secret-handling assessment when touching coordinator, API, generated UI, deployment, or credentials.
  • AI review status and unresolved thread summary.

Completion Criteria

This umbrella closes only when:

  • M0-M10 are complete or explicitly superseded by linked replacement issues.
  • The end-to-end Calibration demo has reproducible evidence.
  • Token Host Builder is used for the generated app/demo/admin surface or the exact external blockers are linked and wrapper mode remains documented.
  • Production-readiness claims are limited to what the evidence proves.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions