一键导入
governance-worker
Implement mission governance, policy controls, scheduling/notifications, team rails, and audit consistency.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement mission governance, policy controls, scheduling/notifications, team rails, and audit consistency.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement a bounded OpenBurnBar Windows parity milestone from reviewed VAL contracts with main-app composition, focused tests, baseline discipline, and Windows-host evidence preparation.
Runs a long-running mission using the Zenith continuous-improvement harness to dynamically orchestrate workers, testing, and stopping discipline.
Design consultation: understands your product, researches the landscape, proposes a complete design system (aesthetic, typography, color, layout, spacing, motion), and generates font+color preview pages. Creates DESIGN.md as your project's design source of truth. For existing sites, use /plan-design-review to infer the system instead. Use when asked to "design system", "brand guidelines", or "create DESIGN.md".
Use when asked about AI-agent spend, token usage, session history, workflow patterns, or cost investigations. Grounds all answers in OpenBurnBar/BurnBar local data via prompt context and MCP tools.
Run OpenBurnBar functional QA and write qa-results/report.md plus supporting artifacts.
Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".
| name | governance-worker |
| description | Implement mission governance, policy controls, scheduling/notifications, team rails, and audit consistency. |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the work procedure.
Use for governance/control-plane features: one-question closure invariant, PR lifecycle linkage contracts, scheduled reviews/notifications, team collaboration rails, enterprise policy controls, and audit/event consistency.
None.
Start from fulfills IDs and identify daemon/core/app/extension contract touchpoints.
Add failing tests first in core/daemon and any necessary app/extension projection tests for parity.
Implement contract-safe mutations with strict invariants:
Ensure reason codes map consistently across daemon/app/extension surfaces.
Run validation commands:
commands.test_core_contracts (swift test --package-path OpenBurnBarCore --filter BurnBarMissionControlContractsTests)commands.test_daemon_mission (swift test --package-path OpenBurnBarDaemon --filter BurnBarMissionControlServiceTests)commands.test_daemon_rpc (swift test --package-path OpenBurnBarDaemon --filter BurnBarDaemonServerTests)commands.test_app_operating (xcodebuild test -project OpenBurnBar.xcodeproj -scheme OpenBurnBar -destination "platform=macOS,arch=arm64" -only-testing:"OpenBurnBarTests/OpenBurnBarOperatingComposerTests" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY='' DEVELOPMENT_TEAM='')commands.test_extension_unit (npm --prefix extensions/openburnbar run test:unit -- test/projections.test.ts test/extension.test.ts)AgentLensTests operating-composer test selector; the active app target is OpenBurnBarTests/OpenBurnBarOperatingComposerTests.Mission-scoped validation-contract path: Each mission's validation contract lives at {missionDir}/validation-contract.md (e.g., ~/.factory/missions/{missionId}/validation-contract.md). The canonical test filter names (e.g., BurnBarMissionControlContractsTests) are defined in .factory/services.yaml and match the actual XCTest target class names.
CI fallback for app test execution: When running the full app test suite, use CI=true scripts/test-openburnbar-app.sh to enable headless/CI-appropriate test execution. Without the CI=true prefix, the script may attempt GUI-interactive test modes unsuitable for CI environments.
Evidence rigor for handoff finalization:
commandsRun. Each verificationStep must have at least one corresponding command run with its exit code and observation.fulfills, confirm the surface(s) it targets (daemon/core/app/extension) and include evidence from each surface. If an assertion spans multiple surfaces (e.g., VAL-CROSS- assertions), evidence from ALL surfaces is required before handoff.swift test --package-path OpenBurnBarDaemon --filter BurnBarDaemonServerTests AND ./scripts/test-openburnbar-extension-host.sh and include both outputs in handoff evidence.verification.commandsRun, explicitly note which assertions are verified by each command and confirm all fulfills IDs have corresponding evidence.{
"salientSummary": "Implemented mission-scoped closure-question uniqueness and enterprise policy blocks with cross-surface reason-code parity.",
"whatWasImplemented": "Added mission-scoped closure question dedupe/reject semantics, typed enterprise policy config with budget and approval modes, scheduled review generation metadata, and reason-code projection mapping used by app and extension parity views.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "swift test --package-path OpenBurnBarDaemon --filter BurnBarMissionControlServiceTests",
"exitCode": 0,
"observation": "Governance invariants and scheduling tests passed. Covers VAL-GOV-001, VAL-GOV-002, VAL-GOV-006, VAL-GOV-008, VAL-GOV-010."
},
{
"command": "swift test --package-path OpenBurnBarDaemon --filter BurnBarDaemonServerTests",
"exitCode": 0,
"observation": "Connector and server contract parity tests passed. Covers VAL-GOV-003."
},
{
"command": "xcodebuild test -project OpenBurnBar.xcodeproj -scheme OpenBurnBar -destination \"platform=macOS,arch=arm64\" -only-testing:\"OpenBurnBarTests/OpenBurnBarOperatingComposerTests\" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY='' DEVELOPMENT_TEAM=''",
"exitCode": 0,
"observation": "App surface governance UI tests passed."
},
{
"command": "npm --prefix extensions/openburnbar run test:unit -- test/projections.test.ts test/extension.test.ts",
"exitCode": 0,
"observation": "Extension projection parity tests passed. Covers VAL-EXT-007, VAL-EXT-008."
},
{
"command": "./scripts/test-openburnbar-extension-host.sh",
"exitCode": 0,
"observation": "Extension host integration smoke passed. Covers VAL-CROSS-010 parity between app and extension authoring."
}
],
"interactiveChecks": []
},
"tests": {
"added": [
{
"file": "OpenBurnBarDaemon/Tests/OpenBurnBarDaemonTests/OpenBurnBarMissionControlServiceTests.swift",
"cases": [
{
"name": "testClosureQuestionUniquenessPerMission",
"verifies": "Exactly one closure approval question invariant (VAL-GOV-006)"
}
]
}
]
},
"discoveredIssues": []
}
Evidence rigor requirements for handoff:
verificationStep from the feature definition must appear in verification.commandsRun with exit code and concrete observation.fulfills assertion ID must be listed in at least one command's observation field.swift test --package-path OpenBurnBarDaemon --filter BurnBarDaemonServerTests AND ./scripts/test-openburnbar-extension-host.sh and include both outputs.commands: install: ./.factory/init.sh typecheck: xcodebuild build-for-testing -project OpenBurnBar.xcodeproj -scheme OpenBurnBar -destination "platform=macOS,arch=arm64" -clonedSourcePackagesDirPath .spm-cache -derivedDataPath .derived-data/ci-typecheck CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO lint: npm --prefix extensions/openburnbar run lint test: scripts/test-openburnbar-swift.sh && CI=true scripts/test-openburnbar-app.sh && scripts/test-openburnbar-ts.sh test_daemon_mission: swift test --package-path OpenBurnBarDaemon --filter BurnBarMissionControlServiceTests test_daemon_runtime: swift test --package-path OpenBurnBarDaemon --filter BurnBarRunServiceTests test_daemon_rpc: swift test --package-path OpenBurnBarDaemon --filter BurnBarDaemonServerTests test_core_contracts: swift test --package-path OpenBurnBarCore --filter BurnBarMissionControlContractsTests test_router: swift test --package-path OpenBurnBarDaemon --filter BurnBarProviderRouterTests test_app_operating: xcodebuild test -project OpenBurnBar.xcodeproj -scheme OpenBurnBar -destination "platform=macOS,arch=arm64" -only-testing:"OpenBurnBarTests/OpenBurnBarOperatingComposerTests" CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY='' DEVELOPMENT_TEAM='' test_extension_unit: npm --prefix extensions/openburnbar run test:unit -- test/controller.test.ts test/projections.test.ts test/workspacePanel.test.ts test/extension.test.ts test_extension_host: ./scripts/test-openburnbar-extension-host.sh test_real_integration_smoke: ./scripts/test-openburnbar-extension-host.sh && swift test --package-path OpenBurnBarDaemon --filter BurnBarDaemonServerTests build: scripts/build.sh --build --configuration Debug --cache-dir .spm-cache --derived-data .derived-data/ci-build
services: {}