Files
SGF/docs/proofs/stock-period-batches-20261103.json
2026-11-04 09:37:20 +02:00

268 lines
10 KiB
JSON

{
"date": "2026-11-03T09:02:14.091Z",
"increment": "STOCK-PERIOD-BATCH-v1",
"functional_code": true,
"passed": true,
"checks": 33,
"tests": {
"period": {
"file": "private/stock-period-7339827e3722/period-batches.json",
"sha256": "af75f4c914761af74f20ad091d12761a1b7a033a28c3056582586338fb7bcfa8",
"result": {
"passed": true,
"checks": [
"closed native three-movement period remains byte-equivalent and complete",
"existing native read-only transaction remains owned by caller",
"equivalent complete period with sparse physical IDs at 0",
"bounded movements and joint projected status at 0",
"equivalent complete period with sparse physical IDs at 1",
"bounded movements and joint projected status at 1",
"equivalent complete period with sparse physical IDs at 100",
"bounded movements and joint projected status at 100",
"equivalent complete period with sparse physical IDs at 101",
"bounded movements and joint projected status at 101",
"equivalent complete period with sparse physical IDs at 205",
"bounded movements and joint projected status at 205",
"missing last journal is pending in both readers",
"missing current journal cannot close the period",
"null projected revision retains pending semantics",
"null current revision is refused",
"other unit cannot supply current or prior accounting evidence",
"other unit leaves the physical fact pending",
"period excludes another tenant_id",
"period excludes another company_id",
"period excludes another unit_id",
"read permission refusal ends owned transaction",
"rejected rate remains pending rather than silently accepted",
"all affected rate-dependent facts remain pending",
"caller write transaction remains usable and caller-owned",
"caller rollback restores metadata probe",
"standalone period owns one consistent read-only repeatable-read snapshot"
],
"observations": [
{
"records": 0,
"before": {
"result": {
"facts": 0,
"pending": 0,
"hash": "d57df689684fdddf5992b3b9c8540d437b74a1801781787b63d3495a4ad2cf53"
},
"queries": 4,
"movement_batch_rows": 0,
"joint_status_queries": 0,
"full_journal_reads": 0
},
"after": {
"result": {
"facts": 0,
"pending": 0,
"hash": "d57df689684fdddf5992b3b9c8540d437b74a1801781787b63d3495a4ad2cf53"
},
"queries": 8,
"movement_batch_rows": 0,
"joint_status_queries": 0,
"full_journal_reads": 0
}
},
{
"records": 1,
"before": {
"result": {
"facts": 1,
"pending": 0,
"hash": "96b59ec1f5e2b4e328d784fcbd0ed35d0ac103be50e2900844b6e7aac3b3456c"
},
"queries": 19,
"movement_batch_rows": 0,
"joint_status_queries": 0,
"full_journal_reads": 1
},
"after": {
"result": {
"facts": 1,
"pending": 0,
"hash": "96b59ec1f5e2b4e328d784fcbd0ed35d0ac103be50e2900844b6e7aac3b3456c"
},
"queries": 23,
"movement_batch_rows": 0,
"joint_status_queries": 1,
"full_journal_reads": 0
}
},
{
"records": 100,
"before": {
"result": {
"facts": 100,
"pending": 0,
"hash": "41aef49b000c27f9d9a0581b8f6705aa79889164c80b9949ebfc086317ac36b6"
},
"queries": 1702,
"movement_batch_rows": 0,
"joint_status_queries": 0,
"full_journal_reads": 100
},
"after": {
"result": {
"facts": 100,
"pending": 0,
"hash": "41aef49b000c27f9d9a0581b8f6705aa79889164c80b9949ebfc086317ac36b6"
},
"queries": 1608,
"movement_batch_rows": 0,
"joint_status_queries": 1,
"full_journal_reads": 0
}
},
{
"records": 101,
"before": {
"result": {
"facts": 101,
"pending": 0,
"hash": "a013dac907764fecd1aa55393147b984a13dbd26f3236350891824375ab1b2b3"
},
"queries": 1719,
"movement_batch_rows": 0,
"joint_status_queries": 0,
"full_journal_reads": 101
},
"after": {
"result": {
"facts": 101,
"pending": 0,
"hash": "a013dac907764fecd1aa55393147b984a13dbd26f3236350891824375ab1b2b3"
},
"queries": 1625,
"movement_batch_rows": 0,
"joint_status_queries": 2,
"full_journal_reads": 0
}
},
{
"records": 205,
"before": {
"result": {
"facts": 205,
"pending": 0,
"hash": "f57d06fb1568f988ae71066a001f844158f153cbe9934bfa3e20153e80665f35"
},
"queries": 3487,
"movement_batch_rows": 0,
"joint_status_queries": 0,
"full_journal_reads": 205
},
"after": {
"result": {
"facts": 205,
"pending": 0,
"hash": "f57d06fb1568f988ae71066a001f844158f153cbe9934bfa3e20153e80665f35"
},
"queries": 3291,
"movement_batch_rows": 0,
"joint_status_queries": 3,
"full_journal_reads": 0
}
}
],
"metadata_fixture_only": true,
"new_financial_effects": 0,
"existing_native_period_read_only": true,
"deployment_capacity_validated": false
}
},
"concurrency": {
"file": "private/stock-period-7339827e3722/period-concurrency.json",
"sha256": "396b8e137ada6b13089fdb6686c7dabe6934619e2363062ba77d91d005f0091c",
"result": {
"passed": true,
"checks": [
"metadata period is complete before concurrent change",
"writer commits between batches without mixing snapshots in reader",
"next period read sees newly incomplete journal and refuses completeness",
"both independent connections end their owned transactions",
"only metadata mutation is restored after concurrent test",
"period concurrency leaves no prefix cursor open"
],
"metadata_fixture_only": true,
"concurrent_writer_commits": 1,
"after_change_pending": 1,
"restored": true,
"new_financial_effects": 0,
"deployment_capacity_validated": false
}
}
},
"sources": [
{
"file": "packages/general-ledger/src/StockValuation.php",
"sha256": "6fe704a737e8fd6684a60848b7956db345ca75fd18f517ac69c6f4dbee52e1df"
},
{
"file": "scripts/stock-ledger-entry.php",
"sha256": "b5a39371a2b9abefeea5088a6847995aa019face9403f8516eafeebd8aa1adb1"
},
{
"file": "scripts/stock-period-proof.php",
"sha256": "8e7b7eb62543034d1bac1e4dca33e6c67e606f60b0976217f00600e8c088c01d"
},
{
"file": "scripts/stock-period-concurrency.php",
"sha256": "ad17347dc1e2f62028160ac99812c511317a2de45226ed9a738f82ba5a475b37"
},
{
"file": "scripts/summarize-stock-period.mjs",
"sha256": "776061352685a588ab128d9d34815c93c87ade717b84b04df93dac7cffe897f0"
}
],
"reference": {
"original_source_sha256": "05f32dab605157b621aa3f419c500286517d0240940bfeae1eefbf194f317323",
"private_baseline_sha256": "f7baae8c34d947ee629553b2281fb13590a807763bc92317ac4551551d59a389"
},
"prior_proofs_preserved": [
{
"file": "docs/proofs/stock-prefix-stream-20261103.json",
"sha256": "81ecffdf877015d74b35ed7cd38804b63001fe031c613fdb0b20ff37cb9a3998"
},
{
"file": "docs/proofs/common-ledger-stock-valuation-20261103.json",
"sha256": "a4eed51a66988ab103770a4be789952b2f377a8e7c41608bbf34662a80745124"
},
{
"file": "docs/proofs/module-association-consolidation-summary-20261102.json",
"sha256": "8f693f39763ee21a22ebd3929d95ba1480f339eca18742fa53055c69eb5219ef"
},
{
"file": "docs/proofs/requisition-composition-20261103.json",
"sha256": "8e4e7a113274b16f9e1d6882ae4f0bf04eb3e9c0d580cf1743fdfe248458f67e"
}
],
"preservation": {
"frozen_demo_bundle_sha256": "8b3ad1c600b84c8526b2d9f453a1c5c4e174a69d6acc78ace2af4f52a25dd762",
"existing_native_period_consulted_read_only": true,
"protected_six_records_changed": false,
"blocked_cache_cleared": false,
"existing_rights_changed": false,
"new_financial_effects": 0,
"indices_added": false,
"publication": false,
"purchasing_activation": false
},
"limitations": [
"Metadata fixtures at0/1/100/101/205 are not business postings or a sustained load test.",
"Only final-status SQL counts are compared; the raw queries counter instruments Connection.select calls, not all SQL or cursor executions. No elapsed-time, memory, throughput or deployment measurements.",
"Only final journal status is batched; per-source prior-prefix validation remains and may dominate total work.",
"Existing caller transactions retain their own isolation level; standalone period reads use repeatable read read only.",
"Frozen demos remain unchanged; visual review, full-page batching, sustained concurrency and deployment remain pending."
],
"diagnostics": {
"incomplete_attempts_preserved": 3,
"causes": [
"Instrumentation initially counted an EXISTS probe as a full snapshot read.",
"Test harness initially mixed transaction bookkeeping of two connection wrappers sharing one PDO.",
"Instrumented connection initially had no event dispatcher for the final isolation assertion."
]
}
}