The short answer
The platform builds one private, source-scoped adapter into the same command and read model its own Family Center uses. Phosra and Cloudflare provide the policy protocol, security shell, translation runtime, delivery lifecycle, and conformance harness around it.What the platform actually has to do
The irreducible platform code is intentionally small but deep. It is the only
component allowed to answer, “What is this account’s effective setting now?”
The private adapter
A portable starting interface is one resource with three operations:PATCHidempotently upserts only the named controls in thephosra-family-policysource slice. Omitted controls stay unchanged.GETindependently reads effective values from the platform’s native read model. It is not an echo of the write or a connector cache.DELETEremoves only the Phosra source slice. It does not remove the account, native family relationship, user settings, or another managed source.- A second
GETafter release observes that the source is no longer managed.
Example: controls visible in a Discord-like Family Center
The current candidate pack preserves five action groups and nine visible leaf settings:
The platform must approve or revise each meaning. “Mature Sexual Media” is not
automatically equivalent to “Graphic Media,” and “only known people may contact
the child” is not automatically equivalent to any one DM or friend-request
toggle. Similar UI labels are not a semantic contract.
The candidate identifiers are not registered OCSS categories and must not be
emitted as production-compatible until governance and the platform approve the
mapping.
Bot-assisted implementation workbench
Phosra includes a local connector workbench that starts with one control and generates a tightly bounded adapter task:resolveAuthorizedTargetputSourcePolicyreadEffectivePolicy
0.0.1 architecture prototype, not a published
SDK or enforced agent sandbox. Its preflight checks references, not their
truth. Its approval record is local and self-asserted unless a protected
platform runner authenticates it. Its bundle is always an
untrusted_local_candidate, never independent conformance or production
certification.
That makes it useful for reducing coding work without allowing a bot to approve
its own semantics, credentials, or production promotion.
The opaque binding
After the platform’s own guardian/teen relationship and approval ceremony, the platform mints a random binding. The platform alone resolves it to an account or profile. The Policy Inbox, Queue, Durable Object key, connector request, logs, and receipts must not contain:- a platform user ID, username, email, or profile ID;
- a parent, teen, or household identity;
- date of birth, age band, or region; or
- messages, contacts, servers, social graph, or child content.
What the platform configures in Cloudflare
The current executable path uses these primitives:- Worker: runs the shared declarative connector.
- Durable Objects: isolate authority and per-binding lifecycle state.
- Cloudflare Access: authenticates connector-to-native HTTPS with a least-privilege service token.
- Cloudflare Tunnel, optional: reaches a private origin through outbound
cloudflaredconnections. - Worker secrets: contain secret values referenced—but never embedded—by the signed manifest.
- Policy Inbox Worker, Queue, and DLQ: validate and deliver the Phosra envelope with bounded retry and transport status.
Workers for Platforms is not required for the current per-platform connector.
The present evaluation account does not prove a turnkey multi-tenant Cloudflare
product or a one-click dashboard switch.
Do not create an Access client secret in Terraform. Cloudflare returns the
secret at creation, which would put it in Terraform state. The supplied
Terraform template takes existing service-token IDs and manages the Access
application and Service Auth policy; the platform’s approved credential system
creates and rotates the secret.
Two connector ownership models
The private adapter always belongs to the platform. Connector operations can be assigned in either of two ways:- Platform-operated connector: the platform deploys the supplied Worker and Durable Object migrations in its approved Cloudflare account and owns its operational lifecycle.
- Managed connector: Phosra or Cloudflare operates the per-platform connector under an agreed service boundary, while the platform issues least-privilege Access credentials and retains native authority.
The platform delegation
The executable manifest contains the exact native target, authentication references, action mappings, assertions, refusal allowlist, release semantics, connector generation, and receipt-key reference. The authorization ceremony is:- Phosra and the platform finalize the executable manifest.
- The platform reviews its canonical bytes and digest.
- The platform issues a delegation binding that digest, target, scope, generation, and delegated receipt public key.
- The platform signs the delegation with a key published through the agreed trust process.
- The signed delegation digest is bound back into the manifest.
- Secret values are provisioned through protected Cloudflare or CI paths.
- The route is registered paused in staging before it is enabled.
Credential-free evaluation
The Discord-like candidate can be validated locally without Cloudflare or platform credentials:Staging conformance
Before production, prove each leg separately:- The private adapter passes direct platform-owned apply, read, and release tests.
- Unauthorized Access requests fail before origin execution.
- The connector Worker and Durable Object migrations exist in the intended staging environment.
- A signed Policy Inbox delivery reaches the exact registered route.
- Native
GETreturns effective state for the same binding, generations, and desired-state digest. - Exact replay creates no second side effect.
- Stale generations and cross-binding requests fail closed.
- Approved refusals remain bounded results rather than retries.
- Two sequential partial updates preserve controls omitted from the second update.
- Release removes only the Phosra source and independent read-back observes it.
- Delegation revocation, Access rotation, origin outage, retry, DLQ/manual recovery, and emergency pause work.
- Receipts verify under only the delegated public key and declared evidence ceiling.
Evidence: two receipts, multiple states
Keep transport and native evidence separate:
As of September 1, 2026, the
production Policy Inbox health surface
is live, and the
Notflix
and
Bloxby
declarative connectors are staging evaluations. The current declarative
connector build itself supports staging authority only. The connector and Link
execution packages are private reference implementations, not a public
self-serve production service, and the current FamilyPlan bridge prepares apply
work only. The current Policy Inbox retains a platform-delegated native
observation, but the current Link handoff does not yet convert that wrapper into
the complete Link-format receipt required for independent
platform_verified
evidence. The current synchronous path also does not issue a separately
versioned, Cloudflare-signed delivery receipt.
Those are remaining protocol and productionization tasks. They cannot be fixed
by relabeling delivery as enforcement.
The candidate and staging artifacts are not production bundles with
placeholders. Before credentials or deployment, a production-capable artifact
audit must prove trust bootstrap, environment isolation, protected checkpoints,
dispatcher/reconciler operations, managed key lifecycles, canonical observe and
release wiring, schema migrations, direct native and Access-rejection tests,
signed digests, canary, monitoring, emergency pause, and rollback.
Under the current platform_delegated_observed evidence ceiling, do not use the
unqualified word “enforced.” Report delivery and native read-back separately for
each control, including any refused, unsupported, degraded, or pending action.
Disconnect and release
Disconnect has two clocks:- Phosra can revoke the grant immediately, making the link locally terminal and preventing new authorized writes.
- Platform cleanup completes only when a signed, generation-fenced release is delivered, the platform removes only the Phosra source, and native read-back observes the result.
release_pending; do not report native release as complete before read-back.
Definition of done
A production platform integration is complete only when all of these are true:- product semantics and every control mapping are approved;
- native guardian/teen consent and opaque binding are live;
- the private adapter calls the real command service and independent read model;
- idempotency, replay, generations, source precedence, refusals, and release are tested;
- the control schema, native normalizer, compatibility policy, and multi-action transaction model are versioned and migration-tested;
- Cloudflare Access/Tunnel or another approved last hop is configured with isolated environments and protected secrets;
- the platform signed the exact executable delegation;
- Policy Inbox and connector registration are activated through approved operations;
- native read-back and receipt verification pass in staging and production;
- the platform UI shows managed status, refusal, review, and disconnect; and
- security, privacy, legal, abuse, support, incident, rotation, retention, and rollback owners have approved activation.
202, Queue delivery,
or passing mock is not this definition of done.
Bot-oriented handoff
The installable agent playbook lives atdocs/skills/phosra-cloudflare-platform-onboarding/SKILL.md in the Phosra
repository. It requires an agent to maintain an evidence ledger, distinguish
evaluation from production, stop before unauthorized credentials or external
changes, and report the exact platform-owned next step.