بنقرة واحدة
test-platform-worker
// Harden shared test infrastructure, runtime readiness, schema setup, and parallel lane behavior.
// Harden shared test infrastructure, runtime readiness, schema setup, and parallel lane behavior.
| name | test-platform-worker |
| description | Harden shared test infrastructure, runtime readiness, schema setup, and parallel lane behavior. |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the work procedure.
Use for features that change shared validation infrastructure: runtime readiness, pgschema environment projection, dedicated test-schema setup, browser-lane gating, CI/local test topology, and parallel execution policy.
vite-plus — use for repo-local JS/toolchain commands and website command execution.agent-browser — use when validating browser startup, shell reachability, or HTTP/browser readiness for the website runtime.mission.md, mission AGENTS.md, .factory/services.yaml, and .factory/library/*.md relevant to runtime/test topology..factory/services.yaml.80805432pgschema as the only schema reconciliation path5173agent-browser for one real browser smoke check after the runtime is reachable
If the feature is backend-only or only changes OpenAPI/bootstrap/runtime plumbing without browser-visible effects, targeted backend/runtime evidence is sufficient and agent-browser is optional.services.yaml, .factory/library/*, mission AGENTS.md if instructed by orchestrator).{
"salientSummary": "Aligned local validation to reuse 8080/5173, fixed the PG* projection path for pgschema, and made readiness checks depend on reachable HTTP probes instead of startup logs. `go test ./apps/backend/internal/bootstrap/... -count=1` and the browser smoke path are now green.",
"whatWasImplemented": "Updated runtime/test infrastructure so the mission uses one canonical local path: backend on 8080, website on 5173, external Postgres on 5432 with a dedicated test schema managed by pgschema. Fixed the failing bootstrap/runtime setup, added explicit readiness gating, and verified the browser lane against the real reused runtime.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "go test ./apps/backend/internal/bootstrap/... -count=1",
"exitCode": 0,
"observation": "Bootstrap tests passed after env/schema alignment changes."
},
{
"command": "PGHOST=localhost PGPORT=5432 PGDATABASE=opentoggl PGUSER=opentoggl pgschema plan --file apps/backend/internal/platform/schema/schema.sql",
"exitCode": 0,
"observation": "Plan executed successfully against the external Postgres service."
},
{
"command": "vp run test:e2e:website -- --list",
"exitCode": 0,
"observation": "Website E2E inventory is available against the reused local runtime."
}
],
"interactiveChecks": [
{
"action": "Opened the reused website runtime with agent-browser after HTTP probe success and navigated into the shell.",
"observed": "The site loaded on 5173 and the shell was interactive without readiness races."
}
]
},
"tests": {
"added": [
{
"file": "apps/backend/internal/bootstrap/...",
"cases": [
{
"name": "runtime readiness uses canonical PG* projection",
"verifies": "pgschema and backend startup follow one aligned env path"
}
]
}
]
},
"discoveredIssues": []
}
localhost:5432, localhost:6379, reused 8080/5173 runtime)Use when working in this repository after receiving recurring coding feedback, adding or reviewing durable lint guardrails from AGENTS.md, updating Rules/*.md, or finishing changes that should be checked by harness-lint.
Build and verify real-Postgres Go tests and thin transport smoke for tracking behavior.
Build and verify page-flow and E2E coverage for the tracking browser surface.
Build cross-layer regression coverage that ties browser-visible behavior to backend truth.
Update backend timer/time-entry contracts, regressions, and source docs for the timer refactor mission.
Audit and finalize inline source-document status blocks for the timer refactor mission.