carlos / platform Public

team-service-prototype

The first CARLOS team-service prototype runs a complete offline bug-fix workflow: freeze a failing reproduction, produce a candidate, obtain an independent review, verify that exact candidate and record fake publication receipts. A synthetic business reconciliation uses the same job contract for the later Oficina service.

The internal Go core persists jobs, dependencies, fenced attempts, actions, events, evidence and budget reservations in SQLite. It fixes account prices and ceilings, holds concurrency slots until containment is confirmed, and retains uncertain usage across cancellation and restart. Recovery records positive receipts and never automatically repeats an admitted action. A process-shared guard covers each SQL commit and the external recovery witness; an interrupted witness write can resume, while restored history stays quarantined.

Run the fixture with go test ./internal/team -run TestFixture -count=1 -v. It uses fake adapters and makes no external requests. This branch adds no console route, worker network API, production credentials or live provider integration. The implementation plan records those later milestones and their gates.

Review: the design received two Fable rounds, was accepted and merged at 21738194. Implementation Opus R1 found one P1 and seven P2; Opus R2 cleared all eight and found one recovery P2. Paul chose a central guard and crash-boundary test. Opus's required focused storage check (slot 3 of 3) returned READY with no P1/P2. Review record: https://amadan.net/carlos/platform/-/discussion/512. Code c44ec92b; final brief/tip cb280f78152020fb854e4689ee232453eb70b440.

Validation: the new crash witness failed against the old ordering and passes with the guard. It covers first/repeated Opens, both sides of commit, witness I/O failure, poisoned-handle refusal and exclusion of a competing Open. Both packages pass ordinary/race tests. Full local build, vet and formatting pass. Separate package cross-builds pass on Windows amd64, macOS arm64 and Linux arm64. Neither package is linked into the root binary on Linux amd64 or arm64. Full Amadan branch CI passed on cb280f78152020fb854e4689ee232453eb70b440, including the repository gate and cross-build steps.

P3 follow-ups before live work: authenticated evidence/check counts; failed rework consistency; waiting-state resolution including audited unknown outcomes; elapsed time enforcement beyond Claim; adapter request ceilings and over-reservation reporting; numeric canonicalization; further crash/outbox and business negative cases; resolving adapters before admission; bounded quarantine detail; an explicit deployed-schema migration/restore protocol. The restored-incarnation reuse finding is fixed. The final check added conservative poisoning on pre-commit context cancellation and direct witnesses for the remaining commit-error/pre-transaction mismatch poison paths. These do not reopen review.

Commits 10
Discussions 1 0 open
Tasks 4/4 done

Discussions 0 open

  • No discussions on this branch yet.

Tasks 4/4 done

  • Move the reviewed design into carlos/platform and supersede the infrastructure draft Done
  • Implement durable jobs, fenced attempts and budget accounting Done
  • Verify the offline bug-fix workflow and failure recovery Done
  • Complete independent code review and the repository gate Done

Activity