Product

BRD — Business requirements

GAOS's business source of truth: the three design artifacts restated as business requirements, checked line by line against what the repository actually contains, and structured after a standard enterprise BRD table of contents so every section can be assessed the way any other BRD would be.

DocumentBRD-GAOS-001
Version0.4
Baseline date2026-08-08
ClassificationPublic — the core repository is Apache-2.0 (§8.11 K-9, LICENSE)
StatusCommercial model and technical policy decided — open core, self-hosted, with private submodules and paid services (D-026); success defined as conformance (D-039), Mission Control one role-gated surface (D-040), multi-provider with a CLI-first MVP (D-041), tenancy configurable behind one repository interface (D-042) and ArcadeDB pinned at 26.7.2 (D-043). Six open items remain and all six are parameters, not the shape: the rate card, the autonomy default, the authentication approach, the price table's owner, the supported CLI list, and high availability
ReviewerProduct owner (solo project — no review board exists)
RoleLiving business source of truth for GAOS; the input to code implementation
Next stageProduct-owner assessment of the remaining open questions, one at a time, until each is resolved into a logged decision
VersionDateChangeAuthor
0.42026-08-15Six open questions answered in one block (D-039…D-044): success is conformance to the QA register rather than an invented number, closing the §1.4 gap that had been open since the first baseline; Mission Control is one role-gated surface for both audiences, adding I-8 and making authentication a blocking dependency; the model gateway is multi-provider with a CLI-first MVP; tenancy becomes configurable behind one repository interface, amending BR-26 and narrowing D-011; ArcadeDB is pinned at 26.7.2 with the DDL validated before build-order step 1; and cost estimation refuses rather than guesses when a model is unpriced. Two business rules, one domain-I requirement; three §16 matrix rows move from open to decidedClaude (agent), at the product owner's request
0.32026-08-08Apache-2.0 shipped with a DCO contribution policy and a trademark statement, closing K-9 (D-035); the execution path becomes two interchangeable adapters selected by one master configuration, CLI first (D-036, §7.6); the budget guard specified in full — three zones, pacing, deferral and six tenant properties (D-037, §8.10.1). Three business rules, five domain-J requirements, two domain-D requirements; the blocking-reason count goes from four to fiveClaude (agent), at the product owner's request
0.22026-08-08The commercial block answered. Domain K rewritten from an agenda into ten requirements behind D-026…D-031; §7.6 added for the CLI-first MVP execution model and its handoff contract (D-033); domain L added for data protection, egress and residency (D-034); six business rules, three risks and one requirement domain added; requirement J-7 withdrawnClaude (agent), at the product owner's request
0.12026-08-08Initial baseline. The three documents in artifacts/v1/ — system architecture, ArcadeDB data model, Mission Control prototype — restated as business requirements across eleven domains, with a business rule register, a risk register, a scope boundary, and every commercial parameter split out as a numbered open questionClaude (agent), at the product owner's request

How to read this document

The section structure mirrors a standard enterprise BRD table of contents, adapted to GAOS's actual scale — a design-complete, largely unbuilt project with one owner. Every claim is either grounded, meaning it points at a real artifact section, a real file, or real git history, or it is decided, meaning a product-owner ruling in the decision log put it there, or it is explicitly marked open, meaning it is a business decision this document will not invent on the owner's behalf. No numeric target, customer name or date appears here unless it already exists somewhere in the repository. There is exactly one exception, and it is labelled as one: the rate card in §8.11.1 contains proposed prices the owner asked for and has not yet confirmed, which is why every figure in it is marked proposed and carries OQ-21.

The framing, stated once and not repeated

Version 0.1 of this document was written on the instruction that GAOS was a commercial multi-tenant SaaS, and said plainly that the framing had no evidence in the repository. On 2026-08-08 the owner replaced it. GAOS is open core, self-hosted: this repository is given away and is a complete working system on its own, private submodules may add capability but may never be required for it to run, and revenue comes from installation, support and licensed add-ons rather than from hosting anything (D-026). Domain K below is therefore a requirement set now, not an agenda.

What that changes downstream is worth naming once: the tenant boundary is no longer a wall between paying strangers. The structural multi-tenancy stays exactly as designed — Tenant still carries plan, maxConcurrentTasks and budgetCapUsd, every vertex still carries tenantId, database-per-tenant is still the data model's default — but it now separates colleagues inside one operator's deployment. That lowers how strong authentication must be on day one (OQ-11) without removing the need for it, and it moves the cost, the uptime and the residency of everything onto the operator's side of the line (D-030, D-031, D-034).

1. Executive summary

1.1 Vision statement

Drafted from the project's own words — open for the owner to confirm or rewrite:

An operating system for software agents in which the graph, not the prompt, is the primitive: work is scheduled by traversal, every change is an event, the orchestrator holds nothing, and any moment in a product's history can be reconstructed and explained.

1.2 Business summary

GAOS coordinates fleets of software agents against a product master record — a business brief, user stories, acceptance criteria, diagrams and an indexed repository — stored as a graph in ArcadeDB. The record is scored for completeness before any work is dispatched; the planner refuses to plan against a brief that is too thin. Work is decomposed into an acyclic task graph, routed to a role and a model tier by capability and risk rather than cost, executed one turn at a time in the product's workspace through ai-manager, scored on five weighted dimensions, retried under explicit guard limits, and gated by a human where the risk demands it. Everything that happens is written to an append-only event stream, which is simultaneously the recovery path, the audit trail, and the replay source.

1.3 Background

There is no public release and no user. The design is complete and written down in three self-contained documents committed on 2026-08-02 under artifacts/v1/; the repository README calls them "the design — the source of truth". What is built, as of v0.1.0, is the operator surface and the path a browser request takes to reach it. The README states the position plainly: "this release is v0.1.0 and it is a deployment, not an agent OS."

1.4 Definition of project success

The design supplies exactly one success measurement, and it is a good one because it cannot be faked by a demo. From the architecture document's closing paragraph:

Run the same objective on the same product twice, a week apart. If the second run needs fewer retries and less human intervention, knowledge is accumulating and the loop closes. If it does not, the extraction step is decorative and everything above it is expensive theatre.

Decided — success is conformance, and the targets are binary

D-039 answers OQ-08. GAOS succeeds when the system as developed builds and runs without issue and passes every acceptance criterion and every scenario in the QA test plan — positive and negative alike, every case in the register — together with the three acceptance tests in §4.1. That is the target in full, and it is pass/fail on purpose.

Numeric outcome targets remain deliberately unset. The reason has not changed: there is no operational baseline — no users, no tenants, no run has ever executed against a real model, and the measurement above has never been performed — so a percentage written here would measure whoever chose it. Numbers become settable once the second-run measurement has been performed at least once against a real model, which after D-026 depends on an operator volunteering it. D-025 names who runs the checks meanwhile.

2. Business background

2.1 Current state

The repository README maintains a designed-versus-built table. It is reproduced here because it is the honest spine of this whole document — most of what follows is a requirement, not a description of something that runs.

CapabilityStateWhere
System architecture, control loops, scoring, readiness rubricDesignedartifacts/v1/gaos-architecture.html
Graph schema: 33 vertex types, 3 document types, 38 edge types, event storeBuilt (applied to dev and prod)dashboard/schema/ — extracted from artifacts/v1/gaos-arcadedb-model.html and reconciled against ArcadeDB 26.7.2; see schema/RECONCILIATION.md
Mission Control operator surfaceBuiltdashboard/ — ported from the prototype to Go + HTMX, 156 tests, stdlib only
dev + prod stacks, edge config, health probeBuiltdeploy/ — verified end to end over the WireGuard tunnel
Documentation site and landing pageBuiltpustaka/, landing-page/
ArcadeDB schema applied to dev and prod, graph queriesBuiltdashboard/store_arcade.go against the store.go seam; dashboard/arcade.go carries the query path; one conformance suite covers both stores
Scheduler, runner, real reviewsPartly builtThe scheduler decides — dashboard/scheduler.go, a pure function of the persisted task graph, returning what may start and why the rest may not. Since v0.29.0 every attempt is one turn through ai-manager, the only gateway (D-055), one live turn per product (BR-38); the turn is recorded as a TaskRun with its request id and the ContextSlice it was frozen with before it is sent, and boot recovery polls every open turn by that id — dashboard/runner.go, turns.go. Real models have answered those turns (deploy/acceptance/live-aim-run.sh), and after each one the workspace is checked against the pinned Blueprint. The board replays from TaskMoved events (dashboard/taskfold.go). What is still missing is judgement: nothing reviews what a run produced and no guard ends a loop
AuthenticationPartly builtSince v0.39.0 the back office signs in for real (D-079): accounts in a hashed file, a signed expiring session cookie, and a gate that refuses every route nobody classified. Not built: roles (every account sees and does the same, OQ-37), and most events carry no actor

One thing already exists in code that is worth calling out as a business control rather than an implementation detail: the event catalog. All 31 domain event names from the data model's §08 are declared as Go constants in dashboard/events.go, so a typo is a compile error rather than a silent new event type entering the stream that the entire replay model is folded from. Four additional names are kept in a separate block because they are UI lifecycle, not graph state.

2.2 Operational challenges

2.3 Opportunity

The gap GAOS aims at is not "run an agent" — that is commodity — but account for what an agent did. Because every prompt is reconstructible from ContextSlice and its USES_CONTEXT edges, and every state change is an event, GAOS can answer "why does this code exist?" by walking from a commit back through a run, a task, an issue and a requirement to a sentence someone wrote in the back office. Systems that keep their state in a conversation cannot answer that question at all.

Who that is worth something to is now decided (D-027): researchers, small companies, and individual experts inside and outside IT. For a researcher the same mechanism has a second name — reproducibility. A run that can be folded back from its event stream, with the exact context each attempt received, is the difference between a result that can be published and a transcript that cannot be defended. That is the same capability an enterprise would buy as governance, sold to a buyer who does not need a compliance certificate to justify it.

3. Problem statement

Six problems, each named explicitly in the design material rather than inferred here.

#ProblemConsequence if unaddressed
P-1A prompt chain has no addressable intermediate state.Nothing can be scheduled, queried, or impact-analysed; the only way to find out what the system thinks is to run it again.
P-2Orchestrators that hold state in memory lose it on restart.A crash mid-run silently invents a new version of the truth; recovery is guesswork.
P-3Agents are given briefs that are too thin to work from, and nobody notices until the output is wrong.Retries grind against a missing specification. The model is blamed for a gap in the brief.
P-4Record rot: a team fills in the product record once and never updates it, while the codebase moves.Knowledge decays silently. A record scored 92 six months ago describes software that no longer exists.
P-5Retry loops have no termination condition and no cost ceiling.One runaway task consumes a month of spend, or walks up the model tiers reproducing the same wrong answer more expensively.
P-6Model output is unauditable — you can see that a task failed, never why the model believed what it believed.No post-mortem is possible, no model-routing decision can be evidence-based, and no regulated buyer can accept the system.

4. Business objectives & success metrics

Objectives are stated qualitatively because no baseline exists to quantify them against. Each maps to the problem it answers and to the requirement domain that delivers it.

ObjectiveAnswersDelivered byMeasurable target
O-1 · Work is scheduled from queryable state, not from a conversationP-1Domains A, C, DBinary: the scheduler is a pure function of the graph, or it is not
O-2 · A restart loses nothingP-2Domain D, HBinary: kill the orchestrator mid-task and the work survives and is re-adopted
O-3 · A thin brief is refused, not guessed atP-3Domain BBinary: below 45 the planner refuses and returns the missing list
O-4 · Knowledge accumulates rather than decaysP-4Domains B, GThe twice-in-a-week measurement in §1.4
O-5 · Every loop terminates with a recorded reasonP-5Domain EBinary: the unsatisfiable-task test terminates within guard limits and leaves a reason code
O-6 · Any past moment is reconstructibleP-6Domain HBinary: fold-from-genesis equals fold-from-snapshot on a real workflow
O-7 · Commercial viability without hosting anything—Domain KBinary, and deliberately cheap to test: one paid installation completed, and one support subscription renewed once. Neither requires GAOS to run a service
O-8 · A tenant's code never leaves the operator's host except where the operator can see and consent to it—Domain LBinary: the egress inventory in §8.12 is complete and the pre-dispatch redaction pass runs, or it does not

Seven of these eight are deliberately binary rather than numeric. That is not evasion: each is an acceptance test the design already specifies, and each either passes or does not. They are worth more than an invented percentage.

D-039 makes that stance the answer rather than a placeholder. Success is conformance: these eight objectives, the three tests in §4.1, and every positive and negative scenario in the QA test plan — every case in the register — pass, or the system is not done. The register is where the criteria are enumerated case by case, which is what makes a binary target measurable rather than vague. Numeric outcome targets remain unset for the reason §1.4 gives, and become settable only after the second-run measurement in O-4 has actually been performed.

4.1 Evaluation method

The design specifies three acceptance tests that double as the evaluation method, and they are reproduced here as business commitments rather than engineering trivia, because each one is the only honest proof that an objective was met:

Review cadence for these — who runs them, how often, and what happens when one fails — is OQ-13.

5. Stakeholders

Mapped from the roles the system actually models and the operators the deployment actually has, not from an org chart. GAOS has no employees.

5.1 Internal

StakeholderRolePrimary interest
Product ownerSole decision maker; author of the design artifactsThat the design survives contact with implementation; that the open questions get answered
Platform operatorRuns the dev and prod stacks on the private VM; owns the edge configuration on clinoThat a stack can be rebuilt and restarted safely, and that dev is never wired to the production database
Fleet operatorWatches Mission Control: approves gates, cancels runs, reads the timelineThat the board says why something is not moving — the blocking reason must be visible, not inferred
Record authorFills the product master in the back office: brief, stories, criteria, diagramsThat the readiness score tells them exactly what is missing rather than failing vaguely

All four are currently one person

These are roles the system distinguishes, not headcount. Separating them matters because the permission boundaries in domain F and the tenancy boundary in domain J are drawn between them.

5.2 External

StakeholderRoleStatus
Self-hosting operatorClones the repository and runs GAOS on their own machines. Owns the deployment, the model-provider account, the data and the uptimePrimary external stakeholder since D-026. No real one exists yet. The two tenants in the prototype (loop-eng, loop-labs) are fixtures
Service customerA self-hosting operator who also buys installation, a support subscription, or a commercial submoduleA subset of the above, not a different kind of user. Rate card proposed in §8.11, numbers pending OQ-21
Tenant administratorManages a tenant's quota profile, budget cap and concurrency limit inside one deploymentOperator-mediated in the back office, never self-service — D-032. Requirement J-7 withdrawn accordingly
ContributorForks the repository, files issues, submits changesReal once the repository is public. The licence and contribution policy that govern this relationship are OQ-20 — the one part of D-026 with no answer yet
Auditor / reviewer of recordConsumes the replay and the USES_CONTEXT trail to answer "why does this code exist?"Not a first-class user — D-028. The capability stays as an internal explainability and reproducibility feature; the external-auditor package stays a candidate for a later submodule — D-038 chose the generation pack first

The operator is the customer, the tenant is a compartment

These two were the same thing under the SaaS framing and are not the same thing now. A tenant is a compartment inside somebody's deployment — a lab group, a client project, a product line. The operator is the person or company that runs the deployment, pays the model provider, and is the only party GAOS ever has a commercial relationship with. Every requirement that says "tenant" means the compartment.

5.3 Third parties

PartyRoleExposure
Model providers — Anthropic first, not onlyAnthropic is named throughout the prototype's role map and is the first adapter, with the gateway multi-provider by decision (D-041). Reached through ai-manager, which runs ai-claude-cli in the product's workspace (§7.7, D-055); the command-line adapter of §7.6 (D-033) was retired in v0.29.0Concentration remains until a second adapter exists (R-08); GAOS holds no provider credential, and real calls have been made through the gateway. The relationship is between the operator and the provider, not GAOS and the provider (D-030) — which removes the resale exposure and adds a terms-of-use one (R-12). Which CLIs clear the adapter contract, and therefore which providers ship first, is OQ-23
ArcadeDB — pinned at 26.7.2The graph, document, event and time-series store — the one component the whole model assumes. The target version is fixed at 26.7.2, the release already running (D-043)Version-coupled: EXTERNAL properties need v26.5.1 or later, which 26.7.2 clears, and the document warns that constraint and index syntax moves between releases — so the pin is load-bearing and an upgrade re-runs the DDL validation
Hosting: clino + private VMPublic nginx edge (TLS, certbot) and the WireGuard-reached VM that runs every containerShared with other products; GAOS holds product slot 03 and tunnel ports 18301 / 19301

6. Current business process (as-is)

What actually happens today, end to end, with nothing implied:

  1. An operator opens Mission Control at /app/. The home page is the list of products; each product has its record, its Blueprint and a board, and the back office and the create-workflow wizard sit beside them, all rendered server-side from Go templates over HTMX. The engineering floor, its inspector, meeting room and timeline strip, and the simulation that moved them, were deleted in v0.29.0.
  2. Work runs as turns through ai-manager. When the runner is switched on, the scheduler picks a ready task, egress screens its brief, and GAOS records a TaskRun with a request id before sending one turn to ai-manager, which runs it in the product's workspace — one live turn per product. The reply's handoff moves the task, and after the turn GAOS compares the workspace with the pinned Blueprint; drift refuses the next dispatch. Nothing reviews the result yet. With the runner set to manual the scheduler only moves work to ready, and a turn is sent when the operator moves one ready card to working (D-080).
  3. The board moves only when a task does. Every task status change writes a TaskMoved event, so the board is a fold of the stream like everything else, and the vendored sisflow board reads the same API.
  4. The back office needs a real sign-in (D-079). It then shows product records, a readiness checklist, a graph projection count and story coverage. What it writes is persisted and survives a restart; the world it starts from is still the fixtures in dashboard/fixtures.go.
  5. Events are written to the graph, and the stream is the whole record. dashboard/store_arcade.go appends every event as an Event document before its mutation commits, and rebuilds state from ArcadeDB on boot, then polls every open turn by its request id; dashboard/store_mem.go remains the in-memory double the conformance suite runs the same cases against. The 160-entry ring came out in v0.11.0 — the stream is unbounded and append-only as BR-04 asks, an event carries the delta a reducer folds rather than a photograph of the whole state, and replay is a fold from the nearest snapshot forward.
  6. The stacks serve four paths from one origin — / landing, /app/ Mission Control, /docs/ this site, /api/ the health endpoint — behind a per-product Traefik on the private VM, fronted by nginx on clino, which terminates TLS and forwards plain HTTP over WireGuard.

6.1 Root cause of the gap

The distance between §6 and §7 has a single shape, and it is the opposite of the usual one: the specification is ahead of the implementation, not behind it. Every control loop below is written down to the level of thresholds, guard limits and index definitions. What is missing is the code, and the build order that produces it already exists as a ten-step sequence in the architecture document — with an explicit warning not to start with the visual layer, which is precisely the step that has already been done.

7. Future business process (to-be)

7.1 The value chain

Recordbrief, stories, criteria, diagrams, repo
→
Injectparse to vertices, index the code
→
Scorereadiness out of 100, band applied
→
Planobjective becomes an acyclic task graph
→
Rundispatch, lease, heartbeat, review
→
Gateapprove, or hold the merge
→
Learnlessons written back to the product

The last arrow is the one the business case rests on. If Learn does not feed Score, the second workflow on a product costs the same as the first and GAOS is an expensive scheduler.

7.2 Activities per stage

StageHuman doesSystem doesWritten to the graph
Product setupBrief, stories, diagrams, repository linkParses into vertices; indexes the codebaseProduct, Requirement, Issue, AcceptanceCriterion, Artifact, File, Function
Readiness checkFixes what is missingScores the record; refuses below the floorreadinessScore, ReadinessEvaluated
Workflow creationObjective, scope, gate policyPlanner expands the task graphWorkflow, Task, DEPENDS_ON, IMPLEMENTS
ExecutionNothingSchedules, dispatches, monitors, reviews, retriesTaskRun, Review, Artifact, Event, Sample
GateApproves or rejectsHolds the merge until resolvedApprovalRequested / ApprovalGranted, Decision
CloseNothingExtracts lessons and links them back to the productKnowledge, LEARNS_FROM, APPLIES_TO

7.3 Happy path

An operator creates a product record and pastes in a brief, four stories with two acceptance criteria each, a sequence diagram and a repository URL. Injection parses it and indexes the code; readiness scores 78, which is the Working band, so planning is allowed with gates only on risk signals. The operator states an objective and a gate policy. The planner produces an acyclic graph of eleven tasks with roles attached. The scheduler finds four tasks whose prerequisites are all satisfied and dispatches them one turn at a time — one live turn per product — through ai-manager into the product's workspace. Each run assembles a context slice from the master record, calls a model, writes a diff, and is scored. Nine tasks score above 85 and are accepted. One scores 61 and is retried with a widened context slice; the second attempt scores 88. One touches a schema migration, so it carries a security reviewer and an approval gate; the operator approves it. The workflow closes, three lessons are extracted as Knowledge, linked back to the product, and the readiness score rises.

7.4 Where autonomy actually begins

Autonomy is not a switch. It starts at the moment the scheduler can find a ready task without a human naming it, which requires five things to already be true at once: the dependency graph is acyclic, a capable agent exists for the role, the product has no live turn (BR-38), the readiness gate has passed, and the budget guard is in its normal zone (§8.10.1). Miss any one and the board looks idle for reasons nobody can explain. All five must be surfaced in the UI as the blocking reason — this is a business requirement, not a nicety, because an unexplained idle board is indistinguishable from a broken product.

7.5 Exception flows

ExceptionTriggerSystem responseTerminates as
Safety vetoSafety dimension scores below 60, whatever the totalStop immediately; emit SafetyVeto; queue for a humanHuman queue item
Unproductive retryIdentical failure signature twiceDo not escalate the tier — route to a design review (a meeting — §7.5)MeetingStarted, later a Decision
Budget throttleSpend reaches the throttle threshold or the paced ceiling, or the token rate ceiling is hitStop dispatching; defer ready tasks with a resume time; let in-flight runs finishResumes by itself when the window advances — §8.10.1
Guard exhaustion3 retries, or 2 escalations, or the budget capStop; emit GuardExhausted with a reason codeHuman intervention
Orphaned taskOn boot, a task's turn is polled by its request id and ai-manager no longer knows itEmit TaskOrphaned (rule request-lost), hold the product until the turn deadline passes, then requeue it on a new session (D-060)Requeued or failed
Readiness dropDrift penalty pushes the effective score below a band boundaryEmit ReadinessDropped, show it on the product card, re-apply the stricter band's gates immediatelyStricter gating, not a silent recalculation
Total collapseFinal score below 30Stop; call a multi-agent design review (a meeting — §7.5)A recorded Decision

7.6 How a task reaches a model — two modes, one contract

Superseded by §7.7 on 2026-11-02 and deleted in v0.29.0 — kept as the record

GAOS no longer runs a model tool itself (D-055). This section and §7.6.1–§7.6.3 describe the CLI adapter, the packet on disk and the handoff file that the dashboard shipped until M14 replaced them; M14.7 deleted them in v0.29.0. The successor is §7.7. Two things carry over unchanged: the handoff is still a contract rather than a convention, and the invocation is still recorded and never branched on.

The design says "model gateway · adapters, routing, cost and token accounting" and does not say how the gateway talks to a provider. It is now decided that there are two supported ways, and they are interchangeable (D-036):

Development starts with CLI mode (D-033) because it reaches a first real run without anyone configuring a key, which is the arrangement D-030 requires — GAOS never holds somebody else's provider credential in either mode, but in CLI mode there is nothing to hold. API mode is not a later replacement for it; it is the second adapter behind the same seam, and the deployment picks.

What makes them interchangeable is a single rule: the contract is the mode-independent part. Both modes freeze a task packet, both must produce a handoff document in the same shape at the same path, and both record the same evidence. Nothing above the adapter — not the scheduler, not the reviewer, not the fold — may behave differently depending on which one ran (BR-33). The mode is recorded on the attempt as TaskRun.invocation, so a replay can tell you how a result was produced without any other part of the system having known.

The handoff document deserves its own sentence, because it exists for CLI mode's sake and is kept in API mode deliberately. An API call returns a value to the caller; a CLI invocation returns an exit code and leaves its work on disk. So every agent must be instructed to produce a document, and that document is what the next agent reads. Without it a chain of CLI-invoked agents can pass nothing but the files it happened to edit, and the graph loses the reasoning entirely. Requiring the same document in API mode costs a few tokens and buys one identical evidence trail instead of two.

Assembletraverse the graph for this attempt
→
Freezewrite the task packet to the workspace
→
DispatchCLI subprocess, or API call
→
Handoffthe agent writes its document
→
Ingestparse, validate, store as artifacts
→
Scorereview, then accept or retry

In full, including where the loop closes and where the next agent picks the work up:

MVP execution flow
  ArcadeDB (the record)
        │
        │ 1. scheduler finds a ready task — deps satisfied, lease free,
        │    readiness band allows it, a capable role exists
        ▼
  ┌───────────────┐   2. assemble ContextSlice by traversal:
  │   ASSEMBLE    │      brief · rules · criteria · ADRs · knowledge
  │  context      │      · indexed files · previous agents' handoff docs
  └───────┬───────┘
          │ 3. acquire workspace lease (exclusive, expiring)
          ▼
  ┌───────────────┐   workspace/
  │  FREEZE the   │     .gaos/packet/task.md      ← objective + criteria
  │  task packet  │     .gaos/packet/context/…    ← the frozen slice, verbatim
  │  (files)      │     .gaos/packet/rules.md     ← domain rules to score against
  └───────┬───────┘     .gaos/handoff/OUTPUT.md   ← declared, empty, required
          │
          │ 4. redaction + path allowlist pass  ──► BLOCKED? emit ContextRedacted
          │    (domain L — this is the egress point)      or refuse the dispatch
          ▼
  ┌───────────────┐   5. dispatch through the configured adapter:
  │   DISPATCH    │        cli → spawn detached, non-interactive, cwd = workspace
  │  cli  or  api │        api → send the packet as messages, key from the env
  └───────┬───────┘      either way: timeout + heartbeat armed, output stored by
          │                reference, and `invocation` recorded on the run
          │            ┌─────────────────────────────────────────┐
          │  the agent │  edits files · runs tests · reads only   │
          │  works ───►│  what the packet gave it                 │
          │            └─────────────────────────────────────────┘
          │              (cli: it edits the workspace itself. api: the
          │               orchestrator applies what the response returns.)
          ▼
  ┌───────────────┐   6. exit code + .gaos/handoff/OUTPUT.md must exist
  │   HANDOFF     │      missing or unparseable = failed attempt with
  │   document    │      signature `handoff-missing`, never a silent pass
  └───────┬───────┘
          │ 7. ingest: handoff doc → Artifact (EXTERNAL) · diff → Artifact
          │    · usage → TaskRun.tokensIn/Out/costUsd + costBasis
          ▼
  ┌───────────────┐   8. score the five dimensions against the criteria
  │    REVIEW     │      safety < 60 → veto, stop, human queue
  └───────┬───────┘
          │
     ┌────┴───────────────┬────────────────────┬─────────────────────┐
     ▼                    ▼                    ▼                     ▼
  accept ≥85         retry 50–69         escalate 30–49         design review (a meeting)
     │                    │                    │                     │
     │            widen the slice,      one tier up, same       identical signature
     │            same tier             role                    twice → meeting
     │                    └──────────┬─────────┘                      │
     │                               ▼                                │
     │                       back to ASSEMBLE                         │
     │                    (guards: 3 retries, 2 escalations)          │
     ▼                                                                ▼
  release lease · emit events · write Knowledge          recorded Decision
     │
     └──► the handoff doc is now in the graph, and the NEXT task's
          ASSEMBLE step pulls it in through USES_CONTEXT. That edge is
          the entire mechanism by which one agent's output becomes
          another agent's input.

The handoff document is a contract, not a convention — an agent that writes prose where a parser expects a field has failed the attempt. The required shape:

.gaos/handoff/OUTPUT.md
--- # front matter: machine-read, all fields mandatory
task:        T-1042            # business id, never a RID
run:         R-1042-2          # which attempt this was
role:        backend
status:      complete | blocked | partial
criteria:                      # one line per acceptance criterion
  - id: AC-7   met: true   evidence: "tests/pricing_test.go::TestRounding"
  - id: AC-8   met: false  evidence: "blocked — see blockers[0]"
artifacts:                     # what the next agent may read
  - path: "src/pricing.go"     kind: code
  - path: ".gaos/handoff/schema-notes.md" kind: note
blockers:
  - "AC-8 contradicts domain rule DR-3; needs a decision, not a retry"
handoff:                       # addressed to the next agent, not to a human
  next_role:  qa
  must_know:  "Rounding is half-even by DR-3. Do not 'fix' it to half-up."
usage:                         # omit entirely if the invocation reported nothing
  tokens_in:  184320
  tokens_out: 9104
  basis:      measured | estimated
---

## What I did, and why
Prose for the human reading the timeline. Everything a machine needs is above.

7.6.1 The master configuration

Which mode runs is a deployment decision held in one place, not a per-call choice scattered through the code. One file, read at boot, and every routing decision resolves against it:

config/model.yaml
# The one place that decides how GAOS reaches a model.
mode: cli                  # cli | api | auto   ← the master switch
fallback: none             # none | cli | api   (used only when mode: auto)

# mode: auto is compatibility mode. Prefer `primary`, fall back when the
# preferred adapter is unavailable or cannot serve a required capability.
# A fallback is an event (ModeFellBack), never a silent substitution, and
# the mode that actually ran is recorded on the attempt.

providers:
  anthropic:
    tiers:   { low: haiku, mid: sonnet, top: opus }
    cli:
      command:     claude
      pin:         ">=2.0.0 <3.0.0"   # smoke-tested at boot; refuse to start if it drifts
      reports_usage: false            # drives costBasis — see D-11
    api:
      key_env:     ANTHROPIC_API_KEY  # the OPERATOR's key. Never GAOS's, never a customer's.
      reports_usage: true

accounting:
  price_table:   config/prices.yaml   # estimation input when reports_usage is false
  on_unknown_model: refuse            # the only permitted value — BR-37. Never zero, never a guess.

egress:                               # domain L applies in BOTH modes, identically
  redact:        [secrets, credentials, env-files]
  allow_paths:   ["src/**", "tests/**"]
  local_only:    false                # true = no-egress mode (L-6)

Three properties of this file are requirements rather than conveniences. One switch, deployment-wide — a per-task mode override is deliberately not offered, because it would make two attempts at the same task incomparable and quietly break the fourth replay scope in H-4. The key is always the operator's, read from their environment, in a self-hosted deployment they own (BR-29). And the egress block is not per-mode: the pre-dispatch check in L-4 runs identically whether a subprocess or an HTTP request is about to carry the slice out.

The vendor is per product, and that is not a mode override. Since D-067 each product chooses which of the gateway's session vendors runs its tasks — Claude CLI only, the Antigravity pool only, or both, chosen by the task's role — and the Antigravity model. Every attempt still goes through the same gateway in the same mode, so the property above is untouched: two attempts at one task are comparable because a task's vendor changes only when a new session opens, and the run records which vendor it went to (BR-45).

Two of those blocks are shaped by decisions taken after this file was first written, and neither needs it rewritten. providers is a map with one entry rather than a single provider because D-041 makes the gateway multi-provider — a second vendor is a new entry, and its tiers line is where it maps into the gateway's normalised low/mid/top vocabulary rather than exposing its own model names (BR-36). on_unknown_model: refuse is now the only permitted value: D-044 and BR-37 forbid reporting an unpriceable model as zero, because a zero is a figure the budget guard will let through.

7.6.2 CLI or API — what each actually costs

This is a cost decision before it is a technical one, and the two halves point in opposite directions. A CLI subscription is a flat fee: predictable spend, imprecise accounting. An API key is metered: exact accounting, unbounded spend. Everything below follows from that one sentence.

DimensionCLI modeAPI mode
What it costs the operatorA flat subscription. A busy month and a quiet month cost the same, and a runaway loop wastes time rather than moneyPer token, uncapped by the provider. A runaway loop is a bill
Cost accountingmeasured when the tool reports it, estimated when it does not. The first supported adapter reports (D-051): Claude Code returns total_cost_usd and per-model token counts, so the cap is enforced against the tool's own figure rather than a derived one — though under a subscription that figure is the API-equivalent price, not marginal spend, which is precisely why the guard is a pacing instrument here and load-bearing in the column to the right. Where a tool is silent the count is local and priced from a table (D-044), and an unpriceable model reports no cost rather than zero (BR-37); where that table lives and who maintains it is still OQ-22measured, exact, per call. The efficiency dimension of the score becomes trustworthy rather than indicative
How much the budget guard mattersA pacing instrument. Exceeding it costs throughput, not moneyLoad-bearing. It is the only thing between a retry loop and an unbounded charge — see §8.10.1
Credential handlingNothing to hold. The tool carries its own sessionA key exists on the host, in the operator's environment. GAOS reads it and never stores, forwards or logs it
Interface stabilityPoor. Flags, defaults and output formats move between releases with no deprecation window — hence the version pin and the boot smoke testGood. Versioned, documented, and designed to be called by a program
Terms of useUncertain. Driving an interactive tool from a scheduler may fall outside the subscription it runs under — R-12Unambiguous. Programmatic use is what the product is for
CapabilityHigh and free: the tool already edits files, runs commands and iterates inside the workspaceWhatever GAOS implements. The agent loop, the file editing and the tool use become GAOS's problem
ConcurrencyBounded by what one tool session tolerates, typically well below maxConcurrentTasksBounded by the provider's rate limits, which are documented and usually higher
Determinism for replayWeaker: the tool's own hidden defaults are part of the input and are not captured in the packetStronger: the request is fully specified and reconstructible from what was stored
Effort to buildLow — spawn, wait, read a file. Why development starts hereHigher — the agent loop has to be written, not borrowed

Which one a deployment should pick

CLI if the operator already pays for a subscription and wants predictable cost — most researchers and individuals, and the mode GAOS is built against first. API if the work needs concurrency, exact cost attribution, or a defensible audit trail, and the operator accepts a metered bill — most small companies past the first few workflows. Auto when both are configured and availability matters more than predictability. None of this changes what GAOS charges, which is nothing per token in every mode (K-5, BR-29) — it changes what the operator budgets, which is why the guard in §8.10.1 is configured per deployment rather than shipped as one number.

7.6.3 What CLI mode costs, and how each cost is contained

Stated so it is not discovered later. Each row is a real loss against the API path, with the mitigation that keeps the corresponding requirement true in both modes:

What an API gives that a CLI does notConsequenceMitigation, and the requirement it protects
Exact token counts and cost per callBudget caps and the efficiency score lose their inputEvery cost carries costBasis: measured when the tool reported it, estimated when derived from a local token count and a configured price table. Measured and estimated figures are never summed without saying so — D-032. The estimator refuses rather than guessing when the model is not in the table, and the run then reports no cost rather than zero — D-044, BR-37. Protects J-5, BR-17
A structured response bodyNothing to parse; the "answer" is a mutated directoryThe mandatory handoff document above. Missing or unparseable is a failed attempt with the signature handoff-missing, which makes it visible to the retry loop instead of silently passing. Protects C-3, E-scoring
A stable, versioned interfaceFlag names, output format and defaults move between tool releases without noticeThe supported CLI list is pinned per release with a smoke test per tool, and the adapter is the only place allowed to know a tool's flags — OQ-23. Protects the model gateway's prohibition on leaking provider shapes upward
Per-request concurrency and rate-limit semanticsmaxConcurrentTasks can exceed what one CLI session toleratesConcurrency is enforced per provider adapter as well as per tenant, and the lower of the two wins. Protects J-4
An explicit account-level authorisation for automated useAn interactive tool driven by a scheduler may fall outside the subscription it runs underNot solvable in code. Recorded as R-12, and the operator confirms their own provider terms at configuration time — GAOS is not a party to that agreement after D-030

The failure mode this design exists to prevent

Two modes are only interchangeable if nobody above the adapter can tell them apart. The way that gets lost is small and gradual: a handoff document shaped around one tool's output format, a reviewer that special-cases a CLI exit code, a scheduler that knows a subprocess is slower. Each is a reasonable-looking change, and together they turn the second adapter from an addition into a rewrite. BR-33 exists to make that a rule violation rather than a judgement call, and TaskRun.invocation exists so the mode can be recorded without ever being branched on.

7.7 How a task reaches a model — through the gateway

GAOS stops being the thing that runs a model. It becomes the thing that decides what a model is asked to do, inside which product, under which standing rules (D-055). The product owner's layering is the whole design: ai-claude-cli works the task with context; ai-manager shapes it with a workspace; GAOS shapes it with the product, the task details and the product's Blueprint.

Assemblethe brief, by traversal
→
Screenegress, BR-32
→
Freezeslice + pinned Blueprint
→
Submitone turn, async
→
Polluntil a result
→
Extractthe handoff block
→
Scorereview, then accept or retry

What this removes from GAOS is everything that existed to supervise a process: the packet on disk, the file lease, the detached runner, the kill-then-requeue reconciler, the version pin of a tool GAOS no longer runs. What it keeps is everything nobody else can own — the record, the Blueprint, readiness, the task graph and its state machine, egress screening, the event stream and the evidence of every attempt. The full contract, error mapping and upstream specification: The gateway.

8. Business requirements

Twelve domains. Each requirement is Designed (specified in an artifact, not implemented), Built (running in this repository), Decided (a business ruling in the decision log, binding on what gets built), or Open (a decision that does not exist yet). Nothing is marked Built that the README does not confirm.

8.1 Domain A — Product master & knowledge ingestion

IDRequirementBusiness needStatus
A-1Create and own a product record per product, scoped to a tenantAgents must read the same brief a human wouldDesigned
A-2Capture the brief as structured requirements — goals, domain rules, boundaries — not free proseA reviewer must be able to score an output against a ruleDesigned
A-3Capture user stories in as / want / so form, each with acceptance criteriaNo criterion means no verdict; the reviewer will invent one and it will driftDesigned
A-4Accept behaviour diagrams and data models as artifactsCall order and cardinality are the two things prose losesDesigned
A-5Index a linked repository into files and functions, and identify the entrypointImpact analysis from a diff is a traversal, and it needs the code in the graphDesigned
A-6Injection parses the record into vertices and edges and rescores it in one operationA record that is edited but not injected is a lie the planner will believeDesigned
A-7Back-office surface for all of the aboveThe record author is a human with a browserBuilt — dashboard/handlers_bo.go, and what it writes survives a restart as the record document (T-028, T-029)
A-8Each product carries a Blueprint: its BRD plus technical, coding and further policies, as ordered Markdown sectionsThe record says what the product must do; without how it is built, two tasks on one product produce code that works and does not belong together — D-058Built — dashboard/blueprint.go and the back-office Blueprint tab (T-151, T-153)
A-9A Blueprint may name knowledge sources — repositories to follow, pinned by tag or SHA, each with a purpose (style, structure, interfaces, reference)A Go product should follow a Go template's layout and reuse its interfaces rather than reinvent them. Recorded now; how it reaches the model is OQ-28Built as a record and a rendered list; fetching is open
A-10Publishing a Blueprint creates an immutable, content-addressed version; an unchanged Blueprint publishes nothing"Which rules did this attempt run under" must have one answer, foreverBuilt — PublishBlueprint, a BlueprintVersion vertex per version (T-152); TC-287, TC-288
A-11Each product has exactly one ai-manager workspace, provisioned by GAOS and kept in sync with the latest published BlueprintStanding knowledge must reach every session of the product without travelling in every prompt — D-059Built — provisioned through the upstream API and synced from the Blueprint tab, screened on the way (T-154, T-155); TC-291, TC-293

8.2 Domain B — Readiness gating

The rubric is 100 points across twelve machine-checkable signals. Nothing in it requires judgment, which is the point — a subjective bar gets argued away.

SignalPointsPasses when
Problem statement8Present, at least 40 characters, names a real symptom
Goals8At least one, phrased as an outcome not a task
Domain rules12At least 3 rules the reviewer can score against
Out of scope6At least 1 explicit exclusion
Stories exist10At least 1 story in as / want / so form
Criteria coverage12Every must story has at least 2 acceptance criteria
Behaviour diagram10At least 1 sequence or flow showing the call order
Data model8Entities and cardinality recorded
Repository linked8Repo indexed; entrypoint identified
Decisions8At least 1 ADR carried into every prompt
Success metrics5At least 1 measurable outcome
Verification strategy5How correctness is proven: tests, replay, manual check
IDRequirementBusiness needStatus
B-1Score every record against the rubric on ingestion and on a scheduleMake "is the brief good enough?" a number instead of an argumentBuilt (on ingestion; the schedule needs M4). Eleven of the twelve signals are earnable — verification strategy has nowhere to live in the record until M1, so it scores 0 and says so, and the ceiling is 95
B-2Four bands govern autonomy: 0–44 Insufficient (planner refuses, returns the missing list), 45–69 Minimum (every task gated, model capped mid tier, no auto-merge), 70–89 Working (gates on risk signals, full model range), 90–100 Complete (low-risk tasks may merge unattended; gates remain on money, auth and schema). A spec a person approved in the QA tool counts as attended (D-103)Trust is earned by the completeness of the brief, not granted by configurationPartly built — the 0–44 refusal is enforced (BR-07); the three upper bands are still labels, because capping the model tier and forbidding auto-merge need a runner and a gate engine
B-3Publish the rubric to the record author, including the missing listA refusal that does not say what is missing is a dead endBuilt — the checklist, GET /products/{id}/readiness and the refusal itself all carry the missing list
B-4Decay the score against staleness: effective = raw − drift_penalty, penalty capped at 25, driven by months since last review, boundary files changed since injection, and open contradictionsA record scored 92 six months ago describes a codebase that no longer exists (P-4)Designed
B-5Crossing a band boundary downward is an event, not a silent recalculation, and the stricter band's gates apply immediatelyAutonomy must be withdrawn as loudly as it was grantedDesigned

8.3 Domain C — Planning

IDRequirementBusiness needStatus
C-1A workflow is one objective on one product, with a scope and a gate policyScope and gates are business inputs, not engineering defaultsDesigned
C-2The planner expands an objective into an acyclic task graph with dependenciesOrder of work is derived, not typed by a humanPartly built — the graph is real, acyclic and persisted as Task vertices with DEPENDS_ON edges, and a cycle is refused before the first write (T-042); its shape is still a stage template rather than an expansion of the objective (T-041)
C-3Every task is atomic: one concern, one workspace, at least one acceptance criterionA task with two failure modes and one score tells you nothingDesigned
C-4Role and model are selected capability first, then risk, then cost — never cost firstCost-first routing sends a security-critical migration to the cheapest model because it happened to be freeDesigned
C-5Senior roles (architect, security) are modelled with explicit capacity across all productsOtherwise they become the bottleneck nobody sees until three workflows wait on one reviewerDesigned
C-6Operator wizard to create a workflow: objective, scope, plan previewThe gate policy must be set by a human before anything runsBuilt (against fixtures)

The routing table the design specifies, reproduced because it is a business risk policy rather than a technical preference:

Task signalRequired roleModel floorExtra reviewer
Schema migration, money arithmetic, authBackend + SecurityTop tierAlways
Public API contract changeArchitectTop tierFrontend + QA notified
New feature within an existing boundaryBackend or FrontendMid tierQA
Test authoring, docs, mechanical refactorQA / anyLow tierNone
Retry after a failed attemptSame roleOne tier above the last attemptSenior on second retry

8.4 Domain D — Execution

IDRequirementBusiness needStatus
D-1The scheduler is a pure function of the graph — two replicas computing it independently reach the same answerLeader election then protects against duplicate dispatch, not divergent state; restart becomes uninterestingBuilt
D-2Work runs in detached processes that survive the orchestrator Superseded by D-18, D-060An orchestrator restart must not kill a paid model call in flightBuilt
D-3Each run holds an exclusive workspace lease with an expiry, and heartbeats Superseded by D-18, D-060Two runs in one workspace corrupt each other silentlyBuilt
D-4On boot, reconcile every task claiming to be dispatched or running against its lease and heartbeat: adopt, requeue, or fail as orphaned Superseded by D-19, D-060This is the whole of recovery; there is no other pathBuilt
D-5Each attempt is its own record with its own model, cost, tokens, exit code and failure signatureFolding attempts into the task destroys the evidence of the previous one, and model comparison becomes impossibleBuilt — TaskRunRecord in dashboard/model.go, opened before the spawn and closed under the lock that writes RunExited (T-054); TC-247…TC-249. The attempts on record so far were made against a stand-in tool, never a provider
D-6The exact context slice sent to a model is frozen and stored per attemptWithout it you can see that a task failed but never why the model believed what it believed (P-6)Built — the slice is frozen at the moment the egress pass clears it, keyed by that digest, with USES_CONTEXT on the slice rather than the task (T-055); GET /tasks/{id}/context answers from it and says when it is answering live instead (T-056). TC-250…TC-256
D-7The model gateway supports two interchangeable adapters — a provider's command-line tool spawned as a detached subprocess, and the provider's HTTP API — selected by one deployment-wide setting. Development delivers the CLI adapter first Superseded by D-14, D-055; the CLI adapter was deleted in v0.29.0Predictable flat-fee spend or exact metered accounting is the operator's call, not the product's — D-036, §7.6Partly built — the CLI adapter exists (dashboard/adapter_cli.go, T-057) with the boot smoke test and the handoff parser. No scheduler drives it and no real provider has been invoked; the API adapter is T-058
D-8Superseded by D-16, D-057: there is no packet on disk. The frozen slice is materialised as a task packet of files in the leased workspace, and the packet is what is stored as the attempt's evidenceD-6 must remain true when there is no request body to recordBuilt — MaterialisePacket in dashboard/packet.go, the cleared packet only (T-061); TC-262, TC-263
D-9Every invocation must produce a handoff document at a declared path in the declared shape; a missing or unparseable one is a failed attempt with the signature handoff-missingThis is the only path by which one agent's reasoning reaches the next. Treating its absence as success would let a chain silently degrade into agents editing files at each otherBuilt — the contract travels in the packet and as a standing system prompt (T-062), and all four ways to fail carry one signature (T-063). Proved against a real provider tool on 2026-08-23: TC-272
D-10The handoff document is stored as an Artifact and reaches the next agent only through USES_CONTEXT on that agent's sliceKeeps the document as transport and the graph as the record — a document passed outside the graph is a state change that never happened (BR-02)Built — ArtifactRecord keyed by run and cited into the next packet with role lesson, with no second route to it (T-064); TC-266
D-11Every recorded cost carries a basis — measured or estimated — and the two are never aggregated without the distinction survivingA CLI may report no usage at all; a budget cap computed from silent guesses is not a cap. How the estimate is produced, and what happens when it cannot be, is D-044Designed
D-12Superseded by D-14: the mode is ai-manager's provider table, not GAOS's. The execution mode is one deployment-wide setting in a single configuration file (§7.6.1), never a per-task choice, and auto falls back between adapters only by emitting an event that says it didTwo attempts at the same task must stay comparable, or the model-comparison replay scope in H-4 compares the tool rather than the modelDesigned
D-13Each attempt records which adapter ran, as TaskRun.invocation. No component above the adapter may branch on itThe mode has to be visible in the evidence and invisible in the logic — recording it is what lets the prohibition in BR-33 be checked rather than trustedDesigned
D-14The model gateway is one adapter, an HTTP client of ai-manager; every attempt records invocation = gatewaySupervising a model process is ai-claude-cli's job, written once for every client — D-055, D-062Built — dashboard/adapter_aimanager.go, GAOS_MODEL_MODE=aimanager (T-147…T-150); the CLI adapter remains until M14.7
D-15One ai-manager session per task: a retry resumes it, an escalation, a 410 or rotation opens a new oneOne turn at a time per session, history re-read every turn, expiry after thirty days — D-056Built — dashboard/turns.go (T-160); TC-296
D-16The handoff is the last gaos-handoff block in the reply and must echo the current run id; otherwise handoff-missingGAOS cannot read a file written on another host; D-9's contract must survive the move — D-057Built — ExtractHandoff (T-149); TC-280, TC-281
D-17Every attempt pins the published Blueprint version it ran under, and the workspace must match it at submitThe rules an attempt followed are part of its evidence — D-058Built before the turn: the drift gate on both routes and PINNED_TO (TC-292, TC-294); and, since v0.30.0, after it: the workspace digest is re-read and the context the worker reports is compared with the pinned version, and drift refuses the next dispatch as observed-drift (TC-317…TC-319)
D-18At most one live turn per product workspace, held as a lease on the Workspace vertexThe successor to D-3: one folder per product means two turns would be two full-permission agents in one checkout — D-060Built as a graph lease in the scheduler (T-157); TC-295
D-19Every turn carries a deterministic request id persisted before it is sent; on boot, each open id is polled and adopted, kept, or — if lost — held until the turn deadline and requeued on a new sessionThe successor to D-4: there is no process to adopt or kill, only a request to ask about — D-060Built — recovery by request id (T-161); TC-297, TC-298

Data-model additions these require

TaskRun gains invocation (cli | api) and costBasis (measured | estimated) alongside its existing tokensIn, tokensOut and costUsd. Both are additive properties on a type that is already schema-full, so no existing invariant moves — but they are changes to the committed data model document, not just to this one, and land there before any code depends on them.

8.5 Domain E — Review, scoring & retry

The most dangerous loop in the system. Every path through it must terminate and every termination must record a reason code.

scoring
final = 0.45·correctness + 0.20·completeness + 0.15·safety + 0.10·quality + 0.10·efficiency

correctness   tests pass, rule checks, reviewer verdict against acceptance criteria
completeness  every criterion addressed; no silently skipped file
safety        no secret leakage, no unsafe command, no out-of-scope change
quality       complexity, duplication, coverage delta
efficiency    tokens, latency, retries consumed

Correctness dominates deliberately: a beautiful implementation of the wrong behaviour should score below an ugly implementation of the right one, because the second is cheap to improve and the first is expensive to discover.

Final scoreActionModelRecords
85–100Accept—Review; Knowledge if novel
70–84Accept, spawn a cleanup taskSameReview, follow-up Task
50–69Iterate with a widened context sliceSame tierRetryRequested + reason
30–49Escalate a tier and re-runOne aboveModelEscalated
0–29Stop; call a design review (a meeting — §7.5)MeetingMeetingStarted, later Decision
safety < 60Stop immediately, regardless of total—SafetyVeto, human queue
GuardValueWhat it prevents
max_retry_count3 per taskGrinding on the same approach forever
max_escalation_count2 per taskWalking up the model tiers until the budget is gone
same_failure_signature_limit2Retrying an identical failure and expecting a different result
cooldown_backoffExponential, cappedTight loops against a degraded provider
budget_capPer workflow and per tenant, in three zones with pacing and deferral — §8.10.1One runaway task consuming a month of spend, and a month's budget being spent in an afternoon
human_intervention_threshold2 escalations, or any safety vetoAutomation quietly failing where a person should decide

The failure signature is what makes retries intelligent rather than superstitious. Hash the normalised error — failing test name, error class, offending file — and compare across attempts. A changed signature means progress: the model fixed one thing and hit the next, so retry. An identical signature twice means the approach itself is wrong; escalating a tier will usually reproduce the same wrong answer more expensively, so it routes to a design review (a meeting — §7.5) instead.

8.6 Domain F — Gates & approvals

IDRequirementBusiness needStatus
F-1A gate policy is set per workflow at creation timeHow much a human wants to watch is a business inputDesigned
F-2A gated task cannot merge — through the API or otherwiseA gate enforced only in the UI is not a gateDesigned
F-3Gates always apply to money arithmetic, authentication and schema changes, at every readiness band including CompleteThese three are where an unattended mistake is not recoverableDesigned
F-4Approval and rejection are recorded as vertices with a decider, a timestamp and a reason"Who let this through?" must have an answerDesigned
F-5Operator approve / retry / cancel controls on the inspectorThe gate needs a surfaceBuilt (against fixtures)
F-6Authenticated, authorised operators onlyCurrently any value opens the back officeNot built — see R-02, OQ-11

8.7 Domain G — Memory & learning

IDRequirementBusiness needStatus
G-1Every completed workflow writes Knowledge back to the product — lessons, decisions, failure patternsThis is the only mechanism that raises readiness without a human typingDesigned
G-2Decisions are ADRs, carried into every later prompt, with supersession trackedAn ADR nobody reads is a commentDesigned
G-3A multi-agent meeting is a first-class record: agenda, participants, proposals, confidence, and the decision it produced"Why was this approach chosen?" is an audit questionDesigned
G-4Knowledge is recalled during planning by tag and reuse countRecall is what makes the second run cheaperDesigned
G-5Contradictions — a decision that conflicts with a requirement, or a criterion no test maps to — are detected and penalise readinessAccumulated knowledge that contradicts itself is worse than noneDesigned

8.8 Domain H — Replay & audit

IDRequirementBusiness needStatus
H-1State at any past moment is a fold over the event stream, from the nearest snapshot forwardSnapshots are an optimisation, never the source — otherwise any moment between two snapshots is unreachableBuilt — dashboard/fold.go, T-097/T-100; fold-from-genesis is asserted equal to fold-from-nearest-snapshot at TC-050/TC-051
H-2The reducer is pure, total and order-stable: no clock, no randomness, unknown event types skipped rather than fatal, ties broken by (ts, seq)A replay that is not reproducible is not evidenceBuilt — dashboard/fold.go, T-098; purity, totality and order-stability each have their own case at TC-133…TC-137
H-3Replay is structurally read-only — routed through a read-only store handle, not a flag someone can forget to checkA flag will eventually be forgotten and will overwrite live state with a historical oneBuilt — the readOnly handle in dashboard/store.go, T-099; it is a type rather than a check, so a handler holding one cannot mutate by forgetting anything
H-4Four replay scopes: workflow, task, meeting, and comparison between two runs of the same task on different modelsModel routing decisions must be backed by evidence, not preferencePartly built — /replay/{workflow} serves the workflow scope (T-101); the comparison scope needs TaskRun to exist first
H-5Operator timeline with a replay scrubReplay needs a surface an operator can driveBuilt (against fixtures)

8.9 Domain I — Operator surface (Mission Control)

The only domain that is substantially built. Ported from artifacts/v1/gaos-mission-control.html to Go and HTMX, server-rendered, stdlib only, no go.sum. The port landed with 37 tests in v0.1.0; the package carries 156 today.

IDRequirementBusiness needStatus
I-1Superseded by I-9, D-061. The floor: one desk per workflow, colour-coded by state, with occupancy per roomAn operator must see the whole fleet in one glanceBuilt
I-2The inspector: current task, role, model, retries, escalations, cost so far, score breakdown, the context slice, the runner logEvery number an operator would otherwise ask forBuilt
I-3The event timeline with scrub-to-replay and speed controlUnderstanding when something went wrong precedes understanding whyBuilt
I-4Retired with the floor, D-060; meetings stay in the data model, unrendered. The design-review overlay: agenda, participants, confidence, decisionMeetings are a system state, not an off-screen eventBuilt
I-5The back office: product master, requirements, stories, diagrams, knowledge, agents, readiness checklist, graph projection, story coverageWhere the record author worksBuilt
I-6The UI never invents state the graph does not haveA projection that guesses is worse than a blankBuilt — an architectural prohibition rather than a feature, and it holds today: static/app.js carries HTMX wiring and keyboard shortcuts and renders no markup at all (T-108)
I-7The five blocking reasons for an idle task are displayed explicitly, including "deferred — budget window" with the time it resumes§7.4 — an unexplained idle board reads as a broken product, and a budget pause that looks like a hang is the version of that failure an operator will report as a bugDesigned
I-8Mission Control is one surface for both audiences — the operator's view and the internal operations view are the same pages with different capabilities granted, separated by role and never by codebase. Three things are preconditions on any further work here rather than later additions: real authentication, per-tenant scoping so a role sees one tenant's records and not the store, and accessibility. The provider data-handling profile and the egress inventory are displayed here (L-3)D-040. A second console would fork the only finished thing in the repository, and the fork would drift. Choosing both audiences means the surface is now something external operators sit in front of, which is what turns the three preconditions from aspirations into blockers — OQ-11 becomes a blocking dependency rather than an open questionDesigned — none of the three preconditions is started
I-9Each product has a kanban board: columns are groups of task statuses, swimlanes are stories (or roles), and every card shows its exact statusOnce GAOS is product and task management, the board is the product's working surface — D-061Built — the back office's Board tab (T-162, T-163), replayable from the event stream by the task fold (T-164); TC-304, TC-305, TC-308, TC-316
I-10A move on the board is a request to the task state machine; an illegal move returns 409, writes no event, and the board rolls back. Columns the scheduler or the budget guard own are never drop targetsA board that can set a status the state machine forbids is a second source of truth (BR-43). The richer client-side board is the vendored sisflow board, under its owner's grant (D-063)Built — dashboard/board.go, and the sisflow client over it (T-165), which rolls a refused card back; TC-306, TC-307, TC-309, TC-310
I-11When an agent reaches a decision only the operator can make, it asks one question — three options, the first recommended, and the operator's own words as a fourth — and its task waits in AWAITING_INPUT. Every waiting agent is listed in a "Needs you" inbox with a live count, and the answer resumes the session that askedA guess on a product decision wastes the whole turn and the retry after it; a blocked task says something is wrong, a question says you decide — D-064, D-065Built — dashboard/questions.go, handlers_questions.go, broker.go, upstream in ai-cli-common and ai-manager (T-171…T-176); TC-321…TC-330, TC-331…TC-333, TC-334…TC-340, TC-341, TC-342
I-12Each product chooses which AI vendors run its tasks — Claude CLI only, Antigravity only, or both by role — and the Antigravity model, on its own tab; the board shows each card's vendor, and the change applies to each task's next new sessionTwo vendors with different costs and strengths are worth using where each fits, without a deployment-wide switch that moves every product at once — D-067Built — dashboard/vendors.go, upstream in ai-cli-common, ai-antigravity-cli and ai-manager (T-178…T-183); TC-343…TC-356

8.10 Domain J — Tenancy, capacity & cost control

IDRequirementBusiness needStatus
J-1Tenancy is a configurable boundary behind one repository interface. Database-per-tenant, a shared database with tenantId everywhere, and the hybrid of the two are each an implementation of the same interface; which one a deployment uses is configuration, and nothing above the repository layer may know which is in use. Database per tenant remains the recommended default and the shape the DDL is written for, and tenantId is declared and indexed on every vertex under every strategyA boundary that can be forgotten in a WHERE clause makes one missing filter a data breach rather than a bug — and after D-026 the deployments that need each strategy are all real: a lone researcher's compartments, a small company's client work, and neither is the other. D-042 pays for the interface up front rather than picking late, which the data model warns is the expensive outcomeDesigned — the interface does not exist yet, and a strategy that has never been run is a claim rather than a capability
J-2The tenant boundary is enforced at the API gateway and never only further downDefence in depth is the difference between a bug and an incidentDesigned
J-3High-volume types are bucket-partitioned by tenantIdOne tenant's write burst must not contend with another's; a per-tenant export becomes a bucket-local scanDesigned
J-4Tenant carries plan, maxConcurrentTasks and budgetCapUsd. plan names a local quota profile, not a billing tier: solo, standard (the DDL's existing defaults — 8 concurrent, 500 USD) and unmetered, which warns instead of capping and must be chosen deliberatelyConcurrency and spend are the two things a tenant can exhaust, and after D-030 the money at stake is the operator's own — D-032Designed
J-5The model gateway accounts cost and tokens per run, records the basis for each figure (D-11), and never leaks provider-specific shapes upward — including whether the provider was reached by subprocess or by APISpend must be attributable to a task, and the provider must be replaceableDesigned
J-6Retention: events full-fidelity for 90 days then archived with the fold checkpoint kept; samples raw for 14 days then downsampled; run logs by reference in object storage; everything else indefinitely, because the audit trail is the product. Exception: D-082 (an operator may prune an archived conversation's documents)Storage cost is bounded without discarding the thing being soldDesigned
J-7Tenant self-service: signup, plan selection, budget management, usage visibilityWas required by the SaaS framingWithdrawn — D-032. There is no signup and no billing in a self-hosted deployment; quota profiles are edited by the operator in the back office. The row is struck rather than deleted so the withdrawal is visible
J-8Usage visibility per tenant and per workflow — spend to date against the cap, tokens by basis, and concurrency in use against the limit — is surfaced to the operator without needing a queryThe whole point of the quota properties after D-032 is watching model usage. A cap nobody can see approaching is a stop, not a controlDesigned
J-9The budget guard has three zones, not one limit: normal, throttled (dispatch pauses, work defers), and exhausted (dispatch refuses). See §8.10.1A single hard limit gives an operator no warning and no graceful path — it turns a budget into a cliff, hit without notice, mid-workflowDesigned
J-10Spend is paced across the budget period: the ceiling in force at any moment is the fraction of the period elapsed, times the cap, times a slack multiplier. Exceeding the paced ceiling throttles; it never fails anythingA monthly cap with no pacing can be spent in an afternoon, which is the same as having no cap for the other twenty-nine daysDesigned
J-11A throttled task is deferred, not failed: it takes state deferred with a deferredUntil, keeps its position in the graph, and is re-evaluated automatically when the window advances or spend falls back below the thresholdThe alternative is failing work for a reason that has nothing to do with the work, and then retrying it — which spends more of the budget that ran outDesigned
J-12Deferral consumes no guard budget: it is not a retry, not an escalation, and not a failure signatureOtherwise a slow budget month silently exhausts max_retry_count and tasks die of arithmeticDesigned
J-13Reaching the hard cap refuses to dispatch; it never kills a run already in flightKilling in-flight work forfeits money already spent and leaves a half-written workspace — it costs more than the overrun it preventsDesigned

8.10.1 The budget guard — pacing, deferral and the hard stop

R-05 is the highest-consequence unbuilt guard in the system, and after D-030 the money it protects belongs to the operator rather than to this project. budgetCapUsd on its own is not enough to protect it: one number with one behaviour at the limit gives no warning, no smoothing and no graceful path. This section defines what the guard actually is (D-037).

The new variables. Five additions to Tenant, with defaults that make a fresh install safe rather than permissive. Every one is deployment-tunable configuration, not a commercial parameter:

PropertyDefaultWhat it controls
budgetCapUsd (exists)500.0The hard ceiling for one budget period
budgetPeriodmonthlydaily · weekly · monthly · total. When the window rolls over, spend resets and deferred work resumes on its own
budgetThrottlePct80The percentage of the cap at which the throttled zone begins. New dispatch stops here — not at 100
budgetPacingtrueWhether spend is smoothed across the period rather than allowed to burn front-loaded
pacingSlackPct150How far ahead of the linear burn rate a tenant may run before pacing throttles it. 150 means one and a half times the straight-line pace — bursty enough to be usable, bounded enough to be a pace
maxTokensPerHour0 (off)A rate ceiling in tokens, independent of money. The instrument for a flat-fee CLI subscription, where the meaningful limit is throughput rather than dollars

Workflow carries its own budgetCapUsd as the design already specifies; a workflow cap is checked in addition to the tenant's and never overrides it. The stricter of the two always applies.

The three zones. The zone is computed before every dispatch decision, from spend in the current period including estimated figures at full weight — because a cap that ignores estimates is no cap at all in CLI mode, where most figures are estimates:

budget zones
paced_ceiling = cap × (elapsed_in_period / period_length) × (pacingSlackPct / 100)
effective_ceiling = min(cap × budgetThrottlePct/100,  paced_ceiling  if budgetPacing)

  spend < effective_ceiling ............ NORMAL     dispatch as usual
  spend ≥ effective_ceiling ............ THROTTLED  defer new dispatch
  spend ≥ cap .......................... EXHAUSTED  refuse new dispatch
  tokens_this_hour ≥ maxTokensPerHour .. THROTTLED  defer new dispatch

In every zone, runs already in flight are left alone. The guard controls
what starts, never what is already running (J-13).
ZoneWhat happensEventsHow it ends
NormalDispatch proceeds. Spend and rate are recorded and shown against the ceiling (J-8)——
ThrottledNo new dispatch. Ready tasks become deferred with a deferredUntil. In-flight runs finish normally. The board shows "deferred — budget window" as the blocking reason, not an unexplained idle taskBudgetThresholdReached, TaskDeferredBy itself. The window advances, or spend falls back under the ceiling, and deferred tasks requeue — TaskResumed. No human action needed
ExhaustedDispatch refuses. Existing runs still finish. The workflow is not cancelled and the task graph is not unwoundBudgetCapReached, then GuardExhausted with reason budget-capOnly deliberately. The operator raises the cap, or the period rolls over. Continuing is a decision somebody makes, which is the entire point of a cap

Why deferral rather than failure — the part worth being explicit about, because the naive implementation of a budget cap is to fail the task, and that is the expensive choice. Failing costs the money already spent on the attempt, unwinds nothing, and then invites a retry that spends more of the budget that just ran out. Deferring costs a delay. The work is still ready, its dependencies are still satisfied, its lease is released for someone else, and it starts the moment there is budget for it. That is what "delay work to stay inside the usage you have" means mechanically, and it is why J-12 keeps deferral out of the retry accounting entirely: a task deferred four times across a slow month has not failed four times, and must not arrive at max_retry_count having never been attempted.

This adds four names to a closed catalog

BudgetThresholdReached, BudgetCapReached, TaskDeferred and TaskResumed do not exist in the event catalog, and BR-05 says the catalog is closed — a new event type is a schema change to the fold, not a free addition. So this is one change in three places that land together: the catalog in gaos-arcadedb-model.html §08, the Go constants in dashboard/events.go, and the reducer that folds them. deferred is likewise a new task state and needs its transitions declared in the state machine before the scheduler can produce it. None of that is done, and none of it should be done piecemeal.

8.11 Domain K — Commercial

In version 0.1 this domain was an agenda: eight rows saying what had to be decided. On 2026-08-08 it was decided. The requirements below are what the answers oblige the project to do, and the one row still awaiting confirmation — the rate card — is a parameter inside a settled shape rather than the shape itself.

IDRequirementBusiness needStatus
K-1GAOS is open core, self-hosted. Revenue comes from licensed private submodules, paid installation and support, and custom work — never from hostingAn unproven thesis needs distribution more than it needs a price, and the project cannot operate a service on one edge node and one database nodeDecided — D-026
K-2This repository alone is a complete, working system. No private submodule may ever be required to install, run, plan, execute, review or replay. A missing submodule degrades a capability; it never breaks the productThe moment the open repository needs a paid part to work, the open core is a demo and every other commercial decision here loses its foundationDecided — D-026, enforced as BR-27
K-3The target customers are researchers, small companies, and individual experts inside and outside IT. Documentation, a working install and an honest designed-versus-built table are the acquisition surface — there is no sales motionAll three buy as practitioners. None of them issues an enterprise questionnaire, and none of them waits for a certificationDecided — D-027
K-4An external auditor is not a first-class user. Replay and the USES_CONTEXT trail serve internal explainability and research reproducibility; evidence export, tamper-evidence and long retention are out of scope for the coreBuilding an auditor persona nobody has asked for would add retention, export and credential requirements to a product with no usersDecided — D-028
K-5Pricing is service and licence based, never usage based: one-time installation, annual support per production instance, annual per-install submodule licence, day rate for custom workAfter K-7 there is no usage to meter — the tokens are bought by the operator, from the provider, on their own accountDecided — D-029
K-6The rate card below is published, fixed-scope and the same for everyone, with an academic and non-commercial reduction stated up front rather than negotiatedThe buyer segment in K-3 will not enter a quote process for a 350 USD install, and a published price is the only way a solo maintainer sells without a sales motionProposed — numbers pending OQ-21
K-7The operator always pays the model provider. GAOS never resells tokens, never holds a third party's provider credential, and is never in the billing pathRemoves cost of goods, billing infrastructure, and the possibility of a customer exhausting GAOS's money, in one decisionDecided — D-030
K-8Support commits to response times, never uptime, within stated business hours in one named timezone. Community support is free and public. No paid tier ever gates a bug fixGAOS runs on nobody's machines after K-1, so an availability commitment would be a promise about somebody else's hardwareDecided — D-031
K-9The core repository ships Apache-2.0 (LICENSE), a DCO-based contribution policy (CONTRIBUTING.md), and a trademark statement reserving the name while the code stays free (NOTICE)"Open source" without a licence file is legally nothing, and contributions cannot be accepted into a repository whose terms are unstatedDecided and shipped — D-035
K-10The boundary between the open core and any private submodule is published and stable: what each submodule adds, what it costs, and what the core does without itAn open-core boundary that moves is how these projects lose their communities. Deciding it once, in writing, is cheaper than defending it repeatedlyDecided — D-038: manual-free, generation-paid, and the first submodule is the generation pack

8.11.1 The proposed rate card

Prices are proposed by the agent that wrote this section, not yet committed by the owner — OQ-21 is where they are confirmed or replaced. They are derived from how single-maintainer open-source projects actually sell services: fixed-scope installation packages rather than hourly consulting, annual support priced per production instance rather than per seat, and a published day rate for anything outside both. Everything is in USD and excludes any local taxes.

OfferScopeEffortProposed price
Starter installRemote. One environment on one host the customer already has: docker compose up, TLS, one tenant, one model CLI wired and proved with a real run, a 60-minute walkthrough~½ day350 one-time
Standard installBoth tiers, dev and prod. Edge and TLS, backup and restore proved once, quota profiles set, budget caps set, model CLIs wired, two hours of handover training, a runbook written against their hostnames~2 days1,200 one-time
Production hardeningStandard install plus authentication wired to their identity source, egress redaction rules tailored to their repositories (domain L), restore rehearsed from a cold backup, monitoring and alerting, and a written data-handling statement they can show their own stakeholders~4–5 days3,000 one-time
Community supportPublic issue tracker. Best effort, no commitment, no private channel—Free, permanently
Standard supportPer production instance. Private email channel, first response within one business day, upgrade guidance for every release, 4 hours of remote assistance included per year—1,800/year
Priority supportPer production instance. First response within four business hours, two upgrades per year performed for the customer, 12 hours of remote assistance included, a private channel with a named person—4,800/year
Commercial submodule licencePer install, per year, per submodule. Includes updates for the term—1,200/year · 300/year for a single named researcher or an individual, and free for accredited non-commercial academic use
Custom developmentAnything outside the above: connectors, adapters, a bespoke role or reviewer, migration workMinimum 2 days600/day

Why these shapes, and why these numbers

Fixed-scope installs, not hourly. The buyer in K-3 cannot evaluate an hourly estimate and will not sign an open-ended one. A fixed price with a written scope converts; an hourly rate with a range does not. The three packages are deliberately a ladder — the 350 tier exists to be said yes to without a meeting, and it is the one that reaches the non-IT expert who can write a brief but not stand up a stack.

Support priced per production instance, not per seat. Seats are unobservable in software you do not host and unenforceable in software that is open source. Instances are countable, and the customer already knows how many they have. The 1,800 / 4,800 pair sits at roughly three and eight days of the day rate, which is the honest shape of a support year for a solo maintainer: most of it is answering questions, some of it is one bad week.

Response times, not uptime — K-8. And a support tier never gates a fix: the fix lands in the public repository for everyone, and what is bought is attention, not access to correctness. Selling the fix would break K-2 in spirit even where it did not break it in letter.

The reduced and free tiers are stated, not negotiated. A researcher asking for an academic discount and being told to email for a quote is a researcher who uses something else. Publishing the reduction costs one line and removes the negotiation entirely.

What must never be sold

No safety control, termination guard, budget cap or audit record is ever a commercial feature — not in a submodule, not behind a support tier. The guards in domain E exist because an unattended agent with a model credential can spend real money and write real code; charging for the brake is indefensible when the operator is the one paying the provider (K-7). This is registered as BR-28 so it is a rule and not a sentiment.

8.12 Domain L — Data protection, egress and residency

The owner's instruction on this domain was to treat it as a production-readiness question rather than a marketing paragraph, so it is written as one. Two facts frame everything below. First, after D-026 the GAOS project holds no customer data at all — there is no service, no database, no backup, nothing to have a residency policy about. Second, that answers the easy half. The hard half is that GAOS moves data on the operator's behalf: every attempt sends a slice of somebody's repository to a model provider, and that egress is continuous, automatic, and invisible unless the product makes it visible.

So the commitment is not a location. It is an inventory, a control point, and a deletion story.

8.12.1 What data exists, and where it goes

A residency answer that cannot enumerate its own data classes is a slogan. Six classes exist, and only two of them ever leave the operator's host:

ClassExamplesWhere it livesLeaves the host?
Product recordBrief, requirements, stories, acceptance criteria, ADRs, diagramsArcadeDB on the operator's hostYes, in part — whatever the context slice selects
Indexed codeFile and Function vertices, file contents read at slice timeThe operator's repository and hostYes, in part — this is the single largest egress and the one buyers care about
Attempt evidenceTask packets, handoff documents, diffs, run logsEXTERNAL properties and object storage on the hostNo — produced locally, stored locally
Event streamEvery state change, append-only, business ids onlyArcadeDB on the hostNo — except the optional Brain Town feed (D-086): off by default, it sends committed task and product changes to the receiver the operator names; a product not listed as public is redacted before it leaves (alias name, task id as title)
Personal dataRecord authors, approvers and deciders; git author names and e-mail addresses inside an indexed repositoryVertices and indexed code on the hostIncidentally — a commit header inside an indexed file is personal data travelling in a context slice
CredentialsThe operator's model-provider session, repository access, database credentialsThe operator's environmentNever. A credential in a context slice is a safety-veto defect, not a leak to be reported afterwards

The finding this table exists to produce

Egress is not "the prompt". It is source code, chosen automatically by a traversal, including files nobody reviewed before they were sent — and it happens again, wider, on every retry, because widening the slice is what a retry does. Any data-handling statement that does not say this plainly is misleading, and the honest version is also the sellable one: the operator picks the provider, the operator sees the inventory, and the operator can make the boundary tighter.

8.12.2 Requirements

IDRequirementBusiness needStatus
L-1Residency is whatever the operator's own machines are, and GAOS states this rather than implying more. The project stores, processes and backs up nothing on anyone's behalfIt is the truthful answer, it is a strong one for a research or small-company buyer, and it costs nothing to keep trueDecided — D-034
L-2Ship the egress inventory in §8.12.1 as product documentation, and keep it accurate as a release obligation — a new egress path is a documentation change in the same commitThe question every buyer asks first is "where does my code go". An answer that lives only in a sales conversation decays immediatelyDesigned
L-3Each configured provider carries a data-handling profile the operator fills in: the provider's identity, whether submitted content may be retained, whether it may train a model, the stated retention period, and the date the operator last checked. Mission Control displays the profile of the provider a run is about to useGAOS cannot make a provider's promise on the provider's behalf, and must not appear to. What it can do is force the question to be answered before dispatch and keep the answer in front of the operatorDesigned
L-4A pre-dispatch egress pass runs on every context slice: secret and credential detection, path allowlists and denylists per product, and size limits. It runs before the model sees anything, and a positive detection refuses the dispatch rather than reporting it afterwardsThe safety dimension in domain E scores what already happened. A secret scored at 40 has already left the buildingBuilt — dashboard/egress.go, T-126. Ten detectors, allow and deny lists, per-file and whole-slice size limits, no-egress. Enforced by a type: an adapter's dispatch takes a cleared packet and only the pass returns one
L-5Redactions and refusals are events (ContextRedacted, a refused dispatch with its reason) and appear in the timeline like any other state changeAn invisible filter is indistinguishable from a broken one, and the operator must be able to see when a slice was cut down and why a run did not startBuilt — the refusal is DispatchRefused (D-052), both are emitted by MemStore.DispatchTask, and a finding records the byte offset and never the matched text. T-127
L-6A no-egress mode is supported at product level: a product may be configured so that only a locally-hosted model may be routed to, and any routing decision that would leave the host fails the task instead of downgrading quietlySome of the research and small-company work this targets is under a confidentiality obligation that no provider profile can satisfy. Without this the answer to those users is "do not use GAOS"Designed
L-7Deleting a tenant, a product or a run destroys the referent of every EXTERNAL payload and object-storage blob it owns, while the append-only events keep their references. The fold tolerates an absent payload — a deleted artifact reads as deleted, never as a fold failureThis is the collision between BR-04, which forbids rewriting the event stream, and a deletion request, which is not optional. Separating the reference from the payload is what lets both holdDesigned
L-8Deletion produces a certificate: what was deleted, when, by whom, and what deliberately survived — the event skeleton and its business ids"We deleted it" is not evidence. A buyer who asked for deletion needs to be able to show what happened, and the surviving skeleton must be disclosed rather than discoveredDesigned
L-9Encryption in transit for every hop the operator does not physically own, and a documented at-rest posture for the database, the object store and backups — including the statement that backups inherit the residency and the deletion obligations of what they containBackups are where deletion promises are broken, and where residency claims quietly stop being trueDesigned
L-10Support engagements get no standing access. Any access to a customer system is requested, time-boxed, screen-shared or credential-scoped to the task, logged, and leaves no copies. Diagnostic bundles are redacted by the same pass as L-4 before they are sharedThe one place the GAOS project could ever touch customer data is a support session. Saying so up front is what keeps L-1's "we hold nothing" honestDecided — D-034
L-11Ship a data-handling statement template the operator can complete and hand to their own stakeholders — their residency, their provider profiles, their retention settings, their deletion processThe operator is the data controller in every deployment. Their obligation is to their own users, and the fastest way to be adopted is to make discharging it a fill-in-the-blanks exerciseDesigned

Who is responsible for what

Stated once, because production-readiness reviews ask for it in exactly these words. The operator is the controller of everything in their deployment: they choose the provider, the retention, the residency and the deletion policy. The model provider is a processor under whatever terms the operator accepted directly with them — GAOS is not a party to that agreement (D-030). The GAOS project is neither, except during a paid support engagement, where L-10 applies and the relationship is a scoped, logged, time-boxed one. There is no fourth party.

8.13 Business-level non-functional requirements

PropertyBusiness statementHow it is proven
AuditabilityEvery prompt ever sent is reconstructible from the graphThe USES_CONTEXT edges from a stored ContextSlice; GET /tasks/{id}/context matches what the model actually received
RecoverabilityKilling the orchestrator mid-run loses nothingBoot reconciliation adopts, requeues or orphans every in-flight task
DeterminismThe same events always fold to the same stateA pure, total, order-stable reducer, tested by folding from genesis
IsolationA tenant cannot see another tenant's data even if a query forgets to filterDatabase-per-tenant, with tenantId as the second line
ExplicabilityEvery rejection tells the caller whyEvery mutation returns the new state or a rejection reason, never a bare 200
TerminationNo loop runs forever and no stop is silentThe six guard limits, each stop carrying a reason code

9. Business rules

Seventy-six rules, each one traceable to an artifact section, to committed code, or to a logged decision. These are the statements a reviewer — human or agent — can score an implementation against. They are the reason domain rules are worth 12 points in the readiness rubric.

9.1 Core invariants

IDRule
BR-01State lives in the graph. The orchestrator holds no authoritative state; anything cached in memory must be reconstructible.
BR-02Every change emits an event. An event that was never written is a state change that never happened.
BR-03Events reference the business id, never the physical RID — otherwise a restore into different buckets breaks the history.
BR-04The event stream is append-only and never updated. It is the only type whose retention policy differs from everything else.
BR-05The event catalog is closed. A new event type is a schema change to the fold, not a free addition.
BR-06Every mutation returns either the new state or a rejection reason, never a bare 200.

9.2 Readiness and planning

IDRule
BR-07Below an effective readiness of 45 the planner refuses to plan and returns the list of what is missing. Nothing is dispatched.
BR-08Band gates are mandatory, not advisory: Minimum caps the model at mid tier and forbids auto-merge; Complete still gates money, auth and schema. The QA tool’s auto-merge of an approved spec follows the same bands: Working and Complete only, never Minimum or Insufficient (D-103).
BR-09effective = raw − drift_penalty, with the penalty capped at 25.
BR-10Crossing a band boundary downward emits ReadinessDropped and applies the stricter band immediately.
BR-11A task is atomic only if it has one concern, one workspace, and at least one acceptance criterion.
BR-12Role and model selection is ordered capability → risk → cost. Capability is a hard filter; risk overrides cost; cost decides only between already-acceptable options.

9.3 Scoring, retry and gates

IDRule
BR-13The final score is fixed at 0.45·correctness + 0.20·completeness + 0.15·safety + 0.10·quality + 0.10·efficiency.
BR-14Safety is a veto evaluated before anything else: below 60 the work stops regardless of the total.
BR-15A retry runs one model tier above the last attempt, and a second retry carries a senior reviewer.
BR-16An identical failure signature twice routes to a design review (a meeting — §7.5), not to a tier escalation.
BR-17The six guard limits are hard: 3 retries, 2 escalations, 2 identical signatures, capped exponential backoff, per-workflow and per-tenant budget caps, and human intervention at 2 escalations or any safety veto.
BR-18Every termination records a reason code. A silent stop is a defect.
BR-19A gated task cannot merge through any path, including the API.

9.4 Data and replay

IDRule
BR-20Replay reads through a read-only store handle. Never a flag.
BR-21The reducer is pure, total and order-stable. Snapshots are an optimisation and never a source of truth.
BR-22Task and TaskRun are separate records so per-attempt evidence survives a retry.
BR-23USES_CONTEXT hangs off ContextSlice, not Task, because the slice differs per attempt.
BR-24One edge type per relationship. No generic edge with a type property — traversal by edge type is index-free adjacency; filtering a generic edge is a scan of every neighbour.
BR-25Heavy payloads — prompt bodies, diffs, log blobs — are stored EXTERNAL or by reference to object storage, never inline on a vertex the scheduler traverses.
BR-26Tenancy is a configurable boundary behind one repository interface, and nothing above that layer may know which strategy is in use. Database per tenant is the default; tenantId is declared and indexed under every strategy. (D-011, amended by D-042)

9.5 Commercial, execution and data handling

IDRule
BR-27The open repository is a complete working system on its own. No private submodule may be required to install, run, plan, execute, review or replay — absence degrades a capability and never breaks the product. (K-2, D-026)
BR-28No safety control, termination guard, budget cap or audit record is ever sold — not in a submodule, not behind a support tier. Fixes land in the open repository for everyone; what a support subscription buys is attention, never correctness. (D-031)
BR-29GAOS never holds a provider credential belonging to anyone else and is never in the billing path. The operator's account pays for every token. (K-7, D-030)
BR-30Every invocation produces a handoff document in the declared shape at the declared path. A missing or unparseable one is a failed attempt with the signature handoff-missing — never a silent pass. (D-9, D-033) Amended by D-057: through the gateway the declared path is a declared block — the last gaos-handoff block of the reply.
BR-31Every cost figure carries its basis, measured or estimated, and the distinction survives every aggregation. (D-11, D-032)
BR-32Nothing reaches a model provider without passing the pre-dispatch egress check first. A detection refuses the dispatch; it does not report the leak afterwards. (L-4, D-034) Extended by D-058: a Blueprint sync is a dispatch path, and its files are screened the same way.
BR-33The execution mode may be recorded and never branched on. Every component above the adapter behaves identically whether a subprocess or an HTTP request produced the result. (D-13, D-036) Amended by D-062: gateway joins the recorded values, under the same prohibition.
BR-34Deferral is not failure. A task deferred for budget consumes no retry, no escalation and no failure signature, and keeps its place in the graph. (J-12, D-037)
BR-35A limit that only warns is not a limit. The budget guard refuses to dispatch at the cap — and never kills a run already in flight, because that forfeits money already spent. (J-9, J-13, D-037)
BR-36The escalation ladder is defined in the gateway's own normalised tiers, never in vendor model names. Every provider maps into those tiers, because "one model tier above" (BR-15) has no meaning across vendors otherwise. (D-7, D-041)
BR-37A cost that cannot be priced is reported as unavailable, never as zero. The estimator refuses an unknown model rather than guessing at it, and the refusal is visible to the operator — because after D-037 a zero is a figure the budget guard will let through. (D-11, D-044)
BR-66GAOS keeps a short trace of the calls it makes to external platforms and of the calls made to it: every machine-API call, and every request that reached it without passing through the edge. A record holds the time, direction, platform or route, method, the host and a path relative to the platform's configured base with identifiers, branch names and file paths replaced, status, duration, sizes and an error class, and for an inbound call the source address, whether it came through the edge, the authenticated client's name and the product id — and never a header, a body, a query string, a token, a credential or a configured base path. The trace lives only in the deployment's own password-protected Redis, in streams capped per platform and per inbound kind, none older than 48 hours, never persisted; a summary of every direct source since the dashboard started is kept in memory. It is not an event and nothing in GAOS reads it to decide anything. Recording never delays or fails a call; a call that cannot be recorded is counted. Any signed-in back-office account may view the trace, with public source addresses in full for auto-fix admins only; nobody may change it. (D-107) Amended by D-114: GitLab calls are traced as the platform gitlab, with project ids, merge-request and pipeline numbers, file paths and branch names templated.

9.6 Gateway, Blueprint and board

IDRule
BR-38At most one turn is live in a product at any moment, across all of its workspaces. A second ready task in the same product waits, blocked with the reason, rather than starting. (D-18, D-060, D-071)
BR-39Every attempt pins a published Blueprint version. A workspace whose synced files do not match that version refuses dispatch with blueprint-drift, and so does one whose observed context shows instructions GAOS did not write. (D-17, D-058)
BR-40A lost session is never silently replaced. A 410 is the failure session-lost, a turn the gateway did not save is turn-unsaved, and either way the next attempt opens a new session and says so. (D-15, D-056)
BR-41The session is transport, not the record. The prompt, the reply, the parsed handoff and the gateway's metadata are stored by GAOS for every attempt, and remain readable after the session expires — until an operator prunes the archived conversation of a finished card (D-082): the prune empties the prompt, reply and question documents, deletes the gateway sessions, keeps the context slice (BR-32) and the events (BR-04), and leaves a certificate of what was emptied and what survives (L-8). (D-15, BR-02, D-082)
BR-42GAOS names a workspace by id and never by path, and writes only allowlisted instruction files into it. (A-11, D-059)
BR-43A move on the board is a request. The task state machine decides, and a refused move writes nothing. (I-10, D-061)
BR-44A task waiting on the operator's answer holds no lease, is never dispatched by the scheduler, and leaves AWAITING_INPUT only by an answer (to READY), a cancel, or — thirty days after it asked, when the session that asked is gone — expiry to BLOCKED. Until then the answer resumes the asking session. Nobody but an agent puts a card there, with one exception: the QA-job runner may put an e2e card there while the QA tool waits for a person, and it leaves by the job resuming (RUNNING), failing, or a cancel. (I-11, D-089, D-064, D-066)
BR-45A task's vendor follows its product's vendor policy and is fixed for the life of a session: a retry whose vendor changed opens a new session and says why (vendor), a resumed turn names the vendor that opened it, and nothing falls back to another vendor silently. A product dispatches only when every vendor its policy uses holds the published Blueprint. (I-12, D-067)
BR-56A turn is sent only under the runner switch. off sends none. on lets the scheduler dispatch whatever it judges ready. manual lets the scheduler move work to ready and nothing further: a turn is sent only when a signed-in operator moves a ready card to working, and that move applies the readiness floor (BR-07), one live turn per product (BR-38), the drift gate (BR-39), the dependency check and the egress pass. An unrecognised value is off. There are two standing exceptions, each dispatched by GAOS itself through the same gates and never under on (BR-35 is not among them: it is not wired): a defect:triage or defect:easy card of a product whose auto-fix switch is on; and a card an outside client or a bundle planned with autoDispatch, on a product listed in GAOS_API_AUTORUN_PRODUCTS, at most GAOS_API_AUTORUN_DAILY a UTC day, and only while its labels allow a dispatch. A third, by D-112: a pull-request reviewer card of a product that has the reviewer role assigned and is listed in GAOS_API_AUTORUN_PRODUCTS, within the same daily cap, once its pull request’s context is fetched. (D-080, D-091, D-099, D-112)
BR-61A product whose agent assignments are configured plans a pull-request flow card only for a role that has an agent assigned to it; a product that never saved its assignments runs every flow as before. Assignment does not choose which agent runs a card. On a configured product the reviewer asks GitHub for changes on a medium or worse finding, and a low finding may become a review fix: a draft pull request into the reviewed pull request’s own branch, on top of the commit the reviewer read, only when a fixer is assigned, auto-fix is on, the branch matches an allowed pattern and the day’s review-fix cap is not reached. GAOS never opens a review fix against a shared or protected branch and never merges a pull request; it closes only its own gaos/fix- drafts that a retarget replaced or an auto-fix admin closed as a duplicate (D-108). On a pull request whose author is an agent (labelled ai-assisted, or opened by GAOS) the reviewer only comments and a low finding plans no draft: the revision loop answers it (BR-69, D-112). (D-102, D-112) Amended by D-114: on a GitLab repository “asks for changes” is an unresolved thread, and the review is advisory: it blocks no merge, and GAOS never approves, resolves or merges.
BR-62GAOS sends a repository’s e2e kind to the QA tool only when the operator set one and the tool lists the capability. GAOS never merges; the QA tool may auto-merge an approved spec of a product that turned it on, in the Working and Complete bands, pinned to the approved commit, under a fixed-source required check; GAOS runs the case after such a merge only when the merged head is the approved commit. (D-103)
BR-63A product binds at most one task tracker. Each enabled binding names a connection the deployer installed, no two enabled bindings share a (connection, product code) pair, and a product reaches only the people of its own connection. The people GAOS reads from it — names, roles, GitHub logins and WhatsApp numbers — live in the notifier’s memory only: a number is never stored, logged, put in a packet, sent to Brain Town or written into an event, and a page shows it only masked. The one stored identifier is the alias ext:<username> in ContactNotified. Everyone sees the directory’s counts; only an auto-fix admin sees the per-person table. GAOS writes to the platform only one note per finished bundle and never changes a task’s status. (D-104, D-118) Amended by D-114: the logins are forge logins; a GitLab one carries the prefix gitlab:, so it never matches a GitHub login. Amended by D-132: GAOS no longer “never changes a task’s status”. Besides the note it writes, per wait of merged pull requests naming the task, one RecordMerge carrying the bound product’s code and the author’s person id, for a task assigned to that person; it moves the release status to merged and no further. A second RecordMerge marks the task development-done. It needs the tracker’s separate grant, and is made only after a holder of the one-time link sent to that author’s tracker number accepted, with a nonce the tracker issued for that task and person. The person id and the nonce of a pending confirmation are stored on the pull request row until the link is finished or expires.
BR-65A failing named CI check of a fix-target repository’s merge commit, from the workflow the operator configured, or a failing result the product’s Jenkins posts for that commit with the product’s credential, or, under the GitLab pipeline source, a failing job of the newest pipeline that ran the merge request’s last head commit (a branch or MR pipeline, not the merge commit; a retry or a newer pipeline after a failure is noted), files or updates at most one open unit defect per repository and base (and one for a failed build), only while auto-fix is on, a fixer and a triager are assigned and the caps allow; its triage card is held until an auto-fix admin releases or cancels it or closes the defect. A missing, unread or inconclusive check files and closes nothing. When the check passes, or Jenkins posts a pass, at a later merge on the same base, the defect closes, except that a defect whose triage card is still held is only marked and an auto-fix admin closes it. (D-105, D-106, D-117)
BR-64Every pull-request row of a product listed in GAOS_PR_TEMPLATE_PRODUCTS reads its template on the first look GAOS ever takes at it, whichever path takes that look first: the pr.opened event or the poll. A row whose pr.opened planned no card — the daily review cap, a skip, a duplicate — is still marked template seen by its first poll, because the poll reads the template before it records that the row was checked. A row first polled before the template release is never marked seen. The template alerts (the missing code, and with the tracker the unknown code) apply only to seen rows, so a change that records the check before the template read silences them for every capped pull request; a poll-level test guards the order (TC-851). (D-100; fixed in v0.66.3)
BR-68A notification line is one line of text and at most three link lines: GitHub pull-request URLs and GAOS’s card link under GAOS_PUBLIC_URL. A line about a person’s pull request, review defect or unit defect goes to that person’s contact, then their tracker number, then the group. A line with no person behind it (a QA run’s defect, or an API QA run’s failure) goes to the product’s default recipient, then the group. A failed lookup goes to the group. Only an auto-fix admin may change a contact. (D-109, D-110) Amended by D-113: the link lines are the forge’s pull-request URLs, a GitHub pull request or a merge request on the configured GitLab host. Amended by D-128: every line is also kept in GAOS as a notice every back-office account can read, so a line never holds anything only its recipient may see. Amended by D-130: a high or critical review sends the default recipient a message whose text after the line is the review’s findings, quoted and defanged, at most 3500 characters; a group id, no default recipient, a secret detector or a public-HTTP gateway sends the line only. The findings stay readable in the card’s conversation until it is pruned. Amended by D-132: the permitted link lines gain the confirmation link <GAOS_PUBLIC_URL>/m#<token>; a line may carry the task’s tracker page inline when its host is the connection’s web base; a pr:merged line goes only to a person destination of its author, never to a group, and tracker text in it is defanged; the confirmation link is the one exception to “a line never holds anything only its recipient may see”, and the bell keeps the line without it.
BR-69On an agent’s pull request — labelled ai-assisted, or opened by GAOS on its own gaos/fix- branch — GAOS answers an actionable review by fast-forwarding the pull request’s own branch with one commit per round, on top of the commit the round read, and then reviews again, up to the product’s reviseCap (0 is off, at most 10). A review counts only from GAOS’s reviewer (at low or medium) or from a person with write access to the repository; a GAOS review at high or critical hands the pull request to a person. GAOS never force-pushes, never moves a default, shared or protected branch, never revises while another round of the same pull request is open, and never approves, merges or dismisses. Every step resumes after a restart without a second push, comment or review. (D-112)
BR-70A repository is a GitHub owner/repo pair or a path on the one GitLab host the instance configures, and a GitLab path is pinned on its product to the project id it named first: a path that later names another project is refused until an operator clears the pin. A forge with no token is skipped exactly as before. GAOS reads a GitLab merge request only through its own token, after checking that the event’s project id is the pinned one. (D-113, D-114)
BR-71On GitLab, GAOS’s review is advisory: a note, or an unresolved thread for a medium or worse finding. GAOS never approves, resolves a thread or merges, refuses a merge request from a fork whatever GAOS_PR_ALLOW_FORKS says, and neutralises every quick action, mention and closing keyword in the text it sends to GitLab. A GitLab review event does not start the revision loop. (D-114)
BR-72In a repository whose automation directory the product names, a merge request is a QA merge request only when every changed path, old and new, lies inside that directory and none is a CI file; it is decided from the changed files at open and again at merge, and is never stored. A QA merge request plans no review, e2e or unit card and gets no review row; one that is QA at open and not at merge gets the unit watch and a review at merge that only comments. A fix never writes into the automation directory, and an allowed glob that could reach into it is refused. (D-116)
BR-73A product-bound third-party platform (a ThirdPartyLink kind) is reached only through a contract GAOS publishes. Its connection’s endpoint, certificate, credential and the products and codes it may serve are installed by the deployer, never set from the back office. (D-118) Amended by D-132: the connection profile gains an optional web file, the tracker’s web base, from which task links are accepted.
BR-74A product holds at most GAOS_PR_MAX_OPEN open pull-request cards (review, e2e, unit-test, re-review and staging-run cards that are not done, failed or canceled). The cap refuses only an opened pull request or a staging run, never a merge’s cards. A refused pull request is not dropped: its row is marked waiting, a newer one never overtakes it, and GAOS plans the waiting ones oldest first as soon as there is room. A merged pull request’s blocked e2e card is canceled unless a catalog pull request, a planned case or a planner still waits on a person. The Pull requests page shows each product’s count against the cap. A merge in an automation repository (one listed in automationRepos with no automation directory) plans no unit-test card at all (D-121). (D-120, D-121)
BR-75No news is good news: a WhatsApp line is sent only for an error, a need-you (a person must act) or an important warning. A routine outcome — the automation planner’s none or automate decision (automation:routine) — is never sent, to a contact, the default recipient or the group, and no contact can opt into it; it stays on its card, leaves no ContactNotified event, and is logged as wa: quiet <kind> not sent. (D-123) Amended by D-129: a GAOS-only notice (bundle:planned, a ready test plan) is kept on the Notifications page and never sent to WhatsApp, to anyone; it leaves no ContactNotified and is logged as wa: <kind> kept in GAOS only, not sent. Amended by D-132: pr:merged is sent to its author on WhatsApp, and to nobody else.
BR-76A merge confirmation token is 256 random bits; it travels only in a URL fragment, and only its SHA-256 is stored; it is used once, and expires 24 hours after it is minted; it never appears in a path, a query, a log, an event, the bell or a back-office page; it is sent only to the tracker WhatsApp number of the person it acts for; and it is never sent through a gateway reached over public http unless the operator opted in (GAOS_WA_CONFIRM_LINK_OVER_HTTP=1). GAOS does not control the copies outside it: the gateway’s message store, the GAOS sender account’s chat history, the recipient’s phone and its backups, and, with the opt-in, the network path to the gateway. (D-132)

9.7 The design gate

The design gate is the review step between a design and its implementation: a fresh reviewer with no memory of the conversation that produced the design reads the design alone and attacks it. It is not the design review of §7.5 and §8.5 — that is a meeting after a failure, and it records a Decision. The gate runs before anything is built. D-068 is the ruling that put the gate in the product, and D-069 is the ruling that made it possible: it answers OQ-32 by fixing the isolation boundary at the packet rather than the workspace. The milestone is M17 and the forward specifications are TC-359…TC-379. The rules below are binding on M17 and on any later change to the gate; they are built as of v0.35.0, and D-070 records how they landed.

IDRule
BR-46Every story's implementation task has a design artifact and a review. Neither is optional, and the review happens before the first dispatch. A plan that does not wire the gate is refused, and the operator's dispatch route refuses a task whose review has not resolved. (D-068, D-070)
BR-47A reviewer sees the design artifact and the rubric, and nothing else from the desk: not the brief, not the goal, not the previous handoff, not the failure lesson, not the operator's answer, not the stories or acceptance criteria. It records path and line, never the matched text. It runs in the product's own reviewer workspace, which holds the published Blueprint whole and nothing else, so the reviewer's packet, its standing files and its own folder hold none of the author's files. The two folders are siblings under one managed root, and the gateway documents a write boundary rather than a read boundary between them. The standing files still carry the product's stories and its decisions, so the isolation the gate provides is over the packet and the workspace, not over the standing layer. (D-068, D-069, D-070, D-071)
BR-48An open Blocker stops the dispatch and holds the review in the operator's queue. The operator resolves it by sending the design back (BR-58); nothing clears the gate without a fresh review. The send-back records the signed-in account that made it, as the archive, prune and answer actions do (D-082, D-083); the other board moves are not attributed yet, and neither is the cancel that ends a loop at the cap, except that an auto-fix admin’s release, cancel and close of a held unit-test card record the admin’s alias (D-105). The operator's former power to clear the gate directly is replaced on purpose by the contested send-back and a fresh review. (D-068, D-070, D-079, D-084)
BR-49The isolation boundary is the packet and the workspace. The reviewer's workspace is the product's own reviewer workspace, a second root holding the published Blueprint whole — the standing files are the rubric, and a reduced set would be drift under BR-39 — and it is reset before every review turn, so it holds none of the author's files. What is withheld from the packet is the author's session state: the previous handoff, the failure lesson and the operator's answer. (D-069, D-071)
BR-50A design reaches a reviewer only as a GAOS-held artifact in the packet, because there is no other route: GAOS reads no folder, and its allowlist admits only the instruction files. The findings travel back the same way, as context. The gate is the planner's own DEPENDS_ON edge and BLOCKED status, and its record is an artifact — not the score-band Review vertex, which stays with the review engine that owns it. (D-069)
BR-58A design the review blocked goes back to its author only by an operator's send-back, at most three times per design; then the work is canceled. The design re-opens to ready with its own previous version, the review's findings and the operator's optional triage — one of CONTEST, ESCALATE, PROPOSE FIX or DECLINE and a note per finding — in its packet, in its own session where the session survives; the review waits in backlog on its dependency and, when the revision is delivered, runs on a fresh session that sees the new design and the rubric only. The revision is told to state its reasons as properties of the design without referring to the review; whether it does is not checked, so the revised design may carry the author's reading of the review to the fresh reviewer, and the reviewer's workspace has no read boundary to the author's (BR-47). A review blocked by its own verdict is never re-run on a design that was not delivered again — not by hand, not by a Blueprint sync, not through an approval of a design that delivered nothing; a revision that changes little is a new design, and the cap, not an identity check, bounds how often the gate is re-sampled. The operator's triage notes are not stripped as BR-53 strips external text: the operator is the trusted party, and the notes reach only the author, quoted. (D-084)

9.8 The QA catalog and the QA sync API

The QA catalog is a per-product register of test cases, and the QA tools reach it over a REST API (D-072, D-073). The rules bound what a machine caller may write. They are built as of v0.37.0, they rely on the design gate (BR-46) and the closed event catalog (BR-05) and amend neither, and the contract itself is published at The QA sync API. The question of who may edit a case's decision is OQ-34.

IDRule
BR-51Every field of a QA case has one writer. The planning half belongs to GAOS and changes only through the admin catalog endpoint or a seed re-run; the automation half belongs to the QA tools. Inside the automation half the run record (result, runAt, runRef) is written as one: an item that writes any of them must carry runAt, is refused stale when a newer run is stored, future when runAt is more than 300 seconds ahead, and run-incomplete when it carries a result without a time, so the newest run wins; only the admin token may force past stale. The QA side is create-only: it may add a case that does not exist and may never change, park, retire or delete one that does. (D-072, D-073)
BR-52The machine API answers only a bearer token read from a file, and fails closed. With no token configured every route is 503; a missing or wrong token is 401; a QA token on an admin route is 403; two equal admin, QA or outbound tokens, or a token that is short or lacks the gaos_ prefix, disable the API; a client from the clients file whose token equals any principal's, or whose token file others can read, is not loaded, and a clients file others can read loads no client at all; such a client reaches only the routes of its capabilities — inbox (the default) and tasks — on its own products, and the QA tools hold inbox; a request through /app is 404. The QA token reaches only the products named by id in GAOS_API_QA_PRODUCTS — any other product is 404 and an unset list reaches nothing — and only one write per token is in flight. A token is never logged or echoed. Two routes are the stated exception: POST /v1/products/{id}/staging and POST /v1/products/{id}/unit-results answer HTTP Basic, one credential per product from each route’s own file, and a credential valid for another product is 404 (D-088, D-106); they are registered with the bearer routes, so BR-55 still holds, and a test lists them by name (TC-878). (D-072, D-074, D-075, D-083, D-088, D-099, D-106)
BR-53Every batch is bounded: at most 200 items and 1 MiB per request, strictly decoded, and over the bound nothing is applied. So is what a QA token can add: at most 5 new epics per request, 100 epics and 5,000 cases per product. Every text field of a request is screened for secrets and stripped of backticks, angle brackets and line breaks before it can reach an agent's prompt. The defect route adds a per-product limit of 50 new defect keys a day. (D-072, D-073, D-075, D-091)
BR-54QA data never moves a task. No result, case or sync changes the status or block reason of any existing task. The single write it may cause to the task graph is to add one card for a new epic, in the product's current workflow, born BLOCKED with the reason qa-epic-added and released only by an operator's board move, so a QA token can never create dispatchable agent work. It is announced by the existing TaskPlanned and TaskMoved events and adds no event name. Amended: the defect route lets a QA token plan cards that may be dispatched, but only for a product whose operator has recorded the auto-fix switch, and within its caps; a QA result still never moves an existing card. Amended again: on a product that turned it on, the staging callback may plan create cards for the product’s uncovered cases of the deployed repository’s kind, capped; and a QA spec pull request’s merge, or the catalog result that implements its case, may plan one run of that case. (D-073, D-076, D-091, D-103)
BR-55A back-office session is verified, never inferred. A request is signed in only when its cookie's MAC verifies under the deployment's key and label, it has not expired (12 hours, absolute), its account still exists and the account's credential fingerprint still matches. Every route is refused without that unless it is on a fixed public list or is a bearer route, so a route nobody classified is refused. Sign-in fails closed: with no accounts, or in prod with no deployment label, nobody signs in. (D-079)
BR-57Every answer records where it came from — the back office with its deployment label and the signed-in account, or a machine client with its registered name, kind and origin — derived on the server. The origin is the client's registered host, not an observed address. Only the client's actor handle is taken from the request; it is recorded and shown as the client reported it, kept with the event for as long as the event (indefinitely, BR-04), and it may not name the operator. The machine API returns a back-office answer's actor as operator, never the account. A machine client asks, reads and answers only its own inbox items; an id another client uses is refused, the open-item cap counts per client, and a client name is never reused. The first answer wins; an identical retry by the same client is accepted again and writes nothing. The QA tool receives every decision on its own items, whatever answered them; the webhook is a notification and carries no source, so a decision counts as the operator's only when its source.kind is gaos. Any other client polls. (D-083, D-078)
BR-59An outside client never writes free text onto a card. A task the machine API plans takes its title, role and labels from the routing table the pull-request flow uses, and its body has no title field; a request that names one is refused. Only the client name, the externalId, the kind, the pull request or the case code reach the store, each matching a pattern that has no key delimiter. (D-099)
BR-60A pull-request bundle plans exactly one test-planner card, and only when every member it follows is merged or closed, at least one is merged, and its newest member joined at least ten minutes before. A member is a pull request GAOS follows and that passed the draft, fork and stranger checks; a linked pull request in a repository the product does not follow, or by a stranger, is a reference that never holds the bundle back and is never read. A planned bundle is final. The cases the planner proposes reach the QA tool only as drafts and links, after GAOS checks each against the QA tool’s values and its own catalog; nothing is written to the automation repository, except by the automation planner, under BR-67 (D-111), and by fixes outside the automation directory of a repository that is also a fix target, under BR-72 (D-116). (D-100)
BR-67GAOS writes to an automation repository only a new test-catalog file under docs/test-catalog/ (under <dir>/docs/test-catalog/ when the product names the repository’s automation directory; such a repository may also be a fix target, its fixes kept out of <dir>/, D-116), on a fresh gaos/catalog-* branch, as a draft pull request whose commit carries [skip ci] (so no push or pull_request workflow runs on it), refused when a workflow on any other trigger would run with secrets (on GitLab, where GAOS cannot read that, refused unless the operator confirmed the GitLab CI statement, and never into a CI file, D-115), and only to a private repository listed in the product’s automation repositories (on GitLab, visibility private; an internal project is not private). It never merges, never marks the pull request ready and never pushes to it again. Every automation-planner outcome that would start a spec waits for a person to release the card. (D-111, D-115)

10. Scope

10.1 In scope

10.2 Scope boundary

boundary
           ┌─────────────────── GAOS owns ───────────────────┐
           │  Mission Control · API gateway · orchestration  │
           │  execution & leases · model gateway · ArcadeDB  │
           └─────────────────────────────────────────────────┘
   reads ↑            writes ↓              calls →           runs on ↓
┌────────────────┐ ┌────────────────┐ ┌────────────────┐ ┌────────────────┐
│ tenant's repo  │ │ tenant's branch│ │ model provider │ │ host machines  │
│  NOT owned     │ │  NOT owned     │ │  NOT owned     │ │  NOT owned     │
│ indexed only   │ │ merge is gated │ │ replaceable    │ │ slot 03 only   │
└────────────────┘ └────────────────┘ └────────────────┘ └────────────────┘

The boundary is drawn where responsibility ends, not where the network does. GAOS reads a tenant's repository and writes to a branch, but it never owns either — which is why the merge is gated rather than performed. It calls a model provider but must never leak provider-specific shapes upward, which is what keeps the provider replaceable.

10.3 Constraints

ConstraintSource
ArcadeDB is assumed, not abstracted. The model uses hybrid schema, bucket partitioning, EXTERNAL properties and index-free adjacency — none of which port cleanly. The one seam that is abstracted is tenancy: D-042 puts the three strategies behind a repository interface, which is a choice within ArcadeDB rather than a portability layer over it.Data model §01, §13; D-042
The target version is ArcadeDB 26.7.2, pinned rather than floating (D-043). It clears the v26.5.1 floor that EXTERNAL properties require. The DDL must be run against it in a scratch database before build-order step 1 writes anything, and an upgrade re-runs that validation.Data model §05, §13; D-043
One public edge machine with 1 vCPU and 957 MiB, running nginx and certbot and no Docker. Every container runs on the private VM.deploy/edge/README.md
GAOS shares the private VM with other products. It owns product slot 03 and one tunnel port per tier; nothing but the edge is ever publicly bound.deploy/STACKS.md
The dashboard is stdlib-only Go with no go.sum; the docs site makes no third-party requests. Both are deliberate and constrain what may be added.README.md, docs authoring spec
Build order is prescribed and the visual layer is step 9 of 10. It has already been built first — the remaining steps must not be reordered further.Architecture §10
Everything in this repository must remain runnable without any private submodule present, which constrains where a seam may be cut for the rest of the project's life.K-2, BR-27
Two execution adapters must stay behaviourally identical above the seam, forever. That is a permanent constraint on every component that touches a run: it may record which adapter ran and may never branch on it.§7.6, BR-33, D-036
In CLI mode the execution path inherits the tool's flags, output format, concurrency behaviour and terms of use — none of which GAOS controls or versions. The pin and the boot smoke test bound the damage; they do not remove it.§7.6.2, R-12
Apache-2.0 is now the licence, which fixes two things for the project's life: every contribution arrives under it via DCO sign-off, and anyone — including a better-resourced competitor — may host GAOS. Hosting was refused anyway, so the second costs little; the first means no future relicensing without every contributor's consent.LICENSE, CONTRIBUTING.md, D-035

11. Risks & assumptions

11.1 Assumptions

IDAssumptionValidated?
A-01A machine-checkable rubric is a sufficient proxy for "this brief is good enough to work from"No — the rubric has never scored a real record
A-02Escalating a model tier improves the outcome when the failure signature has changedNo — never observed; it is a reasoned design position
A-03Extracted knowledge measurably reduces retries on a later run of the same productNo — this is the central business bet and the one measurement that would settle it has never been run
A-04ArcadeDB's documented hybrid-schema, partitioning and EXTERNAL behaviour holds on the version GAOS will deployNo — the document itself says to verify before relying on it
A-05Detached runners with leases and heartbeats are sufficient to survive orchestrator restarts without a distributed lock serviceNo — designed, not exercised, and retired in v0.29.0 with the detached runner; recovery now polls each turn's request id (D-060)
A-06Teams will accept a system that refuses to plan against an incomplete briefNo — a product-adoption assumption with no user contact behind it
A-07A provider's command-line tool can be driven non-interactively by a scheduler, reliably enough and within its terms, to stand in for an API in the MVPNo — never attempted. Two separate bets: that it works mechanically, and that it is permitted. See R-12
A-08An agent instructed to write a structured handoff document will do so consistently enough that the next agent can rely on itNo — this is the load-bearing assumption of the whole CLI approach, and the mitigation if it is false is a validator that fails the attempt rather than a chain that degrades quietly (BR-30)
A-09Researchers, small companies and individual experts will pay for installation and support of software they could install themselves for nothingNo — the central commercial bet after D-026. It is the standard model for single-maintainer open source, which is evidence about the model and not about GAOS

11.2 Risk register

IDRiskImpactCurrent position
R-01Everything past the operator surface is unbuilt — scheduler, runner, review engine, schemaThe product cannot do the thing it is forAccepted and stated openly in the README; the build order exists
R-02No authorisation. Since D-079 the back office signs in for real, but every account has every rightAny tenant boundary is currently fictionalOpen, narrowed by D-079 from “no authentication” to “no roles”, and downgraded by D-026: it no longer blocks domain K, because the boundary now separates colleagues in one deployment rather than paying strangers. It still blocks publishing anything that binds beyond localhost — see OQ-11
R-03No DDL has ever been applied — the DDL now applies, but the dialect moves between ArcadeDB releasesThe schema may not run as written; discovered late, it invalidates index and constraint assumptionsLargely discharged, not closed. The scratch run happened on 2026-08-16 against 26.7.2 (D-043): 314 statements, clean and idempotent. It found what it was meant to find — 53 statements failed first time, yielding D-045 (dialect: edge uniqueness is an index, not a keyword) and D-046 (an error in the model: partitioning by tenantId would have permitted one Task per tenant). A third followed on 2026-08-17, found by writing rather than by reading: D-047, an identity index on every type the store addresses by business id, taking the DDL to 321 statements. What remains open is the second half of the mitigation: EXTERNAL was verified to apply, but the deletion behaviour L-7 depends on — an EXTERNAL payload being destroyable independently of the record referencing it — has not been tested. Until it is, a deletion promise still rests on an unverified storage behaviour
R-04Record rot — the record is filled once and never updated while the codebase movesSilent degradation; the planner produces defensible-looking plans from a stale briefDesigned against: the drift penalty and ReadinessDropped. Untested
R-05Runaway model spend. budget_cap is specified per workflow and per tenant, and implemented nowhere. D-030 moves the exposure onto the operator, and D-033 makes the figures partly estimatedDirect, unbounded financial loss the moment a real credential is configured — the user's money now, not the project'sOpen, reframed and now designed. It stopped being a financial risk to GAOS and became a duty-of-care risk to its users, which is worse, because the people exposed did not make the decision. D-037 specifies the guard in full — three zones, pacing, deferral, six properties (§8.10.1) — and none of it is built. In API mode it is the only thing between a retry loop and an unbounded charge; in CLI mode it costs throughput rather than money
R-06The core bet is unproven — knowledge accumulation reducing retries has never been measuredIf false, GAOS is an expensive scheduler and domain G is decorativeOpen. The measurement is defined; running it is a milestone, not a task. D-026 makes it harder to observe, since runs now happen on other people's machines — mitigated only if operators choose to report
R-07The commercial model is decided but untested: no installation has been sold, no support subscription exists, and no submodule has been built or scopedThe revenue model rests on one person's availability, and a services business scales by hours rather than by copiesOpen by nature rather than by omission. Deliberately cheap to test — O-7 needs one paid install and one renewal, neither of which requires GAOS to run a service
R-08Single model-provider concentration; the role map names Anthropic models exclusively, and D-033 couples execution to that provider's command-line tool as well as its modelsPricing, availability and policy changes pass straight through to every operator's ability to run anythingMitigation decided, not yet built: D-041 makes the gateway multi-provider and BR-36 forces the escalation ladder into normalised tiers so a second vendor can map into it. The risk does not fall until a second adapter exists, and none does — which providers ship first is OQ-23
R-09No high availability: one ArcadeDB node, one edge machine, one private VMA restore that loses minutes loses eventsAccepted, and no longer commercially blocking after D-031: GAOS commits to response times rather than uptime, so availability is each operator's own capacity decision. The data model's second recovery path is the event stream itself. OQ-16 is narrowed to the project's own two tiers
R-10Open-core boundary erosion: a capability needed by everyone drifts into a paid submodule, or a submodule quietly becomes requiredThe failure mode that ends open-core projects. It destroys the trust that is the entire acquisition strategy in K-3Guarded structurally: BR-27 and BR-28 make the boundary a rule with a published scope (D-038: the paid half is automation of what the free half must keep doing manually), not a judgment call made release by release
R-11Egress of source code to a model provider is automatic, continuous, and widens on every retryThe one way GAOS can harm a user badly without any component failing: correct behaviour, unreviewed content, irreversible sendOpen, and materially reduced on 2026-08-22. L-4's pre-dispatch check is the load-bearing part — the safety score in domain E is post-hoc and cannot recall a sent slice — and it is now built and enforced by a type rather than by call order (T-126, T-127, BR-32). The risk does not close: the detectors are a finite list and a secret in an unusual shape still passes, the widening-on-retry behaviour is unbuilt rather than mitigated because there is no retry loop yet, and the product-level no-egress mode L-6 asks for is T-128
R-12Driving an interactive provider CLI from a scheduler may sit outside the terms of the subscription it runs under, and CLI interfaces are neither versioned nor documented for programmatic useAn operator could have their provider account restricted by using GAOS as designed, and a tool update could break execution with no notice and no deprecation windowOpen, and not solvable in code — but no longer a single point of failure. D-036 makes the API adapter a first-class supported mode rather than a hypothetical exit, so an operator who cannot or should not drive a CLI has a switch rather than a fork (§7.6.1). Remaining mitigations: the operator confirms their own provider terms at configuration time, and supported CLIs are pinned with a boot smoke test that refuses to start on drift (OQ-23)
R-13Execution now depends on two services GAOS does not own — ai-manager and ai-claude-cli — and on an upstream API that does not exist yetA change or outage upstream stops every product's work; until the provisioning API ships, one workspace per product is not possible at allOpen, accepted by D-055. The upstream is the owner's own stack, specified in The gateway and tracked as M14.1. GAOS keeps the record, so an outage pauses work and loses none
R-14The model runs with full permissions inside the workspace and can rewrite the Blueprint files it was givenAn attempt could run under rules the record says it never sawDetected, not prevented: every sync re-asserts the digest, the observed context is compared with the manifest, and drift refuses the next dispatch (BR-39)

12. Out of scope

Deliberate non-goals. Each is a decision with a reason, not an omission.

13. References

SourceWhat it supplies to this document
artifacts/v1/gaos-architecture.html§02 layers · §04 setup→autonomy · §05 task split and routing · §06 scoring, thresholds, guardrails · §07 readiness rubric, bands, drift · §08 replay · §09 API and indexes · §10 build order
artifacts/v1/gaos-arcadedb-model.html§01 modelling principles · §03 vertex catalog · §04 edge catalog · §08 event catalog · §10 indexes · §11 invariants · §13 storage, tenancy, retention, migration, HA
artifacts/v1/gaos-mission-control.htmlThe operator surface, the role and room model, the back-office record shape, the readiness checklist
Architecture — the systemThe same design as a docs page, with the repository mapping
Architecture — the graphThe schema as a docs page, including what is not built yet
dashboard/events.goThe closed event catalog as Go constants, with "pass 2" names marked
dashboard/store.go, store_mem.go, store_arcade.goThe seam and its two implementations; sim.go, the simulation that stood in for the runner, was deleted in v0.29.0
README.mdThe designed-versus-built table and the deployment facts
deploy/STACKS.md, deploy/edge/README.mdTopology, tunnel ports, TLS termination, the constraints in §10.3
Infrastructure — overview, environments, neighboursHow the two tiers run and how GAOS shares the VM
FAQThis document's commercial and data-handling sections restated for a reader who has not read a BRD — what is free, who it is for, what is sold, who pays for the models, and where the code goes

14. Decision log

Fifty-one decisions are made and traceable — the thesis itself, the stateless orchestrator, business ids in events, one edge type per relationship, the Task/TaskRun split, database-per-tenant as the default, the readiness floor of 45, capability-first routing, correctness weighted at 0.45, safety as a veto, the build order, the deployment shape, and since 2026-08-08 the commercial model, the target customer, the pricing basis, the support model, the CLI-first execution path, the data-handling position, the licence, the budget guard and the submodule boundary. Six more landed on 2026-08-15: what success means, what Mission Control is for, multi-provider behind the gateway, tenancy as a configurable boundary, the ArcadeDB target version, and what the estimator does when it cannot price a model. Three more landed on 2026-08-21, and they are the first in this log settled by measurement rather than by ruling: which provider CLI ships first, that a task's outcome is never read from a process exit code, and that cost is taken from the tool wherever it reports one. Three more on 2026-08-22 settled the heartbeat, the lease and kill-then-requeue. Eight landed together on 2026-11-02 and change the product's shape: ai-manager becomes the one gateway, each product gets a Blueprint and a workspace, each task a session, and the execution layer GAOS built is retired. Sixty-five in all, maintained as their own page so that answering an open question has an obvious destination.

→ Decision log (D-001…D-062)

15. Business milestones

Real dates only, taken from git history.

DateMilestoneCommit
2026-08-02The three design artifacts committed — architecture, ArcadeDB model, Mission Control prototypea057a59, 30162b1
2026-08-07Mission Control ported to Go + HTMX, the docs site and landing page vendored in, both tunnelled stacks stood up on product slot 03efcf44e
2026-08-07Edge cookie guidance corrected — auto never sets the Secure flag behind this tunnel24c2c16
2026-08-08Rebuild-and-restart tooling for both stacks8531ce6
2026-08-08This BRD baselined; the design restated as business requirements and the open questions registered—
2026-08-08QA test plan published and OQ-13 answered — the first open question to closecb86270
2026-08-08The commercial block answered. Open core with private submodules and paid services, target customer, pricing basis, support model, who pays the provider, CLI-first execution and the data-handling position, logged as D-026…D-034—
2026-08-08GAOS is licensed. Apache-2.0, a DCO contribution policy and a trademark statement committed — the repository can be published. Execution becomes dual-mode and the budget guard gets a design (D-035…D-037)LICENSE, NOTICE, CONTRIBUTING.md

Next milestones — open, pending the owner's roadmap

  • Licence and contribution policy chosen and committed — done, D-035. Remaining: vendor the upstream licence texts for the fonts and charting library beside the assets, which redistribution requires — done 2026-08-20, and deploy/check-stacks.sh now refuses a deploy that would ship an asset without one
  • Apply the DDL to a scratch ArcadeDB on the target version and reconcile the dialect — done 2026-08-16, D-045 and D-046, with D-047 following the next day
  • Graph schema plus event store, with a fold that reproduces current state exactly (build order step 1) — done 2026-08-17. The stream is append-only and unbounded, the reducer is pure, total and order-stable, and the fold test — the first of §4.1's three ever to run — compares fold-from-genesis against fold-from-nearest-snapshot on a real workflow
  • Task state machine rejecting illegal transitions at the boundary (step 2) — done 2026-08-17, dashboard/state.go; every write to a desk's state goes through it and an illegal move returns a reason rather than a bare failure
  • Readiness scoring running on ingestion, with the planner refusing below 45 (step 3) — done 2026-08-20. The twelve-signal rubric replaced the seven-boolean stand-in, and below 45 the planner returns the missing list instead of a plan. The seeded records now span the bands honestly: 95, 87, 79, 69, and a draft at 35 that is refused
  • The four new event names, the deferred task state and the two TaskRun properties landed together in the data model, dashboard/events.go and the fold — before anything depends on them — done 2026-08-17, in one change as required. TaskResumed turned out to be the fourth name and already existed, so three were new
  • The first CLI adapter, the task packet and the handoff-document validator (§7.6) — done 2026-08-23, and superseded on 2026-11-02 by the gateway (§7.7)
  • The upstream provisioning API in ai-claude-cli and ai-manager, then the ai-manager adapter, the Blueprint, and a board per product — M14
  • The budget guard: three zones, pacing and deferral, before the first run in API mode (§8.10.1)
  • First real model call, behind a budget cap that actually exists and a pre-dispatch egress check that actually runs
  • The unsatisfiable-task test passing — the second of §4.1's three acceptance tests, still blocked on domains C, D and E
  • The second-run measurement performed for the first time
  • Authentication, before anything binds beyond localhost
  • First paid installation completed — the whole of O-7's first half

16. Business decision matrix

Design choices with the options actually available and their trade-offs. These are decisions, not questions of fact; the full question register lives on the open questions page. Five of the six rows are now decided and every one is kept here with its rejected options intact, because the reasons a path was not taken are the part that gets forgotten. The autonomy default is the one still open.

DecisionOptionTrade-off
Commercial model — decided, D-026(A) Hosted multi-tenant SaaSRejected. Matches the schema's design, and requires real authentication, real isolation, billing, and an SLA the current single-node infrastructure cannot support
(B) Self-hosted licenceRejected as the whole answer, kept as a part: private submodules are licensed this way, but the core is not
(C) Open source, self-hosted — chosen, with private submodules and paid services instead of a paid hosted tierDistribution and credibility for an unproven thesis; nothing to host, so nothing to promise uptime on. Slowest path to revenue, and the design artifacts become public
(D) Internal platform onlyRejected. Everything already true, no commercial work at all, and no path to the outside evidence the core bet needs
Tenancy strategy at scale — decided, D-042(A) Database per tenantThe data model's default, and it stays the recommended one. Hard isolation, per-tenant backup, noisy-neighbour containment. Costs a connection pool per tenant, N migrations, and a separate pipeline for any cross-tenant analytics
(B) Shared database, tenantId everywhereMany small tenants, one migration, easy reporting. Every query must filter forever, and one missing WHERE is a data breach rather than a bug
(C) Hybrid — large tenants isolated, small ones pooledTwo code paths in the repository layer. Only worth it at scale, and there is no scale yet
(D) All three behind one repository interface — chosen, with the strategy selected per deploymentNone of A, B or C is rejected; the choice moves from architecture to configuration, and nothing above the repository layer may know which is in use. Buys the option to serve a researcher's compartments and a small company's client work from the same codebase. Costs the interface up front — which is precisely what OQ-10 warned that picking late would cost — and the abstraction is only honest while each path has actually been run
Model provider strategy — decided, D-041(A) Anthropic onlyRejected as the strategy, kept as the starting point: Anthropic is the first adapter. One adapter, one bill and one set of tier semantics matching the existing role map would have been simpler, at the price of full exposure to one vendor's pricing and availability
(B) Multi-provider behind the gateway — chosen, with CLI mode the MVP's focusThe gateway layer already exists for this reason. The costs are accepted rather than avoided: a normalised tier abstraction — now BR-36, because BR-15's "one tier above" is meaningless across vendors otherwise — and per-provider cost accounting. Which providers ship first follows from OQ-23's adapter contract, and D-036 keeps API mode available for a vendor whose CLI cannot be driven
Autonomy default (OQ-12)(A) Band-driven, as designedAutonomy is earned by record completeness. Coherent, but a team with a thin brief experiences the product as a wall
(B) Gates always on until a tenant opts outSafer first impression and a gentler onboarding; weakens the incentive that makes the readiness rubric work at all
Mission Control's role — decided, D-040(A) The product surface tenants buyIt is the most finished thing in the repository. Raises the bar on auth, per-tenant theming and accessibility. After D-026 nobody buys a surface at all, which removed the commercial half of this option's argument
(B) An internal operations consoleKeeps the surface cheap and lets the API be the product. Discards the strongest existing demo asset
(C) Both — one role-gated surface, chosenOne codebase, two audiences, separated by permission rather than by build; an internal capability an operator does not get is a grant, never a fork. Takes (A)'s bill in full and accepts it as preconditions rather than aspirations: authentication (OQ-11, now a blocking dependency), per-tenant scoping and accessibility come before the next feature added here. The build order is not overridden — the loops beneath still get built first. Recorded as I-8; Domain L's L-3 lands here by elimination
What goes into the first private submodule — decided, D-038(A) Compliance & evidence pack — tamper-evident event chain, evidence-bundle export, retention beyond 90 days, read-only outside credentialsWas the recommendation; passed over by D-038 and kept as the leading candidate for a later pack. It is exactly what D-028 just took out of the core, a small company asks for it and a researcher never does, and nothing in it is a safety control, so BR-28 is untouched. Costs: a real cryptographic design, and retention obligations that interact with L-7
(B) Identity pack — OIDC/SAML, per-tenant roles, API tokens, login auditRecommended second. Clean split: the core ships local accounts good enough for one operator, and the pack is what a company with an identity provider needs. Risk: authentication is close enough to a safety control that the core's local accounts must be genuinely sufficient, not crippled — this row is the one most likely to erode BR-27
(C) Scale pack — multi-node scheduling and leader election, replication and HA runbooks, cross-tenant analyticsHonest fit for the boundary, wrong fit for the timing: it sells to an operator who has outgrown a single node, and none exist. Also the most expensive to build and the hardest to support remotely
(D) Provider pack — extra model adapters, a maintained price table, cost forecastingTempting because it is cheap to build, and the worst choice on principle: it puts cost visibility behind a paywall while the operator is the one paying (D-030), which is BR-28's spirit if not its letter. A maintained price table as a subscription is defensible; a budget forecast that only paying users can see is not
(E) Connector pack — issue trackers, forges, notification routingLow risk, low differentiation, endless maintenance surface. Better as sponsored custom development at the day rate than as a licensed product
(F) Nothing — services only, no submodule at allThe simplest business and the honest default until one customer asks twice for the same thing. Keeps the whole repository trustworthy with zero boundary to defend; caps revenue at the owner's available hours (R-07)
(G) Generation pack — chosen, under the rule manual-free, generation-paid: diagrams generated from the narrative record, diagrams derived from other diagrams, and AI-generated user stories, acceptance criteria, test cases and test scenariosThe core keeps accepting, rendering and scoring the manually-authored version of every artifact, so each item passes BR-27's sentence — without the pack, you author it yourself. It monetizes convenience rather than compliance, and it holds the R-10 boundary by construction: the paid half is automation of what the free half must keep doing manually. Costs: generation calls run on the operator's own account (BR-29) and every generation dispatch passes the pre-dispatch egress check (BR-32)

Appendix A — Glossary

TermDefinition
Product master recordThe brief, stories, criteria, diagrams and indexed repository that agents read before they start. The thing readiness scores.
Readiness score / bandA 0–100 machine-checkable measure of whether the brief is complete enough to work from, and the four autonomy tiers derived from it.
Drift penaltyThe decay subtracted from a raw readiness score for staleness, boundary-file churn and open contradictions. Capped at 25.
Atomic taskOne concern, one workspace, at least one acceptance criterion. Stricter than "small" — the test is whether it can be verified on its own.
Context sliceThe exact graph slice sent to a model on one attempt, frozen and stored so the prompt is reconstructible.
Failure signatureA hash of the normalised error — failing test name, error class, offending file — compared across attempts to tell progress from repetition.
Safety vetoA stop triggered by the safety dimension scoring below 60, evaluated before the weighted total and overriding it.
Workspace leaseAn exclusive, expiring claim on an isolated filesystem and branch, held by one run and reclaimed on expiry.
FoldReducing an ordered event stream into state. The same operation serves recovery, audit and replay.
GateA hold on a merge pending a human decision, recorded as an Approval.
TenantThe isolation root and quota holder: a plan, a concurrency limit, a budget cap, and — by default — its own database.
Product slotThe convention by which several products share the private VM; GAOS is slot 03, giving it tunnel ports 18301 and 19301.
OperatorThe person or company that runs a GAOS deployment on their own machines, pays the model provider, and owns the data. The only party GAOS has a commercial relationship with. Distinct from a tenant, which is a compartment inside their deployment.
Open coreA complete, freely licensed product, with optional paid components that add capability and are never required for it to work (BR-27).
Task packetThe frozen context slice written to the workspace as files, which is what a CLI-invoked agent is given instead of a request body.
Handoff documentThe structured document every agent must produce at a declared path. Stored as an Artifact, it is how one agent's output becomes the next agent's input (§7.6).
Cost basisWhether a recorded cost was measured — reported by the provider — or estimated by GAOS from a local token count and a price table. Never dropped in aggregation.
Execution modeWhether the gateway reaches a provider by spawning its command-line tool (cli) or calling its HTTP API (api). One deployment-wide setting; recorded per attempt, never branched on.
PacingSmoothing spend across a budget period, so the ceiling in force at any moment tracks how much of the period has elapsed. Prevents a month's budget being spent in an afternoon.
DeferralA ready task held back because the budget guard is throttled. It keeps its place in the graph, resumes automatically, and counts as neither a retry nor a failure.
BlueprintA product's standing knowledge — its BRD, technical and coding policies and knowledge sources — rendered into its workspace and versioned. See Blueprint.
BriefThe per-task layer of what a model is given: the task, its criteria, cited handoffs and the last review. It is the prompt, and what the context slice freezes.
Gatewayai-manager, the one service GAOS sends model work to. It owns sessions and workspaces; ai-claude-cli behind it runs the model.
Product workspaceThe one folder on the worker that every session of a product runs in, named gaos-<tenant>-<product>.
Sessionai-manager's stored conversation. GAOS opens one per task and treats it as transport, never as the record.
TurnOne prompt and one reply inside a session — one attempt at a task.
EgressData leaving the operator's host. In GAOS it means the context slice: product record excerpts and source code, selected by traversal, sent to a model provider on every attempt.

Appendix B — Abbreviations

AbbreviationExpansion
ADRArchitecture Decision Record — modelled here as the Decision vertex
BRDBusiness Requirements Document — this page
DAGDirected Acyclic Graph — the shape a planned workflow must have
DDLData Definition Language — the schema statements in the data model document
HAHigh Availability
NFRNon-Functional Requirement
OQOpen Question — the register on the open questions page
RIDArcadeDB's physical record id, #bucket:position; never referenced by events
SaaSSoftware as a Service — the framing v0.1 was written under, and the one D-026 rejected
SLAService Level Agreement — none exists, and none is offered. Support commits to response times instead (K-8)
BYOKBring Your Own Key — here in its stronger form: the operator's own provider account, never a credential handed to GAOS (BR-29)
CLICommand-Line Interface — in the MVP, how the model gateway reaches a provider (§7.6)
WGWireGuard — the tunnel between the public edge and the private VM

Appendix C — Document notes

The section structure is adapted from the BRD in the sibling Cubiq repository, which in turn adapted an external enterprise template. Sections that did not survive the adaptation are worth naming so their absence is a decision rather than an oversight: there is no formal review board, no signature block, no organisational chart, and no "PO versus Berita Acara" decision matrix — §16 keeps the name and replaces the content with the design choices that are genuinely open.

Two structural departures from the reference: the decision log and the consolidated open questions are separate pages rather than trailing sections, because both are registers that will be edited far more often than the body of this document, and because answering a question should move a row from one page to the other. Sections 14 and the closing pointer below are therefore short by design.

This document is extensible by design: a new business concept is added as a new h2 following the pattern of the closest existing section — usually Business requirements §8 for a new capability, or Business rules §9 for a new constraint — without changing the file layout or the ToC registration.

Consolidated open questions

Every open item in this document is indexed on its own page as OQ-01…OQ-23 — eleven commercial, three product, six technical, three operational. Eighteen are answered, including the whole commercial block except the rate card and, since 2026-08-15, the whole product block except the autonomy default; the newest questions exist because those answers were given, which is what answering a question in this register is supposed to do. The eighteenth, OQ-23, was settled on 2026-08-21 by running the tool against the contract rather than by ruling on it. Each remaining one carries the options available and the reason it cannot be answered from evidence.

Since then OQ-24 was raised by measurement, and on 2026-11-02 the move to the gateway raised six more, OQ-25 to OQ-30, and on 2026-11-04 the design gate raised one more, OQ-32, and on 2026-11-14 the QA sync raised three more, OQ-33 to OQ-35, and on 2026-11-21 the open-source scrub raised one more, OQ-36 — forty in all with OQ-37 to OQ-40 since, twenty-three answered.

→ Open questions (OQ-01…OQ-36)