molecule-core/workspace-server/internal/models
Molecule AI Fullstack Engineer e86f3bbda6
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 8s
sop-tier-check / tier-check (pull_request) Successful in 8s
sop-checklist-gate / gate (pull_request) Successful in 8s
CI / Detect changes (pull_request) Successful in 13s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 5s
CI / Canvas (Next.js) (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 6s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / Platform (Go) (pull_request) Failing after 3m2s
CI / all-required (pull_request) Successful in 9s
sop-checklist / all-items-acked (pull_request) [info tier:low] acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, l
audit-force-merge / audit (pull_request) Successful in 4s
test(models+handlers): add delivery mode + workspace status coverage
Add two test files covering the delivery-mode and workspace-status
enforcement contracts:

- models/workspace_delivery_mode_test.go:
  - IsValidDeliveryMode: true for "push"/"poll", false for all
    other inputs (empty, typos, case variants, trailing space)
  - WorkspaceStatus.String(): returns the underlying string for all 10
    status constants
  - AllWorkspaceStatuses: correct length (10) and membership of all
    named constants, no empty strings

- handlers/workspace_dispatchers_test.go:
  - resolveDeliveryMode: payloadMode wins without DB query, existing
    DB mode returned when present, external runtime defaults to poll,
    self-hosted defaults to push, not-found defaults to push,
    DB errors propagate, empty-string existing mode falls through
    to runtime check

Refs #860
2026-05-13 16:14:09 +00:00
..
architecture_test.go test(arch): codify 4 module boundaries as architecture tests (#2344) 2026-04-29 22:12:58 -07:00
event.go
runtime_defaults_test.go refactor(models): consolidate per-runtime model defaults to SSOT (RFC #2873 iter 1) 2026-05-05 04:12:37 -07:00
runtime_defaults.go refactor(models): consolidate per-runtime model defaults to SSOT (RFC #2873 iter 1) 2026-05-05 04:12:37 -07:00
workspace_delivery_mode_test.go test(models+handlers): add delivery mode + workspace status coverage 2026-05-13 16:14:09 +00:00
workspace_status.go refactor(workspace-status): typed constants + AST-based drift gate 2026-04-30 10:41:41 -07:00
workspace.go feat(workspaces): delivery_mode column + poll-mode register flow (#2339 PR 1) 2026-04-29 21:47:14 -07:00