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
14 changes: 7 additions & 7 deletions SHA256SUMS
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ b97a81728fc0d91f066bb92f27695c81f9bb25bd88d93bf470230132f33d0799 .github/workfl
b63eff93f485d563b24680091496a39b3a62ecf3c8bb229cfc4eecd80c7e2262 .gitignore
3c0871d9b30c3e9647426b5b756be7dbfc5eee8728e6f0e0c371385de7c5f8f7 LICENSE
89e7fa8c08b6ada7931706085c33924173454fc51b866cb6726f8976d030e715 README.md
dcfc1a88d05edba6fffa7fe810509943cae8cd756e3176404d2b33088ee282a1 SOURCE.json
227c399c3ab3a7317982f709a151efd7705c4d30ddc96fdf31c62302f0faccd3 keel-policy/SKILL.md
91509233a45fafff234017cef5be2bdaf429868b5a9b7e8f9caf6950756e4b47 SOURCE.json
d924c42ecc5a084e441bc3450ca815d84ee205e49426ef3988e7c749e7dae78a keel-policy/SKILL.md
6b449605b6b4fe6eb84f5b12befb90a57b7841d2973bbf9341cf40866e7dd81a keel-policy/examples/README.md
9a13b533704c1a37734bd6c28fc202c7acdaa8335773d55790dac50a693f8b2b keel-policy/examples/stripe-refund-approval-enterprise.json
2a52514e8db0901ab73e59b924f195008541d0069ebad9b514bd373cb905e2d2 keel-policy/examples/stripe-refund-approval.json
49f43e551f32e484e263fa026dfd4fde5a8b50cd462f0f68e06ae371380f3b24 keel-policy/reference/enforceability-report.schema.json
91fa5bbc7696846ec0d0039a88585ac99852b50a73613f92fea552f6931e7c44 keel-policy/reference/field-provenance.json
54416bf9c9af8f8fb75a9e883aa27aa62ecbcdffc2b1b6698d5fa1479fd6ddda keel-policy/reference/fields.md
8e818177237d6d99d5dd3867b60585160b3add4d17699c86c948b902328f9171 keel-policy/reference/field-provenance.json
5526029f8d79d7d2b31daed8ebeeb42942d0a18a0562a4a3789e8c8a7c83b14a keel-policy/reference/fields.md
9d86eeb4fecf6db831856c0b77b9e83caeb161ec82d046eaf4fc2f8e73d96f27 keel-policy/reference/policy-document.schema.json
7d662cffa24744af7a26f62d813127b4bc0a44ff62f725c883054165ddec3272 keel-policy/scripts/consume_authoring_context.py
d8a8ad9886f43efb6b5b7065ef167150b2c8b03f640cc8647f52680ae211e2eb keel-policy/scripts/validate_enforceability_report.py
ff71e2933eb4ab5be18d5fa41eb324a376ffd460c39157ecd6db39bfc016ee44 keel-policy/tests/test_authoring_context_consumption.py
820069a6ce02f74dccc4f57a5788359b1377520330d00ba88471d60fec901f17 keel-policy/tests/test_basic_profile_fields.py
7c061516afc0a8618bf9f3b02bdd907678447047c268f82a2d1579cb3d2bd84c keel-policy/tests/test_validate_enforceability_report.py
6bb3cfa21d826f95d790622b1dbee599c33ce262e2d5b41d2e9594b1ea830f0a keel-policy/tests/test_validate_enforceability_report.py
5aba155e2711a4bfd0241ce41ca97982effe53473764e669bcdfe9ea47aed4a7 keel-setup/SKILL.md
2b9c2490e921e83b83372a09e422a30f0f7ee338a2809b8e07edbd381d9eb650 keel-setup/reference/coverage.schema.json
70a69dcab29f61aaa3f96de5f65854fca63c4549ddc20d84ee00e102fc68c691 keel-setup/reference/integration_profiles.v1.json
Expand All @@ -38,7 +38,7 @@ af96ae9a32e470a2c1390ec452c13ae1c3657d7ed54c99925b0a57501503894b keel-setup/tes
c8006372327167f6317d7ae41d79da3c2dd45a7510f1cdc544616facd27d9d83 keel-setup/tests/test_setup_state.py
ea797a44c033a6ce519b82595c858cdb0879868854b949226792f3bffe2d4ba3 keel-setup/tests/test_verify_execute.py
ba172f0dcadea1b19f3279e3c3151dabc1719cdc65ddce77eb5c74550c101ce0 scripts/check_execute_contract.py
fd03c6d4e7fcf00ce8ae67429d00578b66e17432f313076f7122051971ca559c scripts/check_release_bundle.py
959f57ae981f35d4e4234c5fb087e4de2602f84ddd4ad834feed1a00efe7d1de scripts/check_release_bundle.py
e0195765e2b9a31938a455fc81f93b02127f7b769948607b19a821f2bd82b2d1 shared/CONSTITUTION.md
6510e9f92c2a8fa3c40a2ca99eca06e2acaad146101c9526e06bb53f18085421 shared/feedback-report.schema.json
67ef5250861a9f1f3f2c3671205adc12dfa2e049ffd68449b78337d2ac490727 shared/feedback-report.template.md
Expand All @@ -48,4 +48,4 @@ e64ed436bc35d73cdad6366f2dd3f01530426cb529237d2990be07171c93b08c shared/scripts
4cbb3be5a54865a85549400f7c57610a7284623899674c0902354b870b1980ad shared/scripts/test_schema_validation.py
8f7c8bfd8ec6bc7faab7ea1341365ba67f31846232a2c3acac5f7c4bdaa3c411 shared/scripts/test_validate_feedback_report.py
696a0c609ef7895cfe3737942dc4e32feeeb870bbd23689fbeee965752498587 shared/scripts/validate_feedback_report.py
2d92172fe932ee0a39c7fc97dbd15f579fb21aa93adef40f53899472781481b3 tools/public_surface.json
46a7d399e61d2aaa135d030455a75b704e9cbe028e604373c3ab5d6918876372 tools/public_surface.json
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-11-07.1",
"product_source_sha256": "7481bc4de5400d2dd00af9cbe6c449d090dac7806a90fdb7d144e65195bdf293",
"public_release_version": "2026-11-18.1",
"product_source_sha256": "adf8f87bfbb3a10b221b5350b40adf6484159b092e7172546924e30de59dab3e",
"included_roots": [
"keel-policy",
"keel-setup",
Expand Down
14 changes: 10 additions & 4 deletions keel-policy/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,13 @@ blocked needs an explicit deny.
ending in `_usd_micros` are integers. Writing `100` there means one hundredth of a cent.

**Only use fields from `reference/fields.md`.** Keel rejects unknown fields. Fields marked
provenance `caller_asserted` are supplied by the caller and are not trustworthy evidence — Keel
refuses allow/deny rules that gate on spoofable identity fields. The
provenance `caller_asserted` are supplied by the caller and are not trustworthy evidence. Keel
refuses allow/deny rules that gate on spoofable agent-identity claims (`subject.*`,
`*.agent_id`, `*.agent_name`) but accepts rules on every other `caller_asserted` field, so a saved
rule is no sign that its field is safe to grant on.
**`action.attributes.trusted_facts.*` is caller-supplied. Do not use these fields as evidence to
authorize an action.** When an existing policy grants on one of them, report it `untrusted` and
propose the server-derived replacement. The
`context._keel.action_envelope.*` fields are generally the strongest available, but **the family
is not uniformly Keel-established**: its connector, authority and pricing facts are
`keel_derived`, while its financial facts are `caller_asserted` because on Keel's canonical
Expand All @@ -575,8 +580,9 @@ Do not use `action.name` as the identity of an MCP tool. It is published as `cal
exact MCP tool match, use the server-derived field
`context._keel.action_envelope.connector.tool_name.value`, usually scoped with
`context._keel.action_envelope.connector.identity.value`. Do not substitute
`action.attributes.trusted_facts.tool_name`; it is `connector_asserted`, and publication status must
always be checked against the pinned `tools/public_surface.json`.
`action.attributes.trusted_facts.tool_name`; despite its name it is `caller_asserted` (the caller
writes it on the public Permit route), and publication status must always be checked against the
pinned `tools/public_surface.json`.

An enforceability report that encounters `action.name` must mark it `untrusted` and name
`context._keel.action_envelope.connector.tool_name.value` as the replacement for the managed MCP
Expand Down
6 changes: 3 additions & 3 deletions keel-policy/reference/field-provenance.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"schema_version": "1.0",
"source": "keel-policy/reference/fields.md at this release",
"fields": {
"action.attributes.trusted_facts.environment": "connector_asserted",
"action.attributes.trusted_facts.max_uses": "connector_asserted",
"action.attributes.trusted_facts.tool_name": "connector_asserted",
"action.attributes.trusted_facts.environment": "caller_asserted",
"action.attributes.trusted_facts.max_uses": "caller_asserted",
"action.attributes.trusted_facts.tool_name": "caller_asserted",
"action.name": "caller_asserted",
"attrs.estimated_input_tokens": "caller_asserted",
"attrs.estimated_output_tokens": "caller_asserted",
Expand Down
31 changes: 24 additions & 7 deletions keel-policy/reference/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@ table — re-apply it if you regenerate.

**`CATALOG_VERSION` does not move when a field's provenance does.** Five financial fields were
demoted from `keel_derived` to `caller_asserted` under this same version string, and the stale
table below gave no sign of it. Re-check provenance against the published field-provenance map
for your release rather than trusting the version to signal drift.
table below gave no sign of it. The three `action.attributes.trusted_facts.*` fields were later
demoted from `connector_asserted` to `caller_asserted`, again under the same version. Re-check
provenance against the published field-provenance map for your release rather than trusting the
version to signal drift.

Use **only** fields marked authorable = yes. Fields with provenance `caller_asserted` are
supplied by the caller and are not trustworthy evidence — Keel rejects allow/deny rules that
gate on spoofable identity fields.
supplied by the caller and are not trustworthy evidence. Keel rejects allow/deny rules that
gate on spoofable *agent-identity* claims (`subject.*`, `*.agent_id`, `*.agent_name`); it does
**not** reject rules on other `caller_asserted` fields, so a rule on one of them is saved and
can be satisfied by whatever the caller sends.

**`action.attributes.trusted_facts.*` is caller-supplied. Do not use these fields as evidence to
authorize an action.** They are listed below only so existing rules on them can be recognized
and corrected; see §.

`context._keel.action_envelope.*` is generally the strongest family available, but **it is not
uniformly Keel-established.** The connector, authority and pricing facts are `keel_derived`.
Expand Down Expand Up @@ -116,9 +124,9 @@ before relying on it; see *Still moving underneath* above. Provenance `caller_as

| field | type | authorable | provenance |
|---|---|---|---|
| `action.attributes.trusted_facts.environment` | string | yes | connector_asserted |
| `action.attributes.trusted_facts.max_uses` | integer | yes | connector_asserted |
| `action.attributes.trusted_facts.tool_name` | string | yes | connector_asserted |
| `action.attributes.trusted_facts.environment` § | string | yes | caller_asserted |
| `action.attributes.trusted_facts.max_uses` § | integer | yes | caller_asserted |
| `action.attributes.trusted_facts.tool_name` § | string | yes | caller_asserted |
| `action.name` | string | yes | caller_asserted |
| `attrs.estimated_input_tokens` | integer | yes | caller_asserted |
| `attrs.estimated_output_tokens` | integer | yes | caller_asserted |
Expand Down Expand Up @@ -181,6 +189,15 @@ Permit payment rail's caller-declared, dispatch-bound amount. Read the server-st
`request_bound`, or `unavailable`. None of these values proves provider completion. The flat
amount still has no companion `.state`; prefer the envelope pair when an absence guard matters.

§ `action.attributes.trusted_facts.*` is caller-supplied. Do not use these fields as evidence to
authorize an action. Keel fills the object on its own managed MCP path, but on the public Permit
route the caller writes it, so an `allow` rule on one of these paths is satisfied by a request
Keel never verified, and Keel's validator does not refuse such a rule. If an existing policy
grants on one of them, replace the condition: for the exact MCP tool, use
`context._keel.action_envelope.connector.tool_name.value`. `max_uses` is enforced by Keel's
dispatch lifecycle from the verified value, not from this path. Other paths under
`action.attributes.trusted_facts` are not published for authoring.

`budget_envelope_id` is selected by the caller and enters policy evaluation before Keel
resolves and reserves the project-scoped envelope on the allow path. A condition on the ID is
not proof that a reservation succeeded. The flat payment currency field remains unpublished:
Expand Down
17 changes: 15 additions & 2 deletions keel-policy/tests/test_validate_enforceability_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,22 @@ def test_caller_asserted_financial_amount_cannot_be_trusted_or_auto_allow(self):
self.assertTrue(any("caller_asserted field cannot be trusted" in item for item in failures))
self.assertTrue(any("automatic action uses field" in item for item in failures))

def test_connector_asserted_value_cannot_be_trusted(self):
candidate = report(field="action.attributes.trusted_facts.max_uses", status="trusted", replacement=None)
def test_legacy_trusted_facts_path_is_caller_asserted_and_cannot_be_trusted(self):
field = "action.attributes.trusted_facts.max_uses"
self.assertEqual(PROVENANCE["fields"][field], "caller_asserted")
candidate = report(field=field, status="trusted", replacement=None)
failures = validate(candidate)
self.assertTrue(any("caller_asserted field cannot be trusted" in item for item in failures))

def test_connector_asserted_value_cannot_be_trusted(self):
# No connector-asserted field is PUBLIC on this release, so pin the rule
# against a provenance map that labels one public field that way.
field = "action.attributes.trusted_facts.max_uses"
provenance = json.loads(json.dumps(PROVENANCE))
provenance["fields"][field] = "connector_asserted"
candidate = report(field=field, status="trusted", replacement=None)
candidate["enforceability"][0]["provenance"] = "connector_asserted"
failures = validator.validate(candidate, MANIFEST, provenance, SCHEMA, POLICY_SCHEMA)
self.assertTrue(any("connector_asserted field cannot be trusted" in item for item in failures))

def test_automatic_allow_with_empty_enforceability_is_rejected(self):
Expand Down
4 changes: 2 additions & 2 deletions scripts/check_release_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@


ROOT = Path(__file__).resolve().parents[1]
PUBLIC_RELEASE_VERSION = "2026-11-07.1"
PRODUCT_SOURCE_SHA256 = "7481bc4de5400d2dd00af9cbe6c449d090dac7806a90fdb7d144e65195bdf293"
PUBLIC_RELEASE_VERSION = "2026-11-18.1"
PRODUCT_SOURCE_SHA256 = "adf8f87bfbb3a10b221b5350b40adf6484159b092e7172546924e30de59dab3e"
PUBLICATION_LAYER_FILES = [
".github/workflows/ci.yml",
".gitignore",
Expand Down
6 changes: 3 additions & 3 deletions tools/public_surface.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@
"field_adjudications": {
"action.attributes.trusted_facts.environment": {
"decision": "PUBLIC",
"rationale": "Connector-asserted preflight environment is an authorable exact-match contract."
"rationale": "Caller-asserted preflight environment (the backend catalog demoted it from connector_asserted) stays authorable and is published with its weaker provenance; it is not evidence Keel established the environment."
},
"action.attributes.trusted_facts.max_uses": {
"decision": "PUBLIC",
"rationale": "Connector-asserted numeric use limit is an authorable preflight contract."
"rationale": "Caller-asserted preflight use limit (the backend catalog demoted it from connector_asserted) stays authorable and is published with its weaker provenance; Keel's dispatch lifecycle enforces the verified value, not this path."
},
"action.attributes.trusted_facts.tool_name": {
"decision": "PUBLIC",
"rationale": "Connector-asserted preflight tool name is required by the shipped refund policy pattern."
"rationale": "Caller-asserted preflight tool name (the backend catalog demoted it from connector_asserted) stays authorable and is published with its weaker provenance; the shipped refund patterns use context._keel.action_envelope.connector.tool_name.value instead."
},
"attrs.estimated_input_tokens": {
"decision": "PUBLIC",
Expand Down