Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions SHA256SUMS
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ b97a81728fc0d91f066bb92f27695c81f9bb25bd88d93bf470230132f33d0799 .github/workfl
b63eff93f485d563b24680091496a39b3a62ecf3c8bb229cfc4eecd80c7e2262 .gitignore
3c0871d9b30c3e9647426b5b756be7dbfc5eee8728e6f0e0c371385de7c5f8f7 LICENSE
af6b4f44c5f1989c94db29741e5be31cfcbf8d9bb2c567ef18ca7391e418721e README.md
848dab3d971d0a3b9cc9edd035d2d8b8e76d740d450f43830abeae596588cb56 SOURCE.json
be11e61ffb2940dbdb919cf2db656d6d79cf8716b1397bb3c8763f84cdbd973c SOURCE.json
41f17c2c3b0d7ab61fd6c985c553bfe6df4df12be8eeb1feaa60437a7ee30ac1 keel-policy/SKILL.md
6b449605b6b4fe6eb84f5b12befb90a57b7841d2973bbf9341cf40866e7dd81a keel-policy/examples/README.md
9a13b533704c1a37734bd6c28fc202c7acdaa8335773d55790dac50a693f8b2b keel-policy/examples/stripe-refund-approval-enterprise.json
Expand All @@ -16,13 +16,16 @@ af6b4f44c5f1989c94db29741e5be31cfcbf8d9bb2c567ef18ca7391e418721e README.md
b5711d319ef939c7522df53ffc3dea7c4dcc371537dff4cc7307f2a4bc59dffb keel-policy/tests/test_authoring_context_consumption.py
820069a6ce02f74dccc4f57a5788359b1377520330d00ba88471d60fec901f17 keel-policy/tests/test_basic_profile_fields.py
322b430367e859dae341e9c225be34c6c5272c481074e7b1ae2242db527e1cbe keel-policy/tests/test_validate_enforceability_report.py
c32f944711cc6ebc3bbd2a671f14c180708f8c69067f695f67de999f063db584 keel-setup/SKILL.md
006a589270c0bd1c17248ee6b1a73e513f265b068e6671edea7085a516f79c61 keel-setup/SKILL.md
2b9c2490e921e83b83372a09e422a30f0f7ee338a2809b8e07edbd381d9eb650 keel-setup/reference/coverage.schema.json
70a69dcab29f61aaa3f96de5f65854fca63c4549ddc20d84ee00e102fc68c691 keel-setup/reference/integration_profiles.v1.json
9739501499b286d40f356af9c0378bbdcde41a364be083ccbc34adb000575160 keel-setup/reference/setup-state.schema.json
7ef2361f3f10601f9a4d3681d04c8538836c37448787262b26e82bf18bcbbc70 keel-setup/reference/unified-execute-request.contract.json
c43e742a342ea24a086f99a8745a6d14f240a333286baa475a2b7a94eb79a558 keel-setup/reference/voice-gateway.md
8c51cf0384ae0acf2684a913292da7788f40be3fd40c35afcbf4f89bfb79a05b keel-setup/scripts/authoring_context.py
01dc74c03b3d7a2a73979394c3a3d5608375759e73415bd0fbc01b17d0d5aab3 keel-setup/scripts/fast_first_run.py
6ceba0ec23ff2e2023972d34805dc98ffc0e60349968db49363da0f08f82bc4a keel-setup/scripts/inventory.py
35858168e04738aed586856ff5bd4284b173ee20d829cca12bbdc8a319e8ec03 keel-setup/scripts/prepare_voice.py
0499357999da09f5d9ead351f5e9d6b7d1fb15162d25241f8a67ffd0353e6282 keel-setup/scripts/setup_state.py
d12266c786de8ebbc45295b428df35a88356167a2c58dee2e60f829b63067181 keel-setup/scripts/verify_execute.py
d6638693e9cff6e01a82b304be447e42dd58b37ecce355c29938e378e67fab4a keel-setup/tests/fixtures/fast_first_run_cases.py
Expand All @@ -31,10 +34,11 @@ a891810ef4370ab3107627c972cfd66f18fa9554f5f2ff857312f0756c15a4f7 keel-setup/tes
d681beacfb06738388025738b1e9deca0c43398b988b5c31e44ac88af92f35dc keel-setup/tests/test_fast_first_run.py
f7297409fb8095ded69070a4e3c2a5cd9199a00a70a0a26df39e0ee608b1e6ca keel-setup/tests/test_inventory.py
a7a734c7a346ed297b4cbf412382269d3027df5441a3f48196b12a693ea664ca keel-setup/tests/test_post_proof_handoff.py
9d72d9877dea932680b0dd17f1c56a1df2ed02c84d585c5bf7a8440d72550232 keel-setup/tests/test_prepare_voice.py
87501ed31e812234f453de338d697848c84e1b21a036afd2eb3221acfb0a12a3 keel-setup/tests/test_setup_state.py
434fca83d18332ec05cc099329a1033244aa9ef7e6089742b82d47e220ce80df keel-setup/tests/test_verify_execute.py
ba172f0dcadea1b19f3279e3c3151dabc1719cdc65ddce77eb5c74550c101ce0 scripts/check_execute_contract.py
c1177f1f2073a228df1372350acad50da906be7b3d251b86f9e2894aa77d3daa scripts/check_release_bundle.py
0918c5f078f458cf5986e798acfc472baf2f4dd85f4a3830e19662ccbe89a6fc scripts/check_release_bundle.py
e0195765e2b9a31938a455fc81f93b02127f7b769948607b19a821f2bd82b2d1 shared/CONSTITUTION.md
6510e9f92c2a8fa3c40a2ca99eca06e2acaad146101c9526e06bb53f18085421 shared/feedback-report.schema.json
92b11e2380bb588b2a00be8d5eae9665b4667747fd044278a65ec2a698de7889 shared/feedback-report.template.md
Expand Down
4 changes: 2 additions & 2 deletions SOURCE.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"bundle_schema_version": "keel.public_setup_bundle.v1",
"public_release_version": "2026-10-07.1-rc",
"product_source_sha256": "6ae24cbe0eb9d52151fd09cd535045ad6e8793b68384ae59ead2f3bd97f82394",
"public_release_version": "2026-10-19.1-rc",
"product_source_sha256": "be9eda7cf7cd8bea88473493901a649baad9a6faa4bfe0bb2b98573122f16dfb",
"included_roots": [
"keel-policy",
"keel-setup",
Expand Down
23 changes: 23 additions & 0 deletions keel-setup/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@ Keel is an authorization boundary, not an agent runtime. This WP10 skill establi
deterministic allowed request completes and an intended denied request is stopped before provider
dispatch through `POST /v1/execute`. Action Mapping and state F are not implemented by this skill.

## Choose the workflow first

Establish what the customer wants to govern: AI model spending, consequential business tools,
or live voice. Reuse an explicit choice already present in the request. When it is absent, ask one
short choice before selecting a setup path. Do not infer the customer's policy or legal choices.

- **AI model spending:** use the existing deterministic state-D flow below.
- **Business tools:** inspect the concrete action and the managed MCP `:call` execution boundary;
use the policy skill to prepare restrictions and disclose unsupported or unverified actions.
A text-model proof does not qualify a business effect.
- **Live voice:** follow [the voice preparation contract](reference/voice-gateway.md), read
`reference/integration_profiles.v1.json`, and use `scripts/prepare_voice.py` from the verified
immutable bundle. Skip the text-only Fast First Run orchestrator. Prepare consent, customer
gateway custody, signing identity, management-bound runtime key and the closed tool catalog.
This path currently produces **preparation only**, with provider acceptance and certification
unresolved. It never activates a voice profile or claims a live test passed.

For ElevenLabs, distinguish Direct TTS/STT requests from Agents conversations. A Direct connector
key enables only the operation-specific hosted request path. It neither attaches an Agents agent
nor provides realtime conversation, action enforcement, or lawful processing by itself. Native
Agents credentials stay in the customer's gateway. Choose the profile by transport and enforcement
boundary, rather than treating a model or provider name as a support guarantee.

## Capability and release trust gate

Setup requires repository and terminal access. If either is unavailable, stop and tell the human to
Expand Down
80 changes: 80 additions & 0 deletions keel-setup/reference/integration_profiles.v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"version": "keel.integration_profiles.v1",
"qualification_status": "unqualified",
"customer_activation": "human_owned",
"profiles": [
{
"id": "elevenlabs_direct_audio_v1",
"label": "ElevenLabs Direct audio",
"provider": "elevenlabs",
"transport": "https",
"operations": [
"generate.audio",
"transcribe.audio"
],
"credential_custody": "keel_connector",
"media_path": "submitted_text_or_audio_passes_through_keel",
"readiness": "requires_operation_and_pricing_qualification"
},
{
"id": "openai_realtime_gateway_ws_v1",
"label": "OpenAI Realtime customer gateway",
"provider": "openai",
"transport": "customer_gateway_websocket",
"operations": [
"realtime.session",
"managed_mcp_tools"
],
"credential_custody": "customer_gateway",
"media_path": "customer_to_provider",
"readiness": "preparation_only"
},
{
"id": "elevenlabs_agents_gateway_ws_v1",
"label": "ElevenLabs Agents customer gateway",
"provider": "elevenlabs",
"transport": "customer_gateway_websocket",
"operations": [
"realtime.session",
"managed_mcp_tools"
],
"credential_custody": "customer_gateway",
"media_path": "customer_to_provider",
"readiness": "preparation_only"
},
{
"id": "openai_realtime_broker_webrtc_v1",
"label": "OpenAI Realtime broker reference",
"provider": "openai",
"transport": "brokered_webrtc",
"operations": [
"realtime.session",
"managed_mcp_tools"
],
"credential_custody": "customer_gateway",
"media_path": "customer_to_provider",
"readiness": "reference_requires_live_qualification"
},
{
"id": "elevenlabs_agents_webrtc_v1",
"label": "ElevenLabs Agents direct WebRTC",
"provider": "elevenlabs",
"transport": "webrtc",
"operations": [],
"credential_custody": "customer_gateway",
"media_path": "customer_to_provider",
"readiness": "unsupported_unqualified"
}
],
"voice_gates": [
"customer_privacy_profile",
"consent_before_capture",
"management_bound_runtime_key",
"stable_enrolled_signing_key",
"closed_verified_tool_catalog",
"qualified_pricing_admission",
"provider_sandbox_acceptance",
"counsel_before_real_person_audio",
"human_production_activation"
]
}
98 changes: 98 additions & 0 deletions keel-setup/reference/voice-gateway.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Customer voice gateway preparation

The versioned `integration_profiles.v1.json` is the shared preparation contract. Every new
voice profile is unqualified. Provider key validation, signed gateway evidence, final managed-tool
authorization, provider acceptance, external business effect and reconciliation are separate results.
A passing text-model proof supplies none of the voice results.

Install the maintained customer gateway from the public release’s checksummed gateway archive
and SDK wheel. Customers need no access to private source repositories. The archive contains
`keel-controlled-gateways/fintech-voice/gateway_runtime.py`; it reuses `keel-voice-sidecar` transports
and hosted Keel's existing managed MCP executor. The banking WebRTC broker is a reference path;
OpenAI and ElevenLabs WebSocket gateways are distinct transport profiles. Direct ElevenLabs WebRTC
is unsupported by this release's qualification contract. Never substitute an ngrok or founder-local
address in a customer's production architecture.

1. Pin the API/SDK and gateway to released immutable commits. Verify the setup bundle manifest,
`VOICE_RELEASE.json`, `VOICE_SHA256SUMS`, SDK version/checksum, gateway revision and profile contract digest.
Install the verified wheel and archive requirements in a dedicated virtual environment. Stop on drift or unavailable
artifacts. Preserve the customer's existing work.
2. Prepare a customer-owned processing notice and privacy profile before enabling capture. Freeze
provider, recipients, jurisdictions, processing, recording, retention/deletion, secondary use,
notice version/digest and consent method. Counsel determines applicability and adequacy;
real-person audio requires customer counsel sign-off. Synthetic prerecorded fixtures are the
first verification input. Do not create default notice wording or infer consent from narration.
3. Keep the permanent provider key, webhook HMAC secret and private evidence signing key in the
customer gateway's secret store. Keep business credentials in the MCP adapter. The browser and
agent receive no permanent provider/business credential. Never paste secrets into conversation,
fixtures, logs or feedback. Diagnostic sinks must exclude media, transcripts, notice wording,
arguments containing conversational content, temporary provider credentials and webhook bodies.
4. In a human-controlled terminal, `keel-voice-prepare-key --path PRIVATE_KEY_PATH --key-id KEY_ID`
creates or reloads one private stable Ed25519 key and prints public enrollment material only.
A separate administrator enrolls that public material using `POST /v1/voice/sidecar-keys`.
Do not regenerate keys at each restart. Rotation requires new enrollment and a newly bound runtime
credential/profile; disable the old credential and key through human-owned administration.
5. A human administrator registers the gateway agent and binds its client credential using
`PUT /v1/voice/gateway-profiles/{api_key_id}`. The frozen profile contains the exact gateway release,
provider agent identity where applicable, initiation configuration, privacy profile, signing key,
duration/concurrency limits and a closed list of managed server UUID/tool/schema-hash bindings.
Compute `tool_catalog_digest` over the sorted RFC 8785 catalog. Each contract must already be
verified; mutation requires a new runtime credential. Enroll the Stripe test adapter with its
separate preflight HMAC secret; bearer authentication alone is not dispatch authority.
6. Read back private provider agent settings using explicitly designated sandbox credentials.
For ElevenLabs, select an existing immutable `agent_version_id`, verify its parent agent and
read back that exact version; bind it into initiation and signed-URL requests. Setup never enables
provider versioning or changes customer agents automatically. Compare the tool catalog, voice/model,
override permissions, recording, retention, secondary use
and closure controls with the pinned configuration. Zero retention is a customer privacy choice,
not a universal statutory requirement. Missing readback or configuration drift keeps activation
disabled. Signed-URL expiry is not proof that the provider stopped processing or billing.
7. Price admission remains fail closed. A customer administrator enrolls an immutable project
qualification with `POST /v1/voice/pricing-profiles`, reads its digest using
`GET /v1/voice/pricing-profiles/{profile_id}`, and revokes it using `DELETE` on that path.
Bind `pricing_profile_id` and `pricing_profile_digest` into the ElevenLabs gateway enrollment.
Set `risk_budget_total_micros` in the customer runner configuration to cover the qualified
provider ceiling plus any managed action reservations. No production rates are supplied.
The profile names one exact provider/model/operation, complete all-inclusive meter coverage,
contract and qualification evidence digests, a positive decimal USD-micros rate, billing
increment, maximum units and timezone-aware validity interval. Overlapping live qualifications
for that scope are rejected; changes require a new identity. Other project or request-supplied
rates have no authority. Do not qualify a contract with additional uncovered LLM, telephony,
minimum or other charges as one covered meter.
Direct TTS measures exact input characters; qualified Direct STT accepts bounded complete PCM
WAV and measures its duration before dispatch. Compressed/remote STT remains denied. Native
Agents uses the explicitly qualified `elevenlabs.metadata.cost` units in the authenticated
callback projection. A signed provider-start receipt binds the pricing identity, digest and
reservation to the operator's pinned configuration and budget. Native settlement waits for both
session closure and verified usage. Missing duration/cost units, unknown units, over-ceiling
usage or outstanding action holds keep USD unavailable and reservations pending. After pending
child action settlement, the owner may explicitly retry `POST /v1/sessions/{session_id}/voice-reconciliation`;
that endpoint uses existing verified evidence, not caller-provided rates or usage.
Contract-calculated USD is distinct from independently verified billed charges. Duration and
concurrency limits and a reserved estimate do not establish a hard dollar cap or prove billing
stopped. Keep activation disabled until the full pricing and provider protocol are qualified.
8. Customer capture starts only after authenticated notice acceptance and a single-use local consent
receipt. Keel admission precedes provider initiation; provider acknowledgement is bound before
audio or tools. Every tool, including preflights, uses managed MCP `:call`. The test adapter verifies
Keel's short-lived exact-wire proof and durably consumes it before business calls. Explicit customer
action confirmation is separate from model arguments such as `confirmed:true`.
9. Verify two concrete sandbox tools: a bounded account read and a bounded test transfer to an
allowlisted destination. Exercise allow, deny and pending review with independent adapter/provider
counters and downstream readback. Polling never resumes execution. A human explicitly resumes the
same frozen request after identity-backed review. Unknown completion requires reconciliation;
it must not become “nothing happened” or an automatic retry.
10. Withdraw consent and close server-owned media before reporting evidence. Exercise cutoff,
network loss, restart, stale/ended sessions, forged reports, duplicate/late callbacks and credential
reuse. Verify one-use admissions, trustworthy provider binding and zero prohibited tool dispatch.
Inspect hosted requests, WAL, logs, traces, exports and callback ingress for sensitive content.
Direct TTS/STT has a different media boundary: submitted content passes through hosted Keel.

Record the final tuple (API revision, SDK checksum, gateway revision, setup bundle SHA, Dashboard
revision, provider agent/settings digest, model/voice/transport, tools/schema hashes, verifier keys,
privacy profile and pricing profile). Report source/local/sandbox/deployed/activated evidence separately.
No source, mock, deployment or signed marker establishes universal enforcement or legal compliance.

Upgrades use a new pinned tuple and new runtime profile credential. Rollback closes existing provider
connections, disables customer activation and retains incomplete evidence/outboxes for reconciliation.
Never restart an interrupted action automatically. Health checks may inspect readiness and pending
records without starting capture, acquiring credentials, changing authority or contacting providers.
Loading
Loading