315 lines
13 KiB
JSON
315 lines
13 KiB
JSON
{
|
|
"date": "2026-11-27",
|
|
"status": "documentary_legal_rules_and_contextual_followup_implemented_in_qa_not_product_completion",
|
|
"authorization": "Owner requested uninterrupted development to functional completion, preserving separate operational authorization; legislation already shared, located and used",
|
|
"scope": [
|
|
"Independent private official-source consultation",
|
|
"Versioned draft/publication/withdrawal using existing import_customs authority",
|
|
"Explicit code/origin/sector/date suggestions and native buyer confirmation/deviation",
|
|
"Frozen source in requisition/new order/print; changed, expired or missing-source warning",
|
|
"Live logistics, required-document, party, bank and Finance follow-up without notifications"
|
|
],
|
|
"postgresql_integration": {
|
|
"tests": 36,
|
|
"assertions": 337,
|
|
"passed": true,
|
|
"database_removed": true
|
|
},
|
|
"final_legal_sqlite_delta": {
|
|
"tests": 7,
|
|
"assertions": 54,
|
|
"passed": true
|
|
},
|
|
"protocol_unit": {
|
|
"tests": 8,
|
|
"assertions": 38,
|
|
"passed": true
|
|
},
|
|
"concurrency": {
|
|
"same_operation": [
|
|
200,
|
|
200
|
|
],
|
|
"same_version": [
|
|
200,
|
|
409
|
|
],
|
|
"blocked_writers": 2,
|
|
"rule_versions_per_scenario": 1,
|
|
"originals_per_scenario": 1,
|
|
"audits_per_scenario": 1,
|
|
"originals_verified": true,
|
|
"database_removed": true
|
|
},
|
|
"recovery": {
|
|
"legal_source_restored": true,
|
|
"published_version_restored": true,
|
|
"buyer_context_restored": true,
|
|
"replay_without_effect": true,
|
|
"private_original_versions_restored": 11,
|
|
"typed_dossier_versions_restored": 8,
|
|
"previous_tables_preserved": 115,
|
|
"optional_tables": 2,
|
|
"all_sql_equal": true,
|
|
"pre_extension_restore": true,
|
|
"databases_removed": true
|
|
},
|
|
"real_sources": {
|
|
"corpus_root": "C:/Mac/Home/Documents/TEMPO/Portal Tempo/Legislacao",
|
|
"files_inventoried_including_hidden": 8109,
|
|
"inventory_metadata_sha256": "446df82acf6918a1ca792e54baeae2703842a1c6d8922be8d2a4f94598393e9c",
|
|
"sources": [
|
|
{
|
|
"reference": "BR251 29/12/2022, Leis17/2022 e19/2022 integral",
|
|
"bytes": 15509234,
|
|
"sha256": "8bcb278f77d365804d70a51074400af8ad2cdf6c620e5668c8bbd9b31e0d3fd2"
|
|
},
|
|
{
|
|
"reference": "BR248 suplemento29/12/2025, Leis7/2025 a12/2025",
|
|
"bytes": 1002011,
|
|
"sha256": "a0110696253715567af39c159a21bacfebc32f944fa43a4efd18070d36959e50"
|
|
},
|
|
{
|
|
"reference": "Lei28/2022 Lei Cambial",
|
|
"bytes": 596387,
|
|
"sha256": "0dba2775dbede3701b8c1f476e1497c0dc2a481d59e7898013aa992d0a3db896"
|
|
},
|
|
{
|
|
"reference": "BR57 20/03/2024 Aviso3/GBM/2024",
|
|
"bytes": 758167,
|
|
"sha256": "e170d541bf2f21f4070a97d8b1b12a35ec8f5d59a28eb17c50597c5d17656db5"
|
|
}
|
|
],
|
|
"native_read_and_original_hashes_verified": true,
|
|
"financial_stock_unchanged": true,
|
|
"rules_published": 0,
|
|
"synthetic_qa_organization_only": true,
|
|
"database_removed": true
|
|
},
|
|
"frontend": {
|
|
"files": 42,
|
|
"tests": 177,
|
|
"passed": true
|
|
},
|
|
"checks": {
|
|
"types": "passed",
|
|
"phpstan": "passed",
|
|
"scoped_format_lint": "passed",
|
|
"scoped_pint": "passed",
|
|
"diff_whitespace": "passed"
|
|
},
|
|
"private_build": {
|
|
"directory": "storage/framework/testing/sgc-import-legal-readiness-qa-20261127",
|
|
"manifest_sha256": "36613eecf708866996ab2febe661ed00b3cd1e1508f97998f3779b56c7834b31",
|
|
"passed": true
|
|
},
|
|
"pilot_manifest_sha256": "1edb9ab0aa62fcf4e9c9075ce6e405de5435dc8ea4799d1949535a96c718df4e",
|
|
"corrections": [
|
|
"Replaced transactional2MB limit for official sources with64MB and regression for full legal publications",
|
|
"Separated source availability from rule publication to avoid artificial classification/rate data",
|
|
"Publication cannot replace the prepared original; regression rejects a source swap",
|
|
"Expected receipt warning follows native effective acceptance rather than customs release alone"
|
|
],
|
|
"visual": {
|
|
"browser_host": "native Edge available",
|
|
"native_browser_inventory": "native window selected",
|
|
"review_completed": false,
|
|
"pdf_source_review": "pypdf extraction and pypdfium2 rendered 2025 amendment pages2-4; page3/4 images inspected; no source modifications",
|
|
"previous_browser_unavailable_observation_superseded": true,
|
|
"latest_bounded_review": {
|
|
"date": "2026-11-28",
|
|
"environment": "isolated synthetic QA; native Edge second tab only",
|
|
"url": "http://localhost:49217",
|
|
"mobile_viewport": {
|
|
"width": 390,
|
|
"height": 526
|
|
},
|
|
"native_login": true,
|
|
"saved_rule_version": 1,
|
|
"saved_rule_state": "draft / Em preparação",
|
|
"code": "3506.91.20",
|
|
"source_id": 17,
|
|
"rules_published": 0,
|
|
"observed": [
|
|
"Native selection prefilled editable source, citation, start date and general duty20%; other taxes remained unknown.",
|
|
"Saved preparation displayed version1 and draft state; explicit reset after successful save.",
|
|
"Mobile selection usable; occupied preparation prevented replacement.",
|
|
"Native leave warning observed; back then forward recovered the exact preparation title and code.",
|
|
"Saved rule, source text, cards and controls readable at390px without observed lateral clipping.",
|
|
"Corrected empty rules message so it no longer claims that no sources exist."
|
|
],
|
|
"targeted_regression": {
|
|
"passed": 14,
|
|
"files": 2
|
|
},
|
|
"full_application_acceptance": false,
|
|
"physical_print_review": false,
|
|
"cleanup": {
|
|
"database_removed": true,
|
|
"role_removed": true,
|
|
"qa_tab_closed": true,
|
|
"original_user_tab_preserved": true
|
|
}
|
|
}
|
|
},
|
|
"limitations": [
|
|
"The earlier calculation-implementation gap is superseded by import-legal-amounts-qa.json; complete source-specific legal parametrization, other taxes and later amendments remain separate coverage.",
|
|
"Automatic recipients and organizational deadlines are not inferred",
|
|
"Visual/mobile/print review and other reconciled matrix gaps remain open",
|
|
"No operational installation/activation, migration or real permissions changed"
|
|
],
|
|
"commands": [
|
|
"php scripts/quotation-exchange-pg-check.php --import-landed-costs-only --legal-focused",
|
|
"php scripts/quotation-exchange-pg-check.php --import-landed-costs-only --legal-concurrency",
|
|
"php scripts/quotation-exchange-pg-check.php --import-landed-costs-only --legal-recovery",
|
|
"php scripts/quotation-exchange-pg-check.php --import-landed-costs-only --legal-corpus --legal-corpus-root=<shared-corpus>"
|
|
],
|
|
"reference_drafts_delta_20261128": {
|
|
"status": "implemented_and_verified_in_isolated_qa_no_rule_publication",
|
|
"source": {
|
|
"relative_path": "novas/BR_248_I_SERIE_SUPLEMENTO_2025.pdf",
|
|
"sha256": "a0110696253715567af39c159a21bacfebc32f944fa43a4efd18070d36959e50",
|
|
"bytes": 1002011,
|
|
"law": "8/2025",
|
|
"pages_visually_reviewed": [
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"covered_page": "2180-(4) to 2180-(7), full Law 8/2025 Annex",
|
|
"effective_from_declared_by_article_4": "2026-01-01"
|
|
},
|
|
"behaviour": [
|
|
"Forty-eight documentary tariff drafts cover every code in the Law 8/2025 Annex; exact source bytes required; not a consolidated tariff or later-amendment claim.",
|
|
"Existing customs preparation authority, tenant visibility and original evidence verification preserved. No new source grant.",
|
|
"Explicit selection fills editable native draft; occupied or remembered preparations prevent replacement, deliberate local reset offered.",
|
|
"General duty only is known from this excerpt; ICE, VAT and other charges remain explicitly unknown, so a partial known subtotal is not a complete total.",
|
|
"Corrupted matching source yields a bounded warning and no reference drafts; the rest of the legal workspace remains available. No native storage paths returned.",
|
|
"Class K and article2 paragraph2 investment restriction for87.04 retained as documentary conditions, never automatic benefit eligibility."
|
|
],
|
|
"sqlite": {
|
|
"tests": 10,
|
|
"assertions": 94,
|
|
"passed": 10
|
|
},
|
|
"native_http": {
|
|
"database": "compras_receipts_test_3eec359001d8",
|
|
"removed": true,
|
|
"native_fortify_login": true,
|
|
"csrf_refused": true,
|
|
"source_bytes": 1002011,
|
|
"verified_download": true,
|
|
"replay_one_source_one_event": true,
|
|
"guest_status": 401,
|
|
"revoked_status": 403,
|
|
"reference_drafts": 48,
|
|
"rules_published": 0,
|
|
"financial_stock_unchanged": true,
|
|
"server_and_root_removed": true
|
|
},
|
|
"frontend": {
|
|
"all_files": 84,
|
|
"passed": 382,
|
|
"targeted_legal_and_help_tests": 16,
|
|
"targeted_files": 3,
|
|
"all_tests_before_annex_expansion": 382,
|
|
"targeted_legal_and_help_tests_after_annex_expansion": 16,
|
|
"targeted_files_after_annex_expansion": 3
|
|
},
|
|
"receipt_protocol": {
|
|
"tests": 15,
|
|
"assertions": 68,
|
|
"passed": 15,
|
|
"correction": "The first native HTTP run passed its behaviour checks but was rejected by the protocol because the new mode was not registered. Added strict edition/hash/size/count checks and incomplete-receipt regressions; rerun passed. The old large-source receipt still requires over 2 MiB.",
|
|
"note": "Final expected draft count48; the earlier count11 and its HTTP proof describe the preceding page4-only increment."
|
|
},
|
|
"build": {
|
|
"directory": "storage/framework/testing/sgc-legal-annex-qa-20261128",
|
|
"manifest_sha256": "08f42ca3be0d40d8cb78d5bc9bb8b3a4800df846eeacc98a6e57f2fa022e7e14",
|
|
"entries": 183
|
|
},
|
|
"checks": [
|
|
"types passed",
|
|
"targeted frontend formatting and lint passed",
|
|
"PHPStan zero errors",
|
|
"Pint passed"
|
|
],
|
|
"limits": [
|
|
"This is an edition-specific documentary excerpt, not a consolidated or complete Mozambican tariff database.",
|
|
"Preferential origin, exemptions, other taxes and later amendments are not inferred. Native publication and any actual operational activation remain deliberate separate steps.",
|
|
"No pilot installation, real rights, financial effects or SGF changes. Native desktop/mobile/save/history review completed only for the recorded legal preparation flow; full application and print acceptance remain open."
|
|
],
|
|
"source_code_reconciliation": {
|
|
"original_annex_codes": 48,
|
|
"implemented_codes": 48,
|
|
"missing": [],
|
|
"extra": []
|
|
},
|
|
"postgresql": {
|
|
"tests": 10,
|
|
"assertions": 94,
|
|
"passed": 10,
|
|
"database": "compras_receipts_test_d179cf5d7490",
|
|
"removed": true
|
|
},
|
|
"native_http_page4_only_previous_run": {
|
|
"database": "compras_receipts_test_e2addc3374fd",
|
|
"removed": true,
|
|
"native_fortify_login": true,
|
|
"csrf_refused": true,
|
|
"source_bytes": 1002011,
|
|
"verified_download": true,
|
|
"replay_one_source_one_event": true,
|
|
"guest_status": 401,
|
|
"revoked_status": 403,
|
|
"reference_drafts": 11,
|
|
"rules_published": 0,
|
|
"financial_stock_unchanged": true,
|
|
"server_and_root_removed": true
|
|
},
|
|
"native_visual": {
|
|
"date": "2026-11-28",
|
|
"environment": "isolated synthetic QA; native Edge second tab only",
|
|
"url": "http://localhost:49217",
|
|
"mobile_viewport": {
|
|
"width": 390,
|
|
"height": 526
|
|
},
|
|
"native_login": true,
|
|
"saved_rule_version": 1,
|
|
"saved_rule_state": "draft / Em preparação",
|
|
"code": "3506.91.20",
|
|
"source_id": 17,
|
|
"rules_published": 0,
|
|
"observed": [
|
|
"Native selection prefilled editable source, citation, start date and general duty20%; other taxes remained unknown.",
|
|
"Saved preparation displayed version1 and draft state; explicit reset after successful save.",
|
|
"Mobile selection usable; occupied preparation prevented replacement.",
|
|
"Native leave warning observed; back then forward recovered the exact preparation title and code.",
|
|
"Saved rule, source text, cards and controls readable at390px without observed lateral clipping.",
|
|
"Corrected empty rules message so it no longer claims that no sources exist."
|
|
],
|
|
"targeted_regression": {
|
|
"passed": 14,
|
|
"files": 2
|
|
},
|
|
"full_application_acceptance": false,
|
|
"physical_print_review": false,
|
|
"cleanup": {
|
|
"database_removed": true,
|
|
"role_removed": true,
|
|
"qa_tab_closed": true,
|
|
"original_user_tab_preserved": true
|
|
}
|
|
},
|
|
"build_for_visual_review": {
|
|
"directory": "storage/framework/testing/sgc-legal-annex-review-qa-20261128",
|
|
"manifest_sha256": "8a30171b051303e1df299157cea7684c5276846560c9b42c8c782b2ed89dc272",
|
|
"entries": 183
|
|
}
|
|
}
|
|
}
|