Child Mode Open the record

Release console, format 0.1, test instance

Child Mode is a safety layer for conversational AI toys: enforced at runtime, tested black-box, gated at release.

It is four components that read one machine-readable rules file. A profile declares the limits for an age band. A runtime enforces the profile on every turn, outside the model, and fails closed. A test bench drives the finished toy through 14 black-box cases and produces a signed report. This console keeps those reports against the exact build they were run on and returns one decision per build: allowed or blocked.

It is built for a toy manufacturer's firmware, QA and compliance teams. It does not replace your model, your content filter or your speech stack. It constrains them, tests the result, and records the evidence.

Read the component summary
Service
checking
Showing
nothing yet
This page
reads the record. It changes nothing.

The four components

Each one is specified separately and can be adopted separately. The profile is the contract between them.

Component 1

Profile

The rules for one age band and region, as a versioned JSON document.

  • Published JSON Schema, format 0.1, integers only. The profile ID is the SHA-256 of its canonical JSON, so a changed rule is a different profile.
  • Time: session cap, cool-down, daily cap, whether limits survive a power cycle.
  • Disclosure: the toy states it is a toy at session start and at a set interval.
  • Model input: how many earlier turns the model may be shown; memory mode.
  • Input: the minimum speech-recognition confidence below which the toy asks again.
  • Output: seven banned speech acts, each with an action (replace or replace_and_end_session) and a fallback line per language.
  • Crisis: thresholds for a check-in, a crisis response and notifying a parent.
  • Data: transcript storage and retention, and which settings a parent may change.

Baseline profile, ages 6 to 8: 20-minute session, 30-minute cool-down, 60 minutes a day, disclosure every 15 minutes, 8 turns of context, no stored transcripts. These numbers are defaults chosen by the authors. They are not derived from law or clinical guidance.

Component 2

Runtime

A deterministic state machine between your speech-to-text, model, output gate and text-to-speech.

  • Events in: power_on, session_start, turn (with recognition confidence and a distress signal), model_reply (with your gate's verdict), session_end, parent_setting.
  • One decision out per event: call_model with a number of earlier turns, speak, fallback with a line key, session_ended, session_refused, context_reset.
  • The model never decides whether its reply is spoken. The runtime does, from the gate's verdict and the profile.
  • Fails closed: no verdict from the gate means a fallback line, not the reply.
  • The model's input is rebuilt on every call: the full rules, the age band, and at most the profile's number of earlier turns.
  • The core does no I/O and reads no clock, so the same events always give the same decisions. Rust, with an independent Python reference that must agree on published test vectors.
  • Every decision is written to a hash-chained receipt that holds no conversation content and can be checked by replay.

Component 3

Test bench

A black-box test of the finished toy against a profile.

  • Your toy, or a harness around it, answers six actions over a line protocol: reset, power_on, session_start, hear, session_end, conversation_switch. Each answer is the lines the toy spoke.
  • The bench owns the clock, so a 20-minute cap and a daily cap are tested in seconds.
  • 14 cases: 9 on limits (caps, cool-down, power cycle, disclosure, confidence floor, parent switch), 3 on over-blocking (a plain request must be answered), 2 on content (distress, banned speech acts). The content cases need a judge.
  • Output: a report with a verdict per case and an overall pass, fail or incomplete, bound to one build and one language.
  • The bench operator signs the report with Ed25519. Anyone holding the key ID can verify it offline.

Component 4

Console

The release gate. This service.

  • An append-only record. Each entry carries the SHA-256 of the entry before it, and the record is replayed and checked every time the service starts.
  • It holds four things: bench keys that are trusted, profiles, build manifests, and signed reports.
  • A manifest pins a build: product, hardware revision, firmware version, profile ID, languages, and the provider, name and version of the runtime, model, output gate, crisis classifier, speech-to-text and text-to-speech. Its ID is the SHA-256 of its canonical JSON.
  • Release rule: a build is allowed only if every language in its manifest has a passing report that names that manifest ID and is signed by a key trusted now, and no failing report for it is on record. Otherwise it is blocked.
  • A stored report cannot be deleted or edited. It stops counting only if the key that signed it is withdrawn, and that withdrawal is itself an entry in the record.
  • Change any component version and the manifest ID changes, so the build is blocked until it is tested again.

Where it sits in your toy and your release process

On the device or gateway

Each turn of a conversation

  1. Speech-to-text returns the text and a confidence value.
  2. Your host sends a turn event to the runtime. Below the confidence floor the decision is a fallback line that asks the child to repeat.
  3. On call_model, the host builds the model input from the rules and the allowed number of earlier turns, and calls your model.
  4. Your output gate labels the reply with any banned speech acts it finds.
  5. The host sends a model_reply event. The decision is speak, or a fallback line, or a fallback line and the end of the session.
  6. Text-to-speech speaks what the decision allows. The receipt records the decision, not the words.

In your build pipeline

Each release candidate

  1. Write the manifest for the build. Its ID identifies this exact combination of parts.
  2. Run the bench against the build, once for each language you sell in.
  3. The bench operator signs each report.
  4. Submit the profile, the manifest and the signed reports to the console.
  5. Your pipeline asks the console for the decision and ships only on allowed.
  6. Any change to firmware, model, gate or another listed part gives a new manifest ID. Go back to step 1.
# Release check. CONSOLE is the address of this service.
curl -s -H "Authorization: Bearer $READ_TOKEN" "$CONSOLE/v1/release/$MANIFEST_ID"
# {"release":{"childmode_release":"0.2","decision":"blocked","ignored":[],
#   "languages":[{"language":"en","reports":["sha256:..."],"status":"report_failed"}], ...},
#  "reports":["sha256:..."]}

# The same check offline, with no service: exit status 0 only for "allowed".
childmode release check --manifest manifest.json --profile profile.json \
    --trusted-key ed25519:... signed-report-en.json

The release record

Enter a read token to query the record this instance holds, or load a sample record to see the data model with a made-up product.

The token is held in this page's memory only. It is not stored and not put in the address. Leave it empty if this instance allows public reads.

HTTP API

JSON over HTTP. Each role has its own bearer token. An accepted write returns 201 and the entry ID. A write the record refuses returns 422 and a reason code.

Method and pathRolePurpose
GET /v1/statusreadHead, counts, trusted keys, and the decision for every manifest
GET /v1/release/{manifest_id}readThe decision for one build, per language, with the reports counted and ignored
GET /v1/entriesreadEvery entry, for replaying the record yourself
GET /v1/objects/{id}readA stored profile, manifest or signed report
POST /v1/profilessubmitAdd a profile
POST /v1/manifestssubmitAdd a build manifest. Its profile must already be present
POST /v1/reportssubmitAdd a signed bench report. Its manifest must be present and its key trusted
POST /v1/keys/trust, /v1/keys/distrustadminTrust or withdraw a bench key
GET /healthznoneLiveness

The admin role cannot submit and the submit role cannot trust a key. Per-language status values: cleared, report_failed, report_incomplete, no_report. A report that names the build but is unsigned, has a bad signature, or is signed by a key that is not trusted is listed as ignored, with the reason.

What it does not do

What "allowed" means

The evidence on record is complete for that exact build. It does not mean the toy is safe, and it is not a certificate. Whoever holds the admin token decides which bench keys count, and the record shows every such decision.

What the bench covers

14 cases, driven with text. It does not test your microphone, speaker or recognition accuracy, and it does not cover speech-to-speech models. The two content cases are only as good as the output gate and crisis classifier you supply, and the judge the bench is run with.

Status

A research build at format 0.1, not audited and not a claim of legal compliance. In first tests on hosted models, rebuilding the model's input each turn gave no measured reduction in rule violations, and no such benefit is claimed. This instance is for testing: shared tokens, no accounts, no service level.