oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

Review findings: plan 1 (Foundation), round 1 (Opus 5.5), at 9d63eed

Verdict: NOT READY (one P1). Recorded as returned, lightly condensed for the file; evidence citations are the reviewer's.

P1

P1-1 (Task 3, touches Tasks 1 and 9): the sign-in config omits the required Proof/ProofOff choice, so the app cannot start. At v0.28.0, auth/auth.go:380-382 makes auth.New return ErrProofUnset when Config.Proof is nil and ProofOff is false (message at auth/auth.go:353). The plan's auth.Config{...} (plan line 128) copied memoria, which pins rastrillo v0.23.0 with no Proof field. A real guard needs pow.Schema in BootSchema, pow.Assets() served and challenge fields in signin.html; JavaScript is needed unless Difficulty: pow.NoProof. ProofOff lets anyone make Equipo email any address, bounded only by rate limiting. Fix: decide in the plan, wire schema/assets/template, and test auth.New succeeds with the production config.

P2

  • P2-1 (Task 5): time reservation is unspecified and the obvious route breaks the ledger. No seconds column (store.go:206-220, Usage model.go:808); reserve refuses non-single-call reservations (budget.go:104-106); release goes through actions (scheduler.go:359, jobs.go:479), recovery joins reservations to actions (recovery.go:120), SettleAudited charges the reserved amount. Fix: a separate time_reservations table keyed by attempt, settled only in Contain, excluded from receipt and audited settlement, counted only in period checks; name the tests proving the call ledger is unchanged.
  • P2-2 (Tasks 4, 6): the "never the default branch" check compares against a job-supplied value. TargetBinding.DefaultRef comes from the job spec (model.go:217-236) and actions.go:242 compares against it; Project stores no default branch. Fix: Project.DefaultBranch entered by an owner; Authority rejects a mismatched DefaultRef and any Ref equal to it.
  • P2-3 (Task 3): the keymail callback test cannot be written from the app (the fake needs unexported a.guard.base, auth/keymailfake_test.go:118, keymail.go:145-151). Fix: test sign-in by email link through a capturing mailer; leave keymail to the framework.
  • P2-4 (Task 3): depends on later tasks. Removal-while-assigned needs Task 4's owners; TestSigninCSRF targets Task 8 routes (a missing route still refuses, so it tests nothing). Fix: move the rule and test to Task 4; Task 3 tests the store.
  • P2-5 (Task 1): assertion does not compile. migrate.Result.Applied is []string (migrate/apply.go:46); use len(second.Applied) != 0.

P3

  • Task 5: configured mode drops the account-level CostMicros limit; say so. Allow lowering a budget below current usage (new work blocks) instead of refusing.
  • Task 3: Authorize answers false on DB error, say so; removing a member should delete their sessions; EQUIPO_OWNERS after first boot is ignored, document it; choose framework SigninScreen/ui partial or app signin.html.
  • Task 4: repository-unique projects block one repo hosting two apps; make repository plus app unique.
  • Tasks 1/8: the per-page speed test needs to say how it signs in.
  • Proportion: Task 5 Step 4 and the grounding table read partly as code; self-review items 2 and 5 decide nothing.

Confirmed by the reviewer: generator flags, migration-check placement, all other named APIs and signatures, prototype imports (stdlib, sqlite, x/sys), 5,243 counted lines, Go 1.25.0 floor, crash-helper compatibility. No build or tests were run (sandbox caches read-only).