Files
SGF/docs/proofs/sgc-invoice-workspace-final-20261110.json
T
2026-11-11 09:00:17 +02:00

235 lines
11 KiB
JSON

{
"date": "2026-11-10",
"passed": true,
"scope": "SGC durable invoice source workspace for SGF intake; no operational activation",
"sqlite": {
"unique_cases": 20,
"assertions": 142,
"cases": {
"test_full_durable_cycle_and_audited_decision": 15,
"test_lost_response_reuses_same_key_cut_and_durable_intent": 7,
"test_failure_after_remote_commit_keeps_durable_sending_for_recovery": 7,
"test_revision_preserves_before_after_and_invalidates_preview": 8,
"test_no_edit_after_any_confirmation_started": 3,
"test_local_registration_is_blocked_even_when_feature_is_disabled": 3,
"test_existing_local_invoice_cannot_be_sent": 3,
"test_duplicate_source_cannot_get_second_intent": 3,
"test_stale_version_and_wrong_approval_do_not_send": 5,
"test_operator_context_and_mapping_changes_require_new_conference": 5,
"test_http_screen_csrf_and_audited_history_are_private": 16,
"test_foreign_tenant_and_warehouse_actor_cannot_read_or_write": 6,
"test_pagination_history_and_output_escaping": 10,
"test_events_and_drafts_cannot_be_deleted_or_rewritten": 5,
"test_disabled_transport_keeps_draft_and_disabled_workspace_refuses": 6,
"test_changed_remote_context_refuses_decision_before_recording_it": 8,
"test_revoked_operator_cannot_confirm_and_live_lease_prevents_duplicate_send": 5,
"test_actual_screen_forms_complete_registration_and_keep_exact_sgf_handoff": 18,
"test_missing_schema_is_refused_without_activating_or_migrating": 5,
"test_audit_freezes_preview_actor_and_context_fingerprint": 4
},
"junit": [
{
"private_file": "source-sqlite-junit.xml",
"sha256": "ac2adb90fda1ad7837033a58ea441b038f86c9eaff0f7c2b4c1645a999a77f0d"
},
{
"private_file": "source-screen-junit.xml",
"sha256": "3a31a747dab297e58c67e4c9f964eb3286f0e9ee5f1907fd6332064d9c73e6b8"
},
{
"private_file": "source-readiness-junit.xml",
"sha256": "34115e3e5d18a6c526705ad17db38d9ee92a9ff5a85711303b9d0e50757eebad"
},
{
"private_file": "source-context-audit-junit.xml",
"sha256": "3b5e352a1cb43e576e714e5753862b961cd3ceb3659fbb63b6df48c04e5dc81f"
}
],
"database": ":memory:",
"migration_scope": "only minimal synthetic fixtures and the new migration"
},
"postgresql": {
"checks": [
"two source persistence tables installed only in existing regression book",
"actual SGC service persists real SGF kernel preview",
"remote commit with lost response is durably uncertain at source",
"source recovers one actual pending invoice from receiver",
"first end-to-end intent creates exactly one receiver invoice",
"native SGC writer refuses claimed invoice before any local duplicate",
"concurrent source decisions yield one send and stale/in-flight refusal",
"second end-to-end intent creates only one receiver invoice",
"source has one durable decision and receipt for concurrent intent",
"PostgreSQL refuses rewriting source event history",
"all original source business rows and sequences preserved",
"receiver budget stock and payments unchanged by pending-document intake",
"8085 all host/native rows and sequences unchanged",
"exactly two individually audited decisions for two sources"
],
"result_sha256": "17c702478dd6bb3cf81367a370a39f36f1b290ace02902f5a2b72b7680bf638a",
"source_book": "b4093c6f6707",
"receiver_book": "da77bb730751",
"new_receiver_pending_invoices": 2,
"source_concurrent_statuses": [
200,
409
],
"remote_commit_response_loss_recovered": true,
"new_schema_only_in_regression": true,
"original_source_rows_and_sequences_preserved": true
},
"ui": {
"route": "/facturas/envio-sgf",
"blade_http_forms_tested": true,
"history_and_list_page_size": 25,
"typescript_no_emit_exit": 0,
"private_tsx_sha256": "f8b1869842dc10832fc9d9a90678a4e620c98dd6a97b40bb0dea7b6021508e23",
"typescript_diagnostics_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"rendered_inline_scripts_syntax_checked": 3,
"visual_browser_review": false,
"full_product_build": false
},
"preparation": {
"id": "3bb99e866f52965dbb7d",
"manifest_sha256": "b4abf43bcaa78a674b2b79b17143d8711eae63eba231330feae962c66cd004fe",
"endpoint_files": 8,
"client_source_files": 15,
"installed": false,
"activated": false,
"sql_privileges_approved": false
},
"preservation": {
"8085_all_host_native_rows_and_sequences_sha256": [
"6168b382599448d71b39691ba4c347db0c8ab8a8d8dc7388283b212239ac9290",
"58e032c3a30234433adf66cc75478bd729ba0f62592637cf737e2ee23e01773b"
],
"8085_code_unchanged": true,
"six_records_changed": false,
"cache_cleared": false,
"pilot_schema_changed": false,
"new_operational_credentials": false,
"new_business_rights": false,
"new_database": false,
"new_role": false,
"new_demo": false,
"new_http_server": false,
"publication": false,
"checkpoint": false
},
"sources": [
{
"file": "C:\\laragon\\www\\sgf-tempo/packages/sgc-invoice-client/src/InvoiceClient.php",
"sha256": "64572c1630f4ed05086241ed519abf02b6e16b508af5b71f2f099df1ed5a72d8"
},
{
"file": "C:/laragon/www/compras/app/Services/SgfInvoiceGateway.php",
"sha256": "8fb4eb64f63562ca83be96584beb42de70b4f47a951900c92d14a8ab7e7b8039"
},
{
"file": "C:/laragon/www/compras/config/sgf_invoice.php",
"sha256": "8f90cd662cea2537b578a514a5c14a951db750360799fb12c50a65c7ef444d1d"
},
{
"file": "C:/laragon/www/compras/app/Services/SgfInvoiceDispatches.php",
"sha256": "643c77976f9a71e0e61402dcb246eb762a26bf1f8013f17528c1fb0e8d669186"
},
{
"file": "C:/laragon/www/compras/app/Http/Controllers/SgfInvoiceDispatchController.php",
"sha256": "224bbebe0df3cd82fbab55a02408534704c170d54b536ffc0e3cd8f9ccd99942"
},
{
"file": "C:/laragon/www/compras/database/migrations/2026_11_10_000001_create_sgf_invoice_dispatches.php",
"sha256": "91702237b3fde1026dd63b6a26dd571fa0e331235fc216dd927d340c5ecb1888"
},
{
"file": "C:/laragon/www/compras/resources/views/sgf-invoices/layout.blade.php",
"sha256": "f4da950b56cff30c57961485f83876ea4fdafa389360a3294d0f35bf025c9cec"
},
{
"file": "C:/laragon/www/compras/resources/views/sgf-invoices/document-form.blade.php",
"sha256": "8333219385743cc1826ef7ba29ee68380c08fd44e96c612f4021606d95df4360"
},
{
"file": "C:/laragon/www/compras/resources/views/sgf-invoices/index.blade.php",
"sha256": "19ce2d589f208e585f906fa3633d6881286c64a3477d997e03269c41c066ac05"
},
{
"file": "C:/laragon/www/compras/resources/views/sgf-invoices/evidence.blade.php",
"sha256": "e65a8830126061626532dc47f3536d726fd1388cca373dfc3dea5295575fa166"
},
{
"file": "C:/laragon/www/compras/resources/views/sgf-invoices/show.blade.php",
"sha256": "a5f5b4859872f18875dfbc08bbc63d9df3cf675d0d89ece7224fdb868a52b6cb"
},
{
"file": "C:/laragon/www/compras/app/Services/InvoiceWorkflow.php",
"sha256": "4f056f195fb7a091ec4e80dead714241514e34c7998695607c6803959fd0561c"
},
{
"file": "C:/laragon/www/compras/app/Http/Controllers/InvoiceController.php",
"sha256": "37d9e1037dca3bd142bbbae30f40aaa6d68c5cf3f08b3b22a6a2a3824e12cc7c"
},
{
"file": "C:/laragon/www/compras/routes/web.php",
"sha256": "d842702959639234e849bc78fb029af0d8018889f6632ee178997ba79b5bea56"
},
{
"file": "C:/laragon/www/compras/resources/js/pages/invoices/index.tsx",
"sha256": "fe9382794b440108be9d04a0a53cac1f95c58fe4abc5f673bd98d9525445e045"
},
{
"file": "scripts/sgc-dispatch-receiver.php",
"sha256": "8919a3cb43743aacca2b797a1dd49710de809432a563f24f8037d32a3f39b872"
},
{
"file": "scripts/sgc-dispatch-pg-bootstrap.php",
"sha256": "28265cad1a5b64875d03738c45d31a42d8aa7247c14a7e60511a68283cedc9ba"
},
{
"file": "scripts/sgc-dispatch-pg-proof.php",
"sha256": "24ae626cc7e001f087d5379540ac9874261588723b5aa209802c611e349ab5c1"
},
{
"file": "scripts/summarize-sgc-dispatch.php",
"sha256": "a77dac8b28574f3ed5c9f9a372bc44d921081d6c9656fd322a385c40b2da061c"
},
{
"file": "scripts/prepare-sgc-8085.mjs",
"sha256": "57e0136bc5e4dd26c84719a6972acf5a5a936e2cc9b9debcc4bb131309eadc3b"
},
{
"file": "C:/laragon/www/compras/tests/Integration/SgfInvoiceDispatchesTest.php",
"sha256": "e78368849e4f4cf5bd3bcb9cd6dc52215cffecba3dd5aba76de2a7838b9cb9bd"
}
],
"reused_proofs": [
{
"file": "docs/proofs/sgc-invoice-endpoint-20261110.json",
"sha256": "5dcdb843b18c1d33e9b1bc8351d7d0addeb780a63ae9fb374821bd414faa7c75",
"repeated": false
},
{
"file": "docs/proofs/sgc-8085-integration-preparation-20261110.json",
"sha256": "c9db703f25731610ab58f19a87917eb5a112b507159bba587dfdc8e0e8e76216",
"repeated": false
},
{
"file": "docs/proofs/purchasing-completion-final-20261104-r2.json",
"sha256": "3b63f8653e8dbb089dfdd8f389e271c022a070d5a67a9f9d4585ce84438070cc",
"repeated": false
}
],
"report": "docs/SGC_INVOICE_WORKSPACE_DELIVERY.md",
"limits": [
"Two real application kernels in independent PHP processes, intercepted CLI bridge; no TCP8085 or pilot activation.",
"The initial receiver harness inherited SGC cache metadata; isolated environment corrected and same draft/key resumed without replaying an accepted confirmation.",
"20 unique selected cases; earlier19-case summary preserved, duplicate executions not added.",
"Final schema-readiness and frozen actor/context audit metadata covered by directed SQLite checks; integrated commits not repeated.",
"No full product bundle build, visual review, sustained load, disaster recovery or deployment capacity claim.",
"Exact source migration/SQL privileges, code installation, approved mappings/principal/secret and activation still require their authorised rollout."
],
"initial_proof_preserved": {
"file": "docs/proofs/sgc-invoice-workspace-20261110.json",
"sha256": "d1d8c20867604171dbd8f3926916c4df43c4571717c673d94d5aeaa66860c7dd"
}
}