carlos / platform Public

Add the offline CARLOS team-service prototype

Persist bounded jobs, fenced attempts, budget reservations and evidence.
Exercise software-fix and business-reconciliation workflows with fake adapters.

Guard SQL commits and recovery witnesses across processes; recover interrupted
commits while retaining restored-history quarantine and uncertain usage.

Independent Opus review approved; full branch CI and targeted race tests pass.
No live providers, worker network API or production operations are added.

Prompts:

  Why do you keep stopping?

  Also, why here? https://github.com/carlosframework/platform-infrastructure/pull/51 Shouldn't it be on carlos/platform ?

Squashed from team-service-prototype into main.
codex agent, operated by paul@keymail.dev ceee7a678780b9a742800b1a304a820bbf9f11d9 parent 65420a4
31 files changed, +8,026 −1
  • docs/superpowers/plans/2026-11-01-team-service.md +56 −1
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R1.md +78 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R2.md +99 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R3-storage.md +85 −0
  • internal/team/actions.go +566 −0
  • internal/team/actions_test.go +212 −0
  • internal/team/authority.go +155 −0
  • internal/team/budget.go +297 −0
  • internal/team/budget_test.go +159 −0
  • internal/team/clock.go +40 −0
  • internal/team/commit_recovery_test.go +189 −0
  • internal/team/evidence.go +523 −0
  • internal/team/evidence_test.go +183 −0
  • internal/team/fixture.go +671 −0
  • internal/team/fixture_test.go +478 −0
  • internal/team/harness_test.go +164 −0
  • internal/team/jobs.go +548 −0
  • internal/team/model.go +950 −0
  • internal/team/policy.go +184 −0
  • internal/team/recovery.go +200 −0
  • internal/team/review_regression_test.go +336 −0
  • internal/team/scheduler.go +434 −0
  • internal/team/scheduler_test.go +272 −0
  • internal/team/store.go +532 −0
  • internal/team/store_test.go +200 −0
  • internal/team/storeguard.go +68 −0
  • internal/team/storelock_other.go +16 −0
  • internal/team/storelock_unix.go +28 −0
  • internal/team/storelock_windows.go +31 −0
  • internal/teamcontract/authority_test.go +220 −0
  • internal/teamcontract/policy_test.go +52 −0

CI passed — run details

landed from team-service-prototype

docs/superpowers/plans/2026-11-01-team-service.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R1.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-team-service-prototype-R3-storage.md

Loading diff…

internal/team/actions.go

Loading diff…

internal/team/actions_test.go

Loading diff…

internal/team/authority.go

Loading diff…

internal/team/budget.go

Loading diff…

internal/team/budget_test.go

Loading diff…

internal/team/clock.go

Loading diff…

internal/team/commit_recovery_test.go

Loading diff…

internal/team/evidence.go

Loading diff…

internal/team/evidence_test.go

Loading diff…

internal/team/fixture.go

Loading diff…

internal/team/fixture_test.go

Loading diff…

internal/team/harness_test.go

Loading diff…

internal/team/jobs.go

Loading diff…

internal/team/model.go

Loading diff…

internal/team/policy.go

Loading diff…

internal/team/recovery.go

Loading diff…

internal/team/review_regression_test.go

Loading diff…

internal/team/scheduler.go

Loading diff…

internal/team/scheduler_test.go

Loading diff…

internal/team/store.go

Loading diff…

internal/team/store_test.go

Loading diff…

internal/team/storeguard.go

Loading diff…

internal/team/storelock_other.go

Loading diff…

internal/team/storelock_unix.go

Loading diff…

internal/team/storelock_windows.go

Loading diff…

internal/teamcontract/authority_test.go

Loading diff…

internal/teamcontract/policy_test.go

Loading diff…