commit compras2 2811
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-28 15:45:52 +02:00
parent eb32c74c56
commit 060c119ba1
92 changed files with 4936 additions and 43 deletions
+106 -2
View File
@@ -1,7 +1,44 @@
{
"date": "2026-11-27",
"status": "pending_owner_scope_definition",
"status": "implemented_in_qa_functional_verification_passed_operational_activation_and_visual_pending",
"owner_private_family_decision_20261128": {
"exact_reply": "Compras, stock, finanças e configuração; bancos completos e Pessoas ficam separados",
"included": [
"purchasing",
"stock",
"finance",
"configuration"
],
"not_included": [
"complete_bank_identifiers",
"private_people_data_and_documents"
],
"effect": "Implement the dedicated private audit export for the four included families in QA. Complete bank identifiers stay masked/excluded; People private data/documents are outside this scope. No actual grants, operational export, installation or activation. Do not ask this scope again."
},
"owner_decision_20261128": {
"selected_choice": "dedicated_audit_scope",
"exact_reply": "Autoridade de auditoria própria para consultar conteúdo privado adicional",
"effect": "Implement a separate configurable audit authority; the existing metadata permission remains unchanged. No real user/profile grant, pilot installation or private data export is authorised by development.",
"remaining_configuration": "Private source families and designated audit profiles must be explicit in the company configuration; no implicit Admin/Finance/private-bank/personnel access."
},
"purpose": "Define the intended private-content scope of the matrix's integral audit export before extending a permission explicitly limited to metadata.",
"available_audits_explained_20261128": {
"current_event_audit": "Implemented: company event ID/date/action/actor ID, filters and complete CSV; includes events from purchasing, stock, People and configuration, but no private before/after payload or document bytes.",
"current_process_evidence": "Implemented through native process permissions: request history and cycles, frozen rules, decisions, quotations/evaluations, orders and linked documents. This is not a separate private auditor authority.",
"current_reconciliation_reports": "Implemented native operational/financial reports for purchasing, receipt/stock, budgets, invoices, confirmed external payments and explicit category attribution. No bank transfer execution or external audit certification is implied.",
"new_private_export": "Implemented in isolated synthetic QA for the four owner-selected families. Dedicated configurable per-family authority; no actual operational grants or activation."
},
"concrete_private_family_options_20261128": {
"base_purchasing_stock_finance_configuration": {
"purchasing": "Original/versioned requests, approval cycles and rules, production/maintenance origins, quotations, evaluations, awards, orders and authorised original documents.",
"stock": "Receipts, quantities, lots, quality, reservations, deliveries, returns and reversals with their native source links.",
"finance": "Budget allocations/reservations/commitments/consumption, invoices, outstanding amounts, confirmed external payments and explicit category allocations; bank identifiers remain masked unless the separate bank family is approved.",
"configuration": "Versioned business rules, profiles, memberships, delegations and recorded changes; passwords, tokens and secrets are excluded."
},
"optional_bank_identifiers": "Complete supplier bank identifiers and their independent verification history, as a separately configurable audit family.",
"optional_people_documents": "Private data and originals of the existing People/candidate/selection processes in their own work context. Does not invent formal employment contracts, payroll or the deferred formalisation workflow.",
"common_limits": "Company-configurable, separate audit permissions; no automatic Admin/Finance grant or operational installation. QA implementation/tests only, with synthetic data. Each included file is checked and covered by the export manifest; no blind AuditLog before/after dump."
},
"existing_authority": {
"permission": "audit_metadata_read",
"declared_scope": "Company-wide event ID, recorded date, action and user ID; no private payloads",
@@ -37,5 +74,72 @@
"Bypassing a native reader, broadening metadata authority silently or exporting real private data",
"Automatic disclosure, email, publication, destructive source cleanup or changing the two products' independence"
],
"existing_pilot_access_proposal": "audit-access-proposal.json remains a separate unapplied grant proposal; this scope question does not replace or approve it."
"existing_pilot_access_proposal": "audit-access-proposal.json remains a separate unapplied grant proposal; this scope question does not replace or approve it.",
"implementation_qa_20261128": {
"authority": "Four independent explicit private audit permissions; no Admin, Finance or metadata fallback; current actor, tenant, work context, expiry and maintenance revalidated.",
"source_contract": "109 fixed allowlisted tables plus curated events and explicit SupplyRecord kinds; standalone financial rows scoped to tenant/company0/unit0. Optional absent sources explicitly not_installed, records null; legacy missing columns identified. No new balance calculations.",
"package": "Immutable private ZIP and manifest; NDJSON all-page stable source snapshot; original source hashes verified; SHA256 and exact size; operation UUID bound to actor/context/scope/purpose; replay preserved; partial owned files cleaned individually.",
"excluded": [
"complete bank registers and structured bank coordinates",
"bank-specific import originals",
"private People data and originals",
"credentials",
"arbitrary event payloads",
"native storage paths"
],
"original_semantics": "Ordinary authorised business originals retain exact bytes; no claim to redact arbitrary free text or certify documents.",
"sqlite": {
"tests": 15,
"passed": 15,
"assertions": 493
},
"postgresql": {
"tests": 15,
"passed": 15,
"assertions": 493,
"database": "compras_receipts_test_3c9809d21aab",
"removed": true
},
"frontend": {
"tests": 24,
"files": 2,
"passed": 24
},
"native_http": {
"checks": 270,
"fortify_sessions": 4,
"readonly_tables_equal": 138,
"verified_assets": 20,
"audit_export_posts_including_replay": 2,
"business_commands": 0,
"zip_download_sha256_verified": true,
"isolated_database_and_role_removed": true
},
"static": "PHPStan zero errors; types, targeted frontend check, Pint and private build passed. Final Files parent containment hardening followed by SQLite13/482 and PHPStan0.",
"build": {
"path": "storage/framework/testing/sgc-private-audit-help-qa-20261128",
"manifest_sha256": "fa87e37a3626ef75d22b5248dce9a0af2bad68c967e6f99bb64bc426a68f6aaf",
"entries": 183,
"missing_files_or_imports": 0
},
"limits": "QA only; no pilot migration, actual grants, activation, SGF writes or visual/mobile/physical print acceptance. People formalisation remains deferred.",
"help_delta": {
"frontend_tests": 10,
"files": 2,
"all_operational_pages_have_specific_help": true,
"pages": [
"audit/private",
"requisitions/operational-orders",
"requisitions/urgent-stock"
],
"types_and_targeted_check": "passed"
},
"corrections_and_regressions": [
"Import document metadata kind added to the allowlist; ordinary documentary versions preserved, typed banking documents still excluded.",
"SupplyRecord JSON explicitly decoded on SQLite as well as PostgreSQL before recursive redaction; nested native paths cannot escape as raw JSON strings.",
"Same-company fully authorised auditors cannot read another creator package.",
"Output parent components reject symlinks and must remain within the owned private QA storage."
],
"pilot_manifest_sha256": "1edb9ab0aa62fcf4e9c9075ce6e405de5435dc8ea4799d1949535a96c718df4e"
}
}
+17
View File
@@ -1,4 +1,21 @@
{
"urgent_stock_quotation_delta_20261128": {
"owner_decisions": "Urgent quotation condition after reaching minimum stock; minimum configurable according to item nature and use. No numeric minimum quotation count was supplied: company configuration is explicit and optional.",
"source_check": "Re-read the urgent paragraph in the approved RQ-01 Word: possibility of dispensing with the second quotation; budget verification, account assignment and an independent approver remain. No additional monetary cap was invented from that paragraph.",
"implementation": "Optional lower urgent_minimum_proposals in native versioned company comparison policy, frozen only for newly created requests. UrgentQuotationBasis privately records the applicable approved item/warehouse minimum policy, use context, native free/usable stock at the threshold event, original line, actor, date and current cycle. All lines need matching evidence; otherwise ordinary quotation counts remain. Changed line/cycle/policy does not reuse evidence. Native comparison fingerprint and normal/partial/consolidated order snapshots preserve the selected evidence. Stock evidence is a historical threshold event, not an automatic stock movement, expiry or business approval.",
"authority": "Current native quotation preparation authority to record; current native process/quotation readers may consult the projected evidence without gaining recording rights. Revocation, hidden requests and closed awards remain guarded. QA-only and disabled by default.",
"verification": {
"postgres": { "tests": 6, "assertions": 139, "passed": true, "normal_and_partial_issue": true, "independent_evaluators": 2, "eligible_suppliers": 1, "ordinary_minimum": 3, "explicit_urgent_minimum": 1, "synthetic_normal_order_mzn": 100, "synthetic_partial_order_mzn": 40, "database_removed": "compras_receipts_test_61471f295692" },
"sqlite": { "tests": 6, "passed": 5, "skipped": 1, "assertions": 122, "skip_reason": "Published legacy budget runtime lacks partial-order capability; actual partial issuance passed with the pinned private composition on PostgreSQL." },
"frontend": { "tests": 46, "files": 4, "passed": true },
"typescript": "passed", "phpstan_errors": 0, "frontend_format_lint": "9 files passed", "pint": "passed",
"private_build": "storage/framework/testing/sgc-urgent-stock-qa-20261128", "manifest_sha256": "b712f509fb0ff1179fc9d007abbef0a3c2d5f97f575b558cbc49f47d06dc9894", "manifest_entries": 182, "missing_assets_or_imports": 0,
"native_readonly_http": { "checks": 234, "prior_same_asset_run_checks": 233, "fortify_sessions": 3, "verified_page_assets": 19, "unchanged_tables_in_read_window": 137, "operational_order_and_urgent_stock_pages": true, "requester_refusals": true, "metadata_order_register_refused": true, "business_commands_sent": 0, "owned_database_and_role_removed": true, "browser_visual_acceptance": false, "log": "storage/logs/operational-urgent-http-final-20261128.log" },
"operational_access_regression": { "sqlite_tests": 1, "sqlite_assertions": 24, "postgres_tests": 1, "postgres_assertions": 24, "passed": true, "database_removed": "compras_receipts_test_26a90e083ce1", "correction": "Own new register originally accepted any nonempty permission list. Explicit register authority now excludes metadata-only actors. Authorised process readers receive only linked order origins, never unrelated register rows. PHPStan passed again without suppressions." },
"own_test_corrections": "Used the actual receiptPayload helper and the existing native 404 for a warehouse actor without process visibility; an authorised Finance reader separately proved 403 for recording and read-only evidence access. Added the omitted explicit normal/partial dataset. No application access was relaxed to satisfy those assertions."
},
"limits": "Pilot/SGF, real accounts/grants and operational deployment untouched. New HTTP run is read-only and does not replace the separate native financial command journey or physical browser/print acceptance. Metadata audit scope unchanged; private export scope remains a separate owner choice."
},
"date": "2026-11-27",
"status": "implemented_in_isolated_qa_integration_and_acceptance_in_progress",
"authorization": "requisition-expiry-contract-authorization.json",
+75
View File
@@ -847,5 +847,80 @@
},
"native_http_runner": "Still pinned to equipment candidate43fc8077 with dated200 read checks. Native supplier workflow tests above are a separate proof; no new HTTP/browser claim for this build.",
"remaining": "Physical browser multi-form post/back/forward/context/mobile/print, company configuration and other approved forms, and existing concrete owner decisions remain open. No policy publication, supplier command in operational data, bank/SGF action or full application acceptance."
},
"company_preparation_delta_20261128": {
"status": "verified in isolated synthetic QA; physical and operational acceptance pending",
"scope": [
"Company bootstrap and legacy team/departments/cost centres",
"Version-bound profile creation/edit and person-bound access assignment",
"Company activation, approval/value/tax/comparison configuration",
"Company details/banks/establishments, licensed work contexts, local intelligence and draft AI plan",
"Approval plan revision and original company geography reference"
],
"identity": "Actor/company/work context/permissions, ready/active/configuration version and source-specific profile/person/plan/reference. Selected profile editor separate from new profile. Recovered input never posts, assigns, activates or publishes by itself. Native payloads, authority, version checks and confirmations preserved.",
"credentials": "Installed Inertia dontRemember excludes password and confirmation fields. Explicit successful resets remember metadata only. Missing excluded fields are normalised to empty controls/defaults for semantic dirty comparison, with regression tests; no password or File object added to remembered history.",
"geography_correction": "Company location is keyed by the exact original reference; removed the effect that refreshed expected_reference while retaining an older edited reference. Native original-reference concurrency contract preserved.",
"frontend": {
"tests": 38,
"files": 7,
"passed": true,
"tests_files": [
"tests/frontend/company-preparation.test.tsx",
"tests/frontend/company-policy-preparation.test.tsx"
]
},
"native": {
"tests": 71,
"assertions": 764,
"passed": true,
"log": "storage/logs/company-preparation-native-sqlite-20261128.log"
},
"types_phpstan_format_lint_diff": true,
"build": {
"root": "storage/framework/testing/sgc-company-preparation-final-qa-20261128",
"manifest_sha256": "df4e07d422af16897581371283d9730f41076ad2888d1e4911bdd7cadbb92c5f",
"entries": 180,
"missing_files_or_imports": 0,
"log": "storage/logs/company-preparation-final-build-20261128.log",
"previous_build_preserved": true
},
"native_http": {
"private_native_http_verified": true,
"checks": 213,
"fortify_sessions": 3,
"missing_csrf_refused": true,
"stale_inertia_version_refused": true,
"supply_views": 9,
"purchase_control_views": 2,
"requester_scope_verified": true,
"encrypted_history_verified": true,
"budget_view_verified": true,
"conflict_index_verified": true,
"stock_views_verified": 2,
"equipment_view_verified": true,
"investment_view_verified": true,
"company_configuration_verified": true,
"metadata_scope_isolation_verified": true,
"readonly_tables_equal": 136,
"private_asset_verified": true,
"private_assets_verified": 17,
"business_commands_sent": 0,
"browser_visual_acceptance": false,
"private_manifest_sha256": "df4e07d422af16897581371283d9730f41076ad2888d1e4911bdd7cadbb92c5f"
},
"http_log": "storage/logs/company-preparation-http-final-20261128.log",
"server_database_role_cluster_private_root_removed": true,
"own_harness_correction": {
"initial_log": "storage/logs/company-preparation-http-20261128.log",
"failure": "Node 24 Undici Parser.finish asserted !paused on a closed response. Checker status/header-only requests and readiness probes left transport bodies unread.",
"fix": "Owned HTTP client now drains the original network response and returns a readable clone; readiness responses are drained too. No application access rule or writer changed.",
"regression": "node --test tests/Support/native-inertia-client.test.mjs",
"passed_tests": 1,
"regression_scope": "2 MiB close-delimited response with neither Content-Length nor Transfer-Encoding; unread returned bodies, readable JSON, URL, cookies, 204 and manual redirects preserved, foreign destination refused.",
"aborted_runtime": "rq01-ledger-qa-c218afc04aae",
"recovery": "Verified exact cluster name/data directory and allowed database list with the private owner credential, then removed only that database/role/cluster/root. No secret printed. Older b3ba8de533e2 root untouched; final rerun cleaned normally."
},
"pilot_manifest_unchanged": "1edb9ab0aa62fcf4e9c9075ce6e405de5435dc8ea4799d1949535a96c718df4e",
"remaining": "Physical multi-form post/back/forward/context/mobile/print, remaining approved forms and concrete owner decisions still open. No operational account/grant/policy/schema/install/SGF change or whole application acceptance."
}
}
@@ -1,4 +1,24 @@
{
"operational_orders_and_stock_use_delta_20261128": {
"owner_decision": "Own order register; origin at utilisation sites when the application covers them, otherwise the procurement agent records the order. Production responsibility and workshop responsibility remain distinct. Stock minimum is configurable by item nature and use.",
"implementation": "OperationalOrders, private register/workspace, company-selected origin mode, separate production_order_prepare and maintenance_order_prepare capabilities without grants. Immutable original orders and versioned per-line links; source preserved in ordinary and partial/consolidated native order snapshots, screen and print. Guarded QA-only, disabled by default, using existing supply_records without schema extension.",
"stock_use": "Existing item/warehouse minimum remains company-defined. Optional usage_context explains nature/use in the versioned stock policy; no universal value or automatic calculation was imposed.",
"verification": {
"sqlite_register_and_supply": { "tests": 12, "assertions": 136, "passed": true },
"postgres_register_and_native_orders": { "tests": 6, "assertions": 115, "passed": true, "partial_issue_included": true, "database_removed": "compras_receipts_test_f2d7b42d73c1" },
"postgres_stock_use": { "tests": 1, "assertions": 5, "passed": true, "database_removed": "compras_receipts_test_b3d1427bd9f8" },
"frontend": { "tests": 36, "files": 3, "passed": true },
"phpstan_errors": 0,
"format_and_lint": "9 frontend files passed; PHP Pint passed",
"private_build": "storage/framework/testing/sgc-operational-orders-qa-20261128",
"manifest_sha256": "6b0126100bf6ad8ee88565c580c87ae724e259505f8bbb3c395312fc07cf9564",
"manifest_entries": 181,
"missing_assets_or_imports": 0,
"pilot_manifest_unchanged": "1edb9ab0aa62fcf4e9c9075ce6e405de5435dc8ea4799d1949535a96c718df4e",
"own_error_corrected": "Initial internal policy kind exceeded the existing varchar(20) contract. Renamed own new kinds to op_order_policy/op_order/op_order_link, added length regression and required successful HTTP redirects. Failed PG fixture database removed; no schema weakening."
},
"limits": "No operational installation, grants, activation, SGF writes or new native HTTP/browser/physical acceptance. This minimum-policy delivery alone does not implement the urgent quotation reduction. Current HTTP runner remains pinned to the earlier company candidate."
},
"date": "2026-11-27",
"status": "implemented_in_isolated_qa_native_visual_and_operational_acceptance_pending",
"decision": "rq01-account-origin-decision.json",