{"api_version":2,"receipt_profile":"zambo-hosted-receipt/1","schema_url":"https://zambo.dev/aer-1/hosted-profile.schema.json","id":"7b9a9d79-d9f0-4149-ab8c-90009a7eedb6","source_url":"https://zambo.dev/api/receipt/7b9a9d79-d9f0-4149-ab8c-90009a7eedb6","receipt":{"id":"7b9a9d79-d9f0-4149-ab8c-90009a7eedb6","created_at":"2026-11-26T03:04:26.712Z","receipt_schema_version":"0.4","job_summary":"MCP tool execution: sql_from_english","tools":["sql_from_english"],"steps":[{"tool":"sql_from_english","status":"success","started_at":"2026-11-26T03:04:25.445Z","completed_at":"2026-11-26T03:04:26.712Z"}],"output_hash":"sha256:079fb612aaed2b8ba03363c9c9247a2c228b9e421645a5d9f9c0746f648c518e","hash_algorithm":"sha256","canonical_bytes":"eyJjYWxsZXIiOnsiYmFzaXMiOiJpcF91YV8zMGQiLCJpZCI6InNoYTI1Njo4ZTdiMzU2ZGQ5ZWY5YTYyZDM2N2ZkYzAwY2U5Y2UxYTQxZTM0ZDNlYzNiZWNhNjFiZTBhMjU4ZTBiYWM4YzgxIiwicm90YXRlc19hdCI6IjIwMjYtMTItMDNUMDA6MDA6MDAuMDAwWiIsInR5cGUiOiJhbm9ueW1vdXMifSwiaXNzdWVyX2NsYWltcyI6eyJwcm92ZW5hbmNlX2NsYXNzIjoiRVhFQ1VURUQgQlkgWkFNQk8ifSwib3V0cHV0Ijp7ImNvbW1vbl9taXN0YWtlcyI6IjEuIFVzaW5nIFdIRVJFIGNyZWF0ZWRfYXQgPSBub3coKSB3aGljaCBvbmx5IG1hdGNoZXMgdGhlIGV4YWN0IGN1cnJlbnQgc2Vjb25kLiAyLiBVc2luZyBXSEVSRSBFWFRSQUNUKE1PTlRIIEZST00gY3JlYXRlZF9hdCkgPSBFWFRSQUNUKE1PTlRIIEZST00gbm93KCkpIHdoaWNoIGlzIG5vdCBzYXJnYWJsZSBhbmQgaWdub3JlcyB0aGUgeWVhci4gMy4gRm9yZ2V0dGluZyB0byBpbmNsdWRlI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RSBjcmVhdGVkX2F0ID49IGRhdGVfdHJ1bmMoJ21vbnRoJywgbm93KCkpIEFORCBjcmVhdGVkX2F0IDwgZGF0ZV90cnVuYygnbW9udGgnLCBub3coKSkgKyBpbnRlcnZhbCAnMSBtb250aCcgT1JERVIgQlkgY3JlYXRlZF9hdCBBU0M7IiwiU0VMRUNUIGlkLCBlbWFpbCwgY3JlYXRlZF9hdCBGUk9NIHVzZXJzIFdIRVJFIGNyZWF0ZWRfYXQgPj0gZGF0ZV90cnVuYygnbW9udGgnLCBub3coKSkgT1JERVIgQlkgY3JlYXRlZF9hdCBERVNDOyJdfSwicmVjZWlwdF9zY2hlbWFfdmVyc2lvbiI6IjAuNCIsInNpZGVfZWZmZWN0cyI6eyJkZWNsYXJhdGlvbl9oYXNoIjoic2hhMjU2OjQ1YWFkMzhmM2FhOTgyYjlhYWZlOTJlY2I0MTZlYmU5ODc5MWVkZGJhZjhhYjZkZjBiZDA4NjA1YjdjMWJmZWUiLCJkZWNsYXJlZCI6WyJub25lIl0sInNjaGVtYV92ZXJzaW9uIjoiemFtYm8tc2lkZS1lZmZlY3RzLzEifSwidG9vbCI6eyJuYW1lIjoic3FsX2Zyb21fZW5nbGlzaCIsInNjb3BlIjoicHVibGljIiwidmVyc2lvbiI6IjQuMS40In19","canonical_bytes_withheld_for_privacy":false,"canonical_byte_length":1797,"verification_status":"verified","session_trail":[],"result_preview":"{\"sql\":\"SELECT id, email, created_at FROM users WHERE created_at >= date_trunc('month', now()) ORDER BY created_at ASC;\",\"explanation\":\"Selects the id, email, and creation timestamp for all users whose signup date falls within the current calendar month, sorted chronologically from oldest to newest.\",\"indexes_needed\":[\"CREATE INDEX idx_users_created_at ON users (created_at);\"],\"performance_notes\":\"Using date_trunc('month', now()) is sargable and allows the database to utilize an index on created_at efficiently. Avoid wrapping the column in functions like EXTRACT or DATE(created_at) as this prevents index usage and forces a full table scan.\",\"common_mistakes\":\"1. Using WHERE created_at = now() which only matches the exact current second. 2. Using WHERE EXTRACT(MONTH FROM created_at) = EXTRACT(MONTH FROM now()) which is not sargable and ignores the year. 3. Forgetting to include the year in the comparison, causing incorrect results in January.\",\"variations\":[\"SELECT id, email, created_at FROM users WHERE created_at >= date_trunc('month', now()) AND created_at < date_trunc('month', now()) + interval '1 month' ORDER BY created_at ASC;\",\"SELECT id, email, created_at FROM users WHERE created_at >= date_trunc('month', now()) ORDER BY created_at DESC;\"],\"dialect\":\"postgresql\"}","result_preview_integrity":"display_only_not_committed","result_preview_truncated":false,"input_hash":"sha256:9c603989f51e66db2e700d3a2a163554c1fe2e5925f2bd3a45ef11dcffc84358","input_hash_layout":"zambo-json-sorted-keys-utf8-v1","free_used":0,"free_remaining":0,"free_limit":0,"signal_handle":null,"tool":{"name":"sql_from_english","version":"4.1.4","scope":"public"},"caller":{"type":"anonymous","id":"sha256:8e7b356dd9ef9a62d367fdc00ce9ce1a41e34d3ec3beca61be0a258e0bac8c81","basis":"ip_ua_30d","rotates_at":"2026-12-03T00:00:00.000Z"},"side_effects":{"declared":["none"],"schema_version":"zambo-side-effects/1","declaration_hash":"sha256:45aad38f3aa982b9aafe92ecb416ebe98791eddbaf8ab6df0bd08605b7c1bfee"},"evidence_sha256":null,"evidence_url":null,"evidence_byte_length":null,"evidence_content_type":null,"evidence_source_url":null,"evidence_status":"empty","result_source":null,"evidence_source":null,"external_evidence":[],"provenance":{"result_source":null,"evidence_source":null,"evidence_status":"empty","evidence_captures":[]},"provenance_class":"EXECUTED BY ZAMBO","metadata_hash":"sha256:27e50dfee8aff2e7438a59ab4e2ab56e1b1e4d3d355761f20d1152e93f3350b2","anchor":{"event_id":"404577f0d03983cb7b008f9954ecee0476bf8a05fdeedcfb8257d85f16401f25","pubkey":"e13475107d30c918ec664adf2ab•••••24a22fb35190f82c9e933704fa49af41","relays":["wss://relay.primal.net"],"status":"published","published_at":"2026-11-26T03:04:27.237Z","published_at_semantics":"Relay confirmation time (accepted acknowledgement or exact-event read-back); not the signed event's created_at.","schema_version":"zambo-receipt-anchor/1","envelope":{"anchored_at":"2026-11-26T03:04:26.712Z","evidence_url":null,"receipt_uuid":"7b9a9d79-d9f0-4149-ab8c-90009a7eedb6","output_sha256":"sha256:079fb612aaed2b8ba03363c9c9247a2c228b9e421645a5d9f9c0746f648c518e","schema_version":"zambo-receipt-anchor/1","evidence_sha256":null,"evidence_byte_length":null},"envelope_bytes":"{\"anchored_at\":\"2026-11-26T03:04:26.712Z\",\"evidence_byte_length\":null,\"evidence_sha256\":null,\"evidence_url\":null,\"output_sha256\":\"sha256:079fb612aaed2b8ba03363c9c9247a2c228b9e421645a5d9f9c0746f648c518e\",\"receipt_uuid\":\"7b9a9d79-d9f0-4149-ab8c-90009a7eedb6\",\"schema_version\":\"zambo-receipt-anchor/1\"}"},"receipt_profile":"zambo-hosted-receipt/1","schema_url":"https://zambo.dev/aer-1/hosted-profile.schema.json","api_version":1,"verification_scope":"separate_sha256_commitment_and_provenance_binding_checks","checks":{"commitment_matches":{"label":"SHA-256 commitment","passed":true,"status":"pass","detail":"The exact decoded canonical bytes match the stored SHA-256 output hash."},"canonical_payload_matches":{"label":"Canonical payload reconstruction","passed":true,"status":"pass","detail":"The stored output and known call context reconstruct the exact canonical bytes."},"provenance_binding":{"label":"Provenance claim binding","status":"pass","passed":true,"detail":"The metadata claim is consistent with the verified receipt bytes; issuer is not authenticated."},"metadata_binding":{"label":"AER-1 metadata hash","status":"pass","passed":true,"detail":"metadata_hash matches the canonical metadata block."},"signature":{"label":"Ed25519 signature (not checked)","passed":false,"status":"not_checked","detail":"No Ed25519 signature or pinned signing key was checked."},"chain":{"label":"Receipt chain (not checked)","passed":false,"status":"not_checked","detail":"No append-only receipt-chain proof was checked."},"issued_by_zambo_dev":{"label":"Issuer authentication","passed":false,"status":"not_checked","detail":"A zambo.dev receipt URL does not authenticate the issuer; no pinned signature or trusted issuer key was checked."},"immutable_log_timestamp":{"label":"Stored timestamp","passed":true,"timestamp":"2026-11-26T03:04:26.712Z","detail":"The receipt store reports 2026-11-26T03:04:26.712Z; immutability is not checked here."},"receipt_schema_version":"0.4","signature_valid":{"label":"Ed25519 signature (not checked)","passed":false,"status":"not_checked","detail":"Compatibility field only. No Ed25519 signature was checked; use API v2 checks.commitment_matches for the SHA-256 commitment."},"chain_valid":{"label":"Receipt chain (not checked)","passed":false,"status":"not_checked","detail":"This endpoint does not verify an append-only chain."}},"execution_context":{"environment":"zambo.dev hosted MCP","quota_identity":{"meter_key":"sha256:71659993d7fac0bfb9257f06922f45abebd6a2d86e5e2f•••••38acba79a975f"}}},"evidence_status":"empty","verification_status":"verified","checks":{"commitment_matches":{"status":"pass","passed":true,"expected_hash":"sha256:079fb612aaed2b8ba03363c9c9247a2c228b9e421645a5d9f9c0746f648c518e","computed_hash":"sha256:079fb612aaed2b8ba03363c9c9247a2c228b9e421645a5d9f9c0746f648c518e","detail":"SHA-256 of the exact decoded canonical bytes matches output_hash."},"canonical_payload_matches":{"label":"Canonical payload reconstruction","passed":true,"status":"pass","detail":"The stored output and known call context reconstruct the exact canonical bytes."},"provenance_binding":{"label":"Provenance claim binding","status":"pass","passed":true,"detail":"The metadata claim is consistent with the verified receipt bytes; issuer is not authenticated."},"metadata_binding":{"label":"AER-1 metadata hash","status":"pass","passed":true,"detail":"metadata_hash matches the canonical metadata block."},"issuer_authentication":{"label":"Issuer authentication","passed":false,"status":"not_checked","detail":"A zambo.dev receipt URL does not authenticate the issuer; no pinned signature or trusted issuer key was checked."},"signature":{"status":"not_checked","detail":"No Ed25519 signature or pinned signing key is supplied."},"schema":{"status":"not_checked","detail":"Schema conformance is left to the client using the linked hosted-profile schema."},"chain":{"status":"not_checked","detail":"This endpoint does not verify an append-only receipt chain."}}}