Done Work Item
Staging environment topology + branch-based deploy pipeline and backup/recovery strategy
Establish the staging environment and production backup/recovery strategy to complete the production operations lifecycle. Staging: configure a staging subdomain (staging.domain.com) on the same or a separate VPS, configure the GitHub Actions staging deploy pipeline (triggers on PR merge to a staging branch, deploys to staging VPS, runs health check). Backup: implement SQLite backup strategy — nightly cron job copies SQLite file to a remote storage bucket (S3-compatible: Backblaze B2 or DigitalOcean Spaces), backup retention policy (30 days), restore procedure tested and documented. Monitoring: configure Uptime Robot (free tier) to check /api/health every 5 minutes and alert on downtime. All setup documented in production-runbook.md.
Execution Context
- ID
- wi-BF-276
- Branch
- bf/BF-276-staging-environment-backup-recovery
- Validation
- ./scripts/validate-local.ps1
- PR
- https://github.com/SingletonTheory/build-factory-bootstrap/pull/323
Lifecycle Metadata
- Lane
- Done
- Work type
- operations
- Source
- done
- Status
- done
- State
- done
- Done criteria
- 32
Queue Truth
Freshness: Fresh (snapshot age 0s)
Drift: none.
Reconciliation Guidance
- No reconciliation required; item truth signals are consistent.
Prompt Context
./work-items/prompts/wi-BF-276.prompt.md
Establish the staging environment and production backup/recovery strategy to complete the production operations lifecycle. Staging: configure a staging subdomain (staging.domain.com) on the same or a separate VPS, configure the GitHub Actions staging deploy pipeline (triggers on PR merge to a staging branch, deploys to staging VPS, runs health check). Backup: implement SQLite backup strategy — nightly cron job copies SQLite file to a remote storage bucket (S3-compatible: Backblaze B2 or DigitalOcean Spaces), backup retention policy (30 days), restore procedure tested and documented. Monitoring: configure Uptime Robot (free tier) to check /api/health every 5 minutes and alert on downtime. All setup documented in production-runbook.md.
Available Actions
- Start executionBlocked
Queue execution handoff for this work item.
Recovery guidance
- Cause
- Done items stay closed; Start execution cannot move them backward.
- Policy context
- Lane transition policy blocks Start execution when the item is already Done.
- Next step
- Create a net-new work item if more delivery is needed instead of reopening this one.
- Safe retry
- Do not retry Start execution on a done item.
identity: start-execution
permission: factory.work-item.execute
policy gate lane-transition: blocked (Done items stay closed; Start execution cannot move them backward.)
POST /api/control-plane/items/wi-BF-276/actions/start-execution
- Request reviewBlocked
Mark this item ready for review lane handoff.
Recovery guidance
- Cause
- Done items stay closed; Request review cannot move them backward.
- Policy context
- Lane transition policy blocks Request review when the item is already Done.
- Next step
- Create a net-new work item if more delivery is needed instead of reopening this one.
- Safe retry
- Do not retry Request review on a done item.
identity: request-review
permission: factory.work-item.request-review
policy gate lane-transition: blocked (Done items stay closed; Request review cannot move them backward.)
POST /api/control-plane/items/wi-BF-276/actions/request-review
- Prepare releaseEnabled
Run release-preparation checks for the work item.
identity: prepare-release
permission: factory.work-item.prepare-release
policy gate lane-eligibility: pass
policy gate pull-request: pass
POST /api/control-plane/items/wi-BF-276/actions/prepare-release
- Record historyEnabled
Capture history snapshots for audit and validation views.
identity: record-history
permission: factory.work-item.record-history
policy gate context-visibility: pass
POST /api/control-plane/items/wi-BF-276/actions/record-history