Repository navigation
feat(cli): inspect Finance contribution-policy versions - #547
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
…ontribution-policy-inspection
Workstream PR Trust Bundle
Change
WS-CLI-001-22 — Finance contribution-policy inspection
Goal
Give current Finance Authorities public CLI discovery and exact-version inspection before adding policy writes.
Intent And Planning Context
What Changed / Design Chosen
project contribution-policy current PROJECT_ID: one public GET for the aggregate and nullable published/open-draft selectors.project contribution-policy show PROJECT_ID POLICY_ID [--version UUID]: one public GET for backend-selected or explicit retained history. Published selection takes precedence over an open successor draft by backend policy.Scope Control / Alternatives Rejected
Only CLI code/tests and affected docs/Commitrail changed. No backend, migrations, dependencies, workflow or budget changes. No Finance grants, policy writes, current-selector preflight, cache, retry loop or local eligibility subsystem. Source availability is not deployment or binary distribution.
Product Behavior
Evidence
Clean candidate:
369d91c194014205d6882bb926c0a26b035db021; base/merge-base:51c7e2eed53b4fd45b3ae201ef3b30445c233a09.go -C cli build -trimpath -o /tmp/workstream-cli22-candidate ./cmd/workstream go -C cli vet ./... go -C cli mod verify go -C cli mod tidy -diff WORKSTREAM_CLI_EXECUTABLE=/tmp/workstream-cli22-candidate backend/.venv/bin/python -m pytest -q cli/tests/integration/test_contribution_policy_reads.py cli/tests/integration/test_contributor_task_http.py # From backend/, isolated real PostgreSQL with the built executable: .venv/bin/python scripts/run_isolated_tests.py --metadata-json /tmp/workstream-cli22-candidate-isolation.json --timeout-seconds 600 -- .venv/bin/python -m pytest -q ../cli/tests/integration/test_guide_activation_public_api.pyBuild/vet/module verification/tidy-diff, Ruff, links, four stale scans, Commitrail and diff checks passed. Built binary records exact candidate with
vcs.modified=false. Seven focused process tests passed (four new, three retained).The clean candidate native public-socket/Flow/PREP/PostgreSQL journey passed (1 test, 164.53s). Isolation metadata binds
369d91c194014205d6882bb926c0a26b035db021, schema0035_checker_retry, and database/role cleanup; the direct cleanup query found no retained test database or role. No MinIO claim is made by this journey. The earlier dirty exploratory run is excluded from exact-head evidence.Hosted Backend run 38282008787 passed, including all ten lanes, the aggregate public API drill and CLI job 114921274330 (157 tests in 210.75s). Its tested merge
451a37b078092627209ce0a66ce638aa5d7a1727has parents exactly the base/head above and the identical Git tree40ad260e3aea9fc37d9c7fff943b230b5bd63aad. This is merge execution with verified source compatibility, not a relabeled direct-head run.Exported artifact 11762323183 independently confirms 9,204 collected/completed/unique backend cases, identical membership, zero skips/deselections, and all ten PostgreSQL/MinIO source-bound cleanup/probe records. Backend wall time was 1,342.769s and the timing target was not met; this PR makes no whole-CI performance claim. Agent Gates and both MCP checks passed too.
Acceptance Criteria Proof / Test Delta
Impact-Routed Reviewer Results
Reviewed code SHA:
369d91c194014205d6882bb926c0a26b035db021./root/cli10_security/root/cli10_qa/root/cli10_planThese are non-authoritative mirrors of local session evidence; GitHub remains repository authority.
External Review
CodeRabbit: not fresh — review rate-limited (next included review reported in 50 minutes); its green check is not substantive review. No review threads were present at final inspection. All reported hosted checks passed. GitHub reports the PR mergeable and requires eligible human approval; no merge was performed.
CI And Gate Integrity
Remaining Risks / Follow-Up Work
Compensated precision is process-boundary proof, not new native compensated-policy or payout certification. Existing backend economics integration remains in full hosted CI. Finance editing/publication/retirement, contribution evidence, later public submission/review/revision, published binaries and optional TUI remain outside this PR. Hidden APIs and other agents' bulk work are not exposed or taken over.
Human Review Focus
Confirm Finance-only current authorization; published/default versus explicit draft/history selection; complete exact quantities; reads never edit, publish, activate or grant authority.
Human Merge Ownership
Summary by CodeRabbit