Done Work Item
Test suite refactor Phase 3: SIT suite script and nightly GitHub workflow
Implement Phase 3 of BUILD_FACTORY_TEST_SUITE_REFACTOR_EXECUTION_PLAN_V1. Create the system integration test (SIT) suite script and the nightly GitHub Actions workflow that invokes it. This removes SIT tests from the PR gate, reducing gate time further, while ensuring SIT coverage runs on a scheduled nightly cadence. The nightly workflow must NOT be a required status check on PRs. SIT tests include end-to-end factory flows, cross-script integration, and longer-running validation that should not block developer PRs. Deliverables: (1) scripts/tests/sit/run-sit-suite.ps1 — runs all tests tagged 'sit' or 'integration' from factory-test-taxonomy.v1.json. (2) .github/workflows/factory-tests-nightly.yml — scheduled workflow (nightly, main branch) that invokes run-sit-suite.ps1 and posts a summary. Workflow must exist (referenced in factory-test-workflow-map.v1.json but currently missing). Config-driven from taxonomy; no hardcoded ID lists. SIT suite must also be manually invokable locally via run-sit-suite.ps1.
Execution Context
- ID
- wi-BF-186
- Branch
- bf/BF-186-test-phase3-sit-suite-nightly-workflow
- Validation
- ./scripts/validate-local.ps1
- PR
- https://github.com/SingletonTheory/build-factory-bootstrap/pull/197
Lifecycle Metadata
- Lane
- Done
- Work type
- implementation
- Source
- done
- Status
- done
- State
- done
- Done criteria
- 2
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-186.prompt.md
Implement Phase 3 of BUILD_FACTORY_TEST_SUITE_REFACTOR_EXECUTION_PLAN_V1. Create the system integration test (SIT) suite script and the nightly GitHub Actions workflow that invokes it. This removes SIT tests from the PR gate, reducing gate time further, while ensuring SIT coverage runs on a scheduled nightly cadence. The nightly workflow must NOT be a required status check on PRs. SIT tests include end-to-end factory flows, cross-script integration, and longer-running validation that should not block developer PRs. Deliverables: (1) scripts/tests/sit/run-sit-suite.ps1 — runs all tests tagged 'sit' or 'integration' from factory-test-taxonomy.v1.json. (2) .github/workflows/factory-tests-nightly.yml — scheduled workflow (nightly, main branch) that invokes run-sit-suite.ps1 and posts a summary. Workflow must exist (referenced in factory-test-workflow-map.v1.json but currently missing). Config-driven from taxonomy; no hardcoded ID lists. SIT suite must also be manually invokable locally via run-sit-suite.ps1.
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-186/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-186/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-186/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-186/actions/record-history