Files
SGF/docs/proofs/common-ledger-stock-valuation-20261103.json
T
2026-11-04 09:37:20 +02:00

484 lines
19 KiB
JSON

{
"date": "2026-11-03T07:55:49.842Z",
"increment": "COMMON-LEDGER-STOCK-VALUATION-SIM-v1",
"functional_code": true,
"passed": true,
"targeted_checks": 146,
"tests": {
"cases": {
"file": "private/stock-ledger-b6b0e5d2fbc5/cases.json",
"sha256": "523592f31e15f34a4f278f9aa70ea4866842ad84e30b3c46461bd31ac9ec6126",
"checks": 31,
"result": {
"passed": true,
"checks": [
"missing rate visible; no invented values",
"missing rate cannot capture",
"unvalued movements block close conference",
"case rollback preserves physical/financial/rights fingerprint",
"rate replay no duplication",
"changed rate replay refused",
"rate self review refused",
"rate review replay unique",
"read actor cannot prepare rate",
"case rollback preserves physical/financial/rights fingerprint",
"issue cannot precede valued receipt",
"return cannot precede valued issue",
"actual2/-1/+0.5 at50 gives100/50/25",
"server pagination boundary",
"unsupported page size refused",
"wrong physical effect type refused",
"journal date must match physical date",
"other unit cannot read mapped movement",
"case rollback preserves physical/financial/rights fingerprint",
"same-value rate successor invalidates old capture",
"new capture after rate version change",
"case rollback preserves physical/financial/rights fingerprint",
"fault rolls back header lines and receipt",
"exact and other-key retry one journal",
"stock correction excluded",
"case rollback preserves physical/financial/rights fingerprint",
"actual later physical movement invalidates pending capture",
"case rollback preserves physical/financial/rights fingerprint",
"revoked post right refused before existing effect replay",
"rate correction after posting excluded",
"case rollback preserves physical/financial/rights fingerprint"
],
"all_cases_rolled_back": true,
"no_persistent_journals": true
}
},
"concurrency": {
"file": "private/stock-ledger-b6b0e5d2fbc5/race.json",
"sha256": "02a747b3629a5df08945bb5c8235064f5bdd79130b788e93b7648d2108fbc9e8",
"checks": 3,
"result": {
"passed": true,
"checks": [
"released same-key confirmation returns original journal without duplication",
"released worker rechecks changed period and refuses stale capture without receipt",
"two workers leave one journal and original physical/financial/rights state"
],
"workers": [
{
"scenario": "same_key_commit",
"observed_wait": "transactionid",
"blocker_observed": true,
"status": 200,
"journals_after": 1
},
{
"scenario": "period_changed_then_refuse",
"observed_wait": "transactionid",
"blocker_observed": true,
"status": 409,
"journals_after": 1
}
],
"source_fingerprint_unchanged": true,
"not_throughput_measurement": true
}
},
"workflow": {
"file": "private/stock-ledger-b6b0e5d2fbc5/workflow.json",
"sha256": "b73de0985e9775eb7ed8010c8ef06f98acd1bdfdb81e72511c8c7220c36d332e",
"checks": 4,
"result": {
"passed": true,
"checks": [
"same core reports gross175 stock75 consumption25",
"period close replay unique",
"three journals six lines one close",
"valuation leaves physical financial budget and grants intact"
],
"journals": 3,
"lines": 6,
"gross_minor": 17500,
"stock_minor": 7500,
"consumption_minor": 2500,
"physical_quantity_milli": 1500,
"closures": 1,
"physical_financial_rights_fingerprint_unchanged": true
}
},
"isolation_sql": {
"file": "private/stock-ledger-b6b0e5d2fbc5/extra.json",
"sha256": "4cf70e03a3d9ed1ba04f04a397c1cbea2310fc16cd0fd37bd73a8fff5c7fd9a4",
"checks": 9,
"result": {
"passed": true,
"checks": [
"same-person rate review refused with both actual rights",
"another tenant cannot resolve physical source",
"another company cannot resolve mapped book",
"case rollback preserves physical/financial/rights fingerprint",
"SQL forbids a second stock journal even with a forged new effect key",
"case rollback preserves physical/financial/rights fingerprint",
"SQL rejects amount forged independently of reviewed PHP source",
"same-person journal review refused with both actual rights",
"case rollback preserves physical/financial/rights fingerprint"
],
"all_extra_physical_and_sql_changes_rolled_back": true,
"existing_closed_book_preserved": true
}
},
"sql_predecessor": {
"file": "private/stock-ledger-255565a5f62d/order-guard.json",
"sha256": "ad718dde00053e06d68b216f288a66a2033cd5044ba8b601f47a83fc4d789d55",
"checks": 3,
"result": {
"passed": true,
"checks": [
"SQL independently refuses issue before receipt valuation",
"failed order guard leaves no partial journal",
"case rollback preserves physical/financial/rights fingerprint"
],
"all_changes_rolled_back": true
}
},
"http": {
"file": "private/stock-ledger-255565a5f62d/http-proof.json",
"sha256": "cd046fb28f1bc3f6578907959c7e5fdbe0f8e6284cd46ce19b58b9ee31913a08",
"checks": 40,
"result": {
"passed": true,
"checks": [
"native QA entry prepare",
"native QA entry validate",
"native QA entry read",
"open UI presents rate and incomplete amounts",
"API server page100 has three actual movements",
"unknown read parameter refused",
"stale context refused",
"CSRF retained",
"read profile cannot prepare rate",
"rate proposal through HTTP",
"rate exact retry same id",
"rate receipt recovery does not execute",
"another actor cannot read rate receipt",
"rate approval through HTTP",
"capture actual stock movement 1",
"review UI shows exact impact revision and dependencies",
"independent HTTP journal review 1",
"HTTP post selected stock movement 1",
"HTTP retry one journal 1",
"capture actual stock movement 2",
"review UI shows exact impact revision and dependencies",
"independent HTTP journal review 2",
"HTTP post selected stock movement 2",
"HTTP retry one journal 2",
"capture actual stock movement 3",
"review UI shows exact impact revision and dependencies",
"independent HTTP journal review 3",
"HTTP post selected stock movement 3",
"HTTP retry one journal 3",
"journal receipt recovery does not execute",
"another actor cannot read journal receipt",
"same common balancete rendered",
"same common stock account ledger rendered",
"prepare period through HTTP",
"validate period through HTTP",
"close period through HTTP",
"HTTP close retry same receipt",
"closed workspace has no mutation forms",
"anonymous API refused",
"HTTP cycle exact totals preserves physical budget financial and grants"
],
"actual_http": true,
"journals": 3,
"lines": 6,
"closures": 1,
"physical_financial_rights_unchanged": true,
"visual_review": false
}
},
"sgf_observer": {
"file": "private/stock-ledger-observer-0f9fe83534bd/proof.json",
"sha256": "37ae92e092007a9f58bf01d6b51bbaefac616d2fe86e7b4fb6bc19d076f9b877",
"checks": 23,
"result": {
"passed": true,
"checks": [
"SGF QA session reader",
"SGF QA session limited",
"SGF QA session foreign-unit",
"SGF QA session foreign-company",
"SGF reads canonical source with explicit dual rights",
"SGF sees actual1.5UN and posted75 from same native book",
"read-only canonical source identity and six lines",
"SGF response no-store",
"SGF server pagination boundary",
"SGF invalid page size refused",
"SGF protected scope parameter refused",
"SGF stale tab refused",
"general ledger view alone cannot read stock evidence",
"foreign SGF unit refused",
"foreign SGF company refused",
"missing binding is unavailable not zero",
"native scope mismatch refused",
"unapproved native role refused",
"SGF HTML has source facts and no financial command forms",
"SGF snapshot advertises only configured stock observer feature",
"revoked stock view refused on next request",
"source SQL role cannot write",
"source and SGF grants unchanged; no copied physical or ledger book"
],
"actual_sgf_http": true,
"physical_quantity_milli": 1500,
"posted_stock_minor": 7500,
"source_journals": 3,
"source_lines": 6,
"source_and_grants_unchanged": true,
"select_only_source": true,
"no_local_book_copy": true,
"visual_review": false
}
},
"sgf_metadata": {
"file": "private/stock-ledger-observer-0f9fe83534bd/proof-final.json",
"sha256": "4ab362a048b06417745b89e78f12dd624f6cd1f30672cc2be48c4bb336b5c9be",
"checks": 4,
"result": {
"passed": true,
"checks": [
"observer qualifies its reconciliation scope",
"changed native unit refused before presenting stock value",
"restored unit recovers and HTML states source conference limitation",
"all native metadata movements rates and journals exactly restored"
],
"synthetic_metadata_probe_restored": true,
"actual_http": true,
"not_full_source_revalidation": true
}
},
"demo": {
"file": "private/stock-ledger-cf1b85f9a040/demo-check.json",
"sha256": "c11fd3291c72ac11d664d486649a3613c895dc16e22f23255b8c94aa35803ba7",
"checks": 9,
"result": {
"passed": true,
"checks": 9,
"read_only_checks": true,
"initial_rates": 0,
"initial_journals": 0,
"initial_closures": 0,
"native": "http://127.0.0.1:8062/qa/stock",
"sgf": "http://127.0.0.1:8063/qa/stock-observer/reader?open=1",
"private_build": true,
"pinned_bundle_manifest": "8b3ad1c600b84c8526b2d9f453a1c5c4e174a69d6acc78ace2af4f52a25dd762",
"visual_review": false
}
},
"ui": {
"file": "docs/proofs/stock-ledger-ui-20261103.json",
"sha256": "35e82a12aa94d9f1d6874e95dbdd9be2ab92789a497c44caf329277bf6e41e9f",
"checks": 15,
"result": {
"passed": true,
"checks": 15,
"node_vm_and_react_render": true,
"actual_browser": false,
"no_automatic_command_retry": true,
"stale_receipt_responses_discarded": true,
"sgf_scoped_navigation": true
}
},
"menu": {
"file": "docs/proofs/stock-ledger-menu-final-20261103.json",
"sha256": "14e981998fcad4238b716ef5744c9d8db898b67f744794e7b92112a9201a9f91",
"checks": 5,
"result": {
"passed": true,
"checks": 5,
"react_static_render": true,
"actual_browser": false,
"existing_other_composition_route_preserved": true
}
}
},
"affected_legacy_regression": {
"file": "private/ledger-native-4ca15d915362/native-cycle-cases.json",
"sha256": "e79f0c9c4423abbe8fac86ee5fe38ced1a3ced3491fd8db4229aaf5e461a2344",
"checks": 23,
"passed": true
},
"sql_contracts": [
{
"file": "private/stock-ledger-b6b0e5d2fbc5/contract.json",
"sha256": "62071a80d1dfe5885e0bafbb3b4b762f64e1901f9b0f76ab8b9db256829574d8",
"passed": true,
"sql_contract_sha256": "26146adfd55f4f29a22c1177642a6e745ba3ed442e5e6d4a639164cc02fe90ee",
"predecessor_required": true,
"source_class_sha256": "a289ac2ad4a373628dabbc90c395002c22c4f86b51199f40c7aa82dbbe35cac3",
"read_only_checks": true
},
{
"file": "private/stock-ledger-255565a5f62d/contract.json",
"sha256": "62071a80d1dfe5885e0bafbb3b4b762f64e1901f9b0f76ab8b9db256829574d8",
"passed": true,
"sql_contract_sha256": "26146adfd55f4f29a22c1177642a6e745ba3ed442e5e6d4a639164cc02fe90ee",
"predecessor_required": true,
"source_class_sha256": "a289ac2ad4a373628dabbc90c395002c22c4f86b51199f40c7aa82dbbe35cac3",
"read_only_checks": true
},
{
"file": "private/stock-ledger-cf1b85f9a040/contract.json",
"sha256": "62071a80d1dfe5885e0bafbb3b4b762f64e1901f9b0f76ab8b9db256829574d8",
"passed": true,
"sql_contract_sha256": "26146adfd55f4f29a22c1177642a6e745ba3ed442e5e6d4a639164cc02fe90ee",
"predecessor_required": true,
"source_class_sha256": "a289ac2ad4a373628dabbc90c395002c22c4f86b51199f40c7aa82dbbe35cac3",
"read_only_checks": true
}
],
"sources": [
{
"file": "packages/general-ledger/bootstrap.php",
"sha256": "71451b27f4a12295b01fd5fce38de7013de7d84c07ed38e07a85da2d04adf670"
},
{
"file": "packages/general-ledger/src/PayableJournal.php",
"sha256": "7f776c1ef6641f79862c7ab898778591911c59dd3f2ae5e1130b041c8c4289f3"
},
{
"file": "packages/general-ledger/src/LedgerCycle.php",
"sha256": "5e6fdb1f5d47da16056043db75020e94172e9586a03a4b7e29c75e81b731fe14"
},
{
"file": "packages/general-ledger/src/StockSchema.php",
"sha256": "2589414179da70769fff90d3f858e7bc73888cdb3a0f4cd33722a76b7b32bce4"
},
{
"file": "packages/general-ledger/src/StockValuation.php",
"sha256": "a289ac2ad4a373628dabbc90c395002c22c4f86b51199f40c7aa82dbbe35cac3"
},
{
"file": "packages/general-ledger/src/StockComposition.php",
"sha256": "2fafb664613b9c5aef30bfbec21d93701049a1114c5e2027ebecf1fdd885ae06"
},
{
"file": "packages/general-ledger/src/StockWorkspace.php",
"sha256": "56a321e3ae796036fe1c6c8f94c15ab938649a87a5582deb43c5e93b5d5c7aa0"
},
{
"file": "packages/general-ledger/ui/stock.php",
"sha256": "2fc77b306711bd82dab6bd348f8fc7e434ffca5e663e2393589127a9146b48e8"
},
{
"file": "integrations/purchasing/StockValuationAdapter.php",
"sha256": "2942e3567bf879301db85d4a7d0af15d9206e369e0aece264ffcc28d5c43c644"
},
{
"file": "app/Modules/Accounting/StockValuationRead.php",
"sha256": "cf8618800c6e93d12314cb11009505a4da0384d8701fbaaceaf2cee6489d47a3"
},
{
"file": "resources/views/accounting/stock-valuation-read.blade.php",
"sha256": "86443c24ffd53c95b107a4e4b8597bf10577215aa8b5bcf9a87939b857afc280"
},
{
"file": "config/stock_ledger.php",
"sha256": "201a7d6cc603e4ee8d89648e7d4d4a5c841b25254f763ce36603633b205c09b4"
},
{
"file": "app/Modules/Identity/Services/IdentityWorkflow.php",
"sha256": "995b3d71e2fd7d4935235a29aeec2caca83fff3533b67224389900e080966822"
},
{
"file": "app/Shared/Context/ModuleNavigation.php",
"sha256": "b6d13a6e3ab5ab7c52591f9d0716a9369ae990409b96febf69419ab2a2966a24"
},
{
"file": "resources/js/AccountingMenuWorkspace.jsx",
"sha256": "034a189d4b649da8715773f0069788efdd2023ac9298f72ef2b92a4de38fd60a"
},
{
"file": "routes/web.php",
"sha256": "bd3e5d3db0fdbf4b00be87e39918254dbe22d77a76771f3b587ac94cc00d8795"
},
{
"file": "../compras/app/Services/ReceiptWorkflow.php",
"sha256": "a7325d4fdb09d1767d0d4fa3661bcf9b254e8506285080d6063bbed487bb522c"
},
{
"file": "../compras/app/Services/ReceiptStockMovement.php",
"sha256": "bd95d201563e4b028f7412eea77d5b157bbc464ddb5b34907bdf17b44d3c1637"
},
{
"file": "../compras/app/Services/WarehouseRequests.php",
"sha256": "729265408efa13d942f86f0c71370a50ac5286f1f00da3d34daa4eb627e476de"
},
{
"file": "../compras/app/Services/WarehouseFulfilment.php",
"sha256": "52130ff23382d10e7244b7b4211734772eb4d66518bb9002fc35dfb99f183c02"
},
{
"file": "../compras/app/Services/WarehouseReturns.php",
"sha256": "0e3ba1f1b9547a9fc21ad85191ff2378a2e5da7d95aaf0625c55d69a5d7bc0d3"
},
{
"file": "../compras/app/Services/WarehouseReturnMovement.php",
"sha256": "0a4fae10c24319b6f5bd030e99fa4281e337aaae5777e8287e608752e51bb5a3"
},
{
"file": "../compras/app/Services/StockIssueMovement.php",
"sha256": "61a649d26f4bf1e96becc3ff213bab0a029c47040d1368e99cc558bd98649de6"
}
],
"demo": {
"native": "http://127.0.0.1:8062/qa/stock",
"sgf": "http://127.0.0.1:8063/qa/stock-observer/reader?open=1",
"pinned_common_manifest_sha256": "8b3ad1c600b84c8526b2d9f453a1c5c4e174a69d6acc78ace2af4f52a25dd762",
"initial_rates": 0,
"initial_journals": 0,
"initial_closures": 0,
"physical_quantity_milli": 1500
},
"prior_proofs_preserved": [
{
"file": "docs/proofs/requisition-composition-20261103.json",
"sha256": "8e4e7a113274b16f9e1d6882ae4f0bf04eb3e9c0d580cf1743fdfe248458f67e"
},
{
"file": "docs/proofs/common-ledger-industrial-correction-20261103.json",
"sha256": "b8beee9278cd77e1a7dcfa7d47eae3e26952c51e656cec7bc34a835bb05cd478"
},
{
"file": "docs/proofs/financial-receipt-recovery-20261103.json",
"sha256": "240ea4da6579ef2366fa50f7703520979c9fb3e308379d6209c010d74b76aa0a"
},
{
"file": "docs/proofs/module-association-consolidation-summary-20261102.json",
"sha256": "8f693f39763ee21a22ebd3929d95ba1480f339eca18742fa53055c69eb5219ef"
},
{
"file": "docs/proofs/sgf-demo-8039-reconciliation.json",
"sha256": "948ecdb75b1bba9199634856fb2e9802069f3f2226e0e4894244542653fe8307"
}
],
"incomplete_or_superseded_qa_runs_preserved": [
"716e93985fae",
"f6f4a1639d23",
"3723aba6c497",
"d064fa825119",
"9dbef750c208",
"68efce228a56"
],
"limitations": [
"SGF observes the canonical native book through SELECT-only access; confirmations and full source revalidation execute in the native QA composition.",
"Observer reconciliation covers movement coverage and rate IDs, not independent validation of every current source dependency.",
"No hybrid posting of the same materials as direct/industrial cost; integration of already posted materials with these costs remains separate.",
"Selected fixed synthetic rate is not a real inventory valuation method or tax/accounting policy.",
"QA roles own their new databases; deployment owner/runtime separation and capacity are not validated.",
"No sustained load/throughput or visual review."
],
"preservation": {
"existing_demos_or_protected_six_records_written": false,
"blocked_cache_cleared": false,
"destination_migrations": false,
"real_or_public_rights_changed": false,
"purchasing_candidate_activated": false,
"publication": false,
"checkpoint": false
}
}