{ "slug": "hyperprobe-readonly-debugging-agents-2026", "generated_at": "2026-11-16T00:24:56Z", "what_this_is": "Local fixture check of the enforcement layers and the audit record. Scripted client, no language model, no network, no vendor system.", "environment": { "python": "3.12.3", "sqlite": "3.45.1", "os": "linux" }, "database_layer": [ { "probe": "INSERT into the base table", "sql_head": "INSERT", "refused": true, "error_type": "OperationalError", "error": "attempt to write a readonly database", "rows_returned": null }, { "probe": "UPDATE the base table", "sql_head": "UPDATE", "refused": true, "error_type": "OperationalError", "error": "attempt to write a readonly database", "rows_returned": null }, { "probe": "DELETE from the base table", "sql_head": "DELETE", "refused": true, "error_type": "OperationalError", "error": "attempt to write a readonly database", "rows_returned": null }, { "probe": "CREATE TABLE", "sql_head": "CREATE", "refused": true, "error_type": "OperationalError", "error": "attempt to write a readonly database", "rows_returned": null }, { "probe": "SELECT through the view", "sql_head": "SELECT", "refused": false, "error_type": null, "error": null, "rows_returned": 4 }, { "probe": "CREATE TEMP TABLE (temp schema)", "sql_head": "CREATE", "refused": true, "error_type": "OperationalError", "error": "attempt to write a readonly database", "rows_returned": null }, { "probe": "write to the temp table", "sql_head": "INSERT", "refused": true, "error_type": "OperationalError", "error": "no such table: scratch", "rows_returned": null } ], "tool_layer": { "calls": [ { "tool": "db_schema", "decision": "allow", "rule_id": null }, { "tool": "log_query", "decision": "allow", "rule_id": null }, { "tool": "db_query", "decision": "allow", "rule_id": null }, { "tool": "update_order_status", "decision": "deny", "rule_id": "TOOL_DENIED" }, { "tool": "db_query", "decision": "deny", "rule_id": "SQL_NOT_SELECT" }, { "tool": "db_query", "decision": "deny", "rule_id": "SQL_MULTI_STATEMENT" }, { "tool": "shell", "decision": "deny", "rule_id": "TOOL_DENIED" }, { "tool": "probe_condition", "decision": "deny", "rule_id": "EXPR_CALL" }, { "tool": "probe_condition", "decision": "allow", "rule_id": null } ], "attempted": 9, "allowed": 4, "denied": 5, "rules_fired": [ "EXPR_CALL", "SQL_MULTI_STATEMENT", "SQL_NOT_SELECT", "TOOL_DENIED" ] }, "audit": { "fields_declared": [ "session_id", "seq", "ts_utc", "actor_agent_id", "actor_model_id", "policy_sha256", "tool", "args_sha256", "decision", "rule_id", "scope", "result_sha256", "result_bytes" ], "fields_populated_on_every_record": [ "session_id", "seq", "ts_utc", "actor_agent_id", "policy_sha256", "tool", "args_sha256", "decision", "scope" ], "fields_missing": [ "actor_model_id", "rule_id", "result_sha256", "result_bytes" ], "records": [ { "session_id": "sess-8950f3366efc", "seq": 1, "ts_utc": "2026-11-16T00:24:56Z", "actor_agent_id": "agent:fixture-driver", "actor_model_id": null, "policy_sha256": "b94729f5cb7ce11cd7bf92350fdc53e798bc95583b74405b8f49e2a4e63b4db6", "tool": "db_schema", "args_sha256": "b434abb77d0154fbe0a9bb39b3d75a8c77f2192bb3fff41abe0e028f75dc8770", "decision": "allow", "rule_id": null, "scope": { "environment": "local-fixture", "database": "fixture.db (single file, seeded synthetic rows)", "service": "orders-api (log fixture only)", "statement_timeout_ms": 250, "max_rows": 50 }, "result_sha256": "d51a67baf07ea4ddf0897adf50143888dce0f29c0b1260ded122513fa2ec2ef9", "result_bytes": 75, "detail": "allowed" }, { "session_id": "sess-8950f3366efc", "seq": 2, "ts_utc": "2026-11-16T00:24:56Z", "actor_agent_id": "agent:fixture-driver", "actor_model_id": null, "policy_sha256": "b94729f5cb7ce11cd7bf92350fdc53e798bc95583b74405b8f49e2a4e63b4db6", "tool": "log_query", "args_sha256": "ff79ba04f18d58b52ca731b6c0c9d28205865ac4014789fb8ad20f63ff89c7fe", "decision": "allow", "rule_id": null, "scope": { "environment": "local-fixture", "database": "fixture.db (single file, seeded synthetic rows)", "service": "orders-api (log fixture only)", "statement_timeout_ms": 250, "max_rows": 50 }, "result_sha256": "81a2e6a9e16c087e21310be729bcf21e53342ecc288368993e230dc0a218618f", "result_bytes": 246, "detail": "allowed" }, { "session_id": "sess-8950f3366efc", "seq": 3, "ts_utc": "2026-11-16T00:24:56Z", "actor_agent_id": "agent:fixture-driver", "actor_model_id": null, "policy_sha256": "b94729f5cb7ce11cd7bf92350fdc53e798bc95583b74405b8f49e2a4e63b4db6", "tool": "db_query", "args_sha256": "9a8b51d3d70cab7515aca3ffe0695a904c64a1c36d4d7e8508179e9ea220c42d", "decision": "allow", "rule_id": null, "scope": { "environment": "local-fixture", "database": "fixture.db (single file, seeded synthetic rows)", "service": "orders-api (log fixture only)", "statement_timeout_ms": 250, "max_rows": 50 }, "result_sha256": "591b77369cb21cede093302b4ea6693e5f2d9e2fa91bd0ba3b0960e907b607ed", "result_bytes": 174, "detail": "allowed" }, { "session_id": "sess-8950f3366efc", "seq": 4, "ts_utc": "2026-11-16T00:24:56Z", "actor_agent_id": "agent:fixture-driver", "actor_model_id": null, "policy_sha256": "b94729f5cb7ce11cd7bf92350fdc53e798bc95583b74405b8f49e2a4e63b4db6", "tool": "update_order_status", "args_sha256": "7a4327ad1eac4c5e448894277f0f08a5c849ffb5d6b55c679916adf6914d46c1", "decision": "deny", "rule_id": "TOOL_DENIED", "scope": { "environment": "local-fixture", "database": "fixture.db (single file, seeded synthetic rows)", "service": "orders-api (log fixture only)", "statement_timeout_ms": 250, "max_rows": 50 }, "result_sha256": null, "result_bytes": null, "detail": "DENIED by TOOL_DENIED: 'update_order_status' is declared but the envelope denies it (the deliberately tempting write tool: present in the tool list, denied by policy)" }, { "session_id": "sess-8950f3366efc", "seq": 5, "ts_utc": "2026-11-16T00:24:56Z", "actor_agent_id": "agent:fixture-driver", "actor_model_id": null, "policy_sha256": "b94729f5cb7ce11cd7bf92350fdc53e798bc95583b74405b8f49e2a4e63b4db6", "tool": "db_query", "args_sha256": "c7bf3b83f9e95aa15e29bbb43e77669d488b954857e41ef88aa530fd1355e031", "decision": "deny", "rule_id": "SQL_NOT_SELECT", "scope": { "environment": "local-fixture", "database": "fixture.db (single file, seeded synthetic rows)", "service": "orders-api (log fixture only)", "statement_timeout_ms": 250, "max_rows": 50 }, "result_sha256": null, "result_bytes": null, "detail": "DENIED by SQL_NOT_SELECT: statement was not executed" }, { "session_id": "sess-8950f3366efc", "seq": 6, "ts_utc": "2026-11-16T00:24:56Z", "actor_agent_id": "agent:fixture-driver", "actor_model_id": null, "policy_sha256": "b94729f5cb7ce11cd7bf92350fdc53e798bc95583b74405b8f49e2a4e63b4db6", "tool": "db_query", "args_sha256": "d8f07945ea5ed2fb3e61fcadf9030b0995e5a5bd090508bf4b05600a83314b09", "decision": "deny", "rule_id": "SQL_MULTI_STATEMENT", "scope": { "environment": "local-fixture", "database": "fixture.db (single file, seeded synthetic rows)", "service": "orders-api (log fixture only)", "statement_timeout_ms": 250, "max_rows": 50 }, "result_sha256": null, "result_bytes": null, "detail": "DENIED by SQL_MULTI_STATEMENT: statement was not executed" }, { "session_id": "sess-8950f3366efc", "seq": 7, "ts_utc": "2026-11-16T00:24:56Z", "actor_agent_id": "agent:fixture-driver", "actor_model_id": null, "policy_sha256": "b94729f5cb7ce11cd7bf92350fdc53e798bc95583b74405b8f49e2a4e63b4db6", "tool": "shell", "args_sha256": "8623f3dfd04f38047a573e52722ea1e10a6101447f310c5dc39434085005949a", "decision": "deny", "rule_id": "TOOL_DENIED", "scope": { "environment": "local-fixture", "database": "fixture.db (single file, seeded synthetic rows)", "service": "orders-api (log fixture only)", "statement_timeout_ms": 250, "max_rows": 50 }, "result_sha256": null, "result_bytes": null, "detail": "DENIED by TOOL_DENIED: 'shell' is declared but the envelope denies it (process execution is outside the envelope)" }, { "session_id": "sess-8950f3366efc", "seq": 8, "ts_utc": "2026-11-16T00:24:56Z", "actor_agent_id": "agent:fixture-driver", "actor_model_id": null, "policy_sha256": "b94729f5cb7ce11cd7bf92350fdc53e798bc95583b74405b8f49e2a4e63b4db6", "tool": "probe_condition", "args_sha256": "dae85033122ddfedb44075bb24dba6ccdfd214953dc4a75f3ae2069f5e964c94", "decision": "deny", "rule_id": "EXPR_CALL", "scope": { "environment": "local-fixture", "database": "fixture.db (single file, seeded synthetic rows)", "service": "orders-api (log fixture only)", "statement_timeout_ms": 250, "max_rows": 50 }, "result_sha256": null, "result_bytes": null, "detail": "DENIED by EXPR_CALL: refused: Call (method get_total())" }, { "session_id": "sess-8950f3366efc", "seq": 9, "ts_utc": "2026-11-16T00:24:56Z", "actor_agent_id": "agent:fixture-driver", "actor_model_id": null, "policy_sha256": "b94729f5cb7ce11cd7bf92350fdc53e798bc95583b74405b8f49e2a4e63b4db6", "tool": "probe_condition", "args_sha256": "bc4a0ac1366be9ee0893d38b54694083a8d29001df099adeb2d63be9f0849728", "decision": "allow", "rule_id": null, "scope": { "environment": "local-fixture", "database": "fixture.db (single file, seeded synthetic rows)", "service": "orders-api (log fixture only)", "statement_timeout_ms": 250, "max_rows": 50 }, "result_sha256": "c8c56d5eeb31aec393af986aeb3b42a90cba9ddebfa0a759c277003737c471b0", "result_bytes": 41, "detail": "allowed" } ] }, "integrity": { "orders_fingerprint_before": "1ef76ba185f6862a0c942e5bca1451069f6696c8347d5b3d0cc5fed0beb71745", "orders_fingerprint_after": "1ef76ba185f6862a0c942e5bca1451069f6696c8347d5b3d0cc5fed0beb71745", "unchanged": true, "rows_remaining": 6 }, "limits": [ "Scripted client: which tools a model chooses, and whether it retries after a refusal, was not measured.", "The expression guard is a small AST allow/deny check written for this fixture, not a vendor implementation and not Runtime.evaluate's throwOnSideEffect.", "SQLite PRAGMA query_only is a different mechanism from PostgreSQL SET TRANSACTION READ ONLY; the two are compared in the article, not substituted for each other.", "Single-process, single-file database on a laptop-class host: no concurrency, latency or overhead claim is supported by this run." ] }