docs(policy): enforce package-origin-only contract [t_3d75d441] #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "kanban/t_3d75d441-package-origin-policy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Kanban-Board: multi-alt
Kanban-Task: t_3d75d441
Goal and scope
Make package-origin-only an immutable multi-alt contract and provide an idempotent canonical-manifest/live-board migration guard. No live DB was modified; the coordinator runs the explicit board target only after merge.
Changed files
Tests
Compatibility and provenance
Repository metadata and individually selected RPM acquisition remain allowed. OCI/LXC/ISO remain output emitters only. No RPM/APT behavior, artifact bytes, registry state, stable namespace, secrets, runners, disks, or live Kanban DB were changed. Base is origin/main
0ef62010c5; head is1110a98d96.Residual risks and rollback
REQUEST CHANGES (Forgejo self-review fallback; formal REQUEST_CHANGES was refused with HTTP 422) — reviewed exact head
1110a98d9666e0e982738dde7967870d11b6de69Blocking finding
kanban/tests/test_package_origin_policy.py:129-132is coupled to the live board being not yet migrated. The intended coordinator action makesmigrate_board()return 0 on the first call against the copied, already-migrated board, but the test unconditionally requiresfirst > 0. Independent reproduction: migrate a copied live DB once (initial_change_count=61), then use that DB asLIVE_DB; the test fails at line 131 withAssertionError: 0 not greater than 0. Thus the regression suite becomes red immediately after the migration this PR exists to enable.Required correction
test_manifest_migration_is_idempotent_and_keeps_manual_gatesnon-vacuous: it currently copies the already-migrated canonical manifest, sofirstis normally 0 andassertGreaterEqual(first, 0)proves no migration behavior. Construct missing-policy coding-card input, assert the exact block is added once, then assert the second run is byte-identical/zero-change.TERMINAL_STATUSES: preserve and verify bothdoneandcancelledbodies, and use the same terminal definition when selecting rows asserted to contain the policy.Independent checks
hermes/multi-alt, basemainat0ef62010c5937ed8ceaadda1dff8e03a05e8b5ca, branchkanban/t_3d75d441-package-origin-policy, exact markers present, one commit at the reviewed head.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.