Skip to content

Fix weekly outcome audit workspace - #333

Merged
ohld merged 1 commit into
productionfrom
fix/ffm-1906-weekly-outcome-audit-workspace
Jul 20, 2026
Merged

Fix weekly outcome audit workspace#333
ohld merged 1 commit into
productionfrom
fix/ffm-1906-weekly-outcome-audit-workspace

Conversation

@ohld

@ohld ohld commented Jul 20, 2026

Copy link
Copy Markdown
Member

Fixes FFM-1906.

What changed

  • Adds the Operations project execution workspace policy to agents/.paperclip.yaml so project-scoped heartbeats default to the primary repo workspace.
  • Teaches agents/_sync_config.py to sync project execution workspace policies and resolve defaultProjectWorkspaceName to the live workspace id.
  • Adds focused tests for workspace-name resolution and dry-run drift reporting.

Verification

  • ruff check --fix agents/_sync_config.py tests/test_paperclip_skill_preflight.py
  • ruff format agents/_sync_config.py tests/test_paperclip_skill_preflight.py
  • ruff check --fix src/ tests/
  • ruff format src/ tests/
  • python3 -m pytest tests/test_paperclip_skill_preflight.py -q
  • Live PATCH applied to Operations project; readback shows executionWorkspacePolicy.defaultProjectWorkspaceId=a02398ed-f284-4cf2-8e04-30aea238181b.
  • From CEO active workspace /paperclip/instances/default/workspaces/e782143b-5ecf-484c-ad87-939592c79dbb: python3 scripts/paperclip_outcome_audit.py --days 7 succeeded, and python3 scripts/paperclip_outcome_audit.py --days 7 --json emitted valid JSON.

Note: ./agents/deploy.sh --dry-run now reaches the project policy diff, but the full dry-run still exits on the existing company-secrets readback permission (Board access required). No secret values were printed.

@ohld

ohld commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

STAFF ENGINEER REVIEW: APPROVED — Review clean. Scope matches FFM-1906: Operations now declares a project execution workspace policy, sync resolves the repo workspace name to the live workspace id before PATCH, and tests cover resolution plus dry-run drift reporting. /review clean, /codex review clean, focused /cso clean for deployment/secrets exposure. Verified: git diff --check; python3 -m pytest tests/test_paperclip_skill_preflight.py -q; redaction audit on changed files.

@ohld
ohld merged commit 31f6861 into production Jul 20, 2026
3 checks passed
@ohld

ohld commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

✅ Approved + merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant