Implementation Status — Product Contract Features
Reading guide
Status snapshot at the cited commit, not a live dashboard. The feature table records whether product contracts were implemented and verified at the time of review.
Read the file's baseline SHA and compare with current CI or more recent evidence before citing a current completion claim.
Status labels:
EXISTING_AND_REUSABLE(code exists and can be adopted as-is for the product surface) ·NEEDS_HARDENING(exists but known gaps block productization) ·PARTIALLY_IMPLEMENTED(subset exists) ·NOT_IMPLEMENTED·NOT_VERIFIED(exists but no executed evidence at the current SHA is cited).Base:
cb0270belineage, inspected at HEADad360cf. Execution evidence quoted forexperiments/auto-protectionis from its ownIMPLEMENTATION-STATUS.md(run 2026-11-04 on8ace0d4, loopback only) — a code-level audit document, not a re-run in this task. Nothing below is a production readiness claim.
Status table — 12 core features
| # | Feature | Status | Evidence in repo | Honest gaps |
|---|---|---|---|---|
| 1 | Protection Specification | EXISTING_AND_REUSABLE (PoC-grade) | experiments/auto-protection/spec/ — schema v1, 13-invariant closed registry, validator, from-analysis/from-requirements generators; 18/18 unit tests + 9/9 adversarial spec legs BLOCKED (per auto-protection status doc) | Loopback PoC; approval lifecycle is a convention (draft flag + REQUIRES_APPROVAL markers), no signed/persisted approval; no product UI or API. |
| 2 | Protection Plan | EXISTING_AND_REUSABLE (PoC-grade) | experiments/auto-protection/planner/ — deterministic rules → AUTO/AGENT/MANUAL_REVIEW, spec_sha256 binding, capability catalog; 18/18 tests | Plan JSON unsigned (hash-detectable, not self-verifying — recorded honest limit); not exposed as a service. |
| 3 | Protection exec — Track A | EXISTING_AND_REUSABLE (PoC-grade) | analyzer/ (61/61 tests), partitioner/ (81/81), track-a/ (29/29 + e2e 93/93 PASS on loopback) | Partitioner safe subset is narrow (SUPPORTED-SCOPE); analyzer is single-module; runtime isolation is node:vm+fork — not container-grade; no multi-tenant hosted path. |
| 4 | Protection exec — Track B | EXISTING_AND_REUSABLE (PoC-grade) | track-b/ — guides, run.mjs harness, scenario-adskip-item, e2e 25/25 PASS | Agent-facing docs + CLI only; no platform service; adoption depends on the seller's agent following the lifecycle. |
| 5 | License issuance & lifecycle | EXISTING_AND_REUSABLE | licenses table (001_init.sql), issue at checkout inside atomic batch, seller CRUD (endpoints_impl.rs), verify (verify_impl.rs), FE pages fe/pages/licenses/* | Legacy device model (activations_json, device_id) is records-only; buyer self-service (view own licenses) NOT_IMPLEMENTED; expiry is check-time, no sweeper. |
| 6 | Entitlement protocol (hosted) | NEEDS_HARDENING | be-cloudflare/src/license_security.rs + license-crypto/ crate — activate/capability/execute/status, fail-closed guard, D1 nonce/capability/binding stores (014), feature gate LICENSE_SECURITY_ENABLED | Feature-gated OFF by default; executes only built-in premium_convert; no aud/tenant_id/kid claims (audit p5-sdk-contract-audit.md); usage writes best-effort; Axum be/ has no parity routes. |
| 7 | BYOS enforcement SDK | EXISTING_AND_REUSABLE (with integration notes) | sdk/license/{server,web,nuxt} — 47/26/15 tests per sdk/license/README.md; store adapters memory+sqlite; Nuxt requireLicense; PoC-compat test pins wire contract | Default activatePath=/api/license/activate ≠ Worker /api/v1/licenses/activate (documented blocker); iss default devpay ≠ Worker devpay-lic; Worker-issued entitlements won't pass SDK defaults — interop requires explicit config, contract-versioning decision needed. |
| 8 | Durable usage | PARTIALLY_IMPLEMENTED | license_usage + security_events tables written by hosted execute/guard; transaction_ledger for money; ledger/verify endpoint | Usage write is post-execute best-effort (not transactional); runtime metering is single-process in-memory (SUPPORTED-SCOPE item 5); no usage-read API for sellers; no durable outbox consumer (see #9). |
| 9 | Payment sync | NEEDS_HARDENING | checkout_impl.rs atomic batch + idempotency; toss_impl.rs TEST adapter (pending → checkout/confirm → webhooks/toss reconcile → finalize_paid); payment_provider.rs TEST-key/live-key gates | Toss is TEST-keys-only, PAYMENT_LIVE_ENABLED=false; confirm_pending/needs_review recovery is manual (no scheduled reconcile job observed); outbox deliver_event is a stub returning false — no real consumer (events dead-letter after retries); Portone branch is 503 PAYMENT_PROVIDER_UNAVAILABLE. |
| 10 | Refund & revocation | EXISTING_AND_REUSABLE | refund_impl.rs — refund_attempts lifecycle (attempted/succeeded/failed/needs_review), partial cap, full-refund license/fulfillment compensation, GET refund-attempts view; orders.refunded_krw | needs_review resolution path is manual; PG-refund-failed compensation leaves license revocation to the caller (design comment); mock provider refunds are accounting-only by nature. |
| 11 | Independent verification & evidence | EXISTING_AND_REUSABLE (harness); NOT_VERIFIED (product surface) | evidence/ pipeline (record/validate/cross-track, claim-gates), red-team/ 47-leg battery (47/47 BLOCKED at recorded SHA), fe/e2e/ Playwright specs, results/ audit docs | Evidence covers the PoC components, not the deployed app; no evidence binding the license-security Worker endpoints to the SDK at this SHA beyond the p5 audit (which found blockers); CI wasm-build job exists but no D1-route automated suite per docs/agent/00-beta-rc-baseline.md. |
| 12 | Seller console + ops | PARTIALLY_IMPLEMENTED | fe/pages/ — dashboard, products, orders, licenses, subscriptions, settlements, settings, projects, onboarding; fe/pages/admin/ + /api/v1/admin/* (users, sellers, verifications, audit, overview) | Console is the legacy store model — no UI for protection spec/plan, no license-security surfaces (activate/capability/execute/status), no usage/security-event viewers; buyer-facing account/self-service console NOT_IMPLEMENTED. |
Cross-cutting gaps (must not be smoothed over)
- The two license planes are not yet one product. Legacy
licensesplane (checkout-issued,verify, seller CRUD) and the license-security plane (PoP activate → entitlement → capability → execute) share thelicensestable as the status/product anchor but have different device models (activations_jsonvslicense_bindings), different auth (device_id display vs jkt PoP), and the FE only speaks the legacy one. be/(Axum) parity is absent for the security plane — all PoP endpoints are Worker-only (be-cloudflare). Local Axum dev cannot exercise them.- Interop contract is DevPay-specific —
jktdouble-hash,htusemantics, payloadjwk, customhbody hash: mutual PoC↔Worker interop confirmed, RFC 9449 interoperability absent (p5 audit). A versioned-contract decision is required before external SDK consumers. - Nothing hosted is deployed for the new plane —
LICENSE_SECURITY_ENABLEDis simply absent fromwrangler.toml(no binding, no commented config); the endpoints 404 in current environments.NOT_VERIFIEDfor any staging/prod behavior. - Metering/billing plane absent — see
pricing-metering-model.md§3 for what is and is not observable.
Sources
experiments/auto-protection/IMPLEMENTATION-STATUS.md (executed PoC evidence, 8ace0d4) · UNIFIED-ARCHITECTURE.md §6 honest limits · experiments/secure-browser-licensing/docs/p5-sdk-contract-audit.md + server-feature-flags.md · be-cloudflare/migrations/001–014 · be-cloudflare/src/{lib,license_security,checkout_impl,toss_impl, refund_impl,events_impl,settle_impl,payment_provider,verify_impl}.rs · sdk/license/README.md · docs/agent/00-beta-rc-baseline.md · docs/implementation-status.md (v4.0/v5.0 staging/prod evidence, older baseline).
S1 stabilization update — landed on main after 45e270c
The table above is a snapshot at ad360cf. The S1 stabilization wave subsequently landed the following on main (baseline doc: docs/release/s1-main-stabilization.md, b56dbe1). Rows they affect:
| Commit | Change | Affected rows |
|---|---|---|
85f113b (s1-04a) | Fail-closed hardening in refund/toss/purchase/checkout/events/endpoints: committed_krw → Result, payment status read failure → 500 instead of mock fallback, license-revoke aborts before batch write, webhook order_lookup failure marks the inbox event failed (not silently ignored), missing proj_seller → 500, audit_prev strict, scalar_i64 parse failure → 500 | #9, #10 |
45ffde5 (s1-04b) | settle_impl fdb conversion + DriveOutcome::DbError (transient errors → 500 non-terminal, claims retained); recovery-op live-run guards; audit_prev compatibility wrapper deleted (strict everywhere); auth_impl lockout fail-closed; NOUGAT_FI test-injection seam (armed only under DEV_AUTH + non-production PAYMENT_MODE); new tests/failclosed.test.mjs + run-failclosed.sh (20/20 local); {e}-leak fixes in public error bodies | #9, #10, #11 |
6d8bb72 (s1-02) | settle-recovery.test.mjs fixture-pollution fix — SREC-01 expected set now derived independently (had run 23/25 in CI due to integrity-suite leftovers; suite is now 27 checks). Implementation unchanged. | #11 |
c372a2b (s1-03) | examples/agent-mcp/driver.mjs resolves the MCP entry from tools/devpay-mcp/package.json bin + existsSync fail-fast | examples only |
cc75724 (s1-05) | yetdapay.yml job summaries (financial-integrity, examples, security-regression) derive PASS/FAIL/SKIPPED/BLOCKED/NOT_VERIFIED from real steps.*.outcome; triggers unchanged | #11 (CI evidence) |
Executed locally at 45ffde5 (loopback only): settle-recovery 27/27, refund-safety 32/32, integrity 22/22, failclosed 20/20, examples A+B+C PASS, exceptions-ops 38/38, audit-evidence 47/47 — the last two are carried over from the prior wave and were not re-run in S1.
Still NOT_VERIFIED after S1: real PG sandbox, remote D1, production deploy, cron runtime assurance in deployment, R2 checkpoint export, external alerts, admin FE render against a real backend, be/ Axum parity, an actual GitHub Actions run of the new outcome-derived summaries, and per-probe-class assertions for the injected-failure probes (settle.claimed/settle.chk/settle.counter are armed via NOUGAT_FI but not individually asserted).
Recorded S2 follow-ups: {e}-in-500-bodies sweep of pre-existing sites (non-blocking), auth act-as same-isolate repeat not re-audited (pre-existing), settle.claimed/chk/counter probe assertions, counter row-missing → seq=1 residual, CI run of the new summaries, push-to-main CI trigger decision (kept dispatch+PR per cost policy).
None of the above changes the row-level labels in the table — the fixes close fail-open defects inside NEEDS_HARDENING surfaces; the structural gaps (real PG, deployed security plane, Axum parity, buyer self-service) are unchanged.
S2 assurance wave update — landed on main cabbc7f–940fd75 (CI wiring 1b4f139)
Wave report: docs/release/s2-financial-assurance.md. The S2 wave added assurance depth over the same surfaces — it does not change row-level labels either; the structural gaps stand.
| Commit | Change | Affected rows |
|---|---|---|
cabbc7f (s2-01) | docs/operations/financial-invariants.md — machine-checkable invariant contract (BETA_NOT_READY); independent financial oracle tests/oracle/* + run-oracle.sh (50 legs recorded), expectation math with no app imports | #9, #10, #11 |
e6a05cf (s2-02) | recon hardening — settlement_consistency false-positive fix (gross = Σ(amount−refunded)), new finding types settlement_membership/settlement_fee_mismatch/settlement_run_mismatch/post_settlement_refund, payments-orphan under reference_integrity, recon.persist probe; tests/recon2 (39 legs) | #9, #11 |
c5cffd7 (s2-03) | x-fi-probes per-request FI arming (same DEV_AUTH + non-prod PAYMENT_MODE gate); probes asserted per-leg at refund/settle/inbox/webhook points; outbox delivered-body created_at fix; tests/fault-injection (77 legs) | #9, #10, #11 |
3544d62 (s2-04) | tests/durable2 (19 legs) — inbox/outbox durability with a real loopback Toss stub + OUTBOX_SINK_URL sink stub (2xx/retry/dead-letter/transport failure observed) | #8, #9 |
637654a (s2-05) | audit.rs verify fields (checkpoint_comparison, evidence_coverage, key_ids, truncated, link_breaks, sequence_gaps) + audit2.* probes; tests/audit2 (79 legs, phases A–G) + independent tests/audit-v2-verifier.mjs | #11 |
a0e8241 (s2-06) | tests/recovery-security (46 legs) — recovery-op SoD, rejection/state gates, admin-plane authz, idempotency, CAS races, evidence linkage, zero external PG mutation | #10, #11 |
483a342 (s2-07) | incident-response.md P0–P3 severity/escalation contract + tests/alerts (28 legs) — alert:recon_failures evidence remains the whole alert path (external channel PLANNED) | #11, #12 |
b025419 (s2-08) | tests/perf-baseline (22 legs) + committed perf-results.json + docs/operations/performance-baseline.md — first measured be-cloudflare baseline (local only) | #8, #11 |
940fd75 (s2-10) | cron resume+reap of recon runs; stale receipt-less EXECUTING op convergence (>10 min); preflight + v2 evidence on purchase/renew/paid-feedback/finalize_paid/feedback-payment; alert:evidence_gaps; next_counter self-heal (order/settlement; audit_v2_sequence stays fail-closed); webhook transmission-time freshness ±600 s → 401 WEBHOOK_STALE (secret-configured only); approve CAS-first (exactly one decision row/op); tests/assurance-gaps (26 legs) | #9, #10, #11 |
1b4f139 (s2-11) | CI wiring — nine S2 suites as required financial-integrity job gates + perf artifact upload | #11 (CI evidence) |
Suite totals added this wave (recorded legs, all local miniflare + local D1 loopback): oracle 50 · recon2 39 · fault-injection 77 · durable2 19 · audit2 79 · recovery-security 46 · alerts 28 · perf-baseline 22 · assurance-gaps 26. Critical/High findings resolved in-wave: 0 unresolved at 940fd75.
Still NOT_VERIFIED after S2: real PG sandbox, remote D1, production deploy, deployed cron runtime (logic legs verified via mf/scheduled triggers — the deployed schedule itself is unobserved), external alert delivery, R2 checkpoint export, be/ Axum parity, admin FE render against a real backend, the first actual GitHub Actions run of the s2-11-wired steps, and BETA_NOT_READY product readiness overall.