480 lines
19 KiB
JSON
480 lines
19 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
|
|
}
|
|
},
|
|
"ice_second_supplement_delta_20261128": {
|
|
"status": "implemented_in_isolated_qa_not_installed_no_real_rule_activation",
|
|
"source": {
|
|
"origin": "Official Autoridade Tributaria endpoint, separately acquired for this implementation; not included in the earlier owner-corpus inventory",
|
|
"url": "https://www.at.gov.mz/api/webdav?path=%2FLEGISLA%C3%87%C3%83O%2FLEGISLA%C3%87%C3%83O+ADUANEIRA%2FLEI%2FBR_248_I_SERIE_2%C2%BA+SUPLEMENTO_2025_260116_124640.pdf",
|
|
"local_original": "tmp/pdfs/import-legal-source-review-20261128/law7-2025-official-second-supplement.pdf",
|
|
"sha256": "9b10862f60ed87ec42d4f42f3cae42e17580eb761e4b7673bd8d8225691c4de4",
|
|
"bytes": 380932,
|
|
"pages": 2,
|
|
"table_page": "2180-(22)",
|
|
"visually_reviewed": true,
|
|
"signature_validation_claimed": false
|
|
},
|
|
"documentary_findings": [
|
|
"Second supplement contains eleven exact ICE positions with explicit 2026 and 2027 column",
|
|
"Article 6 states commencement on 2026-01-01",
|
|
"Footnote renders the previous first-supplement publication of Law 7/2025 without effect; no inference that Law 8/2025 is withdrawn",
|
|
"Livre is recorded as explicit zero ICE ad valorem with documentary label; other charges remain unknown"
|
|
],
|
|
"scope": [
|
|
"Exact hash plus actual original-byte verification",
|
|
"Eleven selectable editable proposals only; no automatic source combination or classification",
|
|
"Explicit end of template period 2027-12-31 preserved by UI and draft save",
|
|
"Unchanged native rule versioning, publication and financial writers"
|
|
],
|
|
"sqlite": {
|
|
"tests": 11,
|
|
"assertions": 260,
|
|
"passed": true
|
|
},
|
|
"postgresql": {
|
|
"initial_group_timeout": true,
|
|
"timeout_seconds": 180,
|
|
"timeout_cause_not_proven": true,
|
|
"isolated_delta": {
|
|
"tests": 1,
|
|
"assertions": 166,
|
|
"passed": true,
|
|
"database_removed": true
|
|
},
|
|
"final_group": {
|
|
"tests": 11,
|
|
"assertions": 260,
|
|
"passed": true,
|
|
"database_removed": true
|
|
},
|
|
"failed_database_removed": true
|
|
},
|
|
"frontend": {
|
|
"tests": 24,
|
|
"files": 3,
|
|
"passed": true,
|
|
"final_fixture_consistency_delta": {
|
|
"tests": 7,
|
|
"passed": true,
|
|
"overlaps_group": true
|
|
}
|
|
},
|
|
"checks": {
|
|
"types": true,
|
|
"phpstan_errors": 0,
|
|
"pint": true,
|
|
"scoped_check": true,
|
|
"diff_check": true
|
|
},
|
|
"build": {
|
|
"directory": "storage/framework/testing/sgc-ice-reference-qa-20261128",
|
|
"manifest_sha256": "053dbe4447c70105fe6ba67c68e4d381034884fb10a422ae9cc612e244e5c6c9",
|
|
"entries": 183,
|
|
"missing": 0
|
|
},
|
|
"native": {
|
|
"route": "/requisicoes/1/base-legal",
|
|
"source_id": 18,
|
|
"code": "8703.80.10",
|
|
"rate_percent": "5",
|
|
"version": 1,
|
|
"state": "draft",
|
|
"period": [
|
|
"2026-01-01",
|
|
"2027-12-31"
|
|
],
|
|
"saved": true,
|
|
"mobile": "390x526 at 100 percent",
|
|
"rule_published": false,
|
|
"calculation_activated": false,
|
|
"real_business_operation": false
|
|
},
|
|
"cleanup": {
|
|
"database_removed": true,
|
|
"role_removed": true,
|
|
"owned_tab_closed": true,
|
|
"original_tab_preserved": true
|
|
},
|
|
"remaining": [
|
|
"Other ICE positions outside this annex and the broader legal corpus remain separately scoped",
|
|
"VAT and other charges are not inferred by these ICE proposals",
|
|
"No integral product acceptance or pilot deployment"
|
|
]
|
|
},
|
|
"vat_documentary_delta_20261129": {
|
|
"status": "implemented_in_isolated_qa_not_legal_consolidation_or_product_completion",
|
|
"source": {
|
|
"file": "alteracao CIVA 2023.pdf",
|
|
"sha256": "0c13f4b03dadea7f2dfe30694650078fa7b9de00ef84cb47389422d23a5271cd",
|
|
"law": "Lei 22/2022",
|
|
"citation": "Article 1, CIVA Article 17(1), BR I Serie 250 page 2238; commencement Article 6 page 2239",
|
|
"rate_percent": 16,
|
|
"valid_from": "2023-01-01",
|
|
"valid_until": null
|
|
},
|
|
"behavior": {
|
|
"templates_added": 1,
|
|
"internal_selector_identifier_not_used_as_tariff_code": true,
|
|
"match_and_suggested_codes_blank": true,
|
|
"vat_basis_blank_requires_explicit_completion": true,
|
|
"other_three_impositions_unknown": true,
|
|
"source_bytes_verified_before_template": true,
|
|
"no_automatic_publication_or_calculation": true
|
|
},
|
|
"verification": {
|
|
"sqlite": {
|
|
"tests": 4,
|
|
"assertions": 231
|
|
},
|
|
"postgresql_frozen": {
|
|
"tests": 12,
|
|
"assertions": 289,
|
|
"database_and_role_removed": true
|
|
},
|
|
"frontend_final": {
|
|
"tests": 28,
|
|
"files": 3
|
|
},
|
|
"types": true,
|
|
"phpstan_errors": 0,
|
|
"pint": true,
|
|
"scoped_check": true,
|
|
"private_build": true
|
|
},
|
|
"native": {
|
|
"browser": "Edge desktop",
|
|
"templates_expected": 49,
|
|
"vat_source_id": 18,
|
|
"selected_vat_source": true,
|
|
"rate_and_commencement_confirmed": true,
|
|
"codes_and_basis_blank_confirmed": true,
|
|
"incomplete_save_blocked_by_browser_required_code": true,
|
|
"original_invalid_field_hidden_by_fixed_header": true,
|
|
"corrected_first_invalid_field_scrolled_to_center_and_visibly_confirmed": true,
|
|
"preparation_discarded_without_save": true,
|
|
"no_mobile_delta": true,
|
|
"no_native_successful_save_claim": true,
|
|
"qa_previews_removed": true,
|
|
"original_user_tab_preserved": true
|
|
},
|
|
"private_manifest_sha256": "084b3d39114f9e7a4b5307c2242bbf98a1add5ae17251c1a6f515866cfb1ecfe",
|
|
"limits": [
|
|
"2016 Article 16 import valuation visually researched separately; no automatic base formula implemented",
|
|
"Later 2025 amendments reviewed only for this documentary scope, no complete legal consolidation claimed",
|
|
"Native validation covers browser missing-code rejection; missing-basis rejection and explicit synthetic draft save covered by backend tests",
|
|
"No pilot, SGF, actual source, rights, bank or financial operational change"
|
|
],
|
|
"mistargeted_check": "Earlier quotation-exchange runner call selected unrelated FX suite because the outer landed-cost mode was absent; excluded as VAT evidence; correct frozen legal-reference runner passed afterward."
|
|
}
|
|
}
|