commit compras3 2711
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-27 18:56:24 +02:00
parent 930064269e
commit 9cf9764710
87 changed files with 2856 additions and 195 deletions
@@ -0,0 +1,44 @@
{
"date": "2026-11-27",
"status": "prepared_for_specific_owner_validation_not_implemented",
"approved_product_decision": "Devolver o pedido ao requisitante para nova submissão",
"concrete_dependency": {
"approval_step_identity": "approval_steps is unique by requisition_id and position; another submission needs a separate cycle while retaining all earlier decisions",
"financial_operation_identity": "budget_entries is unique by requisition_id and kind; BudgetControl.record replays an earlier reserve instead of reserving a new cycle after release",
"common_lifecycle": "InternalRequisitions currently supports save, submit and decide, without an expiry/return transition",
"risk_without_extension": "Deleting earlier steps would lose history; replaying an earlier reserve would leave the new submission without its own current reservation"
},
"proposed_scope": [
"Optional versioned approval-cycle and budget-cycle contract in the common kernels, with the Compras host adapter",
"Keep the real requisition identity; never use a fake requisition or a compensating arbitrary financial amount",
"Preserve original cycle-one records and decisions; add explicit subsequent cycles and independent operation identities",
"Snapshot the company-configured reminder, escalation and expiry policy at submission; no invented default deadlines or recipients",
"On eligible pending expiry, atomically record the reason, close the current cycle, release only its remaining reservations through the existing common financial authority and return the same requisition to its requester as a draft",
"A new submission creates fresh approval steps and a fresh reservation after the native budget and investment checks; previous approvals never carry forward automatically",
"Preserve amount/cost-centre/category changes as a new reviewed draft; do not rewrite previous policy snapshots or financial movements",
"Keep goods reservations, distributed allocations and import-estimate reservations within their single native financial authority",
"A decision/expiry race has one winner; duplicate expiry or submission has one effect and one audit",
"Older runtimes must refuse new-cycle records before a financial effect; package and database recovery must be verified together"
],
"implementation_boundary": {
"allowed_if_approved": "Common development source and Compras adaptation, optional QA schema, synthetic tests, private portable artifact preparation",
"operational_installation": false,
"pilot_migration_or_activation": false,
"sgf_operational_changes": false,
"real_data_permissions_or_business_operations": false,
"new_financial_writer_or_shared_database": false
},
"acceptance_examples_synthetic_minor_units": [
{"cycle": 1, "reserve": 10000, "expiry_release": 10000, "remaining_reserve": 0, "old_steps_preserved": true},
{"cycle": 2, "revised_amount": 12000, "new_reserve": 12000, "old_approvals_reused": false},
{"cycle": 2, "rejection_release": 12000, "remaining_reserve": 0}
],
"required_verification": [
"Focused common-kernel and native-host success/error/version/isolation tests",
"Cycle-one and installed-runtime regression, ordinary/distributed/import reservation coverage",
"Genuine concurrent decision versus expiry and duplicate operation tests",
"Pre/post extension backup and recovery with equal source data and preserved old decisions",
"Native requester return/edit/resubmit flow and administrator policy review"
],
"authorization_basis": "Existing repository policy requires explicit authorization for concrete contract/architecture changes; earlier multi-order and landed-cost contract authorizations do not specify approval/reservation cycles"
}