pushframe 5.1.38__tar.gz → 5.1.40__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/STATE.md +6 -4
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/debug/knowledge-base.md +10 -0
- pushframe-5.1.40/.planning/debug/resolved/breaker-counts-per-item-errors.md +170 -0
- pushframe-5.1.40/.planning/quick/261021-c1k-per-account-run-lock-for-scheduled-jobs/261021-c1k-PLAN.md +300 -0
- pushframe-5.1.40/.planning/quick/261021-c1k-per-account-run-lock-for-scheduled-jobs/261021-c1k-SUMMARY.md +79 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/CHANGELOG.md +51 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/PKG-INFO +2 -2
- {pushframe-5.1.38 → pushframe-5.1.40}/docs/CLI.md +15 -1
- {pushframe-5.1.38 → pushframe-5.1.40}/docs/ERRORS.md +3 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/__init__.py +1 -1
- pushframe-5.1.40/pushframe/aws/awsclient.py +103 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/aws/s3client.py +4 -2
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/aws/sqsclient.py +4 -2
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/cli.py +123 -36
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/doctor.py +20 -3
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/gsync.py +26 -1
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/report.py +4 -0
- pushframe-5.1.40/pushframe/runlock.py +296 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/sync.py +260 -35
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/utils/settings.py +3 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pyproject.toml +2 -2
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/conftest.py +12 -0
- pushframe-5.1.40/tests/test_aws_credential_refresh.py +638 -0
- pushframe-5.1.40/tests/test_breaker_item_failures.py +292 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_cli_apply.py +24 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_gsync_execute.py +78 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_prep_upload_formats.py +6 -2
- pushframe-5.1.40/tests/test_reconcile_display.py +101 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_report.py +13 -1
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_retry_401.py +4 -1
- pushframe-5.1.40/tests/test_runlock.py +422 -0
- pushframe-5.1.40/tests/test_runlock_cli.py +239 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_version.py +1 -1
- {pushframe-5.1.38 → pushframe-5.1.40}/uv.lock +86 -86
- pushframe-5.1.38/pushframe/aws/awsclient.py +0 -23
- {pushframe-5.1.38 → pushframe-5.1.40}/.README-orig.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.env.sample +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.freebuff/project-id +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.github/workflows/release.yml +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.github/workflows/tests.yml +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.gitignore +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.gsd/dispatch-isolation-sentinel.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/MILESTONES.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/PROJECT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/REQUIREMENTS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/RETROSPECTIVE.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/ROADMAP.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/WINDOWS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/codebase/ARCHITECTURE.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/codebase/CONCERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/codebase/CONVENTIONS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/codebase/INTEGRATIONS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/codebase/STACK.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/codebase/STRUCTURE.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/codebase/TESTING.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/config.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/debug/gsync-apply-budget-none-crash.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/debug/login-475-null-creds.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/debug/resolved/cli-status-verbose-logging.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/debug/resolved/inspect-asset-null-fields.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/debug/resolved/select-asset-401-unauthorized.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/debug/status-crash-401-trip.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-REQUIREMENTS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-ROADMAP.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/01-toolchain-revival/01-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-LIVE-EVIDENCE.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/02-live-read-path-verification/02-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/03-run-docs-verification-report/03-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/03-run-docs-verification-report/03-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/03-run-docs-verification-report/03-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/03-run-docs-verification-report/03-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/03-run-docs-verification-report/03-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/03-run-docs-verification-report/03-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/03-run-docs-verification-report/03-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.0-phases/03-run-docs-verification-report/03-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-ROADMAP.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/.gitkeep +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-03-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-03-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-SECURITY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-UAT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v1.1-phases/04-client-transport-seam-for-offline-testability/04-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-REQUIREMENTS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-ROADMAP.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-SECURITY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-UAT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/05-cli-skeleton-status/05-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-SECURITY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/06-inspect-frame-resolution/06-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-03-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-03-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-REVIEW-FIX.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-SECURITY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/07-sync-diffing-engine-dry-run-only/07-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-03-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-03-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-04-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-04-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-LIVE-FINDINGS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-REVIEW-FIX.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/08-destructive-execution-upload-delete-verification/08-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/.gitkeep +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/09-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/09-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/09-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/09-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/09-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/09-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/09-REVIEW-FIX.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/09-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/09-proactive-write-rate-limiter-geo-guard/09-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/.gitkeep +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-03-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-03-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-04-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-04-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-LIVE-FINDINGS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-SECURITY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-UAT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/10-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-phases/10-hide-instead-of-delete-sync-mode/COVERAGE.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-quick/260630-qs8-make-main-py-load-a-local-env-file-at-st/260630-qs8-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-quick/260630-qs8-make-main-py-load-a-local-env-file-at-st/260630-qs8-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-quick/260708-dt9-add-progress-feedback-to-aura-cli-sync-a/260708-dt9-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-quick/260708-dt9-add-progress-feedback-to-aura-cli-sync-a/260708-dt9-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-quick/260708-dt9-add-progress-feedback-to-aura-cli-sync-a/deferred-items.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-quick/260708-fyr-batch-refactor-of-sync-apply-write-path-/260708-fyr-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-quick/260708-fyr-batch-refactor-of-sync-apply-write-path-/260708-fyr-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-quick/260708-fyr-batch-refactor-of-sync-apply-write-path-/260708-fyr-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v2.0-quick/README.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-REQUIREMENTS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-ROADMAP.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-03-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-03-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-04-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-04-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-05-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-05-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-06-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-06-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-LIVE-FINDINGS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-PATTERNS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-REVIEW.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v3.0-phases/11-write-path-reliability-format-support/11-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-REQUIREMENTS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-ROADMAP.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-03-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-03-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-DECISION-RECORD.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-DISCUSSION-LOG.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/16-LIVE-FINDINGS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/16-local-mechanism-spike-decision/COVERAGE.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/17-google-link-album-selection/17-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/17-google-link-album-selection/17-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/17-google-link-album-selection/17-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/17-google-link-album-selection/17-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/17-google-link-album-selection/17-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/17-google-link-album-selection/17-DISCUSS-CHECKPOINT.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/17-google-link-album-selection/17-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/17-google-link-album-selection/COVERAGE.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-03-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-03-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-UAT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/18-album-frame-mirror-sync-single-pair/18-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/19-debt-closeout/19-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/19-debt-closeout/19-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/19-debt-closeout/19-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/19-debt-closeout/19-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/19-debt-closeout/19-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/19-debt-closeout/19-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v4.0-phases/19-debt-closeout/19-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-REQUIREMENTS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-ROADMAP.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/20-pushframe-rename-migration-repo-switch/20-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/21-debian-package-apt-repo/21-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/21-debian-package-apt-repo/21-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/21-debian-package-apt-repo/21-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/21-debian-package-apt-repo/21-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/21-debian-package-apt-repo/21-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/21-debian-package-apt-repo/21-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/21-debian-package-apt-repo/21-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/22-pypi-release-engineering/22-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/22-pypi-release-engineering/22-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/22-pypi-release-engineering/22-02-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/22-pypi-release-engineering/22-02-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/22-pypi-release-engineering/22-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/22-pypi-release-engineering/22-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/22-pypi-release-engineering/22-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/milestones/v5.0-phases/22-pypi-release-engineering/OPERATOR-STEPS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/23-config-wizard-precedence/23-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/23-config-wizard-precedence/23-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/23-config-wizard-precedence/23-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/23-config-wizard-precedence/23-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/23-config-wizard-precedence/23-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/24-token-first-sessions-preflight-sweep-sec-01-03-prf-01-02/24-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/24-token-first-sessions-preflight-sweep-sec-01-03-prf-01-02/24-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/24-token-first-sessions-preflight-sweep-sec-01-03-prf-01-02/24-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/24-token-first-sessions-preflight-sweep-sec-01-03-prf-01-02/24-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/24-token-first-sessions-preflight-sweep-sec-01-03-prf-01-02/24-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/25-multi-frame-mappings-systemd-user-scheduling-mtf-01-03-tmr-01-03/25-01-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/25-multi-frame-mappings-systemd-user-scheduling-mtf-01-03-tmr-01-03/25-01-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/25-multi-frame-mappings-systemd-user-scheduling-mtf-01-03-tmr-01-03/25-CONTEXT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/25-multi-frame-mappings-systemd-user-scheduling-mtf-01-03-tmr-01-03/25-RESEARCH.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/phases/25-multi-frame-mappings-systemd-user-scheduling-mtf-01-03-tmr-01-03/25-VERIFICATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261012-qwv-review-quick-fixes-cache-dir-expanduser-/261012-qwv-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261012-qwv-review-quick-fixes-cache-dir-expanduser-/261012-qwv-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261014-e77-fail-loud-on-truncated-google-album-list/261014-e77-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261014-e77-fail-loud-on-truncated-google-album-list/261014-e77-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261014-nim-review-hardening-batch-2-systemd-unit-qu/261014-nim-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261014-nim-review-hardening-batch-2-systemd-unit-qu/261014-nim-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261014-swa-read-the-snackc-continuation-cursor-stru/261014-swa-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261014-swa-read-the-snackc-continuation-cursor-stru/261014-swa-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261014-tlx-detect-google-wire-format-drift-response/261014-tlx-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261014-tlx-detect-google-wire-format-drift-response/261014-tlx-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261018-dny-fix-crash-frame-last-impression-at-nulla/261018-dny-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261018-dny-fix-crash-frame-last-impression-at-nulla/261018-dny-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261018-eh2-google-album-progress-per-page-listing-l/261018-eh2-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261018-eh2-google-album-progress-per-page-listing-l/261018-eh2-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261018-evx-progress-visibility-sweep-frame-google-l/261018-evx-PLAN.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/quick/261018-evx-progress-visibility-sweep-frame-google-l/261018-evx-SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/research/ALBUM-ACCESS-V4-ADDENDUM.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/research/ALBUM-ACCESS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/research/ARCHITECTURE.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/research/BROWSER-AUTOMATION.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/research/FEATURES.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/research/PITFALLS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/research/STACK.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/research/SUMMARY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/state.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.planning/todos/completed/2026-07-06-promote-debug-flag-to-a-global-cli-convention.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/.python-version +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/CLAUDE.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/LICENSE +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/README.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/SECURITY.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/VERIFICATION-REPORT.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/docs/DEVELOPING.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/docs/INTERNALS.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/docs/agents/domain.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/docs/agents/issue-tracker.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/docs/agents/triage-labels.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/docs/superpowers/specs/2026-07-09-write-rate-limiter-design.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/hatch_build.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/main.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/packaging/control-template +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/packaging/lintian-overrides +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/packaging/postinst +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/packaging/pushframe.copyright +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/probes/.gitignore +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/probes/README.md +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/probes/browser_bootstrap.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/probes/common.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/probes/cookie_vault.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/probes/fidelity_check.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/probes/rpc_capture.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/probes/shared_link_probe.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/api/__init__.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/api/accountApi.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/api/activityApi.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/api/assetApi.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/api/baseApi.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/api/frameApi.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/api/notificationApi.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/api/peopleApi.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/api/playlistApi.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/aura.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/aws/__init__.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/cache.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/client.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/config_store.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/exif.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/export.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/__init__.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/bootstrap.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/cache.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/client.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/enumerate.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/manifest.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/parsers.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/redaction.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/vault.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/google/wire.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/migration.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/models/__init__.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/models/activity.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/models/asset.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/models/frame.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/models/meta.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/models/person.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/models/user.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/pairs.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/preflight.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/ratelimit.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/reconcile.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/schedule.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/session.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/utils/dt.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/utils/io.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/pushframe/utils/names.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/scripts/build-deb.sh +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/scripts/make-apt-key.sh +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/scripts/publish-apt-repo.sh +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/scripts/release.sh +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/scripts/test-apt-journey-container.sh +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/scripts/test-config-journey-container.sh +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/scripts/test-deb-container.sh +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/scripts/test-install-journey-container.sh +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/scripts/test-multipair-journey-container.sh +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/asset_unprocessed.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/assets_page1.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/assets_page2.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/assets_placeholders.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/error_envelope.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/frame_detail.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/frames.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/google_rpc_snackc_page.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/google_rpc_snackc_page_akfe.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/google_share_page_sample.html +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/login.json +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/fixtures/probe_af_initdata_sample.html +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/offline.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_asset_partial.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_asset_unprocessed.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_aura_logger.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_batch_update_contract.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_budget_identity.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_build_hook.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_cli_google_album.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_cli_google_link.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_cli_inspect.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_cli_push_budget_geo.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_cli_reconcile.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_cli_status.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_cli_status_google.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_cli_sync.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_client_rate_limit.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_config_wizard.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_docs_hint.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_doctor.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_execute_plan.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_execute_plan_budget_geo.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_fixtures_validity.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_frame_nullable_impression.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_google_cache.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_google_client.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_google_enumerate.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_google_manifest.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_google_parsers.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_google_vault.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_google_wire.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_gsync_all.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_gsync_engine.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_imports.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_logout.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_migration.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_network_guard.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_offline_read_path.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_pairs.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_preflight_sweep.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_preflight_vault.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_private_paths.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_probe_browser.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_probe_shared_link.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_ratelimit.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_read_path.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_reconcile.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_schedule.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_session.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_settings_budget.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_settings_resolution.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_sync_engine.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_token_refresh_extension.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_write_endpoints_failloud.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_write_formats_live.py +0 -0
- {pushframe-5.1.38 → pushframe-5.1.40}/tests/test_write_throttling.py +0 -0
|
@@ -6,10 +6,10 @@ current_phase: 25
|
|
|
6
6
|
current_phase_name: passed
|
|
7
7
|
current_plan: 25-01 complete
|
|
8
8
|
status: Verified — v5.1 phases 23-25 complete
|
|
9
|
-
last_updated: "2026-10-
|
|
10
|
-
last_activity: 2026-10-
|
|
9
|
+
last_updated: "2026-10-21T07:42:26.754Z"
|
|
10
|
+
last_activity: 2026-10-21
|
|
11
11
|
last_activity_desc: "Completed quick task 261012-qwv: review quick fixes (B1, B2, S4, S5)"
|
|
12
|
-
state_head:
|
|
12
|
+
state_head: 7d75986f737a955e1930eab8802985480bf74a21
|
|
13
13
|
progress:
|
|
14
14
|
total_phases: 3
|
|
15
15
|
completed_phases: 3
|
|
@@ -52,5 +52,7 @@ Status: Verified — v5.1 phases 23-25 complete
|
|
|
52
52
|
| 261018-dny | Fix crash: Frame.last_impression_at nullable in v5 .status traceback | 2026-10-18 | d3a7bc2 | [261018-dny-fix-crash-frame-last-impression-at-nulla](./quick/261018-dny-fix-crash-frame-last-impression-at-nulla/) |
|
|
53
53
|
| 261018-eh2 | google-album progress: per-page listing lines + tqdm on disk-weight measure | 2026-10-18 | 1d2cf9e | [261018-eh2-google-album-progress-per-page-listing-l](./quick/261018-eh2-google-album-progress-per-page-listing-l/) |
|
|
54
54
|
| 261018-evx | progress visibility sweep: frame/Google listing pages + SQS long-poll ticks (review A1-A3) | 2026-10-18 | 06a7775 | [261018-evx-progress-visibility-sweep-frame-google-l](./quick/261018-evx-progress-visibility-sweep-frame-google-l/) |
|
|
55
|
+
| 261021-c1k | per-account run lock for scheduled jobs | 2026-10-21 | 01849f8 | [261021-c1k-per-account-run-lock-for-scheduled-jobs](./quick/261021-c1k-per-account-run-lock-for-scheduled-jobs/) |
|
|
56
|
+
| 10 | deps: Pillow 13.0.0 + certifi 2026.10.19 (pip-audit clean) | 2026-10-21 | 7d75986 | — |
|
|
55
57
|
|
|
56
|
-
Last activity: 2026-10-
|
|
58
|
+
Last activity: 2026-10-21 - Completed quick task 261021-c1k: per-account run lock for scheduled jobs
|
|
@@ -35,3 +35,13 @@ Resolved debug sessions. Used by `gsd-debugger` to surface known-pattern hypothe
|
|
|
35
35
|
- **Fix:** Delivered by plan 05-02, not by the debug session (goal was find_root_cause_only). `_configure_cli_logging(debug)` in `auraframes/cli.py` drops every accumulated handler by default and restores a single WARNING-level stderr sink; `--debug` on the root parser is a no-op leaving `_init_logger()`'s sinks in place. Wired into `run_status`, `run_inspect`, `run_sync`. `_init_logger()` itself left unchanged per D-04.
|
|
36
36
|
- **Key lesson:** A library that configures loguru at object-construction time stacks a new sink per instance and never removes loguru's default — so log verbosity is a property of the *entry point*, not the library. Fix it at the CLI seam (drop-and-restore) rather than mutating shared library init. Tests asserting only on `capsys.readouterr().out` are blind to this entire class of bug; assert on `.err` too.
|
|
37
37
|
- **Files changed:** auraframes/cli.py, tests/test_cli_status.py
|
|
38
|
+
|
|
39
|
+
## breaker-counts-per-item-errors — lockout breaker tripped by per-item content failures (GIF) that never reached the network
|
|
40
|
+
- **Date:** 2026-10-21
|
|
41
|
+
- **Error patterns:** Aborted after 5 consecutive write failures, ConsecutiveWriteFailureError, Unsupported image format, GIF, WEBP, unreadable image, account lockout message, wait 60+ min, google-sync apply aborted, 0 items confirmed, _prep_upload, execute_plan, note_failure, breaker, per-item vs systemic
|
|
42
|
+
- **Root cause(s):** execute_plan's per-file prep loop fed every _prep_upload exception to the status-agnostic consecutive-failure breaker, including the LOCAL decode/format rejection raised before any S3/Pushd call; because a chunk's successes are only credited after its batch_update, any 5 unsupported items inside one 50-item chunk (adjacency not required) tripped it; AND (data) Google albums contain GIFs (Google Photos animations) outside JPEG/PNG/HEIF
|
|
43
|
+
- **Fix:** Error-classification seam in pushframe/sync.py — classify_write_failure(exc) -> FAILURE_PER_ITEM | FAILURE_SYSTEMIC via the _FAILURE_RULES table (unknown = systemic); _prep_upload wraps its whole local phase in ItemContentError(ValueError); per-item failures go to ExecutionResult.upload_skipped and neither increment nor reset the run; GIF reduced to first-frame JPEG with MPO (_FIRST_FRAME_AS_JPEG_FORMATS); gsync/cli/report name the skipped items ('item(s) SKIPPED' ERROR marker)
|
|
44
|
+
- **Files changed:** pushframe/sync.py, pushframe/gsync.py, pushframe/cli.py, pushframe/doctor.py, pushframe/report.py, tests/test_breaker_item_failures.py, tests/test_prep_upload_formats.py, tests/test_retry_401.py, tests/test_cli_apply.py, tests/test_gsync_execute.py, tests/test_report.py
|
|
45
|
+
- **Why not caught:** no gate existed for this class — the breaker's tests (tests/test_write_throttling.py) only fed it write-surface failures, and the select-asset-401-unauthorized design explicitly listed ValueError as counted, before Google items (content pushframe does not choose) entered the pipeline; tests/test_prep_upload_formats.py checked unsupported/undecodable files one at a time, never ≥MAX in one chunk
|
|
46
|
+
- **Recurrence guard:** tests/test_breaker_item_failures.py (test_unsupported_items_in_one_chunk_never_trip_the_breaker[MAX-1..2*MAX+2], test_interleaved_unsupported_items_in_one_chunk_never_trip, test_skips_neither_increment_nor_reset_the_systemic_run, test_run_of_plain_401_still_trips_with_unsupported_items_present, test_s3_upload_failures_stay_systemic, test_classify_write_failure_seam) + tests/test_gsync_execute.py::test_unsupported_items_are_skipped_named_and_never_abort_the_apply; key lesson: a status-agnostic backstop must still only count failures that REACHED the surface it protects — classify by "did this touch the network", never by exception type alone
|
|
47
|
+
---
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: breaker-counts-per-item-errors
|
|
3
|
+
status: resolved
|
|
4
|
+
trigger: "google-sync apply lockout breaker aborts on 5 consecutive per-item 'Unsupported image format: GIF' errors — 0 written, wrong lockout message"
|
|
5
|
+
created: 2026-10-21
|
|
6
|
+
updated: 2026-10-21
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Debug: lockout breaker fed by per-item format errors
|
|
10
|
+
|
|
11
|
+
## Symptoms
|
|
12
|
+
|
|
13
|
+
- **Expected:** a per-item, non-systemic failure (e.g. a Google album item in GIF format that pushframe cannot upload) is skipped, listed in the end-of-run report as a per-item failure, and the run continues. Only systemic signals (HTTP 401/475 runs, rate-limit cut-offs) feed the "N consecutive write failures" lockout breaker.
|
|
14
|
+
- **Actual:** run 2026-10-20T00:11:03+02:00 on host venus (pushframe 5.1.38, `google-sync "Nous" --frame "Cadre Salon" --apply --yes --scheduled`, plan 2231 upload / 287 re-show / 186 hide) aborted after 1004s with 0 items confirmed.
|
|
15
|
+
- **Error:** `google-sync failed: apply aborted: Aborted after 5 consecutive write failures -- this is the signature of an account lockout or a systemic cut-off (...) Last error: Unsupported image format: GIF (AF1QipNZ5dNKCtprVLfKMeV4J4ipujWDoQrByEeykx1K)` + the "wait 60+ min" lockout advice — wrong for this cause.
|
|
16
|
+
- **Timeline:** any album containing ≥5 GIFs adjacent in plan order. The next night's run (same album) did not abort on GIFs (ordering/plan differed), so it is order-dependent.
|
|
17
|
+
- **Repro (offline):** plan with 5 consecutive GIF items through the apply path → abort with lockout message.
|
|
18
|
+
|
|
19
|
+
## Expected fix shape
|
|
20
|
+
|
|
21
|
+
- Classify errors: per-item/content errors (unsupported format, unreadable image, etc.) → skip + record, reset nothing systemic, never trip the breaker; systemic errors → breaker as today.
|
|
22
|
+
- Consider converting GIF → JPEG (first frame) if cheap and consistent with D-09 (original bytes untouched for HEIC); otherwise skip+list clearly so the user knows which items were not mirrored, and make sure the skipped items don't make every future run re-try/re-report forever in a noisy way (or document that they will).
|
|
23
|
+
- Keep offline suite green: `uv run --extra dev pytest -q -m "not live"`.
|
|
24
|
+
- NOTE: a sibling session `s3-expiredtoken-long-run` touches the same breaker/error-classification area (ExpiredToken must not feed the breaker either). Coordinate: share one classification seam if natural.
|
|
25
|
+
|
|
26
|
+
## Current Focus
|
|
27
|
+
|
|
28
|
+
status: RESOLVED -- fix applied, offline guardrail accepted (user pre-approved; offline verification is the acceptance gate)
|
|
29
|
+
bug_class: Bohrbug (deterministic given the plan's sorted-path chunk layout)
|
|
30
|
+
next_action: none for this session -- sibling s3-expiredtoken-long-run extends the classification seam (see Resolution.seam)
|
|
31
|
+
|
|
32
|
+
reasoning_checkpoint:
|
|
33
|
+
hypothesis: "execute_plan's per-file prep except-branch feeds EVERY _prep_upload exception to note_failure(); a ValueError('Unsupported image format: GIF') is raised by the LOCAL decode step before any S3/Pushd call, so it carries zero information about the account, yet 5 of them inside one chunk's prep window (successes are only credited after the chunk's batch_update, so they need not even be adjacent) raise ConsecutiveWriteFailureError with the lockout wording."
|
|
34
|
+
confirming_evidence:
|
|
35
|
+
- "scratchpad repro: 5 GIFs + 1 JPEG -> ConsecutiveWriteFailureError count=5, 0 S3 uploads, message identical to venus ('Last error: Unsupported image format: GIF (AF1Qip04)')"
|
|
36
|
+
- "scratchpad repro2: G J G J G J G J G in ONE chunk -> ABORT count=5, 4 JPEGs already S3-uploaded but never select_asset'd, 0 succeeded -- adjacency is not required, 5 unsupported items within one 50-item chunk suffice"
|
|
37
|
+
- "code: sync.py L863-867 `except Exception as e: ... note_failure(str(e))`; KB select-asset-401-unauthorized documents ValueError as deliberately counted"
|
|
38
|
+
falsification_test: "If after the fix 5+ unsupported items in one chunk still raise ConsecutiveWriteFailureError, or if a systemic failure (select_asset 401 run / S3 upload_file raising) no longer trips the breaker, the fix is wrong."
|
|
39
|
+
fix_rationale: "The breaker exists to stop hammering the WRITE SURFACE. The root cause is the absence of a classification between 'the item's own bytes could not be prepared (never reached the network)' and 'a write failed'. A single predicate classify_write_failure(exc) -> 'per-item' | 'systemic' fixes it at the one place exceptions are item-attributable (the prep loop): per-item failures are recorded in a new ExecutionResult.upload_skipped list, reported by name, and neither increment nor reset the run counter. GIF -> first-frame JPEG (existing MPO path) removes the dominant real-world trigger."
|
|
40
|
+
blind_spots: "Why the next night's run (same album) did not trip on GIFs is not verified offline (likely album changes shifting the 50-item chunk boundaries so <5 unsupported items share a chunk). GIF transparency is flattened by convert('RGB') (palette colour of the transparent index), not composited. Local `pushframe sync` of a mislabeled GIF/MPO '.jpg' re-uploads every run (pre-existing MPO behaviour: no manifest on that path)."
|
|
41
|
+
candidate_causes:
|
|
42
|
+
- "code: breaker counts pre-network content failures (CONFIRMED)"
|
|
43
|
+
- "data: Google albums legitimately contain GIF (Google Photos 'animations') and other formats outside JPEG/PNG/HEIF -- a contributing condition pushframe does not control"
|
|
44
|
+
- "config: MAX_CONSECUTIVE_WRITE_FAILURES=5 / WRITE_BATCH_SIZE=50 -- not a cause; the threshold is right for systemic runs, the chunk-deferred success crediting only widens the window"
|
|
45
|
+
and_gate: "yes -- the abort needs (a) the classification gap in code AND (b) >=5 unsupported items inside one chunk's prep window (data). Fixing (a) alone is sufficient and necessary; GIF conversion reduces (b) but is not relied upon for correctness (WebP/BMP/TIFF/corrupt files remain per-item skips)."
|
|
46
|
+
|
|
47
|
+
## Evidence
|
|
48
|
+
|
|
49
|
+
- timestamp: 2026-10-21
|
|
50
|
+
checked: knowledge-base.md (Phase 0)
|
|
51
|
+
found: KB match select-asset-401-unauthorized -> the breaker (MAX_CONSECUTIVE_WRITE_FAILURES=5) was DESIGNED status-agnostic, "incrementing on ANY caught per-item write failure (plain 401, 5xx, network error, ValueError)". The ValueError inclusion was an explicit design choice, made before Google items (whose content pushframe does not choose) entered the pipeline.
|
|
52
|
+
implication: not a regression of a guard; a classification gap in the original design. The fix must keep the status-agnostic backstop for anything that touched the network, only exempting failures that provably never reached Pushd/S3.
|
|
53
|
+
|
|
54
|
+
- timestamp: 2026-10-21
|
|
55
|
+
checked: pushframe/sync.py _prep_upload (L540-583) + execute_plan upload loop (L853-867)
|
|
56
|
+
found: _prep_upload raises ValueError('Unsupported image format: {fmt} ({name})') for any decoded format outside JPEG/PNG/HEIF (MPO is reduced to first-frame JPEG). The decode + format check happen BEFORE s3_client.upload_file -- the failure is purely local. The except Exception branch records it, then note_failure(str(e)) increments consecutive_failures; 5 in a row raise ConsecutiveWriteFailureError(count, last_error, result).
|
|
57
|
+
implication: matches the venus message exactly ("Last error: Unsupported image format: GIF (AF1Qip...)": staged google cache files are named by media id, no suffix).
|
|
58
|
+
|
|
59
|
+
- timestamp: 2026-10-21
|
|
60
|
+
checked: pushframe/gsync.py run_google_sync except Exception branch (L903-922) + end-of-run summary (L968-979)
|
|
61
|
+
found: any execute_plan exception prints "apply aborted: {e}" + the generic 60-min anti-abuse wait advice. The normal end-of-run summary only prints a COUNT "N upload(s) FAILED -- no manifest entry written; they will retry next run" -- no item names, and "will retry" is misleading for content that can never upload.
|
|
62
|
+
implication: content skips need their own named listing in the summary (and the report.py ERROR marker must still fire).
|
|
63
|
+
|
|
64
|
+
- timestamp: 2026-10-21
|
|
65
|
+
checked: pushframe/google/cache.py download_to_cache/prune_cache
|
|
66
|
+
found: only manifest-backed ids are skipped/pruned; an id with no manifest entry is re-downloaded every run (overwritten in place).
|
|
67
|
+
implication: a permanently-unsupported item is re-downloaded + re-decoded + re-reported every run (Google bandwidth only; zero Pushd/S3 writes since the check precedes upload_file). Converting GIF removes the main recurring case.
|
|
68
|
+
|
|
69
|
+
- timestamp: 2026-10-21
|
|
70
|
+
checked: MPO precedent in _prep_upload (5.1.10) + tests/test_gsync_execute.py::test_mpo_upload_persists_the_uploaded_bytes_md5_not_the_container
|
|
71
|
+
found: a reduced container (MPO -> first frame re-encoded JPEG q95, data_uti public.jpeg) is already supported end to end: result.uploaded_md5_by_path carries the re-encoded md5 and gsync persists THAT md5 in the manifest so the next run does not trip drift.
|
|
72
|
+
implication: GIF -> first-frame JPEG reuses an existing, live-proven path (no new write surface: honest JPEG bytes + public.jpeg). D-09 (HEIC bytes untouched) is not contradicted -- HEIC/JPEG/PNG passthrough stays byte-exact; only formats the frame cannot take are reduced.
|
|
73
|
+
|
|
74
|
+
- timestamp: 2026-10-21
|
|
75
|
+
checked: offline repro (scratchpad repro.py) -- execute_plan, 5 GIF + 1 JPEG, fakes, no network
|
|
76
|
+
found: ConsecutiveWriteFailureError count=5, S3 uploads=0, message "... Last error: Unsupported image format: GIF (AF1Qip04)" -- identical shape to venus.
|
|
77
|
+
implication: reproduced deterministically; the breaker tripped with ZERO network calls made.
|
|
78
|
+
|
|
79
|
+
- timestamp: 2026-10-21
|
|
80
|
+
checked: offline repro2 -- one chunk ordered G J G J G J G J G
|
|
81
|
+
found: ABORT count=5; 4 JPEGs S3-uploaded (orphaned, never select_asset'd), 0 succeeded.
|
|
82
|
+
implication: successes are credited only after the chunk's batch_update, so ANY 5 unsupported items within one 50-item chunk trip the breaker -- adjacency is not required. Explains the order/plan dependence across nights (chunk boundaries move when the album changes).
|
|
83
|
+
|
|
84
|
+
- timestamp: 2026-10-21
|
|
85
|
+
checked: fix applied (pushframe/sync.py seam + GIF reduction; gsync/cli/doctor/report reporting) + full offline suite
|
|
86
|
+
found: tests/test_breaker_item_failures.py 14/14 green; full suite `uv run --extra dev pytest -q -m "not live"` 839 passed, 0 warnings (DeprecationWarning=error). Two pre-existing tests asserted an undecodable/missing file lands in upload_failures; updated to the new contract (upload_skipped) with intent preserved (one bad file costs exactly one file, zero network calls).
|
|
87
|
+
implication: fix verified offline; see Resolution.verification for the per-signal record.
|
|
88
|
+
|
|
89
|
+
## Eliminated
|
|
90
|
+
|
|
91
|
+
## Resolution
|
|
92
|
+
|
|
93
|
+
root_cause: "execute_plan's per-file prep except-branch (pushframe/sync.py) fed EVERY _prep_upload exception to note_failure(), the status-agnostic lockout breaker. _prep_upload's LOCAL decode step rejects decoded formats outside JPEG/PNG/HEIF (GIF here) with a ValueError raised before any S3/Pushd call -- a failure that carries zero information about the account. Because a chunk's successes are only credited after its batch_update, any 5 such items inside one 50-item chunk (adjacency not required) raised ConsecutiveWriteFailureError with the account-lockout wording; the gsync abort path then printed the 60-min anti-abuse advice. AND-gate: (code) no per-item vs systemic classification + (data) Google albums containing >=5 GIFs within one chunk's prep window."
|
|
94
|
+
|
|
95
|
+
fix: |
|
|
96
|
+
1. Error-classification seam (pushframe/sync.py, right below MAX_CONSECUTIVE_WRITE_FAILURES):
|
|
97
|
+
FAILURE_PER_ITEM / FAILURE_SYSTEMIC constants, ItemContentError(ValueError), the _FAILURE_RULES table and
|
|
98
|
+
classify_write_failure(exc) -> str (first matching rule wins; no match = FAILURE_SYSTEMIC, the conservative default).
|
|
99
|
+
2. _prep_upload wraps its whole LOCAL phase (Image.open, format check, reduction, read_bytes) so every failure there
|
|
100
|
+
is an ItemContentError ('Unsupported image format: X (name)' unchanged; other decode errors become
|
|
101
|
+
'Unreadable image (name): <Type>: <msg>'). s3_client.upload_file errors are NOT wrapped -> stay systemic.
|
|
102
|
+
3. execute_plan's prep loop consults classify_write_failure: FAILURE_PER_ITEM -> ExecutionResult.upload_skipped
|
|
103
|
+
(new field, disjoint from upload_failures), progress(False) + on_error as before, and `continue` -- the run
|
|
104
|
+
counter is neither incremented nor reset. Everything else unchanged (systemic -> upload_failures + note_failure).
|
|
105
|
+
4. GIF -> first frame re-encoded as JPEG q95 / public.jpeg, via the existing MPO path
|
|
106
|
+
(_FIRST_FRAME_AS_JPEG_FORMATS = {'MPO','GIF'}). Cheap (frame 0 only is decoded), no new write surface (honest
|
|
107
|
+
JPEG bytes), D-12 intact (no fallback UTI), D-09 intact (JPEG/PNG/HEIF passthrough stays byte-exact).
|
|
108
|
+
uploaded_md5_by_path carries the re-encoded md5 and gsync already persists THAT in the manifest (MPO contract),
|
|
109
|
+
so the next run sees the GIF as held -- no drift, no re-upload.
|
|
110
|
+
5. Reporting: gsync end-of-run prints '{n} item(s) SKIPPED -- content pushframe cannot upload (nothing was sent;
|
|
111
|
+
NOT on the frame; re-checked and re-reported every run until removed from the album):' + one line per item
|
|
112
|
+
(_gid_label + redact_tokens); report.py gains the 'item(s) SKIPPED' ERROR marker; `pushframe sync` prints a
|
|
113
|
+
'Skipped:' block and still exits 1 (the file did not land); doctor's write-probe error falls back to
|
|
114
|
+
upload_skipped.
|
|
115
|
+
|
|
116
|
+
seam: |
|
|
117
|
+
Name: classify_write_failure(exc) -> str, in pushframe/sync.py (block "Error-classification seam: per-item vs
|
|
118
|
+
systemic", just below MAX_CONSECUTIVE_WRITE_FAILURES). Classes: FAILURE_PER_ITEM ('per-item'),
|
|
119
|
+
FAILURE_SYSTEMIC ('systemic', default). Rule table: _FAILURE_RULES = ((predicate, class), ...).
|
|
120
|
+
Consulted today at ONE call site: the per-file prep loop of execute_plan's upload chunk (`except Exception as e:`
|
|
121
|
+
right after `_prep_upload`) -- the only place an exception is attributable to a single item.
|
|
122
|
+
How to add a class (e.g. sibling s3-expiredtoken-long-run):
|
|
123
|
+
a. define FAILURE_<NAME> = '<name>' next to the two existing constants;
|
|
124
|
+
b. add a predicate (e.g. _is_expired_aws_credentials(exc): botocore ClientError whose
|
|
125
|
+
exc.response['Error']['Code'] in {'ExpiredToken','ExpiredTokenException','RequestExpired'}) and append
|
|
126
|
+
(predicate, FAILURE_<NAME>) to _FAILURE_RULES BEFORE any broader rule (first match wins);
|
|
127
|
+
c. handle the class at the call site(s): in the prep loop add a branch next to the FAILURE_PER_ITEM one
|
|
128
|
+
(e.g. refresh S3 credentials + retry _prep_upload once; never call note_failure). For the SQS
|
|
129
|
+
receive_message inside the chunk try (whose exceptions currently land in the chunk-level generic
|
|
130
|
+
`except Exception as e:` and attribute ALL prepped files + note_failure), route that branch through
|
|
131
|
+
classify_write_failure too, or catch the poll's error locally (it is best-effort/observational).
|
|
132
|
+
d. pin it with a row in tests/test_breaker_item_failures.py::test_classify_write_failure_seam.
|
|
133
|
+
Invariant to keep: an unknown exception MUST stay FAILURE_SYSTEMIC (mutant M5 below proves the test bites).
|
|
134
|
+
|
|
135
|
+
gif_and_skip_noise: |
|
|
136
|
+
GIF is converted (not skipped). Remaining per-item skips (WebP -- deliberately deferred by D-12 --, BMP, TIFF,
|
|
137
|
+
RAW, zero-byte/truncated/non-image bytes) get NO manifest entry, so EVERY run re-downloads them from Google,
|
|
138
|
+
re-decodes them locally (no S3, no Pushd write, no breaker effect; the chunk's budget tokens are acquired
|
|
139
|
+
before prep as before) and re-lists them under 'item(s) SKIPPED'. With a scheduled job at report level ERROR
|
|
140
|
+
that means an ATTENTION email every night until the item leaves the album -- the same cadence the pre-existing
|
|
141
|
+
'upload(s) FAILED' marker already had for isolated failures, now honestly worded. Deliberate (the frame is not a
|
|
142
|
+
full mirror and a retry cannot fix it); a quieter 'report once' would need a separate skip-list state (NOT the
|
|
143
|
+
manifest, whose entries MEAN "bytes on the frame" and would trip the drift gate) -- left as a follow-up.
|
|
144
|
+
|
|
145
|
+
verification:
|
|
146
|
+
target_test: { result: pass, detail: "tests/test_breaker_item_failures.py 14/14; RED before the fix (12 failed: ConsecutiveWriteFailureError 'Last error: Unsupported image format: GIF/WEBP' + missing seam/GIF reduction; the 2 pre-fix passes are guards: plain-401 run still trips, progress/on_error contract)" }
|
|
147
|
+
mutation_check: { result: pass, reason_if_skipped: "no Stryker/mutmut in this Python repo -> 6 manual mutants at the fix site, driving test file only", mutant_killed: "M1 empty _FAILURE_RULES, M2 skip calls note_failure, M3 GIF not reduced, M4 local-phase wrap removed, M5 classifier default per-item, M6 skip resets the run -- all 6 KILLED" }
|
|
148
|
+
no_op_deletion: { result: pass, deletion_justified_by_rca: true, detail: "diff is additive; the only removed lines are the MPO-only branch condition (generalized to a frozenset) and the bare ValueError raise (now its ValueError subclass)" }
|
|
149
|
+
adjacent_tests: { result: pass, suites_run: ["full offline suite -m 'not live': 839 passed, 0 warnings"] }
|
|
150
|
+
revert_and_reconfirm: { result: pass, bug_returned_on_revert: true, fixed_on_reapply: true, detail: "git diff -- pushframe/ saved as a patch, checkout -> 12 failed / 2 passed; git apply -> 14 passed" }
|
|
151
|
+
oracle_type: specified (symptom spec: per-item skip recorded + run continues; systemic runs still abort at exactly MAX), boundary neighbours MAX-1 / MAX / MAX+1 / 2*MAX+2
|
|
152
|
+
guardrail_verdict: accepted
|
|
153
|
+
|
|
154
|
+
files_changed:
|
|
155
|
+
- pushframe/sync.py
|
|
156
|
+
- pushframe/gsync.py
|
|
157
|
+
- pushframe/cli.py
|
|
158
|
+
- pushframe/doctor.py
|
|
159
|
+
- pushframe/report.py
|
|
160
|
+
- tests/test_breaker_item_failures.py
|
|
161
|
+
- tests/test_prep_upload_formats.py
|
|
162
|
+
- tests/test_retry_401.py
|
|
163
|
+
- tests/test_cli_apply.py
|
|
164
|
+
- tests/test_gsync_execute.py
|
|
165
|
+
- tests/test_report.py
|
|
166
|
+
|
|
167
|
+
out_of_scope_findings:
|
|
168
|
+
- "Pre-existing: local `pushframe sync` has no manifest, so a reduced container (an MPO -- or now a mislabeled GIF -- named .jpg/.jpeg) uploads every run (local md5 != frame md5 of the re-encoded bytes) and hides the previous copy. Not touched here."
|
|
169
|
+
- "GIF transparency is flattened by convert('RGB') (the transparent palette index takes its palette colour); Google Photos animations are opaque."
|
|
170
|
+
- "CHANGELOG.md [Unreleased] entry not written (this repo commits changelog entries separately)."
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
---
|
|
2
|
+
phase: quick-261021-c1k
|
|
3
|
+
plan: 01
|
|
4
|
+
type: execute
|
|
5
|
+
wave: 1
|
|
6
|
+
depends_on: []
|
|
7
|
+
files_modified:
|
|
8
|
+
- pushframe/runlock.py
|
|
9
|
+
- pushframe/utils/settings.py
|
|
10
|
+
- pushframe/cli.py
|
|
11
|
+
- tests/conftest.py
|
|
12
|
+
- tests/test_runlock.py
|
|
13
|
+
- tests/test_runlock_cli.py
|
|
14
|
+
- tests/test_report.py
|
|
15
|
+
- docs/ERRORS.md
|
|
16
|
+
- docs/CLI.md
|
|
17
|
+
- CHANGELOG.md
|
|
18
|
+
autonomous: true
|
|
19
|
+
requirements:
|
|
20
|
+
- QUICK-261021-c1k
|
|
21
|
+
estimate:
|
|
22
|
+
tokens: 110000
|
|
23
|
+
raw_tokens: 110000
|
|
24
|
+
tasks: 3
|
|
25
|
+
confidence: low
|
|
26
|
+
must_haves:
|
|
27
|
+
truths:
|
|
28
|
+
- "Two write runs on the SAME Aura account (sync --apply, push --apply, google-sync --apply incl. --pair/--all/--report, reconcile --remove) never overlap: the second one waits from BEFORE its login/listing/plan until the first one's process ends, so it never applies a stale plan (U-01, U-02)"
|
|
29
|
+
- "A waiting run prints who holds the lock — job name, pid, verb, start time — immediately and then every 5 minutes, e.g. 'waiting for account lock held by job SALON-CADRE (pid 4242, google-sync) since 00:13' (U-03)"
|
|
30
|
+
- "A run that waits longer than PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT (default 43200 s = 12h, resolved at call time) exits 1 with '<verb> failed: account lock still held by …' plus a remedy, changed nothing, and prints no traceback (U-04)"
|
|
31
|
+
- "A holder killed with SIGKILL leaves no stale lock: the next run acquires at once, with no cleanup step anywhere in the code (U-02)"
|
|
32
|
+
- "status, inspect, doctor, and sync/push/google-sync without --apply and reconcile without --remove never take or wait for the lock (U-05)"
|
|
33
|
+
- "The lock file is keyed by the SAME account key as the WriteBudget state file (one helper, no duplicated digest), so the budget load-consume-save cycle of locked runs is serialized per account (U-01)"
|
|
34
|
+
- "uv run --extra dev pytest -q -m 'not live' stays green (871 baseline plus the new tests), zero warnings (U-06)"
|
|
35
|
+
artifacts:
|
|
36
|
+
- path: pushframe/runlock.py
|
|
37
|
+
provides: "account_key, lock_dir, lock_path_for, LOCK_DIR_OVERRIDE, AccountLockError, AccountLockTimeout, AccountLock, acquire_account_lock, account_run_lock"
|
|
38
|
+
- path: pushframe/utils/settings.py
|
|
39
|
+
provides: "ACCOUNT_LOCK_MAX_WAIT setting (env PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT, default 43200, float)"
|
|
40
|
+
- path: pushframe/cli.py
|
|
41
|
+
provides: "_under_account_lock dispatch helper wrapping every write verb; _build_write_budget keyed via runlock.account_key"
|
|
42
|
+
- path: tests/test_runlock.py
|
|
43
|
+
provides: "module contract tests incl. a real two-process contention test (subprocess, SIGKILL release)"
|
|
44
|
+
- path: tests/test_runlock_cli.py
|
|
45
|
+
provides: "dispatch matrix: write verbs locked, read-only verbs never touch the lock, contended/junk/no-identity CLI paths"
|
|
46
|
+
key_links:
|
|
47
|
+
- from: "pushframe/cli.py::_main"
|
|
48
|
+
to: "pushframe/runlock.py::account_run_lock"
|
|
49
|
+
via: "_under_account_lock(write_flag, verb, report_tag, run) around run_sync / run_google_sync / run_reconcile"
|
|
50
|
+
pattern: "_under_account_lock"
|
|
51
|
+
- from: "pushframe/cli.py::_build_write_budget"
|
|
52
|
+
to: "pushframe/runlock.py::account_key"
|
|
53
|
+
via: "budget-<account_key(email)>.json"
|
|
54
|
+
pattern: "account_key"
|
|
55
|
+
- from: "tests/conftest.py"
|
|
56
|
+
to: "pushframe/runlock.py::LOCK_DIR_OVERRIDE"
|
|
57
|
+
via: "autouse fixture pointing the lock dir at a tmp dir"
|
|
58
|
+
pattern: "LOCK_DIR_OVERRIDE"
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
<objective>
|
|
62
|
+
Serialize every write run against one Aura account with a per-account, kernel-held run lock (`fcntl.flock`), taken at CLI dispatch for the WHOLE run (session + listing + plan + apply) of every writing verb, so two scheduled jobs firing in the same `OnCalendar=daily` + `RandomizedDelaySec=15m` window can no longer double the write rate against the Pushd anti-abuse surface or race the persisted WriteBudget file (`WriteBudget.save()` does load, consume, `os.replace`, and the last writer wins).
|
|
63
|
+
|
|
64
|
+
Purpose: unattended multi-job operation without lost budget updates or doubled write bursts. A waiting job says who it is waiting for. A pathological wait ends as a named error with a remedy, never a traceback.
|
|
65
|
+
|
|
66
|
+
Output: new `pushframe/runlock.py`, one new setting, CLI dispatch wiring for sync/push/google-sync/reconcile, two new test files, docs (ERRORS.md, CLI.md, `config set --help`), and a CHANGELOG `[Unreleased]` entry. No release, tag or version bump.
|
|
67
|
+
|
|
68
|
+
User-agreed design (from the task description; there is no CONTEXT.md, so these IDs are labels for traceability):
|
|
69
|
+
- U-01: `fcntl.flock` on a per-account lock file under `~/.local/state/pushframe/`, keyed like the WriteBudget account key (`sha1(email)[:12]`).
|
|
70
|
+
- U-02: Held for the WHOLE run of google-sync, sync, push and reconcile-with-removal, never just the apply phase. The kernel releases it when the process dies: no stale-lock cleanup.
|
|
71
|
+
- U-03: Blocking wait; N waiters are fine (not FIFO, acceptable). The holder writes job/report-tag, pid and start time into the lock file. Waiters log it periodically (every few minutes).
|
|
72
|
+
- U-04: No short timeout. A configurable safety cap (default 12h) as a `PUSHFRAME_*` setting resolved at call time via `pushframe/utils/settings.py`. Hitting the cap raises a named typed error with a remedy, documented in docs/ERRORS.md.
|
|
73
|
+
- U-05: Dry-run and read-only paths (status, inspect, doctor, google-sync/sync without --apply) must NOT take the lock. Use the simplest correct option and justify it (see below).
|
|
74
|
+
- U-06: Offline-testable: lock dir, clock and poll interval are injectable. Real contention is tested with two processes. The offline suite stays green with DeprecationWarnings as errors.
|
|
75
|
+
- U-07: Build on 566a28f (`classify_write_failure`) and 90bfb15 (AWS credential refresh) without regressing them. Commit lines end with the Co-Authored-By trailer. No release/tag/publish. Add a CHANGELOG `[Unreleased]` entry.
|
|
76
|
+
|
|
77
|
+
Discretion choices (documented here so the executor does not re-decide them):
|
|
78
|
+
- Where the lock is taken: in `_main` dispatch, not inside `run_sync`/`run_google_sync`. This is one choke point that covers the session, listing, plan and apply; the `google-sync --all` loop takes it exactly once; and an in-process re-acquire can never self-deadlock (`flock` conflicts between two open file descriptions of the same process).
|
|
79
|
+
- Read-only gating (U-05): no lock at all, decided from the parsed write flag (`--apply` for sync/push/google-sync, `--remove` for reconcile) before any network call. Rejected alternative 1: a shared `LOCK_SH` for readers. A dry-run would then sit behind an hours-long nightly apply, and readers mutate neither the frame nor the budget file. Rejected alternative 2: lock only around apply. The user explicitly rejected that because of stale plans. `doctor` stays lock-free per U-05 (it is a deliberate one-probe diagnostic).
|
|
80
|
+
- How the wait works: poll `flock(LOCK_EX | LOCK_NB)` every `poll_interval` (default 5 s) instead of a bare blocking `flock`. A blocking call cannot honor a cap or log periodically without threads or signals. The poll keeps the same semantics (the kernel arbitrates, the lock is released on death, waiters are not FIFO) at no more than 5 s extra latency on an hours-long wait, and it is fully injectable (`sleep`, `monotonic`, `now`, `out`).
|
|
81
|
+
- No account identity (no env email, no stored session): skip the lock and print a named stderr note. This mirrors `_build_write_budget`'s existing "pacing skipped" contract. Scheduled jobs always carry a stored session, so they are always locked.
|
|
82
|
+
- Lock file: `~/.local/state/pushframe/locks/account-<account_key>.lock`, resolved at call time. The directory is 0700 and the file 0600. The file is never unlinked, because unlinking a live lock file breaks mutual exclusion. The holder info contains no email, token, album, link or path: only pid, job tag, verb and start time.
|
|
83
|
+
</objective>
|
|
84
|
+
|
|
85
|
+
<execution_context>
|
|
86
|
+
@~/.claude/gsd-core/workflows/execute-plan.md
|
|
87
|
+
@~/.claude/gsd-core/templates/summary.md
|
|
88
|
+
</execution_context>
|
|
89
|
+
|
|
90
|
+
<context>
|
|
91
|
+
@CLAUDE.md
|
|
92
|
+
@.planning/STATE.md
|
|
93
|
+
@pushframe/ratelimit.py
|
|
94
|
+
@pushframe/utils/settings.py
|
|
95
|
+
@pushframe/utils/io.py
|
|
96
|
+
@pushframe/session.py
|
|
97
|
+
@tests/conftest.py
|
|
98
|
+
|
|
99
|
+
Code facts gathered during planning (line numbers are as of HEAD 90bfb15):
|
|
100
|
+
- `pushframe/cli.py:1808` `_build_write_budget(email, ignore_budget)` builds `AURA_STATE_DIR / budget-<12-hex-char sha1 digest of email>.json`. The inline digest at cli.py:1832 is the ONLY digest call in cli.py. The `hashlib` import at cli.py:2 is used nowhere else.
|
|
101
|
+
- `pushframe/session.py:75` `account_email()` is THE identity resolver: env `PUSHFRAME_EMAIL`/`AURA_EMAIL`, else the stored session email (local config read, no network). It returns None when there is no identity.
|
|
102
|
+
- `pushframe/cli.py:2462` `_main` dispatch: google-sync at ~2572 (the `--report` branch runs inside `contextlib.redirect_stdout(_Tee(...))`), sync ~2624, push ~2640, reconcile ~2660 (write flag `args.remove`, no `--report-tag`), doctor ~2522, status ~2565, inspect ~2622. On scheduled paths `_scheduled_run_header(args.report_tag)` prints first and `_scheduled_run_footer(rc, elapsed)` closes the block.
|
|
103
|
+
- `tests/test_schedule.py:395` asserts the first stdout line of a scheduled `sync --apply` dispatch starts with `=== run `. So the lock must be taken AFTER the header and print nothing when uncontended.
|
|
104
|
+
- `tests/test_pairs.py:86` asserts `'note:' not in` stdout for `google-sync --pair X --apply`. So the no-identity note goes to STDERR.
|
|
105
|
+
- `pushframe/utils/settings.py` `DEFAULTS` table plus PEP 562 `__getattr__`. cli.py already does `from pushframe.utils import settings` (cli.py:347). Read `settings.ACCOUNT_LOCK_MAX_WAIT` attribute-style at call time. NEVER add it to the import-time `from pushframe.utils.settings import (...)` block at cli.py:34.
|
|
106
|
+
- `pushframe/google/wire.py:75` has the `STATE_ROOT_OVERRIDE` / `state_root()` pattern, and `tests/conftest.py` `_isolate_google_wire_state` is the autouse model to copy for the lock dir.
|
|
107
|
+
- `pushframe/utils/io.py`: `ensure_private_dir(path)` (0700 chain). Use it for the lock dir.
|
|
108
|
+
- systemd units are `Type=oneshot` (schedule.py:120), and oneshot disables the start timeout by default, so a waiting job is not killed by systemd. A timer never restarts its own still-running unit, so contention is always between DIFFERENT jobs.
|
|
109
|
+
- `pyproject.toml` has `filterwarnings = ["error::DeprecationWarning"]`. Use `subprocess` for the two-process test, NEVER `multiprocessing` with fork: fork in a threaded pytest process emits a DeprecationWarning, which is an error here.
|
|
110
|
+
- The working tree holds unrelated untracked/modified files (`.gsd/dispatch-isolation-sentinel.json`, `probe_token.py`, `ritual-*.sh`, `ritual-wave3.py`, `.serena/`, `.planning/debug/s3-expiredtoken-long-run.md`). Stage ONLY the files each task lists (explicit `git add <paths>`, never `-A` or `.`).
|
|
111
|
+
</context>
|
|
112
|
+
|
|
113
|
+
<tasks>
|
|
114
|
+
|
|
115
|
+
<task type="tracer" tdd="true">
|
|
116
|
+
<name>Task 1 (tracer): runlock module + setting + sync --apply dispatch wired end to end, proven with real two-process contention</name>
|
|
117
|
+
<files>pushframe/runlock.py, pushframe/utils/settings.py, pushframe/cli.py, tests/conftest.py, tests/test_runlock.py</files>
|
|
118
|
+
<read_first>pushframe/ratelimit.py (WriteBudget docstring and persistence style), pushframe/google/wire.py lines 70-90 (override pattern), pushframe/utils/io.py (ensure_private_dir), pushframe/cli.py lines 1808-1836 and 2462-2640, tests/test_budget_identity.py (identity fixtures), tests/test_schedule.py lines 395-445</read_first>
|
|
119
|
+
<behavior>
|
|
120
|
+
- account_key('a@b.c') equals the first 12 hex chars of the sha1 digest of the UTF-8 email. `_build_write_budget(email, False).path.name == f'budget-{account_key(email)}.json'` and `lock_path_for(email).name == f'account-{account_key(email)}.lock'` (U-01: same key).
|
|
121
|
+
- lock_dir() is `~/.local/state/pushframe/locks`, resolved at call time (it honors a monkeypatched HOME). LOCK_DIR_OVERRIDE wins when set.
|
|
122
|
+
- Uncontended acquire returns immediately with no output. The lock file holds JSON {pid, job, command, started_at}. The email string appears nowhere in the file bytes. The file is 0600 and the dir 0700. release() truncates the holder info, unlocks and closes, and is idempotent. account_run_lock is a context manager that releases on exception too.
|
|
123
|
+
- Contention with a fake clock (holder = a raw `os.open` + `flock(LOCK_EX)` fd in the test, carrying holder JSON job=SALON-CADRE pid=4242 command=google-sync started_at=…T00:13:00): with poll_interval=5 and log_every=300, the holder fd is closed by the fake sleep once fake time reaches 900. Exactly 3 waiting lines are printed (t=0, 300, 600). Each contains 'waiting for account lock held by job SALON-CADRE (pid 4242, google-sync)' and 'since 00:13'. Then one 'account lock acquired after 15m' line.
|
|
124
|
+
- Cap: the holder never releases, max_wait=3600, and AccountLockTimeout is raised. Its str names the job, the pid, 'PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT' and 'systemctl --user stop pushframe-SALON-CADRE.service'. Total fake sleep is no more than 3600.
|
|
125
|
+
- max_wait=0 while contended: one waiting line, then AccountLockTimeout, and the injected sleep is never called.
|
|
126
|
+
- Empty or corrupt holder JSON makes the waiter line say 'held by another pushframe run (holder details unavailable)' with no crash. Holder strings with control chars or over 64 chars are sanitized before display.
|
|
127
|
+
- An unwritable lock dir (chmod 0500 parent) raises AccountLockError naming the path and 'nothing was changed', never a bare OSError.
|
|
128
|
+
- Re-entrancy: acquiring the same lock path twice in one process is a no-op the second time (no self-deadlock).
|
|
129
|
+
- A different account email is never blocked by another account's holder.
|
|
130
|
+
- REAL two processes: a `subprocess.Popen([sys.executable, '-c', CHILD], cwd=repo root)` child acquires the lock for 'a@b.c' with job='SALON-CADRE' in the test's tmp lock dir, prints LOCKED and sleeps 60. The parent waits for LOCKED (select, 10 s timeout), then calls acquire_account_lock(max_wait=0.3, poll_interval=0.05). It gets AccountLockTimeout naming f'pid {child.pid}' and SALON-CADRE, and a waiting line was emitted. A different email acquires fine meanwhile. The parent then sends child.kill() (SIGKILL, no cleanup code runs) and child.wait(). acquire_account_lock(max_wait=0) now succeeds at once, which proves kernel release on death. The child is always killed in a finally block.
|
|
131
|
+
- CLI tracer: with PUSHFRAME_EMAIL set and `cli.run_sync` monkeypatched to a fake, `cli.main(['sync', d, '--frame', 'X', '--apply', '--yes', '--scheduled', '--report-tag', 'nightly'])` runs the fake WHILE the real lock is held: inside the fake, a raw `flock(LOCK_EX|LOCK_NB)` on `lock_path_for(email)` raises BlockingIOError. The first stdout line still starts with '=== run '. `cli.main(['sync', d, '--frame', 'X'])` (dry run) runs the fake with the lock free.
|
|
132
|
+
</behavior>
|
|
133
|
+
<action>
|
|
134
|
+
RED first. Create tests/test_runlock.py covering every behavior bullet above. Run it and confirm it fails (the module is missing). Commit: `test(quick-261021-c1k): add failing run-lock contract and two-process tests`.
|
|
135
|
+
|
|
136
|
+
GREEN. Create pushframe/runlock.py (stdlib only: fcntl, os, json, time, hashlib, contextlib, datetime, pathlib, sys). Give it a module docstring that states the contract: per-account, kernel-held, whole-run, never unlinked, holder info without secrets, poll-with-cap rationale (see objective).
|
|
137
|
+
|
|
138
|
+
Public surface:
|
|
139
|
+
- `LOCK_DIR_OVERRIDE: Path | None = None`.
|
|
140
|
+
- `lock_dir()`: the override, else `Path('~/.local/state/pushframe/locks').expanduser()`, evaluated per call.
|
|
141
|
+
- `account_key(email: str) -> str`: the 12-hex sha1 key. This becomes THE single source for both the budget file and the lock.
|
|
142
|
+
- `lock_path_for(email, *, lock_dir=None) -> Path`: `<dir>/account-<key>.lock`.
|
|
143
|
+
- `class AccountLockError(Exception)` (named, carries the remedy) and `class AccountLockTimeout(AccountLockError)` with attributes `holder` (dict or None) and `waited_seconds`.
|
|
144
|
+
- `class AccountLock`: attributes `path` and `fd`, method `release()`.
|
|
145
|
+
- `acquire_account_lock(email, *, job, command, max_wait, poll_interval=5.0, log_every=300.0, sleep=time.sleep, monotonic=time.monotonic, now=None, out=None, lock_dir=None) -> AccountLock`. `now` defaults to a callable returning `datetime.now().astimezone()`. `out` defaults to print-with-flush on stdout.
|
|
146
|
+
- A `@contextmanager account_run_lock(email, **kwargs)`. When email is falsy it prints to stderr 'account lock: no account identity (env or stored session) — run lock skipped for this run' and yields None. Otherwise it acquires, yields the lock, and releases in finally.
|
|
147
|
+
|
|
148
|
+
Mechanics:
|
|
149
|
+
- `ensure_private_dir(dir)`.
|
|
150
|
+
- Open with `os.open(path, os.O_RDWR | os.O_CREAT | os.O_NOFOLLOW | os.O_CLOEXEC, 0o600)` plus `os.fchmod(fd, 0o600)`. NEVER pass O_TRUNC: it would wipe a live holder's info.
|
|
151
|
+
- Wrap any OSError from mkdir/open as AccountLockError: 'cannot open the account lock file <path> (<strerror>) — fix the permissions of <dir>; nothing was changed'.
|
|
152
|
+
- Loop: try `fcntl.flock(fd, LOCK_EX | LOCK_NB)`. On success, break. Catch ONLY BlockingIOError as contention; any other OSError from flock becomes AccountLockError. Then compute elapsed from the injected monotonic. If elapsed has reached the next log time, emit a waiting line and advance the next log time by log_every (the first line is due at 0). If elapsed is at least max_wait, raise AccountLockTimeout. Otherwise sleep min(poll_interval, max_wait - elapsed).
|
|
153
|
+
- On success after any wait, emit 'account lock acquired after <dur> — starting'.
|
|
154
|
+
- Then write the holder JSON {pid: os.getpid(), job, command, started_at: now().isoformat(timespec='seconds')} with `os.ftruncate(fd, 0)` plus `os.pwrite(fd, data, 0)`.
|
|
155
|
+
- The waiter reads holder info with `os.pread` on its own fd (tolerant: empty, partial or bad JSON gives None).
|
|
156
|
+
|
|
157
|
+
Message formats (tests assert these substrings):
|
|
158
|
+
- Waiting line: 'waiting for account lock held by <who> since <since> — waited <dur> of max <cap> (PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT); this run starts when that one ends'.
|
|
159
|
+
- <who> is 'job <job> (pid <pid>, <command>)' when a job is known, 'a <command> run (pid <pid>)' without a job, and 'another pushframe run (holder details unavailable)' when unreadable (then the ' since …' part is omitted).
|
|
160
|
+
- <since> is the holder start converted to local time as HH:MM, prefixed with YYYY-MM-DD when it is not the waiter's current date.
|
|
161
|
+
- <dur> and <cap>: under 1h prints 'Nm', otherwise 'NhMMm' (43200 prints 12h00m, 900 prints 15m, 0 prints 0m).
|
|
162
|
+
- Sanitize job and command for display: keep only `[A-Za-z0-9._ -]`, at most 64 chars. pid must be an int, otherwise treat it as unknown.
|
|
163
|
+
- AccountLockTimeout str: 'account lock still held by <who> since <since> after waiting <dur> — this run changed nothing. If that run is legitimately long, raise PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT (seconds, default 43200 = 12h); if it is stuck, stop it (<stop>) — the lock frees itself the moment that process exits; never delete the lock file.' <stop> is 'systemctl --user stop pushframe-<job>.service' when a job is known, 'end pid <pid>' when only the pid is known, and 'find it with: pgrep -af pushframe' otherwise.
|
|
164
|
+
|
|
165
|
+
Re-entrancy: keep a module-level set of lock paths (str of the resolved path) held by this process. A second acquire of a held path returns a no-op AccountLock whose release does nothing, and only the outer release frees the lock. Remove the path in release.
|
|
166
|
+
|
|
167
|
+
Setting (U-04): in pushframe/utils/settings.py DEFAULTS add 'ACCOUNT_LOCK_MAX_WAIT': env ('PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT',) only (new key, so no legacy AURA_ spelling), default '43200', cast float. Add a comment saying that 0 or less means never wait.
|
|
168
|
+
|
|
169
|
+
CLI (U-02, U-05), in pushframe/cli.py:
|
|
170
|
+
- Add `_under_account_lock(write: bool, verb: str, job: str | None, run) -> int`. When write is False it returns run() untouched.
|
|
171
|
+
- Otherwise resolve max_wait from `settings.ACCOUNT_LOCK_MAX_WAIT` inside try/except (ValueError, TypeError). On a junk value, print 'note: PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT is not a number of seconds — using the default 43200 (12h)' and use 43200.0.
|
|
172
|
+
- Resolve the email via `pushframe.session.account_email()` inside a narrow try/except Exception that falls back to None. Rationale: a corrupt config is named by the run's own session gate, so this helper must not turn it into a traceback.
|
|
173
|
+
- Then `with runlock.account_run_lock(email, job=job, command=verb, max_wait=max_wait): return run()`. Catch ONLY AccountLockError around it: print f'{verb} failed: {e}' and return 1.
|
|
174
|
+
- Wire the `sync` branch of `_main`: after `_scheduled_run_header` and `_t0`, compute rc as `_under_account_lock(args.apply, 'sync', args.report_tag, lambda: run_sync(...unchanged args...))`. The footer and rotation stay after it, so the elapsed time honestly includes the wait.
|
|
175
|
+
- In `_build_write_budget`, replace the inline sha1 digest with `account_key(email)` imported from pushframe.runlock. Drop the now-unused `hashlib` import from cli.py only if nothing else uses it (grep first).
|
|
176
|
+
|
|
177
|
+
Conftest: in tests/conftest.py add an autouse fixture `_isolate_run_lock_dir`, modeled on `_isolate_google_wire_state`, that monkeypatches `pushframe.runlock.LOCK_DIR_OVERRIDE` to `tmp_path_factory.mktemp('run-locks')`. No test may touch the real ~/.local/state/pushframe.
|
|
178
|
+
|
|
179
|
+
Test hygiene:
|
|
180
|
+
- Set `PUSHFRAME_EMAIL` explicitly with monkeypatch.setenv in CLI tests, and point `settings.CONFIG_PATH` at tmp. `_main` calls load_dotenv, which never overrides an already-set var.
|
|
181
|
+
- The two-process child passes the lock dir as argv[1] and calls acquire_account_lock(..., lock_dir=Path(sys.argv[1])).
|
|
182
|
+
|
|
183
|
+
Do NOT touch pushframe/sync.py, gsync.py or the aws/ modules (U-07).
|
|
184
|
+
|
|
185
|
+
Commit: `feat(quick-261021-c1k): per-account run lock — module, setting, sync --apply wired`, with the Co-Authored-By trailer.
|
|
186
|
+
</action>
|
|
187
|
+
<verify>
|
|
188
|
+
<automated>uv run --extra dev pytest -q tests/test_runlock.py tests/test_budget_identity.py tests/test_schedule.py tests/test_pairs.py tests/test_settings_budget.py tests/test_settings_resolution.py -x</automated>
|
|
189
|
+
<automated>test -f pushframe/runlock.py && test "$(grep -v '^\s*#' pushframe/cli.py | grep -c 'hashlib.sha1')" -eq 0 && test "$(grep -v '^\s*#' pushframe/utils/settings.py | grep -c "'ACCOUNT_LOCK_MAX_WAIT'")" -eq 1</automated>
|
|
190
|
+
</verify>
|
|
191
|
+
<done>pushframe/runlock.py exists with the listed surface. The two-process test proves cross-process exclusion, holder info (pid plus job), and release on SIGKILL. `sync --apply` through `cli.main` runs under the real lock while a dry-run `sync` does not. The budget and the lock share `account_key`. Baselines: the cli.py sha1 grep count goes from 1 to 0 and the settings key count from 0 to 1. Targeted tests green.</done>
|
|
192
|
+
</task>
|
|
193
|
+
|
|
194
|
+
<task type="auto" tdd="true">
|
|
195
|
+
<name>Task 2: expand the lock to push / google-sync (incl. --report, --pair, --all) / reconcile --remove; prove read-only verbs never touch it</name>
|
|
196
|
+
<files>pushframe/cli.py, tests/test_runlock_cli.py</files>
|
|
197
|
+
<read_first>pushframe/cli.py lines 2520-2670 (dispatch as left by Task 1), tests/test_pairs.py lines 70-100 (gsync dispatch fake pattern), tests/test_report.py lines 600-640 (google-sync --report dispatch tests)</read_first>
|
|
198
|
+
<behavior>
|
|
199
|
+
- Write matrix (each with PUSHFRAME_EMAIL set and the handler faked; inside the fake, a raw LOCK_NB flock on lock_path_for(email) raises BlockingIOError, so the lock is held during the call): push (`push d --frame X --apply --yes`, fake cli.run_sync); google-sync (`google-sync A --frame F --apply --yes`, `google-sync --pair p --apply --yes`, `google-sync --all --apply --yes`, fake pushframe.gsync.run_google_sync); google-sync --report (`google-sync A --frame F --apply --yes --report INFO`, with `cli._deliver_report` patched to a recorder); reconcile (`reconcile --frame X --remove --yes`, fake cli.run_reconcile).
|
|
200
|
+
- Read-only matrix (pushframe.runlock.acquire_account_lock patched to a spy that records calls, and zero calls are recorded): `status` (fake cli.run_status), `inspect --frame X` (fake cli.run_inspect), `doctor` (fake pushframe.doctor.run_doctor), `sync d --frame X`, `push d --frame X`, `google-sync A --frame F`, `google-sync --pair p`, and `reconcile --frame X`.
|
|
201
|
+
- Contended CLI: the lock is pre-held by a raw fd with holder JSON job=SALON-CADRE pid=4242 command=google-sync started_at …T00:13:00, and PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT=0. Running `main(['sync', d, '--frame', 'X', '--apply', '--yes', '--scheduled', '--report-tag', 'nightly'])` gives rc 1 and the fake run_sync is never called. Stdout: the first line starts with '=== run ', and stdout contains 'sync failed: account lock still held by job SALON-CADRE (pid 4242', '00:13', 'PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT' and '=== run end rc=1'. 'Traceback' is in neither stdout nor stderr. The same contended setup on google-sync and on reconcile --remove gives rc 1 with 'google-sync failed: account lock' and 'reconcile failed: account lock' respectively.
|
|
202
|
+
- Junk cap: PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT=soon, uncontended, sync --apply. The fake runs, rc 0, and stdout carries the 'note: PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT is not a number of seconds' line, with no traceback.
|
|
203
|
+
- No identity: PUSHFRAME_EMAIL and AURA_EMAIL deleted, tmp config without email, and `cli.load_dotenv` patched to a no-op so a developer .env cannot re-inject an email. sync --apply runs the fake, rc 0, stderr contains 'account lock: no account identity', and stdout carries no 'note:'.
|
|
204
|
+
- Exit-code integrity: the rc returned by each faked handler (0, 1, 2) propagates unchanged through _under_account_lock for every write verb.
|
|
205
|
+
</behavior>
|
|
206
|
+
<action>
|
|
207
|
+
RED first. Create tests/test_runlock_cli.py with the behavior matrix above. Isolate config through a local `cfg_path` fixture (settings.CONFIG_PATH pointed at tmp) and set the email through monkeypatch.setenv. Commit: `test(quick-261021-c1k): add failing run-lock dispatch matrix`.
|
|
208
|
+
|
|
209
|
+
GREEN. In pushframe/cli.py `_main`, wrap the remaining write verbs exactly like the Task 1 sync branch (U-02):
|
|
210
|
+
- push: `_under_account_lock(args.apply, 'push', args.report_tag, lambda: run_sync(...unchanged push args...))`, after the header and `_t0`.
|
|
211
|
+
- google-sync: wrap BOTH branches with `_under_account_lock(args.apply, 'google-sync', args.report_tag, lambda: run_google_sync(...unchanged args...))`. In the `--report` branch the call goes INSIDE the `with contextlib.redirect_stdout(_Tee(...))` block, so waiting lines and a cap failure land in the emailed report as well as the live stdout. `_deliver_report` still receives the real rc. The `--pair`/`--all` loop lives inside run_google_sync, so it is covered by the one dispatch-level lock and never re-acquires.
|
|
212
|
+
- reconcile: `_under_account_lock(args.remove, 'reconcile', None, lambda: run_reconcile(...unchanged args...))`.
|
|
213
|
+
|
|
214
|
+
Leave status, inspect, doctor, google-link, google-album, config, pair, schedule and logout untouched. They never call the helper (U-05; doctor stays lock-free per the user's list).
|
|
215
|
+
|
|
216
|
+
Keep every handler's argument list byte-identical. The lambdas only defer the call. Do not change run_sync, run_google_sync, run_reconcile or their internals. Do not touch sync.py, gsync.py or aws/ (U-07: the classify_write_failure and credential-refresh seams stay as they are).
|
|
217
|
+
|
|
218
|
+
Commit: `feat(quick-261021-c1k): run lock covers push, google-sync (pair/all/report) and reconcile --remove`, with the Co-Authored-By trailer.
|
|
219
|
+
</action>
|
|
220
|
+
<verify>
|
|
221
|
+
<automated>uv run --extra dev pytest -q tests/test_runlock_cli.py tests/test_runlock.py tests/test_schedule.py tests/test_pairs.py tests/test_report.py tests/test_cli_reconcile.py tests/test_cli_sync.py tests/test_cli_apply.py tests/test_gsync_execute.py tests/test_breaker_item_failures.py tests/test_aws_credential_refresh.py -x</automated>
|
|
222
|
+
<automated>test "$(grep -v '^\s*#' pushframe/cli.py | grep -c '_under_account_lock(')" -ge 6</automated>
|
|
223
|
+
</verify>
|
|
224
|
+
<done>Every write verb (sync, push, google-sync in its single/pair/all/report shapes, reconcile --remove) runs under the per-account lock. Every read-only verb and dry-run is proven never to call the acquire. A contended run fails named (exit 1, header and footer intact, no traceback). A junk cap falls back with a note, and no identity skips with a stderr note. Baseline: 0 `_under_account_lock(` call sites before; at least 6 after (the definition plus sync, push, two google-sync branches and reconcile). The regression files for 566a28f and 90bfb15 are green.</done>
|
|
225
|
+
</task>
|
|
226
|
+
|
|
227
|
+
<task type="auto">
|
|
228
|
+
<name>Task 3: document the lock (ERRORS.md, CLI.md, config set --help) + CHANGELOG [Unreleased]; full offline suite</name>
|
|
229
|
+
<files>docs/ERRORS.md, docs/CLI.md, pushframe/cli.py, tests/test_report.py, CHANGELOG.md</files>
|
|
230
|
+
<read_first>docs/ERRORS.md section "Writes, budget, pacing", docs/CLI.md sections "Scheduling — systemd USER timers", "Environment variables" (optional budget table at ~line 1030) and "Every config set key, explained" (anti-abuse table), pushframe/cli.py config set --help text (~lines 855-880, the 'Anti-abuse / write budget' group), tests/test_report.py test_config_set_help_explains_every_key_group (~line 658), CHANGELOG.md top (no [Unreleased] section yet; scripts/release.sh expects the literal '## [Unreleased]')</read_first>
|
|
231
|
+
<action>
|
|
232
|
+
docs/ERRORS.md, table "Writes, budget, pacing", add three rows:
|
|
233
|
+
- (a) The 'waiting for account lock held by job … (pid …, …) since HH:MM — waited … of max …' line. Meaning: another pushframe write run on the same account is active. Writes are serialized per account, so two jobs never double the write rate or race the budget file. Action: nothing, this is NORMAL. The line repeats every 5 minutes, and dry-runs/status/inspect/doctor never wait.
|
|
234
|
+
- (b) '<verb> failed: account lock still held by … after waiting …'. Meaning: the safety cap (PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT, default 12h) was hit and the run changed nothing. Action: the message's remedy (inspect or stop that job with systemctl --user stop pushframe-<job>.service, or raise the cap). The lock frees itself when its process exits, so never delete the lock file.
|
|
235
|
+
- (c) 'cannot open the account lock file …' plus the 'account lock: no account identity' stderr note. Fix permissions of ~/.local/state/pushframe/locks / run `pushframe config` once.
|
|
236
|
+
|
|
237
|
+
docs/CLI.md:
|
|
238
|
+
- In "Scheduling", add a third bullet to "Two safety properties in scheduled mode" and rename the heading to "Three". The bullet is "One write run per account at a time": the whole run is locked; a waiter logs the holder; the kernel releases the lock on exit, crash or kill; the 12h cap is the configurable safety net; systemd oneshot units are not killed while waiting; read-only verbs never wait.
|
|
239
|
+
- In the "Optional — write budget and geo guard" env table, add `PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT` | `43200` | max seconds a write run waits for another run on the same account (0 = never wait).
|
|
240
|
+
- In the anti-abuse "config set" key table, add `ACCOUNT_LOCK_MAX_WAIT` with the same meaning.
|
|
241
|
+
|
|
242
|
+
pushframe/cli.py config set --help text: in the 'Anti-abuse / write budget' group, add a line for ACCOUNT_LOCK_MAX_WAIT ('Max seconds a write run waits for another run on the same account (43200 = 12h; 0 = never wait)') in the existing column style.
|
|
243
|
+
|
|
244
|
+
tests/test_report.py: add 'ACCOUNT_LOCK_MAX_WAIT' to the key tuple in test_config_set_help_explains_every_key_group.
|
|
245
|
+
|
|
246
|
+
CHANGELOG.md: insert '## [Unreleased]' plus '### Added' directly above '## [5.1.38] - 2026-10-18'. Write one entry (U-07) in the existing prose style. It covers: the per-account run lock for every write run (sync/push/google-sync --apply, reconcile --remove) held for the whole run, so concurrent scheduled jobs on one account are serialized and can no longer double the write rate or lose WriteBudget updates; the waiting log line naming the holder job/pid/start; the PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT cap (12h default) ending in a named error with a remedy; release on process death; read-only verbs untouched.
|
|
247
|
+
|
|
248
|
+
Do NOT bump the version, do NOT run scripts/release.sh, do NOT tag or publish.
|
|
249
|
+
|
|
250
|
+
Run the full offline suite. Commit: `docs(quick-261021-c1k): document the per-account run lock; CHANGELOG [Unreleased]`, with the Co-Authored-By trailer.
|
|
251
|
+
</action>
|
|
252
|
+
<verify>
|
|
253
|
+
<automated>uv run --extra dev pytest -q -m "not live"</automated>
|
|
254
|
+
<automated>test "$(grep -c '^## \[Unreleased\]' CHANGELOG.md)" -eq 1 && test "$(grep -c 'ACCOUNT_LOCK_MAX_WAIT' docs/CLI.md)" -ge 2 && test "$(grep -c 'waiting for account lock' docs/ERRORS.md)" -ge 1 && test "$(grep -c 'account lock still held' docs/ERRORS.md)" -ge 1 && test "$(grep -v '^\s*#' tests/test_report.py | grep -c "'ACCOUNT_LOCK_MAX_WAIT'")" -ge 1</automated>
|
|
255
|
+
</verify>
|
|
256
|
+
<done>The full offline suite is green: 871 baseline plus the new run-lock tests, 0 failures, 0 warnings. Docs baselines: the CHANGELOG [Unreleased] count goes from 0 to 1, ACCOUNT_LOCK_MAX_WAIT in docs/CLI.md from 0 to at least 2, and ERRORS.md gains the waiting and cap rows (from 0 to at least 1 each). `pushframe config set --help` lists ACCOUNT_LOCK_MAX_WAIT. No version bump, tag or publish.</done>
|
|
257
|
+
</task>
|
|
258
|
+
|
|
259
|
+
</tasks>
|
|
260
|
+
|
|
261
|
+
<threat_model>
|
|
262
|
+
## Trust Boundaries
|
|
263
|
+
|
|
264
|
+
| Boundary | Description |
|
|
265
|
+
|----------|-------------|
|
|
266
|
+
| process ↔ process (same user) | Concurrent pushframe runs coordinate through a kernel flock on a file in the user's private state dir |
|
|
267
|
+
| lock file → waiter display | Holder info written by another process is parsed and printed into logs and emailed reports |
|
|
268
|
+
|
|
269
|
+
## STRIDE Threat Register
|
|
270
|
+
|
|
271
|
+
| Threat ID | Category | Component | Severity | Disposition | Mitigation Plan |
|
|
272
|
+
|-----------|----------|-----------|----------|-------------|-----------------|
|
|
273
|
+
| T-c1k-01 | Information disclosure | lock file holder JSON | medium | mitigate | Holder JSON carries only pid, job tag, verb and start time. No email, token, album target, share link or path. The test asserts the email is absent from the file bytes. The file is 0600 in a 0700 dir (ensure_private_dir plus fchmod) |
|
|
274
|
+
| T-c1k-02 | Tampering | holder info shown to waiters | low | mitigate | Tolerant parse (bad JSON gives "holder details unavailable"). Job/verb are sanitized to `[A-Za-z0-9._ -]` and at most 64 chars, and pid must be an int, so no log or email-report injection through a crafted tag |
|
|
275
|
+
| T-c1k-03 | Tampering | lock path | low | mitigate | os.open with O_NOFOLLOW and O_CLOEXEC in a 0700 dir owned by the user (no symlink redirection; the fd is never inherited by child processes such as Chrome, so a child can never keep the lock alive). No O_TRUNC on open, so a waiter cannot erase the holder's info |
|
|
276
|
+
| T-c1k-04 | Denial of service | hung holder blocks every write run of the account | medium | mitigate | A configurable cap (PUSHFRAME_ACCOUNT_LOCK_MAX_WAIT, default 12h) ends the wait as the named AccountLockTimeout with the stop/raise remedy. The kernel releases on death (proved by the SIGKILL test). Read-only verbs never wait |
|
|
277
|
+
| T-c1k-05 | Denial of service | unlink race (two inodes locked at once) | medium | mitigate | The code never unlinks the lock file, and docs and the timeout message say never to delete it |
|
|
278
|
+
| T-c1k-06 | Elevation of privilege | other local users | low | accept | The lock dir is 0700 under the user's HOME, so other users can neither hold nor read it. Root is out of scope |
|
|
279
|
+
| T-c1k-SC | Tampering | npm/pip/cargo installs | low | accept | No new dependencies: stdlib `fcntl`/`os` only. No package-manager install task exists, so the legitimacy gate is not triggered |
|
|
280
|
+
</threat_model>
|
|
281
|
+
|
|
282
|
+
<verification>
|
|
283
|
+
- `uv run --extra dev pytest -q -m "not live"` is green (871 baseline plus new tests) with zero warnings.
|
|
284
|
+
- The two-process test in tests/test_runlock.py proves real cross-process exclusion, holder info (child pid plus job) visible to the waiter, per-account scoping (another email is never blocked), and kernel release on SIGKILL.
|
|
285
|
+
- The dispatch matrix in tests/test_runlock_cli.py proves every write verb is locked for the whole handler call and every read-only verb or dry-run never calls the acquire.
|
|
286
|
+
- The regression files for the two most recent commits (tests/test_breaker_item_failures.py, tests/test_aws_credential_refresh.py) are untouched and green. pushframe/sync.py, pushframe/gsync.py and pushframe/aws/ are unmodified (check with `git diff --stat HEAD~N -- pushframe/sync.py pushframe/gsync.py pushframe/aws/`, which should be empty).
|
|
287
|
+
- `git log -3 --format=%B` shows the Co-Authored-By trailer on every task commit. There is no new tag and `pushframe/__init__.py` `__version__` is unchanged (5.1.38).
|
|
288
|
+
</verification>
|
|
289
|
+
|
|
290
|
+
<success_criteria>
|
|
291
|
+
- Two scheduled jobs on the same account that fire together run one after the other: the second logs 'waiting for account lock held by job <first> (pid N, <verb>) since HH:MM' every 5 minutes, then 'account lock acquired after …', then plans fresh.
|
|
292
|
+
- A wait past the cap exits 1 with '<verb> failed: account lock still held by …' plus a remedy. There is no traceback, nothing was changed, and the job log footer shows rc=1.
|
|
293
|
+
- status, inspect, doctor and every dry-run behave exactly as before (no lock file is created, no wait).
|
|
294
|
+
- The WriteBudget file and the lock share one account key helper, so locked runs serialize the budget's load-consume-save cycle.
|
|
295
|
+
- Docs (ERRORS.md, CLI.md, config set --help) and the CHANGELOG [Unreleased] entry describe the behavior. No release artifacts.
|
|
296
|
+
</success_criteria>
|
|
297
|
+
|
|
298
|
+
<output>
|
|
299
|
+
Create `.planning/quick/261021-c1k-per-account-run-lock-for-scheduled-jobs/261021-c1k-SUMMARY.md` when done
|
|
300
|
+
</output>
|