{ "increment": "COMMON-LEDGER-DIRECT-COST-SIM-v1", "consolidated_at_utc": "2026-11-02T23:23:09.131Z", "authorization": { "answer": "Autorizar o ciclo sintético proposto", "scope_archive_matches_presented_proposal": true, "approved_scope_sha256": "fda42b728512b5fc554db4dcd67a5b652aa1bdfd1e44b1de93b32a7d694aaf92" }, "status": "implemented_and_tested_with_explicit_limits", "functional_code": true, "synthetic_only": true, "tests": { "actual_workflow": { "passed": true, "journal_id": 1, "journals": 1, "lines": 2, "debit_minor": 27500, "credit_minor": 27500, "source_outbox_rights_fingerprint_unchanged": true, "same_and_other_key_no_duplication": true, "period_closed": true, "trial_balance_and_account_ledger_reconciled": true }, "defaults": { "passed": true, "default_without_environment": false, "owned_cost_only_qa_runtime": true, "sales_not_enabled": true, "real_environment_not_changed": true }, "regression": { "passed": true, "checks": 27, "cases": [ { "name": "complete-source-rights-and-explicit-impact", "checks": 7, "passed": true }, { "name": "partial175-and-non-cent-representable-cost", "checks": 3, "passed": true }, { "name": "exact-rational-no-rounding", "checks": 2, "passed": true }, { "name": "revoked-source-rights-and-old-capture", "checks": 1, "passed": true }, { "name": "revoked-rights-before-recovery", "checks": 1, "passed": true }, { "name": "source-access-and-person-independence", "checks": 2, "passed": true }, { "name": "fault-boundaries-atomic-recovery", "checks": 5, "passed": true }, { "name": "stable-perimeter-no-second-recognition-and-close-refusal", "checks": 3, "passed": true }, { "name": "guards-and-perimeter-immutability", "checks": 2, "passed": true } ], "rollback_only": true, "source_outbox_rights_unchanged": true, "no_rounding_or_duplicate_recognition": true }, "security": { "passed": true, "checks": 10, "eligible_foreign_unit_company_tenant_refused": true, "three_live_view_rights_rechecked": true, "actual_unverified_successor_refused": true, "no_inherited_verification": true, "rollback_only": true, "source_outbox_rights_unchanged": true }, "actual_http": { "passed": true, "checks": 51, "actual_http": true, "actual_csrf": true, "principal_minor": 27500, "journals": 1, "lines": 2, "source_events": 3, "report_reconciled": true, "typed_cost_origin_link": true, "one_reviewed_qa_close": true, "repeated_keys_and_source_no_duplicates": true, "read_only_workspace": true, "writer_locks": 0, "visual_review": false }, "http_final": { "passed": true, "source_outbox_rights_fingerprint_unchanged": true, "journals": 1, "lines": 2, "closures": 1, "closed_ui_has_no_commands": true, "debit_minor": 27500, "credit_minor": 27500 }, "ui_postcheck": { "passed": true, "cost_order_not_mislabelled_as_debt": true, "typed_filter_journals": 1, "typed_filter_events": 3, "generic_diary_and_account_report_source_links": true, "read_only_postcheck": true }, "concurrency": { "passed": true, "workers": 6, "stale_post_after_committed_rate_version": { "waiting": { "a": { "chain_reaches_parent": true, "wait_event": "transactionid" } }, "read_before_release": { "status": 200, "amount_minor": 27500, "journals": 0 }, "results": { "a": { "status": 409, "message": "Cálculo actual completo e validado distintamente obrigatório; custo conhecido parcial não é total." } }, "changed_effect_id": 3 }, "fresh_posting": { "waiting": { "b": { "chain_reaches_parent": true, "wait_event": "transactionid" }, "a": { "chain_reaches_parent": true, "wait_event": "tuple" } }, "read_before_release": null, "results": { "a": { "status": 200, "result": { "state": "posted", "proposal_id": 2, "journal_id": 1, "replayed": false } }, "b": { "status": 200, "result": { "state": "posted", "proposal_id": 2, "journal_id": 1, "replayed": false } } }, "changed_effect_id": null }, "fresh_period_close": { "waiting": { "b": { "chain_reaches_parent": true, "wait_event": "transactionid" }, "a": { "chain_reaches_parent": true, "wait_event": "tuple" } }, "read_before_release": null, "results": { "a": { "status": 200, "result": { "state": "closed", "closure_id": 1, "period_version": 2, "replayed": false } }, "b": { "status": 200, "result": { "state": "closed", "closure_id": 1, "period_version": 2, "replayed": false } } }, "changed_effect_id": null }, "read_finished_before_writer_release": true, "same_cost_amount_minor": 27500, "new_calculation_version": 2, "journals": 1, "lines": 2, "closures": 1, "technical_original_calculation_and_original_outbox_unchanged": true, "all_outbox_still_captured_no_accounting": true }, "team_http_and_forms": { "passed": true, "checks": 22, "three_declared_accounting_roles": true, "actual_validated_cost_minor": 27500, "initial_proposals": 0, "initial_journals": 0, "initial_closures": 0, "no_business_commands": true, "private_existing_build": true, "rendered_forms_mock_checks": 4, "actual_browser": false, "visual_review": false }, "team_preservation": { "passed": true, "new_team_fixture": true, "declared_synthetic_actors": 5, "unlisted_users_with_grants": 0, "actual_validated_cost_minor": 27500, "no_accounting_decisions_or_effects": true, "outbox_captured_no_accounting": true, "source_fingerprint": "fbdfd4e86488a2f68fb41803992ba7f556952523a217178685c8dd98714f7bd9" }, "supplier_writer_compatibility": { "passed": true, "cases": [ { "name": "prepare-independent-review-post-and-source-reconciliation", "assertions": 9, "passed": true }, { "name": "repetition-conflicting-key-and-recovery-after-period-version", "assertions": 6, "passed": true }, { "name": "rights-revoked-actor-person-and-no-inheritance", "assertions": 4, "passed": true }, { "name": "independence-rejection-and-preparer-ownership", "assertions": 6, "passed": true }, { "name": "source-rule-period-latest-capture-and-revision-changes", "assertions": 10, "passed": true }, { "name": "invalid-period-accounts-currency-foreign-scopes-and-extra-fields", "assertions": 10, "passed": true }, { "name": "failure-at-every-posting-boundary-and-idempotent-recovery", "assertions": 12, "passed": true }, { "name": "database-balance-guards-and-append-only-history", "assertions": 16, "passed": true } ], "assertions": 74, "financial_fingerprint_equal": true, "all_test_journals_rolled_back": true }, "sales_compatibility": { "passed": true, "actual_sales_source_matches_original_posted_snapshot": true, "single_sales_provider_hash_unchanged": true, "existing_trial_balance_debit_minor": 240000, "cost_default_off": true, "no_business_commands": true }, "native_uncomposed_refusal": { "passed": true, "uncomposed_cost_refused": true, "cost_schema_not_required": true, "no_proposal_or_effect_created": true }, "cost_supplier_coexistence": { "passed": true, "coinciding_order_supplier_obligation_ids": true, "one_writer": true, "cost_filter_journals": 1, "cost_filter_events": 3, "supplier_filter_journals": 1, "supplier_filter_events": 3, "journals": 2, "lines": 4, "debit_minor": 33500, "credit_minor": 33500, "actual_selected_cost_minor": 27500, "supplier_balance_minor": 6000, "cost_source_and_outbox_unchanged": true, "joint_qa_period_closed": true, "supplier_receipt_controlled_synthetic_not_live_import": true, "no_payment_or_stock_effect": true } }, "evidence": [ { "file": "private/ledger-6d0ea9e319e0/cost-workflow.json", "sha256": "a19473225be09808b45311a14dcfa72ebe1d1dee874b20ec3fb6a17d785d1acb" }, { "file": "private/ledger-6d0ea9e319e0/cost-defaults.json", "sha256": "33f35dfab53f491bc546e22d9ffca58d24951b9cb593866214680d7a17a8b49e" }, { "file": "private/ledger-6c9ec47c310e/cost-cases.json", "sha256": "e85735a28cc7fb18a9f94e65108395a6474092901c5a7319e81457831d6dd126" }, { "file": "private/ledger-6c9ec47c310e/cost-security.json", "sha256": "5a4a46c181e396a1fef1d8aab006d20b1c986d38e1388ef90e233e41c0d5eb97" }, { "file": "private/ledger-6c9ec47c310e/cost-http.json", "sha256": "7af9deeeba9a9ecb0aa66ee917194a2dedbdc4bb46649aa6d137df97c8259cca" }, { "file": "private/ledger-6c9ec47c310e/cost-http-final.json", "sha256": "9127aab59de61d07d760ba3465288f26a943346ea1f230066b2237a264c3c906" }, { "file": "private/ledger-6c9ec47c310e/cost-ui-postcheck.json", "sha256": "62ddec3aab42dd9dab56d0334af61dba1a6a79b8b725d9bfeb01f1e982cb91fb" }, { "file": "private/ledger-5e566833f610/cost-race.json", "sha256": "0c3e3d32f748ca22ae9fa9eae8259f9861276ded414a50cefdcc5e0b465796a8" }, { "file": "private/ledger-6a73790314ce/cost-demo-http.json", "sha256": "17f994271da5d70bc7124686ad125ecb6cb918d8663ff3c24e647d535660863e" }, { "file": "private/ledger-6a73790314ce/cost-demo-preservation.json", "sha256": "f9235884994993e9cd500989bc773ea8d74be40cde3e4668251a1e67a4bc63bc" }, { "file": "private/ledger-a6f36429ef4f/ledger-cases.json", "sha256": "8197a2fa96f3dee1e85b411c94b5f72f4a45ac3eac14241bc0062faffb7a0ff8" }, { "file": "private/ledger-7dabce07b0c3/cost-extension-sales-compatibility.json", "sha256": "8177d894753d44967f75b234940fe18ae7342d1a9ccffea4ffa96fe9aacbc083" }, { "file": "private/ledger-native-c5ff3a6aa5a3/cost-capability-refusal.json", "sha256": "8b932c8a5d3c064da56d578430a6db20023016d58a79c8358c6804ac0b7ccc87" }, { "file": "private/ledger-3eafd03c8c3a/cost-coexistence.json", "sha256": "40866ec5e98268123104d4b8c295589a5329bfe8969cd74829325b4befc0fe73" }, { "file": "private/ledger-cost-approved-scope.md", "sha256": "fda42b728512b5fc554db4dcd67a5b652aa1bdfd1e44b1de93b32a7d694aaf92" } ], "previous_proofs": [ { "file": "docs/proofs/common-ledger-reports-20261103.json", "sha256": "83b81a3401e4cfe8ea4c9d13339385f9241d0eefee5495da3e767812f0c863f1" }, { "file": "docs/proofs/common-ledger-sales-receivable-20261103.json", "sha256": "b5572466111fb85d89a604fbaa423976ed17c61afc5e2e45ba392fb23aa82e8c" }, { "file": "docs/proofs/common-finance-bundle-20261103.json", "sha256": "086c1556e7cefcf64a7064995a4aa6bd0e3aa9dd62cba66285b7801715f9f22c" }, { "file": "docs/proofs/common-ledger-complete-cycle-20261102.json", "sha256": "23657d594b84e6aeeb0d16d45790d54feca04b12e2260cfffa4f8e4a37eaa0ce" } ], "previous_private_artifacts_verified": 52, "frozen_native_packages": [ { "files": 25, "manifest_sha256": "6a507ea7d708a12a8e526e4c610696d8db84079d18aede470237b65505630e7e", "all_hashes_preserved": true, "cost_extension_not_installed": true }, { "files": 30, "manifest_sha256": "cbc4ddbea15f5e396c92bc2e664b973138551928980f334bcf3eb0cf097cacb1", "all_hashes_preserved": true, "cost_extension_not_installed": true } ], "sources": [ { "file": "AGENTS.md", "sha256": "df66a4b9278a5c5bea669dc29fe02e85dc5d7842b3d9a89b8b8e76af7cfd8ed1" }, { "file": "config/cost_ledger.php", "sha256": "64069dd558f87f2bb6b1f10bc2a0383fa63629cecb5b2f1f86a39cba3fed1b7b" }, { "file": "app/Shared/Testing/TestingDatabaseGuard.php", "sha256": "963043d7a872422aab9e9e0b3746d0be841ae3aa1da795e50b6904121fc77dff" }, { "file": "app/Modules/Workshop/DirectCosts.php", "sha256": "51f70a18731ed6371442f8e6364c52b163f46bf9b58c86b407b73f39fffb164c" }, { "file": "app/Modules/Purchasing/SupplierPayables.php", "sha256": "5a07462a3f4cc06776fce3da98b42b188f26f1f32c3c7cb4bc37d46408b3be17" }, { "file": "app/Modules/Accounting/GeneralLedger.php", "sha256": "c2bbe4a6ff8d0deb4a298b6821cb762510670a573135d34dbabc87a03c140697" }, { "file": "app/Modules/Accounting/GeneralLedgerController.php", "sha256": "671d853f1d6784588e8a5f374c2b377d98de016a788bd81a38d3f8b12121eb70" }, { "file": "app/Modules/Accounting/CostLedgerController.php", "sha256": "5491d1eb03daaf278d18eeebc3867a6ab8a8c917fd91cfee5f3e611d28042b82" }, { "file": "app/Modules/Accounting/CostLedgerSource.php", "sha256": "7951fbbde11783805b82ab7d682be38ae9666bae70292f92e2d86cff7f390330" }, { "file": "packages/general-ledger/bootstrap.php", "sha256": "6fdaa73b95c14f000ead649eb37d5d5926f79034250c5b4bcf910c3d95845f0e" }, { "file": "packages/general-ledger/README.md", "sha256": "09aba8ccb95da4fa8303a02d85349776bec5af4d374be0194dadd0dedfab8d26" }, { "file": "packages/general-ledger/src/LedgerSchema.php", "sha256": "1fb2490fe8d4d206d2f8157803307cdd4e2f733150d0fec4993a7e229fce58cb" }, { "file": "packages/general-ledger/src/CycleSchema.php", "sha256": "25407f9ea4321ee3acb0c310b5d981b8fdaf89c5464d32878ecc57c29e60972d" }, { "file": "packages/general-ledger/src/CostSchema.php", "sha256": "da0919e6aeab83a572d1171b1f641b62593f1a0157a51ec988ecbdacda0a9942" }, { "file": "packages/general-ledger/src/PayableJournal.php", "sha256": "7a4f01e6f0dfcf9845574e9f316bade3fde7b97a3ba806128c8fc452754b44aa" }, { "file": "packages/general-ledger/src/LedgerCycle.php", "sha256": "0f3bd409ccd71df153806ff654dfe74bac2dd053526f53bcba7e46f40d2f5e0b" }, { "file": "packages/general-ledger/src/LedgerSales.php", "sha256": "ea21a8376705e413b824513d30243c271870b2bfbc7a9af2fd922916a145e130" }, { "file": "packages/general-ledger/src/LedgerReports.php", "sha256": "f0f271114229eab097808aa4ee0d50b47805524dc87c7d7c8d7f248e91705344" }, { "file": "packages/general-ledger/src/ReportsWorkspace.php", "sha256": "46238afbb708b6c111b90a8bb79f5dd6ae9b1189e926746efefeef497ff1fc33" }, { "file": "packages/general-ledger/ui/reports.php", "sha256": "ae34b86e21cbdd42bceced8c4e260a7b360c819078b3a5c410219e2d24890d90" }, { "file": "resources/views/accounting/general-ledger.blade.php", "sha256": "7107bb48054a41f955a979d101784e1ffcdaa8949bb5f9b6a5bf89bfd5708b0a" }, { "file": "resources/views/accounting/cost-ledger.blade.php", "sha256": "7459009383cd7561443259beb9a446d6a872a4571193c468628a10fad6eb0934" }, { "file": "resources/views/accounting/cost-demo-entry.blade.php", "sha256": "17c39f5537acdc34ddd4b5ce181faded53a4c9f0661d5367fa2d60a6062d4f10" }, { "file": "routes/web.php", "sha256": "8851966d45cd947f80deba9bb7854002d07ab759c0a3a216151c19ca117a1105" }, { "file": "scripts/payable-history-sgf-proof.php", "sha256": "ebe4fb518e97cc3eeb81da1a14c045e85d25c942434279c90b8f3fba75018996" }, { "file": "scripts/ledger-run.mjs", "sha256": "820041eb470c73fd94da785265c1f15e40570d12ebb04ccfcad3923227bc4c9b" }, { "file": "scripts/ledger-sales-proof.php", "sha256": "eb69b99cc7b8a6da8578955f84a3603d4d80a54befb3c9b67415460332a75f70" }, { "file": "scripts/ledger-cycle-native-proof.php", "sha256": "4a76e998dd4494a0c2c24174aa75eb0eb08940a84b4367a6c529dc7fcb2c4b39" }, { "file": "scripts/ledger-cost-cases.php", "sha256": "8efd52d010b3f6fa4fd14c2010dfc9db07fcf704039aa52c5a2d0ca4df283f37" }, { "file": "scripts/ledger-cost-coexistence.php", "sha256": "5425572beab3ea0ea24ed7d71ece66e46d8004ffd1394fcf0545e471b297ac4e" }, { "file": "scripts/ledger-cost-demo-check.mjs", "sha256": "4c75ef4d551f5cfc8851cb325d2e15c5a8aea722ec5cb6d83330a526c729dec9" }, { "file": "scripts/ledger-cost-demo.mjs", "sha256": "59e86f3d067c8002c5ddd9729fbb8c02bfb2bdcc3bef39b5caf1df19fd7c1afc" }, { "file": "scripts/ledger-cost-http-entry.php", "sha256": "f6aaeec2685beb9c0696e78820f1e67740f063bb49e9db28272f45465f15a8ed" }, { "file": "scripts/ledger-cost-http-router.php", "sha256": "1b659dd9fc57a9603a622d7556de8324a7e8291368a18e6fd6cb9ec0a3fe458a" }, { "file": "scripts/ledger-cost-http.mjs", "sha256": "7595f1a93365b72c28e78c33a9b9842c314423a610e459292372969f8d1d1857" }, { "file": "scripts/ledger-cost-proof.php", "sha256": "cc03422fa8d01946601eb699e8d95f4dfd4d040bc541089853045fa2a19ff481" }, { "file": "scripts/ledger-cost-race.php", "sha256": "f7008fcca51176481344766e19b4fc8cbf4b2eecf85025661de9c39479c42b6f" }, { "file": "scripts/ledger-cost-security.php", "sha256": "364abd336050f45de9ba46ec95746cc67882ba834d4f917e8a02c8990c41c2db" }, { "file": "scripts/archive-ledger-cost-scope.mjs", "sha256": "b3b7f6e39dd7c2ac43f56e39fcaec380d17b6e58a63db6e1a0ab17a1abc86ff8" }, { "file": "scripts/summarize-ledger-cost.mjs", "sha256": "a41a559270409845bb5ef3374878c0de102093f7d32fec29be0d843d21edd6ac" }, { "file": "docs/GENERAL_LEDGER_DIRECT_COST_SCOPE.md", "sha256": "9bfa1d3b17a715714cfb1f5226564d9e1152eff3643c64f1874cf1f97783e69a" }, { "file": "docs/GENERAL_LEDGER_DIRECT_COST_DELIVERY.md", "sha256": "d0c295cc7493ff066ed442566d6eaaebe7b9c00214e965a97e5a48677a257c77" }, { "file": "docs/GENERAL_LEDGER_DIRECT_COST_CORRECTION_SCOPE.md", "sha256": "7b71bab9654cc0b4f5c4fa33a6728208c9450b6bccca887a86d157f1263396c4" }, { "file": "README.md", "sha256": "5206e8369e696b56229e0d7213b6a089320c21608bb5dbe0703bd0b3c4a53afe" }, { "file": "docs/PRODUCT_DEMO.md", "sha256": "166e27d1833bac15a2588102f44fb79e5edf0d2383b2396e6e7e71361b60c300" }, { "file": "docs/SGF_MODULE_FLOW_PREPARATION.md", "sha256": "a39f19aeca52e9b65c7235e406af8176e045f39725c75138558a62dd3d42c988" } ], "quality": { "syntax": { "php_files": 29, "javascript_files": 6 }, "git_diff_check_both_repositories": true, "new_dependencies": false, "sgf_phpstan_pint": "not_installed_not_run", "native_application_code_unchanged_previous_quality_not_repeated": true }, "rights": { "distinct_ledger_rights": 7, "ledger_grants_per_standard_cost_fixture": 9, "existing_cost_and_technical_rights_only": true, "real_or_public_grants": 0, "mixed_supplier_fixture_additional_existing_qa_rights_only": true }, "source": { "actual_workshop_and_cost_workflows": true, "known_selected_direct_cost_minor": 27500, "full_cost_or_margin": false, "automatic_outbox_processing": false, "identity_stable_per_order_and_selected_perimeter": true, "correction_of_already_posted_cost": false }, "team_demo": { "tag": "6a73790314ce", "pid": 27284, "url": "http://127.0.0.1:8054/qa/cost-demo", "cookie": "sgf_cost_6a73790314ce", "loopback_only": true, "separate_team_database": true, "old_demos_not_reset": true }, "preservation": { "six_pending_records_untouched": true, "blocked_cache_not_cleared": true, "existing_demos_not_reset": true, "source_history_outbox_preserved": true, "existing_valid_proofs_preserved": true, "unrelated_work_preserved": true, "destination_package_unchanged": true }, "next_scope": { "file": "docs/GENERAL_LEDGER_DIRECT_COST_CORRECTION_SCOPE.md", "sha256": "7b71bab9654cc0b4f5c4fa33a6728208c9450b6bccca887a86d157f1263396c4", "status": "proposal_only_requires_explicit_authorization", "implemented": false }, "limits": { "visual_review_pending": true, "actual_browser": false, "large_volume_load_not_measured": true, "deployment_capacity_validated": false, "new_indexes": false, "all_six_modules_operational_composition": false, "real_chart_or_cost_policy": false, "stock_valuation_or_posting": false, "payroll_or_industrial_cost_posting": false, "real_financial_operations": false, "cost_correction_or_revaluation": false, "reopening": false, "destination_migrations_or_grants": false, "publication": false, "purchasing_activation": false, "acceptance_presumed": false, "checkpoint": false } }