Product
Decision log
Every business and design decision GAOS has actually made, with the evidence that proves it was made. One hundred and thirty-one entries, each traceable to an artifact section, a committed file, a product-owner ruling, a measurement, or git history — and a destination for every question the open register resolves.
How this log works
A decision belongs here when it constrains future work and reversing it would cost something. It does not belong here because it seemed important at the time. Every row carries evidence: if a decision cannot be pointed at, it has not been made — it is an open question that somebody has been acting on informally.
The lifecycle
An entry on the open questions page is answered by the
product owner. The answer is written here as the next D- number, dated the day it
was decided, with the reasoning in the decision text and the evidence pointing at whatever
records it. The question's row then flips to Answered → D-nnn. Nothing is deleted from
either page; a reversed decision is superseded in place, the way D-004 would be if
the event id scheme ever changed.
Dates appear only where git history or a document supplies one. A dash means the decision is embedded in the design artifacts committed on 2026-08-02 without a separately recorded date — which is honest, and better than inventing a day.
Thesis and architecture
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-001 | 2026-08-02 | The graph is the primitive, not the prompt. Scheduling, context assembly and impact analysis are traversals; recovery is a fold over an event stream rather than memory inside a process. Every other decision in this log follows from this one. | gaos-architecture.html §01 |
| D-002 | 2026-08-02 | The orchestrator holds no authoritative state. The scheduler is a pure function of the graph, so two replicas reach the same answer independently and leader election protects against duplicate dispatch rather than divergent state. | gaos-architecture.html §02 |
| D-003 | 2026-08-02 | Every change emits an event, and the event stream is the single path for replay, recovery and audit. There is no second path, and an event that was never written is a state change that never happened. | gaos-architecture.html §01; gaos-arcadedb-model.html §01 principle 4 |
| D-004 | 2026-08-02 | Events reference the business id string, never the physical RID, so that a restore into different buckets does not break the history. |
gaos-arcadedb-model.html §01 principle 2 |
| D-005 | 2026-08-02 | Six layers with an explicit prohibition each — the UI may not invent state the graph lacks, the gateway may not defer the tenant boundary downward, orchestration may not hold long-lived memory, execution may not die with the orchestrator, the model gateway may not leak provider shapes upward, and the database may not be bypassed by a side channel. | gaos-architecture.html §02 |
Data model
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-006 | 2026-08-02 | One edge type per relationship, never a generic edge with a type property. Traversal by edge type is index-free adjacency; filtering a generic edge by property scans every neighbour. Named in the source document as the single biggest performance decision in the model. |
gaos-arcadedb-model.html §01 principle 3 |
| D-007 | 2026-08-02 | Task and TaskRun are separate types. Folding attempts into the task would destroy the cost, model, failure signature and logs of every previous attempt, making the retry loop untunable and model comparison in replay impossible. |
gaos-arcadedb-model.html §03 |
| D-008 | 2026-08-02 | USES_CONTEXT hangs off ContextSlice rather than Task, because the slice differs per attempt — that is the whole point of retrying with a widened context. |
gaos-arcadedb-model.html §04 |
| D-009 | 2026-08-02 | Schema-full where machines read, schema-less where humans write: Task, Event and Review are strictly declared because the scheduler and the fold depend on their shape, while Requirement and Artifact carry a declared spine plus free-form fields. |
gaos-arcadedb-model.html §01 principle 1 |
| D-010 | 2026-08-02 | Heavy payloads — prompt bodies, rendered slices, diffs, log blobs — are marked EXTERNAL or kept as references to object storage, because inline properties are serialized on the same page as the vertex topology and cost cache misses on every traversal that never projects them. |
gaos-arcadedb-model.html §01 principle 5, §13 |
| D-011 | 2026-08-02 | Tenancy is a database boundary first and a property second. One database per tenant is the default recommendation; tenantId is declared and indexed on every vertex regardless, because it survives exports and makes a misrouted restore detectable. |
gaos-arcadedb-model.html §01 principle 6, §13 |
| D-012 | 2026-08-02 | Retention differs by type: events at full fidelity for 90 days then archived with the fold checkpoint retained, samples raw for 14 days then downsampled, run logs by reference only, and everything else indefinitely — because the audit trail is the product. Exception: D-082, an operator's prune of an archived conversation's documents. | gaos-arcadedb-model.html §13 |
| D-042 | 2026-08-15 | Answers OQ-10. All three tenancy
strategies stay reachable behind one repository interface, and which one a
deployment uses becomes configuration rather than an architectural commitment. Database per
tenant, a shared database with tenantId everywhere, and the hybrid of the two
are each an implementation of the same interface; nothing above the repository layer may know
which is in use. This narrows D-011 rather than reversing it:
one database per tenant remains the recommended default and the shape the DDL is written
for, and tenantId stays declared and indexed on every vertex under every
strategy, because that is what makes a misrouted restore detectable regardless of where the
boundary sits. BR-26 is amended to say
configurable boundary rather than database boundary first. The cost is
stated plainly and accepted: OQ-10 warned that the
repository layer is written differently for each strategy and that picking late is the
expensive outcome — this decision does not pick, it pays for the interface up front and buys
the option to pick later. It is only honest if the interface is real, so a strategy that has
never been run is a claim, not a capability. |
Product owner ruling; BRD §8.10 J-1;
BR-26; gaos-arcadedb-model.html §01
principle 6, §13 |
| D-043 | 2026-08-15 | Answers OQ-17. The target is ArcadeDB
26.7.2 — the version already running, so the target is an observation rather than a
forecast. It clears the floor the data model names: EXTERNAL properties require
v26.5.1 or later, and 26.7.2 is later. The DDL is applied to a scratch database on that
version before build-order step 1 writes anything, which is the document's
own advice and the cheapest moment to take it — the same schema run after the first
migration exists costs a migration to undo. Two things are verified in that same pass, not a
later one: that the constraint and index syntax in the model runs as written on 26.7.2, and
that an EXTERNAL payload can be destroyed independently of the record that
references it, because L-7's deletion story rests on that
behaviour and a deletion promise resting on unverified storage behaviour is not a promise.
The version is pinned, not floating: an upgrade is a schema event that re-runs the
validation. |
Product owner ruling; observed image arcadedata/arcadedb:26.7.2 on
arcadedb-master; BRD §10.3;
L-7; gaos-arcadedb-model.html §13 |
Control-loop policy
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-013 | 2026-08-02 | Readiness is scored out of 100 against twelve machine-checkable signals, and the planner refuses to plan below 45, returning the list of what is missing. A subjective bar would get argued away; a published rubric cannot be. | gaos-architecture.html §07 |
| D-014 | 2026-08-02 | Readiness decays rather than persisting: effective = raw − drift_penalty, penalty capped at 25, and crossing a band boundary downward emits an event and applies the stricter gates immediately instead of recalculating silently. |
gaos-architecture.html §07 |
| D-015 | 2026-08-02 | Role and model selection is ordered capability → risk → cost, never cost first — selecting on cost first routes a security-critical migration to the cheapest model because it happened to be free. | gaos-architecture.html §05 |
| D-016 | 2026-08-02 | Correctness is weighted 0.45 of the final score, dominating the other four dimensions 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. | gaos-architecture.html §06 |
| D-017 | 2026-08-02 | Safety is a veto, not a weight: below 60 the work stops regardless of the total, emits SafetyVeto, and goes to a human queue. And an identical failure signature twice routes to a design review rather than a tier escalation, because escalating usually reproduces the same wrong answer more expensively. |
gaos-architecture.html §06 |
| D-018 | 2026-08-02 | Build order is prescribed in ten steps, with Mission Control at step 9 and an explicit warning against starting with the visual layer because it is the most rewarding to build and the least load-bearing. | gaos-architecture.html §10 |
Delivery and deployment
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-019 | 2026-08-07 | v0.1.0 ships the operator surface only, and says so. Mission Control is ported to Go and HTMX with stdlib only and no go.sum; dashboard/store.go is left as the seam for ArcadeDB and dashboard/sim.go stands in for the runner. Every page states which parts are designed and which are built. This inverts D-018 knowingly — the visual layer was built first — which is why the remaining steps must not be reordered further. |
README.md; commit efcf44e |
| D-020 | 2026-08-07 | The event catalog is closed and encoded as Go constants in dashboard/events.go, so a typo is a compile error rather than a new event type silently entering the stream. Names belonging to the unbuilt runner, scheduler and review engine are declared anyway and marked "pass 2"; four UI-lifecycle names are kept in a separate block so nobody mistakes them for domain events. |
dashboard/events.go; gaos-arcadedb-model.html §08 |
| D-021 | 2026-08-07 | GAOS occupies product slot 03 on the shared private VM: tunnel port 18301 for prod and 19301 for dev, one Traefik per product, and nothing but the edge ever publicly bound. Locally the whole stack publishes one port, 8083 rather than 8080 because 8080 was already taken, overridable with GAOS_EDGE_PORT. |
deploy/STACKS.md; README.md; compose.yaml |
| D-022 | 2026-08-07 | TLS terminates on the public edge machine clino — nginx with certbot, two certificate lineages, no Docker, no application state — which forwards plain HTTP over WireGuard to the private VM. The edge is the only publicly reachable machine. |
deploy/edge/README.md; deploy/STACKS.md |
| D-023 | 2026-08-07 | Behind that tunnel, auto never sets the Secure cookie flag: the application sees plain HTTP, so an automatic rule would silently disable the cookie it was meant to protect. |
commit 24c2c16 |
| D-024 | 2026-08-07 | The documentation site and landing page are vendored from a sibling repository rather than rebuilt. The docs engine is Pustaka; its own authoring guides ship alongside GAOS's content, and the site makes no third-party requests. | README.md; pustaka/, landing-page/ |
Quality assurance
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-025 | 2026-08-08 | Answers OQ-13. Since GAOS has no CI and its four
internal stakeholder roles are currently one person, that person is the runner for every
acceptance test, whether invoked directly or through the gaos-deploy subagent.
check-stacks.sh and the post-deploy verification in
rebuild-restart.sh run automatically on every deploy and
restart, both tiers, and refuse the action on failure; the test/check gate runs
automatically on every deploy only. The three BRD acceptance tests have no
automated cadence yet because nothing exists to run them against — proposed cadence is
before every release (unsatisfiable task), weekly once a scheduler exists (fold test), and
on demand with at least one run to seed the OQ-08 baseline (second run). Fold-test divergence
and unsatisfiable-task guard-limit failures are release blockers, not warnings; the second-run
result is a viability signal that triggers a review, not an automatic gate. |
product/qa-test-plan.html; deploy/check-stacks.sh;
deploy/rebuild-restart.sh |
| D-039 | 2026-08-15 | Answers OQ-08. Success is conformance, not a business number. GAOS is a success 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 §4.1 acceptance tests. That is the whole target, and it is deliberately a pass/fail one. Numeric outcome targets are not set, and setting them now would be fabrication: §1.4 has said from the first baseline that GAOS has no users, no tenants and no run against a real model, and inventing a percentage against no baseline produces a number that measures the person who chose it. This ratifies rather than replaces §4's seven deliberately binary objectives — a binary acceptance test is the measurable criterion, and the register is where the criteria are enumerated. Numbers become settable after the second-run measurement has been performed at least once against a real model, and no sooner; D-026 puts that run on somebody else's machine, so it arrives when an operator volunteers it. Until then the honest statement is the one already in the document: the target is that every check passes, and D-025 names who runs them. | Product owner ruling; QA test plan register; BRD §1.4; §4, §4.1 |
Operator surface
One decision, and it is the one that turns Mission Control from the thing that happens to exist into the thing the product is judged by. It costs more than it settles: the obligations it accepts were the argument against the answer it gives.
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-040 | 2026-08-15 | Answers OQ-15. Mission Control is both — one surface, two audiences, separated by role rather than by codebase. There is no second console and no fork: the operator's view and the internal operations view are the same pages with different capabilities granted, and anything an internal view can do that an operator view cannot is a permission, never a build. Choosing both means accepting the bar the question attached to the first half, so these are now preconditions on further Mission Control work rather than someday items: real authentication (OQ-11, which this decision promotes from open question to blocking dependency), per-tenant scoping so that a role sees one tenant's records and not the store, and accessibility work on a surface that external users are now expected to sit in front of. The build order is not overridden — the loops beneath still get built first — but the next feature added to Mission Control comes after those three, not before them. Domain L's obligation lands here by elimination: the provider data-handling profile and the egress inventory have to be visible somewhere, L-3 already assumes this surface, and there is no other somewhere. Recorded as I-8. | Product owner ruling; BRD §8.9 I-8; L-3; BRD §16 |
Commercial model
Six decisions taken together on 2026-08-08, answering the first block of the open register. They are one decision in six parts: GAOS is given away, and what is sold is the work of making it run and the optional parts nobody needs in order to run it. A seventh, D-038, followed two days later and named the first of those optional parts.
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-026 | 2026-08-08 | Answers OQ-01. Open core, self-hosted, with private submodules and paid services — not hosted SaaS. Anyone who clones this repository can run GAOS themselves, and this repository alone is a working system: no private component may ever be required for it to function. Commercial value sits in three places instead — one or more private submodules sold as licensed add-ons, paid installation and support, and custom work. The consequence for engineering is the one that matters: the tenant boundary stops being a wall between paying strangers and becomes a boundary between colleagues inside one operator's deployment, which lowers the strength authentication needs on day one without removing the need for it. | Product owner ruling; BRD §8.11 domain K |
| D-027 | 2026-08-08 | Answers OQ-02. The target customers are researchers, small companies, and individual experts — IT and non-IT alike. All three buy as practitioners rather than through procurement, which means the product is won on documentation and a working install, not on a sales motion, an enterprise questionnaire or a compliance certificate. The non-IT expert is the persona that pays for installation: they can write the brief the readiness rubric wants and cannot stand up a stack, which is exactly the gap the service offer fills. | Product owner ruling; BRD §8.11 domain K; FAQ |
| D-028 | 2026-08-08 | Answers OQ-03. An external auditor is
not a first-class user, derived from D-026 and D-027 rather than decided
independently: a self-hosted deployment owned by a researcher or a small team has no
third-party auditor relationship to serve. The replay and USES_CONTEXT trail
stay in the product as an internal explainability and reproducibility feature —
which is what a researcher actually wants from them. Evidence-bundle export, tamper-evidence
for the event stream, retention beyond the 90-day full-fidelity window and read-only external
credentials are therefore all out of scope for the core, and are the strongest candidate for
the first commercial submodule (OQ-19). |
Derived from D-026, D-027; BRD §8.11 domain K |
| D-029 | 2026-08-08 | Answers OQ-05. The pricing basis is service and licence fees, never usage: a one-time installation fee, an annual support subscription priced per production instance, an annual per-install licence for any commercial submodule, and a day rate for custom work. There is no per-seat price, no per-task price, and no margin on model spend — all three are impossible to bill for anyway once D-030 puts the provider account on the operator's side of the boundary. The rate card itself is proposed in §8.11 and awaits confirmation as OQ-21; the basis is what is decided here. | Product owner ruling; BRD §8.11 domain K |
| D-030 | 2026-08-08 | Answers OQ-06. The operator always pays
the model provider. GAOS never resells tokens, never holds a provider credential
belonging to somebody else, and never sits in the billing path. The whole cost-of-goods
problem moves to the tenant by construction, and budgetCapUsd changes meaning
with it: it now protects the operator's own money, which makes shipping an unenforced cap a
duty-of-care failure toward users rather than a financial exposure for the project. |
Product owner ruling; gaos-arcadedb-model.html §03
Tenant.budgetCapUsd |
| D-031 | 2026-08-08 | Answers OQ-07. Support commits to response times, never uptime. Because GAOS hosts nothing after D-026, an availability SLA would be a promise about somebody else's machine; the single edge node and single database node that made R-09 block every commercial requirement stop being a commercial obstacle at all, and become the self-hoster's own capacity decision. Three tiers: Community (free, public issue tracker, best effort, no commitment), Standard and Priority (paid, first-response targets within stated business hours in one named timezone, a fixed annual allowance of remote assistance hours, and upgrade support). Nothing in any tier gates a bug fix — fixes land in the open repository for everyone. | Product owner ruling; derived from D-026; BRD §11.2 R-09 |
| D-038 | 2026-08-10 | Answers OQ-19. The first private commercial submodule is a generation pack, and the boundary rule is manual-free, generation-paid. The core always accepts, stores, renders and scores manually-authored versions of every artifact in the product master record — the narrative brief, behaviour diagrams and data models (A-4 stays in the core and the readiness rubric is unchanged), user stories, acceptance criteria, test cases and test scenarios. What the submodule sells is the work of producing them: generating diagrams from the narrative record, deriving one diagram from another, and AI generation of user stories, acceptance criteria, test cases and test scenarios. For every item the sentence BR-27 demands is the same sentence: without the submodule, you author it yourself. This overrides §16's recommendation of the compliance and evidence pack, because a generation pack monetizes convenience rather than compliance, and because it holds the boundary by construction — the paid half is defined as automation of something the free half must keep doing manually, so the drift R-10 warns about has nowhere to go. The compliance and identity packs stay in the matrix as candidates for later submodules. Two constraints carry over unchanged: generation calls run on the operator's own provider account (BR-29), and a generation dispatch passes the pre-dispatch egress check like any other (BR-32). The price is the existing rate-card line — 1,200/year per install, 300/year for a single named researcher or an individual, free for accredited non-commercial academic use — proposed pending OQ-21. | Product owner ruling; BRD §16; BR-27, BR-28 |
Execution and data handling
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-032 | 2026-08-08 | Answers the first half of OQ-04.
Tenant.plan, maxConcurrentTasks and budgetCapUsd are
local quota profiles, not billing tiers — instruments for watching model
usage inside one deployment, which is what they were always shaped like. Three named
profiles ship as seed data: solo, standard (the DDL's existing
defaults, 8 concurrent tasks and a 500 USD cap) and unmetered, which warns
instead of capping and must be selected deliberately. Profiles are operator-edited in the
back office; there is no signup, no self-service and no billing, so requirement J-7 is
withdrawn rather than deferred. Because a CLI-invoked model does not reliably report usage
(D-033), every cost figure carries a basis — measured when the provider reported
it, estimated when GAOS derived it from a local token count and a configured
price table — and the two are never summed without saying so. |
Product owner ruling; gaos-arcadedb-model.html §05 Tenant DDL
defaults; BRD §8.10 domain J |
| D-033 | 2026-08-08 | Answers the second half of OQ-04. In the MVP the
model gateway invokes provider command-line tools as subprocesses, not HTTP
APIs. The runner writes a task packet — the frozen context slice as files
on disk — into the leased workspace, spawns the CLI non-interactively against it, and
requires it to emit a handoff document at a declared path in a declared shape. That
document is the interface between agents: it becomes an Artifact vertex, and the
next agent's context slice pulls it in through USES_CONTEXT, so the document is
the transport and the graph stays the record. Every requirement in domain D survives —
D-6's frozen slice is a directory instead of a request body — and the accounting cost is
D-032's estimation path. The full contract and the flowchart are
BRD §7.6. |
Product owner ruling; BRD §7.6;
gaos-architecture.html §02 model gateway |
| D-034 | 2026-08-08 | Answers OQ-14. Residency is whatever the
operator's own machines are, because after D-026 the GAOS project stores nothing
and processes nothing on anyone's behalf. That answers the residency question and leaves the
harder one, which is egress: a context slice carries repository contents off the host to a
model provider on every single attempt. So the commitment is not a location, it is a
published egress inventory, an explicit per-provider data-handling profile the
operator configures and the UI displays, redaction and path allowlists applied before
dispatch rather than scored after it, and deletion implemented by destroying the referent of
an EXTERNAL payload while the append-only event keeps its reference. Support
engagements get no standing access to customer systems. Written out as
BRD §8.12 domain L. |
Product owner instruction; BRD §8.12 domain L;
gaos-arcadedb-model.html §13 retention |
Licence
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-035 | 2026-08-08 | Answers OQ-20, and is the last part of D-026 to land. The core ships under Apache-2.0, with a DCO sign-off instead of a CLA and a trademark reservation on the name. Apache-2.0 because the buyer in D-027 must be able to adopt it without asking a lawyer, and because its explicit patent grant is worth more to a small company than a copyleft clause it will refuse on policy. The commercial value stays where D-026 put it — in the submodules and the services — rather than in licence restrictions, and the thing a permissive licence gives away is the right to host GAOS, which was refused as a business anyway. DCO rather than CLA because a CLA exists to enable relicensing, and with the paid components in separate repositories the project owns outright, there is nothing to relicense. The trademark is the one thing kept back: use the code, rename the fork. The cost, stated once: this cannot be undone. Every future contribution arrives under Apache-2.0, and changing it later needs every contributor's consent. | LICENSE, NOTICE, CONTRIBUTING.md;
BRD K-9 |
Execution mode and spend control
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-036 | 2026-08-08 | Extends D-033 rather than reversing it. The model gateway
supports two interchangeable adapters — CLI and API — chosen by one deployment-wide
setting, with an auto compatibility mode that prefers one and falls
back to the other by emitting an event rather than substituting silently. Development still
starts with the CLI adapter, which is all D-033 ever claimed. The reason for making the API a
first-class mode now rather than later is R-12: driving
an interactive tool from a scheduler may fall outside the terms it runs under, and an
operator who hits that needs a switch, not a fork. The choice is a cost decision before it is
a technical one — a CLI subscription is a flat fee with imprecise accounting, an API key is
metered with exact accounting — and it is the operator's to make, since after
D-030 it is their bill either way. What holds the two together is a
single prohibition: the mode may be recorded on an attempt and never
branched on (BR-33). Configuration, the
full trade-off table and the containment for each CLI weakness:
BRD §7.6. |
BRD §7.6.1,
§7.6.2; gaos-architecture.html §02 |
| D-037 | 2026-08-08 | Answers OQ-18. The budget cap becomes a
three-zone guard with pacing and deferral rather than one number with one
behaviour. Tenant gains budgetPeriod,
budgetThrottlePct, budgetPacing, pacingSlackPct and
maxTokensPerHour beside the existing budgetCapUsd. Spend is paced
across the period, so a monthly cap cannot be spent in an afternoon. At the throttle
threshold — default 80%, or the paced ceiling, or the token rate ceiling — dispatch
stops and ready work is deferred rather than failed: the task keeps its place in the
graph, releases its lease, shows "deferred — budget window" as an explicit blocking reason,
and resumes on its own when the window advances. At 100% dispatch refuses and needs a
deliberate act to continue. In every zone, runs already in flight are left alone, because
killing them forfeits money already spent. Two rules make the shape hold: deferral consumes
no retry, escalation or failure signature (BR-34), and
a limit that only warns is not a limit (BR-35).
Estimated costs count at full weight, because a cap that ignores estimates is no cap at all
in CLI mode. Full specification: BRD §8.10.1. |
BRD §8.10.1;
gaos-arcadedb-model.html §05 Tenant DDL;
gaos-architecture.html §06 guardrails |
| D-041 | 2026-08-15 | Answers OQ-09. Multi-provider behind the
model gateway, and CLI mode is the MVP's focus. Anthropic is the
first adapter rather than the only one; the gateway's existing prohibition on leaking
provider-specific shapes upward stops being a design intention and becomes a constraint with
something to constrain. The two halves of the answer are separate and both binding: the
architecture is plural from the start, and the MVP effort goes into the CLI
adapter that D-033 chose, so the first providers to ship are the ones
whose command-line tool clears the five-point contract in
OQ-23. D-036 is what makes that
focus safe rather than narrowing: a provider whose CLI cannot be driven is reachable through
API mode, so "multi-provider" is not quietly conditional on every vendor shipping a
scriptable tool. The costs the question named are accepted rather than argued away — a
normalised tier abstraction, and cost accounting that works per provider
(D-044). The escalation ladder is the part that actually breaks
otherwise: BR-15 retries "one model tier above", which
is meaningless across vendors unless tiers are defined in the gateway's own vocabulary and
each provider maps into it. That is now a rule,
BR-36. config/model.yaml in
§7.6.1 already has the right shape — a
providers map with one entry — and gains entries rather than a rewrite. |
Product owner instruction; BRD §7.6.1;
BR-36;
R-08; gaos-architecture.html §02 model
gateway |
| D-044 | 2026-08-15 | Answers the first half of OQ-22.
Token usage is estimated locally and priced from a configured table, and a cost that
cannot be priced is reported as unavailable rather than as a number. When the CLI
reports nothing, the packet and the output are counted locally and multiplied by the table,
and the figure carries costBasis: estimated exactly as
D-032 and BR-31 already require.
When the model is absent from the price table, or the packet cannot be counted, the
estimator refuses: the run records no cost and an operator-visible unavailable
state, never a zero and never a guess. Zero is the dangerous answer, because zero is a
number the guard will happily let through. This matters more after
D-037 than it would have before it — estimates enforce the budget guard
at full weight, so an unpriceable model means the guard has nothing to enforce against, and
that condition has to be loud rather than silent. Recorded as
BR-37. What this does not settle:
where the price table lives, who updates it, and whether a maintained table is part of the
core or a licensed submodule — that is option (D) in
BRD §16, constrained by
BR-28, and it keeps
OQ-22 open. |
Product owner ruling; BR-31, BR-37; BRD §7.6.2; §8.10.1 |
| D-045 | 2026-08-16 | Reconciling the DDL against the version D-043 pins.
Edge uniqueness is carried by a unique index on the two endpoints, not by a
UNIQUE keyword on the edge type. ArcadeDB 26.7.2 rejects
CREATE EDGE TYPE … EXTENDS GaosEdge UNIQUE outright — measured, not
predicted — and it takes all 32 edge types down with it, plus the 18
CREATE PROPERTY statements naming a type that was therefore never created.
That is 50 of the 53 statements that failed the first time the schema met a database.
The constraint itself is fully supported: CREATE INDEX ON OWNS (`@out`, `@in`)
UNIQUE gives exactly the "at most one edge per ordered pair" the edge catalog's
unique column has always meant. So nothing about the model changes except how
it is spelled, which is the cheapest kind of amendment and the reason this is a
D- row rather than an open question. The model document is amended in place
at §04 and §09; the applied form is dashboard/schema/08-edges.sql with the 32
indexes at the foot of 09-indexes.sql. |
Measured against arcadedata/arcadedb:26.7.2 on 2026-08-16;
dashboard/schema/RECONCILIATION.md deviation 1;
gaos-arcadedb-model.html §04, §09;
T-003 |
| D-046 | 2026-08-16 | Bucket-partitioning the high-volume types by tenantId is
withdrawn. It cannot mean what the data model wants it to mean. ArcadeDB's
partitioned(p) strategy requires a UNIQUE index on exactly
(p), so partitioned('tenantId') requires
tenantId to be unique — which permits one Task per
tenant. That was measured rather than argued: with the index in place, a
second Task for tenant loop-eng fails with
DuplicatedKeyException. The strategy exists to partition by a primary key,
and tenantId is the discriminator every record of a tenant shares — the
opposite of one. The data model quotes the constraint immediately above the block that
violates it.
Nothing is lost. BR-26 asks for
tenantId declared and indexed whatever the tenancy strategy turns out to
be, and §10 already does that. Isolation rests where
D-042 puts it — database-per-tenant as the default recommendation,
with tenantId as the second line rather than the first — which is also
what T-136
actually depends on. Per-tenant physical partitioning inside a shared type solves a
problem the deployment default does not have.
This is the one deviation in the whole schema that is an error in the committed
model rather than a dialect difference, which is why it is logged as a decision
and amended in place at §13 rather than quietly dropped. |
Measured against arcadedata/arcadedb:26.7.2 on 2026-08-16;
dashboard/schema/RECONCILIATION.md deviation 2;
gaos-arcadedb-model.html §13;
D-042; BR-26;
T-004 |
| D-047 | 2026-08-17 | Every vertex type the code writes by business id carries a
(tenantId, id) UNIQUE index; seven were added. The data model gave
one to seven of the twenty-five vertex types — Product,
Workflow, Task, TaskRun, Agent,
Issue, Knowledge. That is invisible until something writes the
others. BR-03 says every reference is a business
id and never a physical RID, so a write is keyed by
(tenantId, id) — and 26.7.2 refuses one against a type with no index for it:
Upsert must involve an index to retrieve the records. Every write in
store_arcade.go failed this way on its first run.
Applied: indexes on Tenant, Room,
Requirement, AcceptanceCriterion, Artifact,
Decision and Repository — the seven the store writes today. The
remaining eleven are deliberately left without one: the model is explicit that an index
belongs where a lookup is actually hot rather than everywhere one might eventually be, and
the next task to write one of those types adds its index in the same change. The DDL now
applies 321 statements rather than 314, and re-applying is still a no-op.
This one is an incompleteness rather than an error — it makes explicit a
uniqueness the model already assumed the moment it decided to address records by business
id — which is why it is additive and changes no semantics. |
Measured against arcadedata/arcadedb:26.7.2 on 2026-08-17;
dashboard/schema/RECONCILIATION.md deviation 3;
dashboard/schema/09-indexes.sql;
BR-03; D-045;
T-006 |
| D-048 | 2026-08-17 | An event carries the reducer's delta, not a snapshot of the floor — and the
genesis event is the one exception, on purpose. The prototype put a deep copy of
every desk into every event, which made replay work without a reducer and made
BR-21 impossible: if the stored floor is the
answer, no moment between two of them is reachable and a bug in writing them is invisible.
The reducer in dashboard/fold.go replaces it, and each event now carries only
the values that reducer's case for that type needs, in absolute values rather than
increments — a fold that replays an increment twice is wrong in a way that is very
hard to see, and an absolute value folded twice is simply idempotent.
The exception: FloorOpened carries the whole seeded floor,
because the fixtures are a state no event produced.
§08's formula allows for exactly this —
snapshot_before(t) ?? empty — and making genesis the carrier means
fold(empty, events) is total rather than nearly total.
The consequence worth stating: because state is now defined only at event
boundaries, anything that changes without emitting is invisible to a replay. That is
BR-02 made enforceable rather than aspirational, and
it is already biting: the simulator accrues progress and cost on ticks that emit nothing,
which is M4's to fix when a runner replaces it. |
BR-04; BR-21;
H-1, H-2;
dashboard/fold.go;
TC-050, TC-051;
T-011 |
| D-049 | 2026-08-21 | Claude Code is the first supported CLI adapter, pinned at
@anthropic-ai/claude-code@2.1.238.
OQ-23 set a five-point contract and said the
experiment that tests a tool against it "should precede the first adapter being written,
not follow it". It was run on 2026-08-21, and the tool clears four points cleanly: it
runs non-interactively from a working directory (-p), takes its instruction from
a file on stdin, leaves structured output on disk (--output-format json), and
pins to an npm version whose --version is stable and machine-readable.
Point three it does not clear, and the way it fails is the useful part — see
D-050. What this does not settle: one adapter is not
multi-provider. R-08 does not fall until a second one exists,
and R-12 — whether driving the tool from a scheduler sits inside
the subscription it runs under — is not a question this repository can answer.
The obligation this creates: the pin is worthless without the boot smoke
test §7.6.3 already promises, and that lands with
T-057 rather than before it. |
Measured against @anthropic-ai/claude-code@2.1.238 on 2026-08-21;
answers OQ-23; extends D-036,
D-041; §7.6.3;
T-057 |
| D-050 | 2026-08-21 | The adapter never infers a task's outcome from the process exit code. The handoff
document is the only authority on what happened. The measurement behind
D-049 found that Claude Code separates a crash from a completed run but
not a refusal from a success: an unknown flag, an unknown model, a failed
authentication and an exhausted budget all exit 1 with a distinguishing
terminal_reason, while a task the model could not do exits 0 with
terminal_reason: completed — byte-identical, at the process level, to
one it did. Reading success from that is the exact failure
§7.6.3 already names as fatal to two-mode
interchangeability: a reviewer that special-cases a CLI exit code.
So the rule is inverted: the exit code may only classify crash versus
ran; everything about the work itself is read from the mandatory handoff document, and
a missing or unparseable one is a failed attempt with the signature
handoff-missing (BR-30). This is not new
policy — it is T-062/T-063 promoted from a convenience to
the thing correctness rests on. What makes it cheap: the tool takes a
--json-schema and honours it, so the declared shape is enforced by the adapter's
own invocation rather than by parsing prose afterwards. Tested with a handoff schema, the
model reported "status": "blocked" and "met": false against an
acceptance criterion it could not satisfy — the refusal the exit code had hidden. |
Measured against @anthropic-ai/claude-code@2.1.238 on 2026-08-21;
BR-30; §7.6.3;
D-9;
T-062,
T-063 |
| D-051 | 2026-08-21 | Cost and tokens are read from the adapter's own report wherever it makes one;
estimated is the fallback, not the CLI default.
§7.6.2 assumed CLI mode would usually be
estimated, on the ground that most tools report nothing. Claude Code
reports: its JSON result carries total_cost_usd and a modelUsage
breakdown per model with input, output and both cache-token counts.
The consequence: a TaskRun under this adapter carries
costBasis: measured from the first run, so the budget guard and the efficiency
score are fed a figure the tool itself produced rather than one GAOS derived from a price
table. What that figure is, stated precisely, because it is easy to overclaim:
the measurement was taken under a subscription (OAuth, no API key), and
total_cost_usd is then the API-equivalent price of the work, not money
the operator marginally spent — under a flat fee the marginal cost of one more run is
approximately nothing. That does not make the number useless; it makes it exactly what
§7.6.2 already said the guard is in CLI mode — a pacing
instrument: exceeding it costs throughput, not money. It becomes real spend only in API
mode, where the same field is what the operator is billed.
What this does not do: it narrows
OQ-22 without closing it — a price table is still
needed for API mode and for any adapter that reports nothing, and
D-044's rule stands that an unpriceable model is refused rather than
reported as zero (BR-37). The two-basis distinction
in BR-31 becomes more load-bearing, not less: with
adapters on both sides of it, an aggregation that mixes the bases silently is now a real
defect rather than a hypothetical one. One measurement worth recording: a
default invocation inherited the host's project configuration and roughly 24k cache-read
tokens, so a trivial prompt cost $0.13. An adapter that does not isolate context is not
merely wasteful — it makes the frozen slice of
T-055 a lie, because what the
model received is not what GAOS recorded. |
Measured against @anthropic-ai/claude-code@2.1.238 on 2026-08-21;
narrows OQ-22; extends D-044;
BR-31, BR-37;
§7.6.2;
T-065,
T-055 |
| D-052 | 2026-08-22 | The refused-dispatch event is named DispatchRefused, and its reason
travels in the payload as a machine-readable rule.
L-5 requires "a refused dispatch with its reason" and stops
short of naming it, and BR-05 makes the catalog
closed, so the name had to be decided rather than chosen at a call site.
The reasoning is about the second caller, not the first.
EgressRefused names the cause and reads more precisely today; it would also
oblige BR-35's budget cap to invent a second name for
the same shape of event when M10.3 lands, reopening a closed catalog for a distinction that
belongs in a field. DispatchRefused names the effect — the dispatch did
not happen — and carries rule: secret, local-only,
size, empty-slice or path-escape today, and
budget-cap when the guard arrives. It also pairs with the
TaskDispatched the catalog already had.
Two consequences that are easy to miss. First, the payload records the file
and the byte offset of a detection and never the matched text: the stream is
append-only (BR-04) and the timeline is rendered into
a browser, so a payload carrying the credential would write it permanently into the record
whose purpose is to prove it never left. Second, a refusal is returned as a result
rather than a rejection — it is a recorded state change, and an ErrRejected
would write the two events L-5 requires into the stream while keeping them out of the
response that renders them.
What this cost: one reversal in the state machine. A refused dispatch blocks
a task that never started, and dashboard/state_test.go had asserted
idle → blocked illegal on the ground that "nothing is running, so
nothing can be blocked". BR-32 is the counter-example; the row was inverted rather than
deleted. |
Implements L-5 under
BR-05; anticipates
BR-35;
artifacts/v1/gaos-arcadedb-model.html §08,
dashboard/events.go, dashboard/fold.go;
T-126,
T-127;
TC-194…TC-200 |
| D-053 | 2026-08-22 | The heartbeat interval and the Heartbeat event cadence are two
different numbers, and an expired lease is never taken by the acquirer.
D-3 asks for a lease with an expiry and a heartbeat and does not
say how often either happens, so the numbers had to be decided rather than picked at a call
site. They are: beat every 30s, stale after 90s, lease expires after 300s, and a
Heartbeat event every 300s — plus always the first beat of a run and
always the last before it exits.
Why the last number is not the first. A beat is a field write to
Task.lastHeartbeatAt, a mutable property the DDL already declares. An event is an
append to a stream that is append-only
(BR-04), snapshotted every 500 events, and rendered in
full by the timeline. At 30s a twenty-minute run writes forty pills, and a six-desk floor
running three attempts an hour writes around seven hundred an hour of pure noise. At 300s the
same run writes five, and a replay can still tell alive at T from silent since
T, which is the only question a heartbeat is asked.
The BR-02 tension, stated rather than buried.
BR-02 says every change emits an event. Its subject is
a state change, and a heartbeat is not one — the task is RUNNING before
and after. It is evidence of continuity, and 300s is a resolution that answers the question.
That is a reading, which is why it is a decision here rather than a comment in the code.
And what the beat actually attests to. The supervisor, not the model. Claude
Code knows nothing about GAOS, so the goroutine that beats is in the orchestrator — meaning
that after an orchestrator dies the beat goes stale while the work continues. That
asymmetry is why boot reconciliation has three branches rather than two, and it is why
AcquireLease refuses an expired lease instead of taking it: an expiry says the
supervisor stopped renewing and says nothing whatever about the detached child, which
D-2 arranged to outlive it. Clearing one is
BreakLease, a separate name for an operation that is only safe after the previous
run has been made dead. |
Implements D-3 under
BR-02 and
BR-04;
dashboard/lease.go;
T-051;
TC-220…TC-226 |
| D-054 | 2026-08-22 | Requeue is kill-then-requeue, and the architecture page's recovery pseudocode was
wrong about why. Its middle branch is commented "lease held, process gone".
It does not know the process is gone. It knows the beat is stale,
and a stale beat means the SUPERVISOR died — which says nothing whatever about the child,
because D-2 detached the child precisely so it would outlive its
supervisor.
What that costs if it is read the easy way. Requeuing on a stale beat starts
a second run in a workspace that may still have a live one in it: the exact silent corruption
D-3 exists to prevent, reached through the routine meant
to recover from failure. Two agents editing one checkout do not crash; they produce a diff
neither of them wrote, which is then reviewed, scored and possibly merged.
So a run that can be proved neither alive nor dead is MADE dead. The
reconciler reads the run record, signals the process group, waits a grace period, signals
again, releases the lease, and only then puts the task back at READY. Where
nothing is able to kill — no adapter configured, no process ever recorded — the branch
degrades to orphan rather than requeuing on a promise it cannot keep. A task that
failed and needs a human is a worse outcome than a clean requeue and a far better one than
silent corruption.
This does not contradict BR-35's "never kills
a run already in flight", and the difference is the subject rather than the verb.
BR-35 is a BUDGET rule about a run this orchestrator is supervising and whose spend it can
still account for; killing that forfeits money already spent. This is a RECOVERY rule about an
unsupervised run whose supervisor is already gone. Different subject, opposite risk.
Two corrections to architecture/system.html landed with the code:
the branch comment, and the event it emitted — the page wrote
TaskFailed(reason=orphaned), and TaskFailed is not in the closed
catalog at all. It is TaskOrphaned. |
Corrects architecture/system.html §boot-recovery; implements
D-4 without breaking
D-3;
dashboard/reconcile.go, dashboard/runner.go,
dashboard/adapter_cli.go;
T-053;
TC-236…TC-242 |
Gateway, Blueprint and Board
Eight decisions taken together on 2026-11-02, and taken as one change because they are one change: GAOS stops being the thing that runs a model and becomes the thing that decides what a model is asked to do, inside which product, against which standing rules. The layering is the product owner's own wording, and every row below is a consequence of it: 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. Several earlier rows are superseded in part. None is deleted, and each superseded part names the row that replaces it.
| ID | Date | Decision | Evidence |
|---|---|---|---|
| D-055 | 2026-11-02 | GAOS no longer invokes a model tool. ai-manager is the one gateway, and the work is
split across three layers that each own one thing. Supersedes the spawning half of
D-033 — GAOS does not run claude as a subprocess any
more — and narrows D-036: the adapter seam stays exactly where
it is, but the adapter behind it is an HTTP client of ai-manager, and the CLI/API distinction
moves out of GAOS into ai-manager's provider table. D-049 stands in
substance — Claude Code is still the tool that does the work — but it is now
ai-claude-cli's pin to hold, not ours.
Why move it out. Everything GAOS built to supervise a detached process — the
packet on disk, the file lease, the heartbeat goroutine, boot reconciliation that has to kill
before it requeues (D-054) — exists in ai-claude-cli already, written once
and shared by every client of the AI stack, with a session store GAOS never had. Keeping a
second copy here is two places for one class of bug.
What GAOS keeps is what nobody else can own: the product record, its
Blueprint, readiness, the task graph and its state machine, egress screening, the event
stream, and the durable record of every attempt.
What it must never do: spawn a tool, hold a provider credential
(BR-29 is untouched), or hand ai-manager a
filesystem path (BR-42). |
Product-owner ruling, 2026-11-02; ai-manager/docs/claude-sessions.md,
workspace-management.md; The gateway;
M14 |
| D-056 | 2026-11-02 | One ai-manager session per task, not per product. A retry of the same
task on the same model resumes its session, so the model sees its own failed reply and the
review that rejected it. A model escalation, a 410, or a session older than
GAOS_AIM_SESSION_MAX_AGE opens a new one and emits SessionOpened with
the reason.
Why not one long session per product, which is the obvious reading of
"continuous context": ai-manager allows one turn at a time per session
(409), so a product session would turn the scheduler's parallelism into a queue;
every turn re-reads the whole transcript, so every task would pay for the history of every
task before it; and sessions live in a bucket that expires them thirty days after the last
turn, so a product's accumulated memory would vanish on a schedule nobody chose.
Where continuity across tasks lives instead: in the Blueprint
(D-058), which every session in the workspace loads, and in earlier
handoffs cited into the brief — which is the thesis of D-001, the graph
is the primitive and not the prompt, applied to a transcript. |
ai-manager/docs/claude-sessions.md §Rules, §Expiry, §Things to know;
BR-40, BR-41;
The gateway §sessions |
| D-057 | 2026-11-02 | The handoff travels in the reply. Amends
D-050 and BR-30: "a declared
path" becomes "a declared block". GAOS can no longer read a file the model wrote, because the
model writes into a folder on another host. So the reply must end with exactly one fenced
block tagged gaos-handoff, carrying the same fields the file did; GAOS takes the
last such block and runs it through the unchanged parser and validator. Two
checks are new, and both exist because of D-056: the block must echo the
current run id — in a resumed session the model can see, and repeat, the block it
wrote for the previous attempt — and two blocks that disagree are a failure, not a choice.
D-050's principle is unchanged: nothing about the work is read from anything
but the handoff, and a reply without a valid one is handoff-missing however
confident its prose. |
dashboard/handoff.go (ParseHandoff,
validateHandoff); Blueprint §reply
contract; TC-280, TC-281 |
| D-058 | 2026-11-02 | Every product has a Blueprint, delivered in two layers, versioned, and pinned per
attempt. The Blueprint is the product's standing technical knowledge: the BRD the
record already holds, plus technical and coding policies, plus — recorded now, fetched later —
knowledge sources such as a template repository whose structure and interfaces the product
must follow.
The standing layer is files in the workspace: CLAUDE.md and
.claude/rules/*.md, which Claude Code loads on every turn including a
resumed one, measured by ai-manager. The per-task layer is the prompt:
the brief, the criteria, the cited handoffs. Splitting them this way is what lets one session
per task (D-056) still see one consistent product.
A published version is immutable and content-addressed; every attempt pins
the version it ran under, and a workspace whose files do not match that version refuses
dispatch (BR-39).
The sync is a dispatch path: those files reach the model, so
BR-32's egress screen runs on them before they leave,
exactly as it does on a task brief. |
Blueprint; ai-manager/docs/claude-sessions.md
§Resuming and the manifest; A-8…A-11 |
| D-059 | 2026-11-02 | Workspaces are provisioned through an upstream API that GAOS calls, never by an
operator editing a file. Measured on 2026-11-02: ai-claude-cli has no API to
create a workspace (its rest-apis.md: "there is no API to add or delete one"), and
reads configs/workspaces.json once at startup. ai-manager's
/admin/workspaces only switches on a workspace that already exists. "One
workspace per product" is therefore not available today, and the product owner chose to
extend the upstream rather than make provisioning a manual step.
The shape is fixed by what makes it safe: the worker creates a folder under
one configured managed root, never under a path a client supplies; it writes only an
allowlisted set of instruction files; and it refuses to boot if any folder above the root
holds a CLAUDE.md, because Claude Code would load it into every product. GAOS
holds the ai-manager admin key to call it. That is not a provider credential, so
BR-29 holds — but it is broader than GAOS needs, which
is OQ-29. |
ai-claude-cli/rest-apis.md §GET /v1/workspaces/{id};
ai-claude-cli/cmd/app/main.go (workspace.Load);
The gateway §upstream;
M14.1 |
| D-060 | 2026-11-02 | The execution layer is retired. One live turn per product workspace; recovery is a
poll by request id with a deadline. Supersedes the mechanism of
D-053 and D-054, keeps their principle. The
detached process, its run file, the file lease and the kill-then-requeue reconciler go. What
replaces them: every turn is submitted with a deterministic X-Request-ID, persisted
on the TaskRun before the request is sent, and recovery after a restart is a poll
on that id. A completed or failed result is adopted as a normal attempt. A
404 — ai-manager restarted and lost its in-memory record — cannot be killed, so
the workspace stays leased until the turn must have ended
(GAOS_AIM_TURN_DEADLINE, longer than ai-manager's own cap) and only then is the
task requeued, on a new session. That is "made dead" achieved by waiting rather than by
signalling, and it is the same rule: never hand a workspace to a second writer on a hope.
The lease survives as a graph lease
(BR-38): one product's tasks share one folder, and two
sessions in it would be two agents with full permissions editing the same files. |
ai-manager/docs/claude-sessions.md §Async; schema/04-execution.sql
(Workspace.leasedBy, leaseUntil);
The system §boot recovery |
| D-061 | 2026-11-02 | Each product gets a kanban board whose columns are groups of task statuses, and a
move on it is a request the state machine may refuse. The board is a projection, not
a second source of truth (D-001): dragging a card asks for a transition,
the existing task state machine decides, and a refused move writes no event and returns
409, so the board rolls back
(BR-43). Some columns are owned by something else and are
never drag targets — the scheduler owns PENDING to READY, the budget guard owns DEFERRED.
The first board is server-rendered with the dashboard's existing HTMX. The
sisflow board is the richer target and its REST shape was adopted for the API so either front
end fits, but its code has no licence file and belongs to another organisation, so vendoring
it waits for OQ-25 and the licence assertions
TC-150/TC-151 guard.
Amended at build time, 2026-11-02: a move writes one new event,
TaskMoved (its action, from, to), rather than reusing ApprovalGranted,
RetryRequested and the other judgment events this row first named. Those move a desk in
the fold, and a board move that changed the replayed floor but not the live one would be the
divergence the fold tests exist to catch. |
dashboard/taskstate.go (taskTransitions);
sisflow-js/web/static/js/sisflow/board/; I-9, I-10 |
| D-062 | 2026-11-02 | An attempt through the gateway records invocation = gateway, and its
cost is measured from ai-manager's cost_usd. Extends
D-051. That field is Claude Code's own total_cost_usd,
passed through, so it is the same measurement D-051 already trusts — one hop further away.
Missing, or zero while tokens are above zero, is unavailable and never zero
(BR-37). The invocation value is recorded and still
never branched on (BR-33). |
ai-manager/internal/server/response.go; D-051;
TC-282 |
| D-063 | 2026-11-02 | The sisflow board is vendored under an Apache-2.0 grant from its owner.
Answers OQ-25; completes
D-061. sisflow-js has no licence file and its notice reserves it to
the project owner, so vendoring it into an Apache-2.0 repository
(D-035) needed the owner's permission, and the owner gave it. The board's
import closure is copied unmodified from sisflow-js at commit 9ebe079 into
dashboard/static/vendor/sisflow/, with LICENSE-sisflow.txt and a
NOTICE-sisflow.txt recording the grant and the source commit beside it, and
deploy/check-stacks.sh refuses the deploy if either is missing. It mounts over the
server-rendered board, which stays for a page without JavaScript, and talks to the same
…/board API: a move is still a request the state machine may refuse
(BR-43). |
Product-owner ruling, 2026-11-02; dashboard/static/vendor/sisflow/NOTICE-sisflow.txt;
TC-310; I-10 |
| D-064 | 2026-11-02 | An agent asks the operator by ending its turn, and the answer resumes the session
that asked. A gateway turn cannot pause: the worker runs the model headless with no
input channel, and ai-manager has no streaming and no cancel (OQ-26).
So a question is a way to end a turn: the model closes its reply with one
ai-question block — exactly three options, the one it recommends first; the
operator's own words are always the fourth — and owes no handoff for that turn. The worker
(ai-claude-cli, ai-antigravity-cli, through ai-cli-common) parses the block and turns off the
built-in AskUserQuestion tool, which cannot be answered headless; ai-manager keeps
the question in the temp bucket (thirty-day expiry) and answers it through
POST /v1/questions/{id}/answer, which starts the next turn on the same session
under the caller's request id. GAOS records the question as QuestionAsked, holds
the task in AWAITING_INPUT (BR-44), and on
the answer writes QuestionAnswered and requeues it. The answer turn is an ordinary
attempt — lease, heartbeat, TaskRun, request-id recovery — and carries the answer twice: to the
session through the answer route, and in the frozen slice as
context/answer.md, so a turn that must fall back to /v1/chat (the
question already answered elsewhere, or expired) still reads it. |
Product-owner request, 2026-11-02; I-11;
TC-321…TC-330; dashboard/questions.go |
| D-065 | 2026-11-02 | Live updates are server-sent hints, never pushed HTML. emit()
was cut as the SSE seam when the store was written; the broker it waited for is
dashboard/broker.go. GET /events/stream sends one line per event —
its seq, type, kind, product and task — and the browser re-fetches the fragment it affects
through the ordinary routes, so there is no second rendering path and nothing on the stream a
client could act on without asking. Delivery is best effort: a subscriber that cannot keep up
is dropped rather than waited for, so one stalled tab never holds the store's lock, and
reconnects with Last-Event-ID to catch up from the record. Only the live store
has a broker — a projection built to fold or replay has none, so the past is never announced
as if it were happening. |
dashboard/broker.go; TC-331…TC-333;
closes T-110 |
| D-066 | 2026-11-02 | A question is open as long as the session that asked it exists.
Answers OQ-31. ai-manager keeps a session thirty
days after its last turn, and the asking turn is that session's last — nothing runs in it while
the task waits — so the question closes thirty days after it was asked, together with its
session and with its record in the temp bucket. Two things follow. Until then an
answer always resumes the asking session, even when GAOS's own rotation (twenty-five days from
the session's first turn, D-056) would otherwise open a new one: the answer
is only meaningful to the model that asked. And at thirty days a sweep, once a minute, moves the
task from AWAITING_INPUT to BLOCKED — TaskMoved with rule
question-expired and the reason on the task — so a question nobody can answer any
more never looks answerable; unblocking it starts again in a new session. No event is added:
the catalog stays closed (BR-05). The inbox shows the time left, re-ticked live, rather than a
stale tag after an arbitrary week. |
Product-owner ruling, 2026-11-02; TC-341, TC-342;
dashboard/questions.go |
| D-067 | 2026-11-03 | A product chooses its AI vendors; a task's vendor changes only with a new session.
Every product carries a vendor policy: Claude CLI only (the default, and what every
product ran on before), Antigravity only (ai-manager's round-robin pool of
ai-antigravity-cli accounts), or mixed by role, where each role is mapped to one of
the two; the product also picks the Antigravity model from the list the gateway offers. This
is a choice of vendor per product, not of execution mode per task — every attempt
still goes through the one gateway (D-055), and
§7.6.1's refusal of a per-task mode override stands. The
vendor is resolved when the packet is frozen and sent as provider; the run
records it (TaskRun.provider). Because ai-manager keeps a session with the
provider that opened it, a retry whose vendor changed opens a new session with reason
vendor rather than resuming (D-056,
BR-45), and a policy edit never moves a turn in flight.
The product's one workspace id is provisioned on every vendor the policy uses: ai-manager fans
an Antigravity provisioning call out to every account in the pool, and the agy worker links
AGENTS.md, GEMINI.md and .agents/rules to the same
CLAUDE.md and .claude/rules the Blueprint writes, so the digest is
one formula on both. BR-39's gate asks every vendor in
use. Escalation stays inside one vendor's own tiers (BR-36);
it never crosses to the other vendor, and nothing falls back silently. |
Product-owner request, 2026-11-03; TC-343…TC-356;
dashboard/vendors.go; extends D-041 |
| D-068 | 2026-11-04 | A design is reviewed by someone who cannot see the conversation that produced it, and
the implementation does not start until that review resolves. The
Elephant-Goldfish Model — the author holds the context and drafts the design; fresh
reviewers with no memory of that conversation read the design alone and attack it. GAOS takes it
in two layers, and this ruling fixes the one the product runs. Answers nothing yet; it
narrows OQ-32.
Superseded in part by D-069 (2026-11-04), which answers OQ-32: the isolation mechanism is decided, T-184 becomes the first build task rather than a decision, and clauses 3, 5 and 6 below are refined by it. Read D-068 together with D-069. Nine clauses. (1) An implementation task is not dispatched while its design artifact is unreviewed, and never while the review carries an open Blocker. (2) The design artifact is an Artifact of kind design; the review is a Task of kind
review, with its own TaskRun and request id, on a fresh session with
reason reviewer. (3) The reviewer is fed from GAOS-held state
(BR-41), never from a resumed session: its packet carries
the design and the rubric, and not the implement task's brief, its handoffs or the history of
failed attempts. This is the deliberate inverse of D-056. (4) The findings
travel back: the dispositioned list is attached to the implement task's next packet, so the
implementer D-056 promises to see actually does. (5) The gate's findings are
recorded as a Review vertex with kind = 'design' — a discriminator,
because the existing Review vertex belongs to the M5 score-band review engine and
the two have incompatible meanings; verdict is ITERATE while a Blocker
is open and ACCEPT when none is; the score columns are unused, so the record needs
them relaxed or a second vertex type. (Clause 5 is superseded by
D-069, which records the gate's findings as an Artifact of kind
review and leaves the Review vertex to M5.) (6) The gate is a
DEPENDS_ON edge and the
existing BLOCKED status — the planner's own mechanism — not a new task status, so
the closed Task.status vocabulary stays closed. (Clause 6 is refined by
D-069, which also names the scheduler's existing dependency block as the
place the gate actually blocks.) (7) A failed review is not a verdict:
it consumes none of the three attempt-scoped limits, moves the review task to
BLOCKED with reason review-failed, and never wedges the product. (8)
Review turns are metered against the same budget caps as any other turn. (9) The term is
design gate, distinct from the BRD's existing design review, which is a
post-failure meeting: all six of that phrase's occurrences are amended to say which they mean.
The platform half was specified, not built when this was ruled; D-070 records how it was built. BR-46 to BR-50 carry the rules, M17 carries the work with T-184…T-188, and TC-359…TC-365 are its forward specifications. Nothing in Go changes in this release: the event catalog is closed (BR-05). The harness half — the same gate applied to changes in this repository — ships now: .claude/rules/ is the reviewers' rubric, five
gaos-goldfish-* agents are the lenses, and
deploy/check-workspace.sh keeps the drift from coming back. |
Product-owner request, 2026-11-04;
docs/designs/egm-design-review.md and its two review rounds;
TC-357, TC-359…TC-364;
extends D-056, D-058, D-061 |
| D-069 | 2026-11-04 | A platform reviewer is isolated by the packet, not by the workspace. The standing
files stay whole, the design travels as a GAOS-held artifact, and what is withheld is the
author's session state. This answers
OQ-32 and amends D-068,
whose clauses 3, 5 and 6 it refines.
Clause 1 is superseded in part by D-071 (2026-11-04): the isolation boundary is the packet and the workspace. The reviewer's workspace is no longer the product's own — it is the product's own reviewer workspace, a second root holding the same standing files and none of the author's files. Clauses 2 and 3 stand: the standing files are still the rubric and stay whole, and the author's session state is still what is withheld. Ten clauses. (1) The isolation boundary is the packet. A reviewer's packet carries exactly two kinds — design and rules — and not
task, context, handoff or contract. The
reviewer's workspace is the product's own workspace, holding the published Blueprint
whole; the workspace is not a boundary. (2) The standing files are the rubric, not
contamination, and they stay exactly as published. A reviewer judges a design against
the product's domain rules, so a workspace holding the rubric but not the Blueprint would be
a drifting workspace under BR-39, and the Blueprint is
the digest-checked published artifact. So the two candidates that reduce the standing files
stay inadmissible — and the third is unnecessary, because the reviewer does not need a
different workspace, it needs a different packet. (3) What is withheld is the
author's session state, not the product's rules:
handoff-previous.md, failure-previous.md and
answer.md — the previous stage's handoff, the failure lesson drawn from it, and
the operator's answer to the author's question. Those are how an author's assumptions travel.
The product's problem statement, domain rules and out-of-scope list are the constraints
the design is judged against, and they travel as rules. (4) This is the
default behaviour today, not a hypothetical. freezePacketFor is
per-desk, not per-task-kind (dashboard/store_mem.go:1316), and
latestHandoffFor is desk-scoped on purpose
(dashboard/store_mem.go:1248): the next stage at a desk inherits the previous
stage's handoff, so a workflow's stages chain. A review is a stage at that desk. Without a
change, a reviewer inherits the author's handoff — the exact contamination the gate exists
to prevent. (5) The design travels as a GAOS-held artifact. A new packet
part kind design, at .gaos/packet/design.md, screened outbound like
every other part. There is no other route: repoParts is nil in every deployment
(dashboard/store_mem.go:168), so a reviewer has no folder to open, and
BR-42's allowlist admits only CLAUDE.md and
.claude/rules/*.md. A design that lives in a repository cannot reach a reviewer
in this product. (6) The findings travel back as context.
.gaos/packet/context/findings.md, a KindContext part, verbatim —
the same semantics as the previous handoff. This is D-068's clause 4 made concrete, and it
is what makes D-056's promise — the implementer sees the review that
rejected it — true rather than aspirational. (7) The gate is the planner's own
mechanism. A DEPENDS_ON edge, the existing BLOCKED status,
and the scheduler's existing dependency block. No new task status, so the closed
Task.status DDL regexp and its vocabulary test stay untouched. (8)
The gate's record is an artifact, not the Review vertex. This
amends D-068's clause 5: the Review vertex belongs to M5's score-band engine —
verdict is a closed six-value regexp and finalScore is mandatory
(dashboard/schema/06-judgment.sql:14-26) — and a design gate has no score to
record and no band to fall in. The gate's live state is the task graph; its findings are an
Artifact of kind review. The Review vertex is left as
M5 left it, and no schema relaxation is needed. (9) Three closed vocabularies grow
by one value each. Task gains a kind property with the
values implement|design|review, because the packet builder must be able to tell
a review task from an implement task; Artifact.kind widens to admit
design and review; and the citation roles gain
design, so the design artifact is cited by the part that carries it.
(10) A limit, recorded rather than solved. Screen() is
outbound-only: a reply is stored verbatim as an artifact of kind
reply (dashboard/runner.go:190-215). A finding that quotes a
secret is therefore already in the append-only store by the time the outbound pass refuses
the next dispatch. The egress pass is the backstop, not the cure; inbound screening is a
separate piece of work and is not claimed here.
The content dimension, answered. The standing files may contain what they already contain: the published Blueprint, whole. The question was framed as though the standing files were a leak, and the code says otherwise — they are the rubric. What may not leave the review is the matched text of anything, and that is already the finding shape: a finding records WHERE a detector fired and never WHAT it matched ( dashboard/egress.go:222-238), so a reviewer cites a standing file by path and
line the same way it cites the design. The content risk is handled at the sink, not at the
source.
What this ruling does not close. The Blueprint renders every decision into the standing files with no bound on their number ( dashboard/blueprint_render.go:90), so a workspace's context grows with the
decision log. That is a context-cost problem, not an isolation problem — the decisions are
product knowledge, not the author's process — and it stays open as its own item rather than
being folded into the gate. Nothing in Go changes in this release; the event catalog is
closed (BR-05). |
Code reading of dashboard/store_mem.go,
dashboard/egress.go, dashboard/runner.go and
dashboard/schema/, 2026-11-04;
docs/designs/egm-design-review.md;
TC-361, TC-365;
answers OQ-32;
amends D-068; adds
BR-49 and BR-50 |
| D-070 | 2026-11-04 | The design gate is built. M17's five tasks landed: a plan can carry a
review task, the reviewer's prompt holds the design and the rubric and nothing else,
and the implementation waits for the review to resolve. This ruling records how, and it
answers nothing — it implements
D-069, which is the decision that made it possible.
Eight clauses. (1) The gate is the planner's own DEPENDS_ON edge. Each story's plan is
design → review → implement → verify, and the implementation depends on the
review. The edge is the gate: a dependency is satisfied only by DONE, and the
gate is what makes the review DONE. (2) A task carries a kind.
Task.kind is new, with three values — implement|design|review —
and it is what the packet builder, the reply contract and the gate all branch on. A task
with no kind is an implement task, and an unrecognised kind fails closed rather than open.
(3) The gate is enforced twice over. A plan whose implementation has no
review is refused before the first write, because the plan is an input to a public method and
not only the planner's own output; and the operator's dispatch route refuses a task whose
prerequisite is not done, because a gate with two doors and one lock is not a gate. The
board also refuses to unblock a task the gate is holding. (4) Two kinds reach
DONE on their own verdict. A design task whose document arrived, and a
review task whose verdict cleared. Every other task keeps today's behaviour: its run ends in
REVIEW and the operator approves it. (5) The reviewer's prompt carries
the design and the rubric and nothing else — no brief, no goal, no handoff, no
failure lesson, no operator's answer, no stories, no acceptance criteria. The contract part
stays in the frozen slice as the evidence of what the model was told, and does not reach
the prompt. (6) The findings travel back, at
.gaos/packet/context/findings.md, and the design goes with them at
.gaos/packet/design.md; both are found by the dependency edge, so no new field
carries them. (7) Two contracts. A design task owes a
gaos-design block and a review task a gaos-review block, each in
addition to the handoff every invocation owes. A finding is
{severity, scope, note}: the scope is a path and an optional line, validated
and bounded, and the note is one line that says what is wrong without quoting the text it
complains about. The verdict is derived from the findings, never declared. (8) A
failed review is not a verdict — the review task goes BLOCKED with
reason review-failed and consumes no retry, no escalation and no failure
signature.
Two things the milestone did not claim. The standing files in the reviewer's workspace carry the product's stories and its decisions, so the isolation the gate provides is over the packet and not over the context — BR-47 says so now. And BR-48's clearance is refused, as BR-48 itself says, until the back office has a real identity to check: M17 implements the dispatch stop and refuses the clearance. Seventeen tests in dashboard/designgate_test.go, and the forward
specifications TC-359…TC-365 now run, with TC-366…TC-375 beside them. No event name was
added (BR-05): the gate speaks in TaskMoved's rule and in artifacts. |
Product-owner request, 2026-11-04;
docs/designs/m17-design-gate.md and its review round;
TC-359…TC-375;
implements D-069;
amends BR-46, BR-47 and BR-48 |
| D-071 | 2026-11-04 | A reviewer runs in the product's own reviewer workspace, not in the author's.
M17.5 closes the gap D-069 left open and named: the isolation
boundary is the packet and the workspace. A product now has a second workspace,
gaos-<tenant>-<product>-review, holding the published Blueprint
byte-identical in its own root, and it is reset before every review turn — so the
reviewer's folder holds the standing files and nothing else: no author file, and no
earlier review's leftover.
Seven clauses. (1) One reviewer workspace per product, derived from the tenant and the product, never from the shared override — which is retired, because one folder for every product would give them one root and one initial context. (2) The published Blueprint, whole: a reduced set would be drift under BR-39, so the reviewer's copy is byte-identical to the product's. (3) The reset is the drift check: the folder is re-synced with a prune before the turn, and its digest verified, so a review never runs under rules the record says it never saw. (4) The id travels on the packet, set where the task's kind is known, so the store and the gateway cannot disagree about where the turn runs. (5) Drift belongs to the folder the run touched: a reviewer's turn must not mark the author's workspace drifted and refuse the author's next dispatch. (6) One live turn per product, across both folders, so BR-38's text says "a product" now. (7) The limits are named: the standing files still carry the product's stories and decisions, and the two folders are siblings under one managed root — the gateway documents a write boundary, not a read boundary between them. Nine tests in dashboard/reviewer_workspace_test.go, and TC-382…TC-390
beside them. No task status, no agent role, no event name and no rule string was added;
one optional property, TaskRun.workspace, says which folder a run used. |
M17.5;
docs/designs/m17.5-reviewer-workspace.md and its review round;
TC-382…TC-390;
amends D-069;
amends BR-38, BR-47 and BR-49 |
| D-072 | 2026-11-14 | A QA case has two halves with one writer each, and GAOS serves a bearer-token REST API for the QA tools.
Context: GAOS had no machine API — every route was for a browser — and the product
owner wanted the QA tools (a separate repository) to integrate with GAOS, in both directions,
without two writers fighting over one field. Decision: the planning half of a case
(caseId, epic, module, features,
userStory, scenario, polarity, level,
pri, decision, reason) belongs to GAOS and changes only
through the admin catalog endpoint or a seed re-run; the automation half
(implemented, spec, and the run record result,
runAt, runRef) belongs to the QA tools. Inside the automation half the
newest run wins: a run record must carry runAt, is refused stale when an
older one is stored and future past five minutes ahead, and an equal run is
unchanged; only the admin token may force past stale. The REST surface is
mounted at /v1 and published at /api/v1 (Traefik strips /api), with two
scopes — qa and admin — bearer tokens read from files with a
gaos_ prefix, fail-closed (no token configured means 503, equal tokens disable the API),
a QA token scoped to the product ids in GAOS_API_QA_PRODUCTS, and one write in flight per
token.
Consequences: a new inbound trust boundary, bounded by BR-51, BR-52 and BR-53; QA writes carry no floor, so a parked (replayed) floor is never overwritten by one; a write that changes something emits one RecordUpdated and no event name is added
(BR-05). The two sides cannot be given the same token.
The contract is published at The QA sync API. |
Product-owner request, 2026-11-14; docs/designs/qa-catalog-sync.md §4.1, §4.7 and
its review rounds; TC-397…TC-401 and
TC-391…TC-396;
BR-51, BR-52, BR-53; OQ-33 |
| D-073 | 2026-11-14 | The QA catalog is its own vertex and never a task; QA data never moves a task, and the QA token may add one blocked card for a new epic.
Context: a test case is a fact about a script, not work for an agent. Making every case a task
was rejected: the planner demands a gated design, review, implement shape, and the scheduler
and the task fold walk every task. Keeping the catalog inside the product document was rejected
too — about 700 KB rewritten per edit. A first draft reflected each epic's roll-up onto its
card and was removed after review: it walked gated tasks past the design gate and recorded
dispatches that never happened. Decision: a case is a QaCase vertex
(16-qa-catalog.sql, edge HAS_QA_CASE), keyed by <productId>:<caseId>;
QA data changes no existing task's status, ever. The one write it may cause is to add a card:
when the QA tools create a case in an epic that does not exist, GAOS adds one
Automate: <epic> card, always BLOCKED with the rule
qa-epic-added, released only by an operator's board move — so a QA token can never
create dispatchable agent work (BR-46). The QA token may
create new planned cases (never change, park or retire one), at most five new epics
per request and a hundred per product; a card shows live case counts, read from the catalog at
display time, without anything being written to the task.
Consequences: TaskPlanned now means “a plan, or an addition to one” and the
task fold continues a workflow's ordinals; no event name is added. The QA token can add at most
5,000 cases to a product.
Whether results should ever move a card is OQ-35. |
docs/designs/qa-catalog-sync.md §3, §4.12 and its review round 1;
TC-408…TC-410;
BR-53, BR-54; amends nothing in
BR-46, which it relies on;
OQ-35 |
| D-074 | 2026-11-14 | The product seed is generic; the sample product's data lives outside the binary and the seed does not clear the design gate.
Context: the product owner wanted the sample product on the gaos.example.org instance with a BRD,
stories, a Blueprint, a workflow and a populated board. Compiling a customer's catalog into a
generic Apache-2.0 binary was rejected. Decision: POST /v1/seed/product (admin) takes a
product seed document and creates or adopts the product through the existing store calls, each step
skipped when already true, so a re-run changes nothing and overwrites no operator edit; it refuses to
adopt an unseeded product of the same name (409 product-exists-unseeded), screens every
text field with the egress detector, refuses a record below the readiness floor (422
not-ready), and plans a workflow whose design and review start PENDING and
whose epic cards start gate-BLOCKED — nothing is fabricated: no DONE, no run,
no artifact. The sample product's content is data under deploy/seed/<sample>/
(product.json, cases.json, generated by build-seed.mjs from the
source repository at a recorded commit) and is loaded by seed.sh on the VM.
The product owner approved committing those files on 2026-11-14 and they ride in this repository exactly as the gaos.example.org host overrides already do. The condition: the
repository is private, and these files leave it before it could ever be made public.
Consequences: ProductDraft gains a Priority; the seed does not run
SyncBlueprint (a real gateway call that stays an operator button); the seed is
never run at boot. |
docs/designs/qa-catalog-sync.md §4.9 and §9;
TC-406, TC-407, TC-411;
BR-07, BR-52 |
| D-075 | 2026-11-14 | GAOS calls one configured QA origin from two back-office buttons, which stay inert until the QA tools implement their side.
Context: the product owner asked for a sync button for each direction. Decision: the outbound
origin is operator configuration, never request input — GAOS_QA_URL (https, or http
to a loopback or tunnel IP literal with no userinfo or query) and GAOS_QA_TOKEN_FILE with
its own token. Pull pages GET /api/v1/gaos/results and applies each page through
the same results rules as the inbound route; push sends cases above its cursor to
POST /api/v1/gaos/catalog in batches of 200. Fifteen seconds per call, sixty per click,
every redirect refused, two MiB per response; one sync in the whole process at a time and a thirty
second cooldown; only products in GAOS_API_QA_PRODUCTS. With the URL or the token missing
the buttons render disabled with the reason as visible text.
Consequences: the two routes sit behind the back office's cookie gate, which accepts any request carrying gaos_bo=1 (BR-48's open
precondition), so anyone who can reach the dashboard can click them; the blast radius is bounded
by the single origin, the in-scope products, the cooldown, and by what comes back passing the
API's own validation and being unable to move a task. The QA tools' side of the contract is
OQ-33. |
docs/designs/qa-catalog-sync.md §4.10, §4.11 and §8;
TC-402…TC-405;
BR-52, BR-53;
OQ-33, OQ-34 |
| D-076 | 2026-11-14 | A product made in the back office is seated at an idle desk the first time it is planned, so it can have a workflow and a board.
Context: desks were built only for the six seeded products, so a product created in the back
office could have stories but no tasks: CreateWorkflow returned
ErrNotFound for it. The sample product needs both. Decision: when CreateWorkflow finds no
desk for an existing product it seats an idle one and continues. Effects, stated rather than hidden:
(1) any such product can now have a workflow, a board and — if GAOS_RUNNER is on and the
gate cleared — dispatch; prod leaves the runner unset. (2) The desk persists through the existing
desk loop, with no schema change. (3) No event records the desk, and the fold skips events for
unknown desks, so a parked floor does not show it: this is the first runtime desk, there was no
precedent, and reopening BR-05 for a desk event is out of scope.
(4) The desks are re-sorted by id length then id after a load, so p-10 does not shift the
seeded desks' indices. (5) POST /workflows and the task routes
dispatch, approve, retry and cancel — five routes
that took no cookie check at all — now require the back-office cookie, because this change would
otherwise extend their reach to new products.
Alongside it, a defect is fixed: CreateWorkflow's gate loop walked every task of every
product and re-blocked any implementation task with a review dependency whether or not the review
had cleared; it now touches only the tasks of the workflow being created. Still open and not
widened here: GET /replay/{workflow} (a state-changing GET) and
GET /tasks/{id}/context. |
docs/designs/qa-catalog-sync.md §4.8, §8 and review round 1 (SEC-11);
TC-396 and
TC-409;
BR-05, BR-46, BR-48 |
| D-077 | 2026-11-14 | The QA tools serve the two endpoints GAOS calls, and per-case results come from the automation repository's Playwright report, ingested by the QA tools.
Context: OQ-33 asked when the QA tools would serve
GET /api/v1/gaos/results and POST /api/v1/gaos/catalog, without which the two
sync buttons (D-075) stay disabled, and the QA tools held no per-case pass or fail at
all. Decision: the QA tools built both routes behind one static bearer token of their own
(GAOS_INBOUND_TOKEN, distinct from every GAOS token, closed when unset) and scoped to the
products flagged as integrated. Results carries the script facts, a removed case as
“no script” and, since the QA tools can ingest a Playwright JSON report (a CI step with its own
token, or an upload on the product page), the run record of every case that has one: result,
runAt (the report's start time) and runRef. The latest run wins per case on
their side, and GAOS refuses an older one as stale (BR-51).
Catalog stores GAOS's planning data in a table of its own and never writes the QA tools'
synced test cases. Nothing changed in GAOS except switching the buttons on (GAOS_QA_URL and
the outbound token file).
Consequences: verified on production on 2026-11-14. Pull returned the whole catalog (1,700 items), push sent the whole planning half in two clicks (a 200-case batch takes about 15 seconds there against GAOS's 60-second click), and the QA tools stored all 1,700 decisions. For the first real results, one staging run of 2026-11-08 (98 tests, 68 cases, none failing) was uploaded and pulled: 68 results applied, shown with the report's own time. Results then reach GAOS by themselves: the QA tools' push carries the run record of every case and an upload starts a push (a second real staging report, 8 cases, arrived in GAOS about twelve seconds after the upload with no button pressed); an operator's pull reads the same data. |
How GAOS and the QA tools work together; The QA sync API; OQ-33 |
| D-079 | 2026-11-15 | The back office signs in for real: accounts in a hashed file, a signed expiring session cookie, and a mux gate that refuses every route nobody classified.
Context: signedIn() accepted gaos_bo=1 from any request and the login checked only
for an @ (BR-48's open precondition), so anyone who could
reach the dashboard could read the product master, answer questions, publish Blueprints and press the QA sync
buttons; six routes (the event log, the model's packet, the readiness read, the wizard and a GET
that parked every write) checked nothing at all. Decision: accounts are lines of a file
(email:pbkdf2-sha256$600000$…, GAOS_BO_USERS_FILE); a session is
v1.email.expiry.fingerprint.mac, HMAC-SHA256 under GAOS_BO_SESSION_KEY_FILE and a
per-deployment label, 12 hours absolute, so a password change or a removed account ends it; failures are
throttled per account and never starve a known account; the gate looks up each request's matched pattern and
refuses everything that is not on a fixed public list or a bearer route; replay became a POST;
non-GET requests that a browser marks cross-origin are refused. Nothing is open when no account exists.
Lifted from pustaka's auth with the changes the design names
(docs/designs/bo-login.md, three review rounds). Per-tenant scoping and SSO stay open
(OQ-11 is narrowed, not answered), and events still carry no actor.
Consequences: the two prod deployments need the two prod.bo-* files and a
GAOS_BO_LABEL before the tag that carries this. A rollback to an older tag brings the forgeable
cookie back. D-078 (the QA inbox) is claimed by its own design and recorded here when that review passes. |
Back-office sign-in; TC-423 to TC-438; BR-48, BR-55; OQ-11 |
| D-080 | 2026-11-20 | GAOS_RUNNER=manual: the scheduler readies work and only the operator's board dispatch spends.
Context: GAOS_RUNNER was off or on. On, the control loop dispatched every ready task on every product,
which on the instance carrying the sample product means a design task and then forty-seven automate tasks, unasked; off, nothing
ever became ready and the board refused to dispatch. Decision: a third value. Under manual the loop runs,
moves every task the scheduler would start to ready (a card parked in ready claims neither its product nor an agent
seat, so every eligible card arrives), and never dispatches; a turn is sent only when an operator moves a ready card
to working, through the readiness floor (BR-07), one live turn per product
(BR-38), the drift gate (BR-39), the dependency check and the egress pass. The board dispatch now re-checks the
readiness floor and claims its product atomically under both on and manual. An unrecognised
value is off; the desk route stays on-only. Reviewed in one round by five goldfish lenses
(docs/designs/runner-manual.md); approved by the orchestrating agent under the product owner's standing
instruction of 2026-11-20 to proceed without confirmation.
Consequences: the prod compose passes the value from the deploy shell, so manual must be on every
redeploy line and a plain redeploy falls back to off; on is equally one word away, and choosing it stays
the operator's decision. The budget guard, when it is built, must gate the board dispatch as well as the loop. Under
on the unused desk route (POST /tasks/{id}/dispatch) still spends without BR-38. Events
still carry no actor, so which signed-in account dispatched is not recorded. |
TC-443 to TC-452; BR-56; Gateway |
| D-081 | 2026-11-21 | Card timing is derived from the event stream: every event carries the app's wall-clock time, and older
events read the database's ts.
Context: the product owner asked each card to show how long it spent in each status and how long the task took end
to end, including the time no AI was working on it. Every move was already a TaskMoved, but the
in-memory event carried no wall-clock time — Event.T is the simulation clock, 0 in production
— and the database's ts was written and never read back. Decision: Event gains
At (unix seconds, the app's clock) on the payload wire as at; a row written before v0.41.0
reads its ts, corrected by the database's zone offset rounded to a quarter hour. A card's timing is a
pure function of its TaskPlanned and TaskMoved events and its runs: status segments that
partition the lead time exactly into AI working (DISPATCHED and RUNNING), waiting on the
operator, queued, blocked and backlog; idle is lead minus AI working; costs stay per basis
(BR-31). Wall-clock, not business hours. A history that disagrees with the
card's status says it is incomplete rather than guessing. No event type is added (BR-05) and nothing stored is
rewritten (BR-04). Rejected: a new event type or a Task.enteredAt column (a second source of truth);
reusing Event.T; AI time as the sum of run durations, which does not partition the lead. Reviewed in
one round by five goldfish lenses (docs/designs/card-timing.md); approved by the orchestrating agent
under the product owner's standing instruction of 2026-11-20/21 to work among the agents without confirmation.
Consequences: the board's JSON gains a timing summary per card and a workflows list, and
GET /events an additive At; per-attempt model, tokens and cost reach the HTTP surface for
the first time, through an allowlist that never carries a session, request or log id. READY is
classified by the current runner mode, not the one in force when the card waited. Cards from before v0.30.0, and
any whose background write was lost, read as incomplete. |
TC-466 to TC-477; Event |
| D-082 | 2026-11-21 | A finished card's conversation is readable, archivable and prunable; prune empties the conversation's
documents and deletes its sessions, never the record.
Context: the product owner asked to see the AI conversation of every card, readable as written, to archive it, and
to prune archived conversations permanently. The prompt, reply and question documents were stored per attempt and
read by nothing, and BR-41 kept them forever. Decision: each card shows every attempt's prompt and reply, rendered
as escaped markdown (no HTML from the model, https links only, no images), and its question and the operator's
answer. A finished card with no open attempt can be archived and restored (ConversationArchived);
from the Archive page, with a typed PRUNE bound to the listed cards, archived conversations are pruned
(ConversationPruned, two stages): the prompt, reply and question documents are emptied in one
transaction with a certificate per card — the account, the time, each document's SHA-256 and length, and what
survives — and then the gateway sessions of those cards are deleted through the admin API and their outcome
recorded. What survives, said in the form and the certificate: the events (with the full question and answer), the
context slices (with the prompt's packet), run records, artifact rows, handoff, design and review documents, the
gateway's own question records and turn results until they expire, and backups (L-9). The prune empties the
database property and claims nothing about disk-page reclamation (D-043's check is not recorded in
dashboard/schema/RECONCILIATION.md). Amends BR-41; an exception
to D-012 and J-6. Back-office responses gain a framing, object, base and form-action Content-Security-Policy.
BR-05: the catalog opens by the two names, with their fold cases and the data-model document. Rejected: archive
per session; archive of unfinished cards; archive state on a property; deleting events, run records or context
slices; a raw-transcript view (the gateway has no read endpoint). Reviewed in two rounds by five goldfish lenses
(docs/designs/conversations.md); approved by the orchestrating agent under the product owner's
delegation.
Consequences: what prune actually removes from GAOS is the reply's prose outside its handoff, design and review blocks, and the copies of the prompt and question; from the gateway, the session transcripts with their tool calls. Any signed-in account can prune; the certificate names it. A session deletion that fails is counted and left to the gateway's 30-day expiry. A script-src policy needs an audit of every template and is not in this change. |
TC-478 to TC-489; BR-41; Event |
| D-083 | 2026-11-21 | An answer records where it came from, and a machine client answers only the inbox items it asked.
Context: the product owner asked for a button on the QA tool's /history page that answers what waits
for approval and sends the answer to GAOS, and for GAOS to log the answer's source — GAOS itself, the QA tool
with its domain, or a later platform such as the Hikaru apps. Decision: a new machine route,
POST /api/v1/products/{id}/inbox/{externalId}/answer, with the client's own bearer, the back office's
choice and text rules and the ask route's two-pass secret screen; the first answer wins, an identical retry by the
same client is 200 with the first answer and writes nothing, any other second answer is 409
already_answered carrying the item, an expiry is 410. Every answer — back office or machine
— stores a source {kind, client, origin, actor} as answeredBy on the existing
QuestionAnswered or ExternalQuestionAnswered (no event type is added): the back office is
kind gaos with the deployment label and the signed-in email; the QA token is client
qa-tools, kind qa-tool, origin GAOS_QA_ORIGIN (or the host of a named
GAOS_QA_URL). Only the actor's handle comes from the request, recorded as reported. Clients are a
registry: GAOS_API_CLIENTS_FILE names further clients (name, kind, origin, token file, products) that
reach only the inbox routes of their own products. Everything the inbox does per client follows the asker: the
origin tag, the open-item cap, id ownership (409 id-taken), the owner-only GET, and the webhook, which
carries only the QA tool's own items; a registry client may not share a product with the QA token, and a client name
is never reused. The source is shown in the inbox's "Answered recently", the timeline, the refusal toast and the
conversation sheet; an older answer reads "source not recorded". Rejected: trusting a source in the body; a new
event type; letting any client answer any item; keying items by asker (every back-office route addresses an item by
its id alone); a source in the webhook body (the QA side's contract fixes it); returning the operator's email to
machines. Reviewed in two rounds by the goldfish lenses, security included (docs/designs/answer-source.md);
approved under the product owner's delegation to the orchestrating agent.
Consequences: the Event.actor column names the answerer — the email for the back office,
<client>/<handle> for a machine, the prefix marking an identity GAOS did not verify. The
machine API returns a back-office answer's actor as operator. BR-57 sits in §9.8 because every
rule in it is the machine API's and its inbox's; its one back-office clause is the other half of the same record.
Answering task questions over the API — what the Hikaru apps will need — is the next extension and needs
its own decision about which client may answer which task. |
TC-490 to TC-499; BR-57, BR-52; QA sync API §inbox |
| D-084 | 2026-11-21 | A design the review blocked is sent back to its author by the operator, revised with its findings in its
packet, and reviewed again on a fresh session; three times at most; no clearance without a review.
Context: workflow wf-9 on production stalled — a valid review with one Blocker left the design DONE, the
review BLOCKED and the implementation held, with no move that could change the design; and unblocking
the review, by hand or by a Blueprint sync, would only re-run it on the same design. Decision: a board action
send-back on the blocked review re-opens the design DONE → READY (the one guarded exit from
DONE) and puts the review back in PENDING on its dependency; both moves record the
signed-in account, the design's carries the operator's optional triage in the four dispositions; the design's next
packet carries its previous version, the review artifact and the triage, and an instruction to state its reasons as
properties of the design; it resumes its session where the session survives (D-056); the
scheduler promotes the review when the revision is delivered, and the review opens a fresh session decided from the
event stream (D-069); a review blocked by its own verdict is never unblocked by hand or by the
drift release; design and review tasks are no longer approvable. Rejected: re-running the review on the same design
(a reroll, not a review); a new task per revision (the graph's edges would move); a new status or event type
(closed); an artifact kind for the triage (a schema statement for what the event already carries); a clearance with
no review (a gate one account can open alone) — the brief's conditional override is a contested send-back that a
fresh review clears; a verbatim check on the revision (it refused what a CONTEST asks the designer to keep, and
missed paraphrase). Reviewed in three rounds by the goldfish lenses (docs/designs/design-iterate.md);
approved by the orchestrating agent under the product owner's standing instruction to work among the agents without
confirmation.
Consequences: DONE is no longer terminal for a design task — canTaskTransition(DONE, READY)
is true and moveTaskLocked keeps it to the send-back; card timing books a left DONE segment
as blocked, a convention that keeps the partition exact; the gate reads a review's verdict from its anchored line; a
QA-added card is no longer released by a Blueprint sync (BR-54); the revised
design may carry the author's reading of the review, and a barely changed revision is a new design whose re-review the
cap bounds and the run caption records. The send-back's account is kept in the append-only stream for as long as the
stream is (BR-04). |
TC-500 to TC-509; BR-48, BR-58; The design gate |
| D-085 | 2026-11-21 | GAOS is open source: no tracked file names one operator's private instance; that material lives in a
git-ignored deploy/local/, a guard keeps it out, and the back office shows every integration's state
read-only. Context: the product owner asked for the repository and its description to fit an open-source
audience, for every external integration to be documented, and for a sample product's name and the deployment's
domain never to appear in the repository. One hundred and seventy-nine lines in thirty-nine tracked files, and seven
paths, named them; a customer's real test catalog was committed as seed data. Decision: every such line is reworded
to neutral terms (the sample product, gaos.example.org, qa.example.org); the seed,
the second instance's edge blocks and its redeploy overrides move to deploy/local/ (ignored; agents are
denied reading it), replaced by an invented example seed (deploy/seed/example/), a generic
seed.sh --dir and a placeholder edge template; check-workspace.sh fails on any tracked or
untracked-not-ignored file whose content or path matches a git-ignored list of patterns, which the script itself
never carries; registers and review reports may be reworded for private strings only — an exception to their
append-only rule whose first use was this design's own round-1 reports; the vendored board's copyright holder is no
longer named in a tracked file, accepted knowingly on the brief's instruction; the README's figures are checked
against the registers rather than fixed strings; and a read-only Integrations view shows ai-manager, the
QA tools, the machine API and every registered client — visible to every signed-in account, since the back office
has no roles — and never a token, digest, credential, URL path or query. History is not rewritten here: that is
OQ-36, and the repository is not made public until it is answered. Rejected:
deleting the seed (the instance still needs it); hashed patterns in the guard (they miss a name inside a slug or a
domain); a new route for the view (the view routes already have a session and a gate class); a webhook per
registry client (a design of its own); two releases. Reviewed in two rounds by the goldfish lenses
(docs/designs/open-source-docs.md); approved by the orchestrating agent under the product owner's
standing instruction to work among the agents without confirmation. |
TC-510, TC-511, TC-512; OQ-36; How integration works |
| D-086 | 2026-11-22 | GAOS may push committed task and product state changes to one operator-chosen public receiver (Brain Town),
off by default; a product not listed as public is redacted at the source; delivery is best-effort, in memory and never on a
task's path. Context: the product owner asked for GAOS to tell a public, animated town when work changes, so that
each product is a hall and each task a person. The integration brief said to send real names and titles and let the receiver
hide them. Decision: four settings (BRAIN_TOWN_ENABLED, _URL, _TOKEN_FILE,
_PUBLIC_PRODUCTS); the source is a post-commit tap (after tx.Commit on ArcadeDB, at emit on the
memory store), a non-blocking hand-off to one ordered sender with a 3 s timeout and 1, 5 and 30 s retries under one stable
id; a product is public only when its id is listed, otherwise hidden with the alias
Private product and the task id as every title, before anything leaves — a deliberate departure
from the brief, after the security review rated receiver-side hiding Critical; the token is a file and a GAOS credential is
refused; task.qa is not sent because GAOS's QA result event names no task. No event type, status or schema
statement is added, so there is no migration. Rejected: tailing Events() with a persisted cursor (it strips
payloads); a broker subscription with a settle delay (the database store emits before commit and never rolls back);
public by default; a token in the environment. Reviewed in one round by the five goldfish lenses
(docs/designs/brain-town-emitter.md); approved by the orchestrating agent under the product owner's
instruction to run the task unattended. |
TC-513 … TC-523; Brain Town feed |
| D-087 | 2026-11-25 | GAOS may pull the town's pull-request events over a scoped, revocable reader token; the
operator declares the scope in the town's back office and GAOS filters again by the repositories its
products declare; a lost event is replayed rather than dropped, and no reader credential is ever a
sender's credential or GAOS's own. Context: the product owner wants GAOS to react to pull-request
activity on a product's main repository — open a review card when one appears, a test card when it
merges — and the town already receives the GitHub webhook. The town's public stream is masked on
purpose, so a hidden product appears under its alias with no title, which is not enough to act on.
Decision: the town serves a second path, GET /consumer/events, authenticated by a
bt_c_ token and filtered by the scope the operator registered; the frame keeps the public
frame's shape with an unmasked payload and adds productKey and orgLogin; the
repository GAOS acts on is the product's, never the event's, so a scope that is broader than
GAOS's products still cannot make GAOS act on a repository it does not own; the hand-over channel does
not drop, and the cursor advances only after the hand-over, so an event that was never handed over is
replayed; the token file is refused when others can read it, and a bt_live_ or
gaos_ token is refused outright. Rejected: reading the town's admin stream (it needs an
operator's session); reading the public stream and mapping the aliases (a second source of truth for
something the town already knows); the town pushing to GAOS (it inverts who declares what is needed);
GAOS receiving the GitHub webhook directly (it would duplicate the town's whole receiver).
|
TC-524…TC-533; Brain Town reader |
| D-088 | 2026-11-25 | GAOS reacts to pull-request activity: an opened pull request plans a review card and an e2e
automation card, a merge plans a unit-test card, and the staging deploy plans an e2e run card; the cards
are born ready under an operator's standing pr-review:auto label, GAOS (never the agent)
posts the screened review as a comment, the QA tool writes and runs the e2e specs, and the one staging
route answers HTTP Basic with a credential per product. Context: the product owner wants
pull requests reviewed and proved without a person starting each one, and the town already receives the
webhook (D-087). Decision: the PR reviewer is an implement task with its own
gaos-pr-review reply block, outside BR-46 and BR-47, because a GAOS “review” task
is the reviewer of a written design; cards live on a separate PR workflow and never reset a product's
plan; a draft, a fork or a stranger's pull request opens nothing, and a per-product cap bounds the
open cards; the key owner/repo#n:role (or owner/repo@sha:e2e-run) is stored on
the card, so a replay plans nothing; the GitHub write token lives in the dashboard process alone and the
review body is screened by the egress detectors before it is posted; the e2e work is the QA tool's
(caseauto.Machine), driven by a GAOS-side job runner with no model turn; the staging
callback is HTTP Basic, one credential per product, a credential for another product is 404, failures
are throttled (BR-52 amended for that one route; BR-55 holds because the route is a registered
bearer-class route with its own gate); WhatsApp is https only with no default host, sends to a pinned
group JID and never to a group found by name, and a failed send never fails the work; the contact
registry is its own Contact vertex, never on Master, never in an event; five
event types join the closed catalog (PullRequestOpened, PullRequestMerged,
StagingDeployed, ContactNotified, TaskLabeled). Rejected: the
agent posting its own review (it would put a write token into a workspace that reads strangers' text);
a bearer client for Jenkins (its credential step speaks Basic; kept as the simpler follow-up if it can
send a bearer); naming a WhatsApp group by its display name (names are not unique).
Amended by D-109: a line may name the repository and carry the pull
request’s URL and GAOS’s card link, each on a line of its own. |
TC-534…TC-599;
Pull-request agents;
docs/designs/gaos-pr-agent-flows.md and its review round |
| D-089 | 2026-11-25 | The pull-request flows' follow-ups: a card id carries 12 characters of the commit, a QA job waiting for a person to approve the spec is a human wait with its own budget, and the WhatsApp gateway may be http only on a private link, for named products only.
Context: reading the code after the first live run of D-088 found a latent id collision (never observed), a job
awaiting_approval that would fail its card at the 40-minute work limit while a person was merely slow,
and a gateway reachable only over http. Decision: (1) a card id carries 12 characters of the commit, and an id held
by a card with another key gets a suffix, so two commits sharing a prefix get two cards; the staging callback now
requires a full 40- or 64-hex commit (a short one is 422). (2) A QA job whose status is awaiting_approval
puts the card in AWAITING_INPUT (Needs you) with a reason carrying qa-job:<id>; the
work clock stops; the wait budget is cumulative per job (GAOS_QA_APPROVAL_WAIT_HOURS, default 24,
maximum 720) and fails the card qa-approval-timeout, applied after the last poll so an approval in the
final interval is seen; one notice per job (kind e2e:approval), always to the pinned group, never to a
committer; more than five waits fails the card qa-job-flapping; a restart re-adopts
RUNNING and AWAITING_INPUT e2e cards from the job id kept in the card's reason, so no second
job starts. The runner's moves are limited by an allowed-start table, never pass through DONE,
FAILED or CANCELED, and every hop is a TaskMoved with the rule
pr-flow (so the stream shows READY and DISPATCHED hops the agent never made).
(3) GAOS_WA_ALLOW_HTTP=1 allows an http gateway only at a loopback, RFC 1918, CGNAT or link-local address,
checked on every connection; any allows a public address. The status always says
unencrypted; with no product linked the boot group check (which would send the credential) is skipped; https
stays the default and any other scheme is refused. GAOS_WA_PRODUCTS lists the products the notifier
serves, group and contacts alike; empty means none and the notifier is silent. Upgrade note: a v0.48
deployment that sets GAOS_WA_URL must now also set GAOS_WA_PRODUCTS.
Amends BR-44: besides an agent, the QA-job runner may put an e2e card in AWAITING_INPUT
while the QA tool waits for a person; it leaves by the job resuming (RUNNING), failing, or a cancel.
Residual risks: the QA tool has no cancel call, so a spec approved after GAOS failed its card still opens its pull
request (the QA tool's reject is the remedy; a person rejecting a spec shows as qa-job-failed); a public
http gateway sends the login in clear text. Rejected: raising the poll limit (it fails a card just because a person is
slow), and making http the default. |
TC-601…TC-616;
BR-44;
Pull-request agents;
docs/designs/gaos-pr-flows-followups.md |
| D-090 | 2026-11-25 | GAOS cancels a QA job at the QA tool whenever it gives up on it; the GitHub token file is trimmed; the installed token's breadth is accepted for now; reviewer isolation is proven.
Context: D-089 recorded that the QA tool had no cancel call, so a spec approved after GAOS failed its card still
opened a pull request; a live check against the real GitHub API found a token file ending in a blank line making
the Authorization header invalid. Decision: (1) GAOS cancels the job (POST /api/v1/gaos/jobs/{id}/cancel,
qa-automation-tools PR #85) on the work timeout, the approval timeout, the flapping cap, and when an operator
cancels the card. The route stops the run and rejects the open approval, so nothing can be approved later and no
pull request opens; it is idempotent, and a finished job is untouched (canceled:false). It is best
effort: a failed cancel is logged and never keeps the card open. Residual: the case in flight inside a
* run-all is not interrupted (the run-all stops after it), and a canceled approval's GAOS Inbox item is
left as it is. This closes the “no cancel call” residual risk of D-089. (2) The
GitHub token file reader trims all surrounding whitespace. (3) The GitHub token installed on both prods is the
operator's classic personal token (scopes include repo, workflow, admin:org
and admin:enterprise); the operator accepts it for now, and a fine-grained token limited to
pull-request access on the product repositories is the recommended replacement. The workstation copy is group- or
other-readable, which GAOS itself refuses. (4) Reviewer isolation was proven, not assumed:
omitClaudeMd: true keeps CLAUDE.md out of a reviewer's context (positive control: a normal
agent saw the CLAUDE.md sentence, a reviewer did not, before or after reading a docs file); the earlier
“harness attached CLAUDE.md” reports were the path-scoped rule
.claude/rules/agent-workspace.md, which attaches to every agent that reads under docs/ or
.claude/ and names CLAUDE.md; the procedure is in
.claude/skills/gaos-design-review/SKILL.md. |
TC-617…TC-621;
Pull-request agents;
docs/designs/gaos-pr-flows-followups.md |
| D-091 | 2026-11-26 | GAOS triages a reported defect and, for an easy one on a product that has switched it on, dispatches the fix itself and opens a draft pull request with a separate write token.
Context: the QA tool pins known defects as expected failures, so GAOS never heard about them, and nobody classified
how hard each was to fix. Decision: (1) A new route, POST /api/v1/products/{id}/qa/defects, records a
defect (DefectReported) and plans a triage card; the triager and fixer roles
are added, so D-088 §14 (“a fifth agent”) is amended. (2) For
defect:easy fixes only, GAOS, not the agent, opens a draft pull request;
D-088 §14 and §7 are amended accordingly, with a second token file, GAOS_GITHUB_WRITE_TOKEN_FILE,
used for that path only and never read by the review flow. GAOS never marks a pull request ready, approves or
merges it. (3) BR-54 is amended honestly: a QA token can now plan cards that
may be dispatched, only for a product whose operator has recorded the auto-fix switch, within its caps; a QA result
still never moves an existing card. (4) BR-56 is amended for
defect:triage and defect:easy: they are dispatched automatically through
dispatchNow’s gates (BR-07, BR-38, BR-39, dependencies, BR-32); BR-35 is not among them,
because it is not wired into any dispatch path, and the caps are the only spend bound.
GAOS_RUNNER=on cannot bypass the switch: the scheduler never dispatches a defect:* card in
any mode. (5) Defect cards are exempt from BR-46 and BR-47, as D-088’s pull-request cards are. (6) BR-32: a
fetched private source file goes to the model provider; a detector hit refuses the dispatch. (7)
BR-53 is extended with a per-product limit of 50 new defect keys a day.
(8) Eligibility to open a pull request is decided from the defect record (difficulty easy, backend only, not a
regression, this card) and the product’s preconditions, never from a label, and whoever dispatched the card.
Amended by D-105: a unit defect counts as backend by decision, as a review
defect does, and a reopened unit defect is fixable after an auto-fix admin releases it.
Residual: the “after” sample is agent-reported, not run
(OQ-39); branches live in the application repository, not a fork
(OQ-40).
Amended by D-110: a defect card has a person behind it when the defect
does — a review defect’s pull-request author, a unit defect’s commit author — and its
needs-a-person line names the fix card and goes to that person; a QA run’s defect (and, since v0.74.4, an API QA run’s failure line) goes to the
product’s default recipient. |
TC-631…TC-688;
TC-624…TC-630;
Defect auto-fix;
docs/designs/gaos-defect-autofix.md |
| D-092 | 2026-11-26 | GAOS lists every open pull request tied to a task on one page, and a fix pull request can be moved to another base by a new generation of the same fix.
Context: pull requests were spread over three places (the Auto-fix view, review cards that kept only a key, QA-tool
jobs that kept only a job id), and a draft opened against one base could not be moved to another without redoing
the work. Decision: (1) A back-office page, Pull requests, lists review and QA-tool pull requests from a
new read model, the PullRequest vertex, and fix pull requests from FixPR; no fact is
stored twice; the page and its drawer make no GitHub call. (2) BR-02 position: a copy of GitHub’s
state (a PullRequest row, the base back-filled on a FixPR) is a cache fill and emits no
event, like Defect and FixPR; every decision of an operator emits one. (3) One poller
follows fix records and rows with the read token, re-checking that the product still follows the repository before
each read; a row is followed for 90 days. (4) QA-tool pull requests are listed only for repositories named in the
new AutoFix.AutomationRepos setting, which is not Master.Repos: a repository there
would enrol the QA tool’s own output in the review flow. (5) Retarget (a later phase) raises the
defect’s generation and plans an ordinary fix card against an allowed base; the old pull request is never closed,
edited or re-based by GAOS, and a fix record that a retarget replaced, or has pending, never moves the defect.
(6) A base removed from AllowedBases is refused at use. Residual: every signed-in account can see the
page (OQ-37); pull requests of QA jobs that ended before this release are
not back-filled. Amended by D-124: an auto-fix admin may have the page read one
pull request from the forge now (1), and that read is attributed in the log, not by an event (2). |
TC-700…TC-720;
Pull requests;
docs/designs/gaos-pr-overview.md |
| D-093 | 2026-11-26 | GAOS’s own documentation is public: the pustaka login layer is switched off on both prods, and its code is kept.
Context: the repository is public (checked 2026-11-26), so the docs content already is; the login only hid the
rendered site. Decision: PUSTAKA_AUTH is empty on both prods and the credential lines are commented
out, so they no longer reach the container; the login code, its page and its tests stay, and switching it back on
means restoring those lines, setting PUSTAKA_AUTH=1 and generating a fresh secret. The same release
fixes a page that looked broken until it had loaded and adds article-only page transitions (an upstream pustaka sync
to v0.9.1). Residual: the published infrastructure pages name real hosts and addresses that are equally visible in
the repository — a redaction is a separate change; OQ-36 still
describes the repository as private and is the operator’s to answer. |
TC-721;
docs/designs/pustaka-loading-and-motion.md |
| D-094 | 2026-11-26 | Every back-office view and every product section has its own URL, and a product is named in it by a stored slug.
Context: every click in the back office was an htmx request into a hidden sink, so the address stayed on the
mount point whatever was on screen: no link to a product's Board could be copied, Back left the dashboard, and a
reload returned to the product list. Decision: (1) Eleven page routes — nine global views,
/p/<slug>/<section> and /p/<ref> — return the whole document for
one view; the fragment routes are unchanged and still return fragments only, so no URL answers in two shapes.
(2) The server tells the browser the address: one function, sheet, is the only door to the sheet and
sets HX-Push-Url for a navigation and HX-Replace-Url for a changed filter; a mutation and
a background refresh never rewrite an address. (3) Back and Forward load the URL from the server; htmx's history
cache is off, so no back-office HTML is kept in the browser's storage. (4) A product's slug is its
name in lower case, assigned once and stored on the product; the id form of a URL redirects to it. The operator
chose the name over the id and over id-with-name, and accepts what follows: the product's name
is now in addresses, and therefore in the edge's access log (as a request line and as a Referer), in
the browser's history and in the tab title, together with the filters of the Pull requests, Auto-fix and Inbox
views that the fragment routes' request lines already carried. Every non-bearer response now sends
Referrer-Policy: same-origin. (5) BR-55 stands: a page route is a back-office route
and is refused with 401 signed out; only the body of that refusal changes, for a browser, from JSON to
the sign-in page, built by the gate before any handler runs, so it is the same for a product that exists and one
that does not. Signing in on a deep URL reloads that URL. (6) BR-02 position: giving a slug to a
product that predates slugs is a state change and emits the existing RecordUpdated; no event type is
added. Accepted limits: a slug does not move while its product exists, but it is not reserved after a product is
removed from the database by hand; nothing renames a product, so no old slug redirects. |
TC-723…TC-734;
docs/designs/urls-and-board.md |
| D-095 | 2026-11-26 | The Board shows a page of a product's cards, filters and sorts on the server, and a live change replaces only the columns that changed.
Context: the Board rendered every task of a product — the Done column never empties — in 140px columns
beside a side panel, and every live hint rebuilt and replaced the whole sheet. Measured at 2,000 cards, one refresh
took 109 ms, allocated 94 MB and sent 1.83 MB; two of the board's decorators were quadratic. Decision: (1) A new
read, BoardPage, returns the cards that match a filter, thirty to a column until the
operator asks for more (thirty at a time, three hundred at most), and decorates only the cards it returns; Done and
Canceled open on what changed last. (2) The view — role, story, label, workflow, "waiting on a
person", board or table, the sort — is part of the address; the window (how deep each column
is open) is not. (3) The search text never travels in a URL: the search box has no name, and the
text goes in a request header, because the edge logs request lines. (4) The Board's own route answers with the
columns whose content differs from what the browser holds, told by a hash of what each column prints that leaves
out a running card's clock. The operator chose this over re-sending all nine columns on every hint. A move is
answered the same way; a mutation that changes more than columns still answers with the sheet, in the same view.
(5) A card that arrives in a column on a live refresh is marked for a moment — the
operator's "smoother" — and nothing on the board moves. (6) Both boards stay: the client board (sisflow)
loads the same page as JSON and reloads it into the same board instead of rebuilding it; its own paging and
search are off, and the server board is its fallback. (7) Columns are 300px and the Board tab takes the whole
width. Two things leave the Board tab: the record's side panel, which stays on every other tab, and the client
board's story lanes; the story is a chip on the card, a filter and a table column. (8) A table view, sorted and
paged by the server. (9) No product tab but the Timeline's loads the event stream any more, and a diagram is drawn
for its own tab only. Measured after, at 2,000 cards: opening the Board 12 ms, 7 MB and 247 KB; a live refresh
after a move 5 ms, 5 MB and 46 KB. Accepted limits: a column shows at most 300 cards and the table at most 1,000
rows; beyond that the page says so and points at the filters. |
TC-735…TC-750;
docs/designs/urls-and-board.md |
| D-096 | 2026-11-26 | The repository is public, and its history will be rewritten to remove one operator’s instance material and the infrastructure details. OQ-36 is decided.
Context: the repository has been public since it was created (2026-08-02), not private as OQ-36 stated, so every
commit before v0.45.0 — including a seed that held a customer’s real test catalog — has been publicly
readable. A scan of every added line in history found no committed credential. Decision: (1) rewrite with
git filter-repo: the private strings, the edge’s public address, the LAN addresses and the edge’s
SSH user (bounded matches) in every content line, path and message; every blob ever stored under the private seed
directory stripped by id; all branches and tags force-pushed; every checkout and prod worktree moved. (2) The
WireGuard port is rotated instead of rewritten — a short number cannot be replaced safely in every blob.
(3) The tree is guarded: no routable IPv4 in any tracked or new file, and ToC parts must parse
(TC-751); the user, the port and the LAN addresses join the private
list. (4) The repository stays public during the rewrite (the operator’s decision), and the operator is
notifying the catalog’s owner. Residual: old objects stay fetchable by id until GitHub collects them; anyone
who cloned before the rewrite keeps the old history; the infrastructure pages still describe the topology by role.
Outcome (2026-11-26): the rewrite ran. git filter-repo rewrote 38 branches and 59 tags; 8 seed blobs were stripped; the newest tag’s tree was byte-identical before and after. A fresh clone from GitHub shows 0 private-string lines, 0 infrastructure matches and 0 seed blobs across every branch and tag. Both prod checkouts and the workstation clone were moved onto the new history and their old objects collected; an active worktree’s uncommitted change was carried over unchanged. The user, the port and the LAN addresses joined the private list (nine patterns). The WireGuard port was not rotated: four of the eight peers cannot be re-pointed from here, and WireGuard answers no packet without a valid key, so a known port reveals nothing a scan could not — rotating would have cost an outage for no exposure removed. SSH on the edge was confirmed key-only. Still open: GitHub Support’s purge of objects reachable through pull-request refs and caches; the backup of the old history is kept off-repository until that is confirmed. |
TC-751, TC-752;
docs/designs/public-repo-hardening.md |
| D-097 | 2026-11-27 | Every back-office list is paged, the Board table's page is part of its address, and a prune lists the cards it takes. Amends D-095 and D-082. Context: the operator asked for pages on every table and on the tenant-wide list pages, for a way to start work from the Board, and for the Board to say how the AI picks up a task. Decision: (1) One pager, page numbers in the address, read through one parser and written back only after it is clamped to a page that exists. Data tables — the Board table, Pull requests, Auto-fix, the Timeline and QA by epic — show ten rows a page; the Stories, Diagrams, Knowledge, Agents and Archive pages show five items a page, by item, with a product's heading only where it has an item on the page. (2) Amends D-095 (2): the Board table's page is part of the Board's address and travels on every Board request, so a refresh, a move or an answer keeps it; a filter, a search, a sort or a switch of view starts on page 1. "Show 100 more" and the accepted limit of 1,000 table rows are withdrawn, and so are the 200-row caps of Pull requests and Auto-fix. (3) Amends D-082: the typed PRUNE stays bound to the listed cards. Since the Archive table is paged, the confirmation lists every card the prune takes, outside the pager, and one prune takes at most the 100 oldest archived conversations; a larger archive is pruned in batches. (4) The Board has a New task button that opens the Create workflow wizard with the product locked — cards are still planned from stories, never created on the Board — and a panel that says how a task is picked up, worded for the runner this deployment has (off, no AI vendor, manual or on). (5) "Inject into graph" is shown only on the record tabs, as "Sync record to graph", with a title that says what it writes. Accepted limits: the page is an offset, so a moved card can leave its page and a new pull request shifts the later pages by one; Back does not step through pages; the Timeline still reads every event of the product and pages what it prints. | TC-753…TC-762;
docs/designs/board-and-list-ux.md |
| D-098 | 2026-11-27 | The Integrations view marks ai-manager, the QA tools and the Machine API as Mandatory, and Brain Town, its reader and the pull-request flow as Optional; each integration’s state is a green, amber or red chip. Context: the operator asked for a red or green chip on every integration, a state for the pull-request flow, a mark for the integrations GAOS must be connected to, and a popup that says what each one does. Decision: (1) “Mandatory” means the workflow GAOS is built around needs it — agent turns (ai-manager) and the QA loop of D-072 and D-075 (the QA tools, reached through the Machine API). It is the product’s workflow, not one deployment’s; GAOS still starts and serves the board and the back office without any of them, and BR-27 is unaffected. The classification is a constant, not a setting. (2) Green is working, red is not working, amber is working with a failure GAOS has seen or a broken part: an enabled Brain Town feed or reader whose last attempt failed, a QA give-up in the last 24 hours or a failing delivery, the Machine API without the QA token or QA products, a WhatsApp link that is unencrypted or linked to no product. An optional integration that is off is red, as asked; the Optional chip beside it says it may be off. (3) The pull-request flow is red without the GitHub client and amber without the Brain Town reader, GAOS’s only source of pull-request events; a part that is only not configured does not turn it amber. (4) The chips use only what the page already knew — no new health probe — and the reason behind a red chip stays readable in a State row. Each integration has an info popover with fixed text. | TC-763…TC-766; docs/designs/integrations-status-chips.md |
| D-099 | 2026-11-27 | An outside platform plans and follows GAOS tasks through the machine API: a client with the tasks capability may ask for a pull-request review, unit tests, an e2e automation or an e2e run.
Context: the operator asked for a way for another platform to add and trigger tasks without signing in, and to have the AI agent run them. Decision: (1) a clients-file line gains an optional sixth field, the capabilities inbox (the default, so every existing file keeps its meaning) and tasks; the QA tools hold inbox; a client without inbox may share a product with the QA token, because the overlap rule protects inbox ids (BR-52 amended). A capability and not a new scope rung, because the two grants are not ordered. (2) Four routes: POST /v1/products/{id}/tasks, two reads and a cancel. A pull-request kind takes Brain Town’s own card — key, title, role, labels and Pull requests row — so one pull request never gets two reviews; a request for a card Brain Town already planned adopts it as a read grant and changes nothing else. Every pull-request kind passes the draft, fork and stranger gates; a review needs an open pull request and unit tests a merged one. (3) The client is recorded as the card’s immutable owner; a client holds at most GAOS_API_MAX_OPEN open cards and GAOS_API_DAILY a UTC day, outside GAOS_PR_MAX_OPEN, so a client can never make Brain Town skip; a product holds one open run. (4) No title from the caller (BR-59). (5) Under manual, an autoDispatch card starts unattended only on a product listed in GAOS_API_AUTORUN_PRODUCTS, at most GAOS_API_AUTORUN_DAILY a day, through the one dispatch function with a claim that re-checks the list, the cap, the labels and the lane (BR-56 amended). (6) The role test-planner and its agent seat ship here, so that a rollback from the bundle release lands on code that knows them. Accepted limits: tokens are files read at boot, so a revocation is a restart; creating an automation by case code alone is OQ-42. |
TC-773…TC-786; docs/designs/gaos-external-tasks-and-pr-bundles.md |
| D-100 | 2026-11-27 | GAOS reads the team’s PR template to group related pull requests into a bundle, alerts a pull request that names no task-manager code, and, once every pull request of a bundle has merged, has a test-planner agent propose the cases QA should own.
Context: the operator asked GAOS to take the pull requests Brain Town reports, wait until all the related ones are merged, and then act: read what the developers say QA must test, and create or update the QA tool’s cases linked to the pull requests; and to raise an alert when a developer leaves the task-manager code out. Decision: (1) opt-in per product (GAOS_PR_TEMPLATE_PRODUCTS), because the template is one team’s. (2) A bundle is the rows that share a key, with no new vertex: task:<code>, else pr:<linker>; links are stored on the row so a later pull request still joins; a code supersedes a pr: key until the bundle is planned, and planned is final. (3) The poller, not the event, is the source of truth for merged; ten minutes’ grace after the newest member joined. (4) One test-planner card per bundle, at most two open per product, started unattended like an API card; its context is built outside the store’s lock and fenced with a fresh nonce; its reply is checked against the QA tool’s values and GAOS’s catalog. (5) The QA tool’s new POST /api/v1/gaos/case-proposals creates positional draft cases and links existing ones; nothing reaches the automation repository. (6) The missing-code alert is one GitHub comment and one WhatsApp line, recorded first and never repeated. (7) NotifyPR sends a line for a fact with no card, naming no repository (D-088). Rule: BR-60. Accepted limits: a pull request that joins after the plan is shown, not planned; an operator cannot detach a row (OQ-43). Amended by D-109 (a line may name the repository), D-110 (the task code is read from more shapes, and the two missing-code cases get their own texts) and D-111 (a test planner may hand its bundle to the automation planner, which may write a catalog file; BR-60 amended). Amended by D-124: an admin’s re-sync records the task code of a pull request the poller no longer reads (3). |
TC-787…TC-796; docs/designs/gaos-external-tasks-and-pr-bundles.md |
| D-101 | 2026-11-27 | A card that waits for a person’s review sends one WhatsApp line: an operator’s pr-review:manual or pr-review:needs-manual, a review GAOS held for a secret, and a client’s request for a manual review.
Context: the operator asked that a card marked for a manual review tell somebody, through the GitHub-account-to-WhatsApp mapping. Decision: (1) the operator’s relabel sends review:manual to the pull request author’s contact, else the group, once per change: an unchanged label sends nothing, and a return to auto sends nothing. (2) A review held for a secret sends review:needs-manual whatever its severity. (3) A high or critical review keeps its kind review:<severity>, so a contact’s severity opt-in still reaches it, and says a person must take over; one line, not two. (4) A client’s manual review goes to the group, naming the client: an outside caller never chooses who is messaged. (5) The contact vocabulary gains review:manual, review:needs-manual and pr:no-task-code, matched exactly, never through the severity rank. The mapping stays GAOS’s contact registry; reading it from the team’s task manager is OQ-41. Like every line (D-088), these name no repository. |
TC-797…TC-799; docs/designs/gaos-external-tasks-and-pr-bundles.md |
| D-102 | 2026-11-27 | Agents are assigned to products; a product’s assignments gate its pull-request flows; the reviewer’s severity is a label; medium and worse request changes; a low finding becomes a review fix into the reviewed pull request’s own branch.
Context: the operator asked for a product filter on the Agents page, for one agent to serve several products, and for three agents on one product — a PR reviewer whose severity is visible and filterable on the board, an e2e builder in two kinds, and a unit-test builder. The request was split in two releases. Decision: (1) a product lists the agents assigned to it (the Product document properties assignedAgents, assignedSet); once saved, a pull-request flow role (pr-reviewer, qa, unit-test, and fixer for review fixes) plans cards only when an agent of it is assigned; a product that never saved runs as before; assignment does not choose the agent that runs (BR-61). The word is “assigned”, never “seated”, which is the desk’s display of an agent. (2) The severity is the severity:* label family, set by the reviewer before it posts; the board shows it as a chip, the table as a column, and filters it, medium+ included. (3) Amends D-088: on a configured product a medium or worse finding is posted as REQUEST_CHANGES, never APPROVE, and only when the author is known and is not the review account; GAOS reviews once and never dismisses, so the body ends with a line asking a maintainer to dismiss it once addressed. The review token is a personal account on the current instances, so the request appears under that person’s name. (4) A low finding becomes a review defect fixed through D-091’s path, into the reviewed pull request’s own branch on top of the commit the reviewer read — the fix follows the source’s root branch. It is planned only when a fixer is assigned, auto-fix is on, the branch matches ReviewFixHeads (a literal first segment and a pattern, never *), the repository is a fix target and not an automation repository, and the day’s ReviewFixCap (default 3) is not reached; it is refused at dispatch and again before any branch exists when the pull request closed, its head moved, it is a fork, its branch is shared or protected, its file list is incomplete, it changes workflows, or the fixer was unassigned. Amends D-091 (8): a review defect carries be, and AllowedGlobs and the changed files bound where it writes. A review fix is never retargeted (D-092). Residual: a collaborator can steer a review to “low” and get a GAOS-authored commit on a draft into their own branch; the review the base branch requires when that branch merges is the control that remains. (5) Proposed for the second release, not in force: e2e kinds by repository, staging creating then running the automation, GAOS merging an approved QA spec pull request behind guards (the approved SHA, the QA tool’s author and branch, spec paths only, check runs and statuses green, refused in the Minimum band, off by default), and unit tests through the QA tool. It takes effect only when its own design is approved and BR-08, D-091 (2) and the out-of-scope merge line are amended. (6) Card sources: the cards assignment does not gate — an external-tasks API client’s (D-099) and a bundle’s test planner’s (D-100) — carry a planner-only label, source:api or source:bundle, so they can be filtered on the board. Amended by D-112: on an agent’s pull request GAOS posts COMMENT only, plans no low-finding draft, and reviews again after each revision. Amended by D-114: on a GitLab repository (3) is advisory — a request for changes is an unresolved thread that blocks no merge. |
TC-800…TC-818; docs/designs/agent-seats-and-pr-agents.md |
| D-103 | 2026-11-27 | A product repository may carry an e2e kind; a staging deploy may plan the missing automation; the QA tool, never GAOS, may auto-merge an approved spec; GAOS then runs that case.
Context: the second release of the request behind D-102 — an e2e builder in two kinds (backend only, and frontend plus backend), automation created when a deployed repository has none, and a spec that merges and then runs. Decision: (1) a product repository may be be or fullstack (the Product document property repoKinds); a staging run card carries the planner-only label e2e-kind:*, and GAOS sends kind to the QA tool only when the tool lists the capability; a repository with no kind sends none, today’s behaviour. (2) On a product that turned stagingCreates on, a staging deploy of a repository with a kind plans, beside the run and only on a new commit, create cards for planned, unimplemented cases of the kind’s levels — at most GAOS_E2E_CREATE_MAX (2) per deploy and GAOS_E2E_CREATE_OPEN (4) open, never twice for a case, a failure retried after seven days; the create’s kind follows the case’s level. This widens the staging credential’s authority on that product to starting capped generation jobs. (3) GAOS never merges and holds no merge token: the QA tool may turn on GitHub auto-merge, pinned to the commit it pushed after a person approved the spec, under a ruleset that lets only its identity update qa-auto/* and a fixed-source required check, and only after asking GAOS (GET /api/v1/products/{id}/spec-auto-merge), which allows it for a product that turned autoMergeSpecs on in the Working or Complete band. This supersedes D-102 (5)’s proposal that GAOS merge. (4) When a QA spec row turns merged, GAOS plans one run of its case only when the merged head is the approved commit, the qa role runs, and the catalog shows the case implemented (a catalog result plans it later, within fourteen days); a merge at another head is noted on the row and recorded as an event, and its case is not run. The next run of every case still runs whatever the default branch holds: that residual is what the ruleset prevents. (5) Unit tests through the QA tool, a failure becoming a defect held for a person, are decided and deferred to their own design. Amends BR-54, BR-08, the band text of B-2 (a spec a person approved counts as attended) and the scope line on merging; OQ-42 is answered for the staging surface only. Releasing a failed create early is an unattributed board move, bounded by the approval in the QA tool. Recorded as BR-62. |
TC-819…TC-838; docs/designs/release-b-e2e-kinds-merge-unit-tests.md |
| D-104 | 2026-11-27 | A third-party platform is bound to one product; the tracker, the team’s task manager, is the first kind, reached over gRPC with TLS under a narrow grant; it validates task codes, routes notices by GitHub login, tells the task’s QA a test plan is ready and writes one note back.
Context: OQ-41 asked whether the GitHub-to-WhatsApp mapping should come from the task manager. The task manager now links its people to checked GitHub logins, and holds each task’s product, status and QA. The operator chose all four uses, a per-product binding in GAOS, and the task manager’s gRPC API over the VPN. Decision: (1) The binding. A product holds at most one binding per platform kind (the Product document field thirdParty, like autoFix; kinds are a closed set, today tracker), and an instance binds at most one product per kind (a second answers 409). An auto-fix admin sets it on the Integrations view (POST /products/{id}/third-party); every change is a ThirdPartyConfigured event; disabling keeps the entry. The link is ready only when the client settings are usable, the circuit breaker is closed, the binding is enabled and the product reads the PR template (GAOS_PR_TEMPLATE_PRODUCTS). (2) The client. A stdlib gRPC client (one frame, 1 MiB, the status from the trailers) over TLS 1.3 to a pinned self-signed certificate, dialling only the configured IP literal: the VPN routes through a hub that decrypts WireGuard, so plaintext is refused unless the address is loopback. The credential is a prod.pr-* file. The task manager account holds a new integration grant — three methods (ListUsers, GetTask, AddComment), one product, no REST door, a comment rate limit — never the admin grant, which would make GAOS’s secret a full task-manager admin. An authentication refusal stops every call until the credential file changes or an hour passes; three unavailable answers back off from one minute to thirty. While the breaker is open every use falls back to the behaviour before this decision. (3) Validation. A code the platform does not know, a deleted or archived task, or another product’s task gets one unknown-task-code alert — one comment and one line, with one text for every case so it never reveals which tasks exist — including on a row already alerted for a missing code. Bundles are unchanged. (4) Routing. A notice whose GitHub login has no GAOS contact goes to the platform person with that checked login before the group; a contact that filters a kind out still sends it to the group; e2e:approval and every bundle: kind keep the group. (5) The QA and the write-back. When a bundle’s test plan ends DONE, a fresh lookup must confirm the task belongs to the bound product; then one bundle:planned line goes to the task’s QA and one comment to the task: the finished pull requests (merged and closed counted apart), the case counts and pattern-checked case codes, within 1500 characters, best-effort once. GAOS never changes the task’s status. (6) People. The directory is in memory only, refreshed every fifteen minutes while a binding is enabled; everyone sees counts, and only an auto-fix admin sees the per-person table, numbers masked (BR-63). Answers OQ-41; raises OQ-44 and OQ-45. |
TC-839…TC-849; docs/designs/gaos-third-party-tracker.md |
| D-105 | 2026-11-27 | Unit tests come from the named GitHub Actions workflow run on a fix-target repository’s merge commit, which the repository owner adds; GAOS executes nothing; a failing check files or updates the one open unit defect of that repository and base, its triage card held for an auto-fix admin; a passing check closes it, a held one is only marked; a missing, unread or inconclusive check is never a pass. Off by default.
Context: D-103 (5) asked that a merged pull request run the repository’s existing unit tests and that a failure become a task a person reviews before any agent works it. The QA-tool runner of the design’s revisions 1 to 11 would have executed arbitrary merged code on the shared QA host beside its credentials, and GAOS could only have trusted a self-declared attestation; GitHub Actions already gives each run a disposable VM holding none of GAOS’s secrets. Three independent analyses reached that answer and the agents adopted it under the operator’s delegation (docs/designs/reviews/release-b4-unit-tests-delegation.md, lines 14 and 18). Decision: (1) The setting. A product’s unitChecks (the Product document, like autoFix): on or off, the workflow file (default .github/workflows/unit-tests.yml), the check name (default unit-tests), extra unit bases and a daily cap (default 5). An auto-fix admin saves it (POST /products/{id}/autofix/unit); turning it on needs auto-fix on, a fixer and a triager assigned, a fix-target repository, GitHub and the Brain Town reader. (2) The watch. A merge of a fix-target repository into its effective base or a listed one plants a watch on the merge commit instead of the agent unit-test card (that card ran nothing); a merge that cannot be read is recorded skipped. (3) The read. Every 2 minutes, at most 10 watches: the push run of that workflow on that commit and base, its latest attempt, and the check run of that run’s check suite from the github-actions app with the exact name. Commit statuses are never read; a check of another suite is ignored. A failure counts only when the run carries the workflow’s unit-tests-total notice: a job that never started files nothing. No run after 6 hours is no-ci (a daily notice), anything else inconclusive. (4) The defect. At most one open unit defect per repository and base, plus one for a failed build, updated with the union of its failing tests; its triage card is born BLOCKED and only an auto-fix admin releases or cancels it (the cancel closes the defect) or closes the defect; caps: the product’s daily unit cap and the 50 new keys a day. A failure older than a pass files nothing. (5) The fix. After release the D-091 path runs against the unit base; the fix may not change the failing tests’ files, add tests beside them or add TestMain or init, and it is never retargeted. A reopened unit defect is fixable once released (D-091 (8) amended). Residuals: a check can pass because tests were deleted, skipped or weakened through a non-test helper; a writer of the workflow file (or of any workflow, if default token permissions are read-write) can forge a result; the workflow is the owner’s and can be weakened; a merge with no check is not tested; the action SHAs are the owner’s to verify. See BR-65; amends OQ-40. Results may also come from Jenkins (D-106). Amended by D-109: a unit notice still names no repository, and carries the card link. |
TC-853…TC-870; Agents; docs/designs/release-b4-unit-tests.md |
| D-106 | 2026-11-27 | Unit-test results may come from the organisation’s Jenkins instead of GitHub Actions: Jenkins runs the tests on its own agents and posts each merge build’s result with the product’s own unit-results credential; the result finishes the merge’s watch exactly as a GitHub check does. GAOS still executes nothing. The staging callback’s failure lock is fixed for both Basic routes.
Context: the target organisation runs its CI on Jenkins and its GitHub Actions cannot run; the operator closed the workflow pull request and asked that the rule “tests needing a database or the network skip under -short” be shown in the product (operator instruction of 2026-11-27, design §26, §27). Decision: UnitChecks.Source is github-actions (the default and every existing record) or jenkins. With jenkins, Jenkins posts to POST /api/v1/products/{id}/unit-results with the product’s unit-results credential, a line in its own file GAOS_UNIT_RESULTS_BASIC_AUTH_FILE (at least 32 characters), checked by the staging callback’s gate (D-088) but never shared with it; the result finishes the pending watch of that merge commit through the same store call as a GitHub check, so the outcomes, the held defect, the pass-close and the notices of D-105 are unchanged, and the watch records the caller’s address, the posted result and the build link, with the actor jenkins:<product>. A result for a merge GAOS has not seen is answered 409 no-watch and stored nothing; the Jenkins stage retries only that answer for 10 minutes; a merge with no result ends no-ci after 6 hours, and a result arriving within 24 hours after that is still accepted; a second, different result for a finished merge is refused and reported to the group once. Fix to D-088’s gate: the failure lock is keyed on the edge-set client address (X-Real-IP, else the rightmost public X-Forwarded-For hop; an IPv6 address as its /64) and the route, plus the credential’s own product for a wrong-product credential — never on the caller-supplied first hop and never on the path id — and the failure map is capped at 4096 keys, a new key refused when full, for the staging callback too; Traefik trusts forwarded headers only from the edge, not the whole tunnel; a success clears only the credential’s own product key. The Auto-fix page shows a “Before you switch this on” checklist, including the rule that tests needing a database or the network skip under go test -short. Conditions the owner must meet (GAOS cannot check them): the Jenkins credential is bound only by jobs that build the unit bases — folder-scoped or branch-restricted, or held by a separate report job defined outside the repository — and the report agent’s label is restricted to that job; Run and Replay on the unit-base jobs are restricted to the people trusted to post results; Configure, Replay and Build on the report job and every credential permission on its folder are held only by Jenkins administrators; the report job runs with the Groovy sandbox off under whole-script approval, and no per-signature script approval is added; the unit-results secrets are at least 32 characters, generated (openssl rand -base64 32). Residuals: the credential is the whole trust anchor — a holder can post any result for a pending merge of its product, closing a released defect with a forged pass or filing a held defect with invented test names (the hold and the admin release bound the second); anyone who can push a branch the pipeline builds can read the credential unless it is scoped as above; a writer of the Jenkinsfile (or of a script it calls) can forge the result, as a writer of the workflow can under D-105; a merge Jenkins never built (coalesced builds) is not tested; the report must run where the code under test never ran; a Jenkins user allowed to Replay a unit-base build can change what it tested (the report job refuses a build with a Replay cause and reads the commit from the build’s recorded revision, but a user who can edit the job configuration is beyond it); Traefik trusts forwarded headers from the edge alone, so no tunnel peer or VM process can set the lock source, while a compromised edge can. The host firewall that limits who reaches the published port at all is an operator step after the release. See BR-65 and BR-52 (both amended). Amended by D-107: since D-107 the host firewall on the tunnel port (edge README §5) is recommended hardening; the required step is reviewing the Traffic page at least daily. |
TC-871…TC-883; extended by D-117 (the GitLab pipeline source); Agents; docs/designs/release-b4-unit-tests.md; D-107 |
| D-107 | 2026-11-27 | GAOS records its outbound calls to external platforms and the calls made to it, and shows them on a back-office Traffic page; reviewing that page at least daily is the required step, and the host firewall on the tunnel port becomes recommended hardening. Context: D-106 left the firewall unapplied; answering that item of the v0.68.0 deploy report on 2026-11-27, the operator wrote that a monitoring page of outbound traffic to the QA tool and the other platforms ‘will be enough’ (design docs/designs/traffic-monitor.md §0, verbatim). Decision: capped Redis streams — one per platform out (sized to about a day each), and inbound split into direct with a principal, other direct, authenticated and anonymous — in a Redis only the dashboard reaches, at a fixed address, with the default user off and a password-protected user admitted to three data commands and PING on the traffic keys, with no persistence, keeping at most 48 hours; an in-memory summary of every direct source since the dashboard started, which eviction never touches; a stdlib RESP client; recording on the eight external clients (ArcadeDB excluded), the tracker with its gRPC outcome; every API call and every request that reached GAOS directly recorded, with via taken from the hop that delivered it to Traefik; never a header, body, query, token, credential, configured base path, branch name or file path; recording never blocks or fails a call; any signed-in account may view, public addresses in full for auto-fix admins only. Review cadence: at least daily, within the shortest kept span of the unknown-direct stream. Residuals: detection, not prevention — a direct peer keeps reach to every route until the firewall is applied; the trace is lossy (drops counted, evictions shown), keeps 48 h, does not see requests served without the dashboard, and the summary is lost on a dashboard restart, so an empty direct list is not proof; no formal record of each review is kept; anyone holding the store’s password can read and trim the trace; public source addresses are kept for up to 48 hours. See BR-66. |
TC-884…TC-903; Traffic; docs/designs/traffic-monitor.md |
| D-108 | 2026-11-28 | A retarget closes the pull request it replaced, an auto-fix admin can close a duplicate fix pull request from the Auto-fix page, and GAOS still never merges. Context: the operator found one defect with two open draft pull requests on the Auto-fix page: a retarget had opened the second, and D-092 leaves the first open for a person to close, which nobody did. Decision: (1) Amends D-092: once a retarget’s new draft is recorded, GAOS closes the pull request it replaced on GitHub, keeps its branch and comments that it closed it; a failed close leaves the record open, the page lists it, and a sweep at the next boot tries again. GitHub is read first, so a pull request already closed or merged is recorded as it is. (2) The Auto-fix page lists duplicates among open fix pull requests — one a retarget replaced (superseded), and extra open ones of the same defect (the defect’s own is kept) — and an auto-fix admin closes one with a confirmed click; the store re-checks the finding under its lock and the defect is never changed. A closed record the defect does not wait on no longer moves the defect. (3) Amends D-102 (BR-61): “never closes a pull request” becomes “closes only its own gaos/fix- drafts that a retarget replaced or an auto-fix admin closed as a duplicate”. A duplicate across defects (the same title) was considered and dropped: it was a guess, and its close could have closed the live defect. The same release gives each row its branch, base and trigger, pages Cards waiting by five, and shows the page’s three blocks as sections. |
TC-906…TC-913; Auto-fix; docs/designs/autofix-dedup-and-tabs.md |
| D-109 | 2026-12-04 | A notification line carries the links that let its reader act: the pull request’s GitHub URL and a link to the card’s action in GAOS, each on a line of its own, and a line about a pull request names its repository. Context: a line ended · PR #<n> or · card <id>, named no repository (D-088) and carried no link, so a person could not act on it from the chat; the operator asked for the full GitHub link and a link to the action (design docs/designs/notify-links-contacts-automation-planner.md §1, §4, §5). Decision: (1) GAOS_PUBLIC_URL is the dashboard’s public origin, read once at start: https with a host, no userinfo, query or fragment, any path, a trailing / trimmed; http only for localhost and 127.0.0.1; refused or unset, no card links. (2) A line is one text line and at most three link lines, each a GitHub pull-request URL or GAOS’s card link <GAOS_PUBLIC_URL>/c/<taskId>, nothing else. A card line keeps · card <id> and gains the pull request’s URL when its key names one, then the card link; a pull-request line ends · <owner>/<repo>#<n>. The gateway call keeps the line breaks and still drops every other control character. (3) GET /c/{taskId} sits behind the verified session (a signed-out browser gets the sign-in page) and answers 303 under the site prefix to where the card’s action is: the Inbox for a question, the Auto-fix page’s waiting section for a held defect card, otherwise the product’s board; it never redirects off the site. Amends D-088 (“a line names no repository”) and D-105: a unit notice still names no repository and gains only the card link. Residual, accepted by the operator: every destination is a registration the operator made — the pinned group, a contact, a tracker person of the bound product — and each sees repository names, pull-request URLs and the dashboard’s origin; a contact registered for all products sees them for every product. See BR-68. |
TC-919…TC-921; Pull requests; docs/designs/notify-links-contacts-automation-planner.md |
| D-110 | 2026-12-04 | A needs-a-person line names the fix card and goes to the person behind it, or to the product’s default recipient when nobody is; contacts get their own page, a tracker destination and admin-only writes; the task code is read from the shapes authors actually write.Context: the needs-a-person line named the triage card, which had just ended, and always went to the group because no defect card had a person; Contacts was a free-text block any signed-in account could write; and two live pull requests that named a code were alerted as naming none (design §1, §3, §6). Decision: (1) The card: the line names the defect’s fix card when it exists, else the triage card. (2) The person: a review defect’s line goes to its pull request’s author, a unit defect’s to the merge commit’s author; a line about a pull request with a review:, pr: or automation: kind goes to the pull request’s author. A QA run’s defect has, by its nature, nobody behind it and goes to the product’s default recipient — the contact whose login is *, per product or for all products — when one exists and wants the kind, else the group. A lookup that fails goes to the group, never to the default. (3) The tracker destination means “this person’s number in the bound the tracker”, resolved at send time; a missing person goes to the group; it is refused on *; the number is never stored, logged or shown, so BR-63 holds unchanged. Every other destination is normalised to an international number, a group id or a WhatsApp jid, or refused. (4) The Contacts page is a top-level back-office page with one guided field per value and a Notify-on checkbox per kind GAOS sends; only an auto-fix admin (GAOS_AUTOFIX_ADMINS) may save or delete a contact (403 otherwise), and only an admin’s page lists the tracker people, logins and names only. (5) The task code is read from a value with bold, brackets, backticks or commas, or from a …/tasks/<code> link; the two missing-code cases — a template with no code, no template at all — get their own chat texts under the one kind pr:no-task-code. Assumption about the tracker’s code format: a code is <PREFIX>-<KIND>-<digits>, so the reader accepts a field of letters and digits joined by dashes with at least one dash and one digit; a code the tracker issues in another shape would read as none. Amends D-091 (“a defect card has no author”). Residual: a bundle planned before this release keeps its pr: key, and its tracker write-back does not happen. See BR-68. |
TC-916…TC-918, TC-922…TC-926; TC-927, TC-928; Pull requests; docs/designs/notify-links-contacts-automation-planner.md |
| D-111 | 2026-12-04 | An automation planner decides from a pull request’s test scenarios whether a spec is written, updated, a new epic is added to the test catalog, or nothing is done; it asks a person when the pull request says nothing, and every outcome waits for a person’s release. Context: an e2e-automation card with no QA-case: line ended BLOCKED although developers write their test scenarios in the template, and the test planner could only use an existing epic, so a change in a new area dead-ended as a question (design §1, §7, §8). Decision: (1) The role automation-planner (agent Orion), assignment-gated (BR-61), runs on claude-opus-5-5, overridable without a release by GAOS_MODEL_AUTOMATION_PLANNER; the pin applies only to this role under Claude, and a policy that names a model wins. A scoped exception to BR-36, at the operator’s request: model choice belongs to the gateway’s tiers for every other role. (2) Triggers: an e2e-automation card released with no case and mode create, which then waits BLOCKED on the planner; and a test planner’s handoff, valid only as its plan’s sole item, which ends the test planner DONE and still runs the D-104 write-back once. One planner per source; refused when unassigned, or past GAOS_PLANNER_DAILY planners a product a UTC day (default 10, 0 off). Since v0.74.2 a planner card is outside GAOS_PR_MAX_OPEN, neither counted nor refused by it: that cap bounds Brain Town’s cards, and on the live product it was already full of blocked e2e cards, so it refused the first live handoff. (3) It reads the pull requests inside data fences (title, author, base, the developer’s tested and to-test sections, screened, the changed paths), the epics, at most 40 KiB of related cases, the automation repository and the catalog layout; no knowledge source. (4) It may output one plan: catalog (a new epic file), automate (a known case, create or update, only for a pull request’s planner) or none, with a summary; a plan that breaks a rule fails the card. (5) The hold: no outcome moves the e2e card to READY (BR-43, BR-54); an automate plan leaves it BLOCKED with qa-planned case:<code> mode:<mode>, which a person’s release starts. (6) The catalog write (BR-67): a new file under docs/test-catalog/ on a fresh gaos/catalog-<epic> branch, as a draft pull request labelled gaos-catalog, only to a private repository in the product’s automation repositories, after the auto-fix workflow-secrets check (since v0.74.3 the commit carries [skip ci], so only a secret-using workflow on a trigger the marker does not stop, such as pull_request_target, refuses; the live automation repository’s e2e workflow runs on pull_request with staging secrets and refused the first live catalog write; a refused write ends the planner FAILED so it can be retried); an open one is reused; GAOS never merges it, marks it ready or pushes to it again. The gaos/catalog- and gaos/fix- ref guards never cross. The write token’s scope (GAOS_GITHUB_WRITE_TOKEN_FILE) must cover the automation repository with contents and pull-request write; a 403 or 404 is catalog-token-refused. (7) The QA tool’s update mode: POST /api/v1/gaos/automation accepts mode: "update" with a screened note of 1 to 2000 characters, regenerates the existing spec at the same path and keeps approval a person’s step; GAOS sends it only when the tool lists the capability, else the card blocks with “update it by hand”. Amends BR-60: nothing is written to the automation repository except by the automation planner, under BR-67. Residuals: the choice of related epics is a heuristic, and the person reviewing the catalog pull request is the check. Amended by D-116: an automation repository whose automation directory the product names may also be a fix target; the catalog file goes under <dir>/docs/test-catalog/, and fixes stay out of <dir>/. |
TC-929…TC-931; Agents; docs/designs/notify-links-contacts-automation-planner.md |
| D-112 | 2026-12-04 | A review on an agent’s pull request is answered by GAOS: Brain Town’s pr.reviewed plans a revision round whose commit fast-forwards the pull request’s own branch, and GAOS reviews again, up to a cap; the reviewer’s post and every step of the loop survive a restart.
Context: the operator asked that when an AI agent’s pull request is reviewed, the review travels GitHub → Brain Town → GAOS, GAOS checks that the author is an agent and updates the pull request as the review recommends, and that the worker retries after a restart. GAOS reviewed once, read no review afterwards, and its review post was lost if the process died between the run and the post. Decision (the operator’s four answers of 2026-12-04, then the design’s): (1) an agent’s pull request carries ai-assisted, or GAOS opened it on its own gaos/fix- branch; a revision’s own record never counts. (2) A round is a review defect keyed revise:r<k>:<owner/repo>#<n>, fixed by the fixer and pushed as a fast-forward of the head branch (never forced, never a default branch; a crash is adopted by the commit trailer); then one marked comment and review round k+1, or the cap notice. (3) A review counts from GAOS’s reviewer at low or medium (an opaque marker read only on the token’s own reviews) or from a person with write access; a body-only comment does not; one round at a time per pull request. (4) The reviewer posts COMMENT only on an agent’s pull request, pins its review to the commit it read, ends with the marker, and a boot sweep posts a stored reply that never reached GitHub, once. (5) Reviewer cards start unattended on a product with the role assigned and listed in GAOS_API_AUTORUN_PRODUCTS, once their context is fetched outside the store’s lock. Rule: BR-69; BR-56 and BR-61 amended; amends D-102 (3) and (4). Accepted limits: the loop needs Brain Town to deliver GAOS’s own reviews (a bot review token would not); a person’s stale request for changes stays until they act; reviews in flight when this release started carry no marker. |
TC-932…TC-953; Pull-request agents; docs/designs/pr-revision-loop.md |
| D-113 | 2026-12-04 | A repository entry is a GitHub owner/repo pair or a GitLab path on the one configured GitLab host, and every holder of a forge client reaches it through a per-repository router, so a forge with no token is skipped exactly as before.
Context: the operator wants the pull-request agents on a product whose code lives on a self-hosted GitLab, and every forge call, write and link in GAOS was GitHub’s. Decision (design docs/designs/gitlab-forge.md, approved rev 4, PR 1 of five): (1) a GitHub entry is exactly the old repository regexp’s language; a GitLab entry is <host>/<namespace…>/<project> on the one host, 2 to 20 segments, at most 200 characters; the split is at the last slash, so every key built from owner and repository round-trips and stays byte-identical for GitHub. (2) Every holder keeps its narrow interface type; main.go fills it with a router that sends each call to the client of the repository’s forge, and each per-repository nil check becomes the router’s answer for that repository. (3) The fix and catalog writes go through one commitFiles (D-115’s seam), the revision write stays GitHub’s. (4) Pull-request links are built and read for either forge. This release configures no GitLab host, so nothing a GitHub product does changes; the one narrowing is that an entry the old regexp already refused everywhere but in the split is now refused there too. Amends BR-68 (the forge’s pull-request URLs). |
TC-954…TC-962; docs/designs/gitlab-forge.md; dashboard/repoid.go, dashboard/forge.go |
| D-114 | 2026-12-04 | GAOS reads GitLab merge requests and reviews them, advisory only, on the one GitLab host an instance configures; each GitLab repository is pinned to its project id and every text GAOS sends there is neutralised.
Context: D-113 made a GitLab repository expressible; the operator’s product lives on a self-hosted GitLab CE that merges by pushing, so nothing GitLab offers on CE can make a review block a merge. Decision (design docs/designs/gitlab-forge.md, approved rev 4, PR 2 of five): (1) one host, GAOS_GITLAB_HOST, and one review token, a glpat- project access token in a mode-600 file (GAOS_GITLAB_TOKEN_FILE), with an optional CA bundle; the client starts only on GitLab 15.7 or later, follows no redirect and sends its token to that host alone; (2) a GitLab repository is pinned on its product to the project id it first resolves to, persisted, and a later different id, an event naming another id, or a project the token cannot read is refused; (3) a merge request maps to the pull request the flows already read, every GitLab login carries gitlab:, a fork is refused whatever GAOS_PR_ALLOW_FORKS says, more than 300 changed files is a deterministic refusal, and a member below Developer is NONE; (4) a review is a note, or an unresolved thread for a medium or worse finding — GAOS never approves, resolves or merges; (5) every body GAOS sends to GitLab has its quick-action lines, mentions and closing keywords neutralised; (6) the Brain Town reader takes a GitLab frame only with its host, full path and project id (Brain Town’s own change), matched exactly against a product’s repositories, and never from the owner and name fields; (7) a GitLab review event does not start the revision loop (D-112 stays GitHub’s), and the unit checks skip a GitLab repository until their GitLab source exists. Writes, the GitLab CI guard and the monorepo directory are later phases of the same design. Amends D-102 (3); BR-61, BR-63 and BR-66 amended; BR-70 and BR-71 added. Amended by D-127: an auto-fix admin who unlinks a repository and links it again accepts the project now at that path; the link pins the new id and the event names it. |
TC-963…TC-975; docs/designs/gitlab-forge.md; dashboard/gitlab.go |
| D-118 | 2026-12-04 | A task tracker is reached only through a contract GAOS publishes, gaos.tasktracker.v1.TaskTracker; each connection is a profile the deployer installs, a product binds one profile and a tracker code, and the private tracker’s name and internals leave the repository.Context: D-104 bound a product to the operator’s task tracker, but GAOS spoke that private product’s own gRPC API (its service paths and field numbers), the connection was set once per instance, only one product per instance could be bound, and the private name stood on 693 lines of 68 tracked files, in stored values and in public pull-request comments. Decision (the operator’s three answers of 2026-12-04): “GAOS publishes the contract, and trackers implement it on their side”; “the private name and internals are removed from the repository”; “the connection is per product”. Then the design’s: (1) The contract. One proto3 file, downloads/task-tracker-v1.proto, three unary methods — ListPeople (active people only, stable order), GetTask (NOT_FOUND for a missing or out-of-scope task, never OK without one), AddComment (1500 characters); TLS 1.3 to a pinned certificate, HTTP Basic; RESOURCE_EXHAUSTED means stop calling; v1 gains fields, never enum values; Person fields 9–19 reserved for other forges. GAOS keeps its stdlib codec, held to the file by a test. A state GAOS cannot read is unchecked: no alert, no write-back, never a breaker failure. (2) Profiles. GAOS_TRACKERS_DIR holds one folder per tracker credential (mode 700): endpoint (an IP literal), ca.pem, credentials and products (<product-id> <code|*>), every file mode 600, links refused. The endpoint and the credential are never set from the back office. (3) The binding names a profile and a tracker code; one enabled binding per (profile, code) pair, the code compared without regard to case; enabling needs an installed profile that allows the product and code (422), a second holder is 409. (4) The four uses of D-104 stay; the task code of a bundle is read from its key, never from its rows. (5) Stored names. The kind is task-tracker, bundle keys task:<code> (a start-up migration moves unplanned bundles off any other prefix, whole; it is removed in the release after next), the contact destination tracker, the alias ext:<username>, the traffic label task-tracker. (6) The name. Every tracked mention of the private tracker, its service paths, field numbers and source paths is reworded — registers, designs and review reports included, no finding, severity or count changed; earlier entries now read with the current names (for example the former variables appear as GAOS_TRACKER_*). Git history is not rewritten (OQ-46). (7) Follow-up due 2026-12-11, after the rollback window: the tracker removes its private methods from GAOS’s grant (or issues a contract-only credential and revokes the old one), and the credential backups on the GAOS host are deleted. Amends BR-63; adds BR-73. Amended by D-132: (1)’s “v1 gains fields, never enum values” becomes “v1 may gain fields, methods and enum types; a published enum never gains a value”, and the contract gains a fourth method, RecordMerge. |
TC-1004…TC-1024; Task tracker; Connect a task tracker; docs/designs/task-tracker-contract.md |
| D-116 | 2026-12-04 | A repository may be both a fix target and an automation repository when the product names the directory that holds its automation suite; a QA merge request is one whose every changed path is inside that directory, decided at open and again at merge.
Context: the operator’s GitLab product is one repository: application code at the root, the automation suite in automation/. Four checks switched review fixes, revisions and unit checks off for any automation repository, the catalog path was fixed at the root, and a spec merge request in the same repository would have been reviewed (design docs/designs/gitlab-forge.md §4.6, approved rev 4, PR 3 of five; D-115 is the writes of PR 4). Decision: (1) AutoFix.AutomationDirs names, per automation repository, a directory of 1 to 4 segments of [a-z0-9_-]{1,32}, set through the form field automationDirs (one <repository> <directory> per line) and recorded in the AutoFixConfigured reason as dirs=; (2) only a repository without a directory is automation-only, so a repository with one is a fix target for review fixes, revisions and unit checks; (3) a fix never writes into <dir>/**, and an allowed glob that could reach into it is refused; (4) a merge request is a QA merge request when every changed path, old and new, is under <dir>/ and none is a CI file: at open it plans no card and gets no row; at merge it is read again, and one that is no longer QA gets the unit watch and a review at merge that only comments (merged-review, never cancelled as moot); a transient read retries, a list that is too large is an ordinary merge request; (5) the automation planner’s catalog path is <dir>/docs/test-catalog/…, checked by stripping the directory and matching today’s pattern. The CI file set is static in this release (.github/**, .gitlab-ci.yml, .gitlab/**); PR 4 resolves GitLab includes. Amends D-111 and BR-60, BR-67; adds BR-72. |
TC-976…TC-980; docs/designs/gitlab-forge.md; dashboard/monorepo.go |
| D-119 | 2026-12-04 | History is rewritten again to remove the private tracker’s name, and the tracker’s integration grant is narrowed to the contract. OQ-46 is answered.
Context: D-118 cleaned the tree, but every earlier commit still named the operator’s private tracker (1,989 lines and 7 paths across all branches and tags). Decision (the operator): (1) rewrite by D-096’s procedure — git filter-repo with case-aware replacements to the neutral word tracker in every content line, path, commit message and tag message; all branches and tags force-pushed; the one branch whose name carried the word renamed; every checkout and prod worktree moved. (2) D-118’s follow-up is done early, at the operator’s request: the tracker’s integration grant now allows the contract’s three methods only (the private methods it wraps are refused to an integration account; GAOS’s was the only such account), and the credential backups on both prods were shredded.
Outcome (2026-12-04): a fresh mirror from GitHub shows 0 matching lines and 0 matching paths across all 51 branches and 95 tags; main’s tree and the v0.78.0 and v0.79.0 trees are byte-identical before and after. Both prod checkouts were moved onto the new history and their old objects collected; the running deploy worktrees were re-pointed without a change on disk. A rollback of GAOS below v0.78.0 now also needs the tracker’s grant restored. Residual: GitHub’s read-only pull-request refs still reach the old commits until GitHub Support purges them; two local worktrees owned by other sessions still sit on the old history and must be moved before anything is pushed from them; anyone who cloned earlier keeps the old history; the unknown-code comments already posted on public pull requests keep the old wording. |
OQ-46; D-096; D-118 |
| D-115 | 2026-12-04 | GAOS writes to the one configured GitLab host with its own write token: the fix and the catalog commit go through the Commits API behind one commitFiles, a branch already there is adopted only when its merge-base diff is exactly GAOS’s change, and a GitLab write needs the operator’s GitLab CI statement.
Context: D-113 and D-114 let GAOS read and review a GitLab merge request; the fixer and the automation planner still wrote through GitHub’s git-object API, which GitLab has no equivalent of (design docs/designs/gitlab-forge.md §4.5, approved rev 4, PR 4 of five). Decision: (1) GAOS_GITLAB_WRITE_TOKEN_FILE is a project access token of its own (Developer, scope api), refused when its value equals the review token’s; its calls are traced as gitlab-write. (2) commitFiles on GitLab refuses first — a branch outside gaos/fix- or gaos/catalog-, a catalog write to a repository not among the automation repositories or outside <dir>/docs/test-catalog/, a fix into the automation directory, and any write into a CI file — then creates the branch and its commit in one call; a 400 behind which the branch appeared goes to adoption. (3) Adoption reads the merge-base compare (straight=false): exactly our paths, our content at the branch head, and our trailer; the commit author is never read. A GitLab catalog commit carries GAOS-Catalog: <epic> besides [skip ci]; GitHub’s catalog message is unchanged. (4) The CI guard: .gitlab-ci.yml, **/.gitlab-ci.yml and .gitlab/** join the built-in forbidden globs and an allowed glob naming them is refused at save; at write time the CI files are resolved from ci_config_path through every local, string and child-pipeline include (at most ten), and a wildcard, a $ path, a project, remote, template, component, artifact or flow include, or a foreign ci_config_path refuses the write. The same resolution feeds the QA classification (D-116). (5) Each target repository is checked against its own forge: a GitLab target needs the GitLab write token, and a GitLab target or automation repository needs ciConfirmedGitLab, the statement that secrets are Protected variables, that unprotected branches run only on ephemeral isolated runners, and that the job token reads no more than a Developer. (6) The deploy creates a missing optional GitLab secret file empty in both passes, and stops on a directory Docker left where one belongs.
Outcome: not deployed yet. Residual: GAOS cannot read CI/CD variables or runners; the statement is the operator’s. |
TC-981…TC-988, TC-1025; BR-67 (amended); docs/designs/gitlab-forge.md; dashboard/gitlabwrite.go |
| D-120 | 2026-12-04 | The pull-request card cap is shown, and nothing it refuses is lost: a refused pull request waits in order, a merge is never refused, and a merged pull request’s blocked e2e card frees its slot.
Context: on the live product the cap of 10 was full of cards of merged pull requests, so a new pull request opened no card, left one log line, and was gone once Brain Town’s cursor passed it; the operator could not see the count (2026-12-04). Decision: (1) the Pull requests page shows each product’s open cards against GAOS_PR_MAX_OPEN, the waiting count and the oldest’s age, and what happens at the cap. (2) The cap applies to an opened pull request and a staging run only; a merge’s cards are never refused. (3) A refused pull request keeps its row, marked capSkippedAt (schema 25); a new one never overtakes it; GAOS plans the oldest once there is room, and clears the mark of one that closed, merged, became a draft or a stranger’s. (4) 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. (5) A revision’s refused next review is retried every 5 minutes under the round’s claim (amends D-112). D-117 is reserved by the GitLab design, so this decision is D-120. Rule: BR-74. Accepted limits: a blocked e2e card whose row was never written or was pruned is not swept; a waiting pull request that merges first gets only the review at merge in an automation-directory repository; the waiting queue has no bound, only a visible count. |
TC-1026…TC-1032; Pull-request agents; docs/designs/pr-card-cap.md |
| D-121 | 2026-12-04 | A merge in an automation repository plans no unit-test card.
Context: after v0.81.0 the live product’s card cap showed 18 of 20, and 13 were READY unit-test cards of merges in its automation repository, which holds the QA specs: no agent runs them and they mean nothing there, yet each took a slot. Decision: a merge in a repository listed in automationRepos with no automation directory plans no unit-test card (Result.Skipped automation-repo); a monorepo with an automation directory (D-116) and every application repository keep it. The operator canceled the 13 existing cards by hand. Amends D-105 (the unit card was kept for an automation repository) and BR-74. |
TC-1033; TC-856 amended |
| D-132 | 2026-12-04 | A merged pull request moves its task to merged: GAOS writes the task tracker’s release status through a new contract method, and asks the author, through a one-time link, before it marks an unfinished task development-done.
Context: after every merge a person opened the task tracker and set the task’s release status by hand, although GAOS already knew the merge (the poller), the task (the pull request template’s code) and whether the code is a task of the bound product (GetTask). The contract had no method that writes a status, and BR-63 said GAOS never changes one (design docs/designs/merged-pr-task-status.md, rev 5, reviewed in four rounds). Decision (the operator’s rulings of 2026-12-04): (a) GAOS sets the release status to merged automatically. (b) The author gets a notice in the bell and on WhatsApp: PR <link>, linked to task <code> (<task link>), has been merged, with the outcome. (c) The integration account may set the release status to merged only. (d) A task not yet development-done gets the author a one-time link, with no sign-in, valid 24 hours, that shows the full detail with Accept (development-done, then merged) and Reject (nothing changes). (e) A task with several pull requests is written once, after the last open one has closed or merged. (f) The confirmation link may travel over a public-http WhatsApp gateway only by opt-in, GAOS_WA_CONFIRM_LINK_OVER_HTTP=1, read only with GAOS_WA_ALLOW_HTTP=any and off by default, as with D-131. Then the design’s: (1) The contract gains RecordMerge(task_code, product_code, pr_url, person_id, mark_dev_done, confirm_nonce), the enum MergeOutcome (RECORDED, ALREADY, NEEDS_DEV_DONE, REFUSED) and the Task fields url, title and assignee_ids. A tracker scopes it by product and assignee, never moves the release status past merged, grants mark_dev_done separately, issues a one-use nonce bound to the task and the person, voids it on a plain call that carries it, answers a replayed redeemed nonce without writing, and records every write in its history as made through GAOS. (2) At the merge, the open→merged step of a GitHub review row with a task code freezes that code and marks the row pending, in the same write; a code that changed at that very read is refused. (3) A sweep at the end of every poll pass makes, per wait whose siblings are all closed or merged, one fresh GetTask and one plain RecordMerge for the author’s person, at most five tracker calls a pass; RecordMerge has its own pause and never moves the shared breaker. A wait still pending 24 hours after it became ready is given up. (4) The notice (pr:merged) goes only to the author’s own person destination, never to a group, and is not a Contacts choice; tracker text in it is defanged. (5) The link <GAOS_PUBLIC_URL>/m#<token> carries 256 random bits in the fragment; only the SHA-256 is stored, with the person and the nonce, which are cleared when the link finishes or expires. The page /m is public, rate-limited, never cached or indexed, and changes nothing on a look. (6) An optional web file in the connection profile names the tracker’s web base; a task link is shown only under it. Accepted risks (design §12): (1) a forwarded or intercepted link lets its holder make one accept within 24 hours, on that one task, for its assignee — GAOS sends the stored nonce on the holder’s behalf, so the nonce is no second factor against a link holder; with the opt-in on, the link and the gateway credential cross the network in clear; the tracker’s history and the T1 to the real person, with an undo hint, limit the damage. (2) A leaked GAOS tracker credential, or a compromised GAOS, can mint and redeem nonces where the tracker granted mark_dev_done, and so mark any in-development task of the bound products development-done for any of its assignees; only the separate grant, the tracker’s history and the credential’s file permissions limit it, and granting mark_dev_done accepts this. Consequences: no new event type and no new vertex type; schema 26-merge-confirm.sql adds eight PullRequest properties; rows merged before v0.89.0, closed unmerged or on GitLab are never written; until the tracker implements the method GAOS reads nomerge, pauses for an hour at a time, and gives up after 24 hours to the bell only; the Integrations row shows the merge write-back’s state. Amends D-118(1): v1 may gain fields, methods and enum types; a published enum never gains a value. Amends BR-63, BR-68, BR-73 and BR-75; adds BR-76. |
TC-1081…TC-1110; TC-1004, TC-605 amended; RecordMerge; Merge write-back; docs/designs/merged-pr-task-status.md |
| D-131 | 2026-12-04 | The operator may let the review alert carry its findings over a public-http WhatsApp gateway.
Context: D-130(4) sends the alert’s line alone over a gateway that is plain HTTP to a public address; the one instance with WhatsApp on reaches its gateway that way (GAOS_WA_ALLOW_HTTP=any, its login already crossing in clear, D-089), so the findings would never arrive. Decision (the operator’s answer of 2026-12-04): GAOS_WA_ALERT_FINDINGS_OVER_HTTP=1, read only with GAOS_WA_ALLOW_HTTP=any and off by default, lets that gateway carry the findings; the operator accepts that they cross the internet in clear text. Every other withheld case of D-130(4) is unchanged. Amends D-130(4). |
TC-1078, TC-605, TC-616; The high or critical review alert; docs/designs/review-alert-detail.md §9 |
| D-130 | 2026-12-04 | A high or critical pull-request review sends its findings to the product’s default recipient.
Context: a high or critical review sent one line, with no findings, to the author’s contact; the operator asked that a critical or major finding always reach the product’s designated number, in detail (design docs/designs/review-alert-detail.md). Decision (the operator’s answers of 2026-12-04): (1) a review of severity high or critical sends one message to the product’s default recipient (*, D-110), whatever that contact’s Notify on says; the author’s contact gets nothing. (2) When the default recipient is a number, the message is the usual line and links, then a caveat line, then the review’s high and critical findings, at most 3500 characters in all, with a count of the rest; when no finding is tagged, the whole review, clipped. (3) The findings are quoted line by line, invisible characters removed, addresses defanged (hxxps[:]//, [.]) and @ broken, so the only live links remain the pull request’s and the card’s. (4) The usual line alone is sent with no default recipient (to the group), to a default recipient that is a group id, when the findings trip a secret detector, and over a gateway that is plain HTTP to a public address. (5) The review:high box leaves the Contacts page; an existing opt-in stays valid and inert. Amends D-101(3): a high or critical review no longer reaches a contact through a severity opt-in. Amends D-109(2): this message is the one exception to one text line and three link lines; its added lines are quoted and defanged, never links. Amends D-110: the default recipient also takes these alerts. Amends D-128(5): the message holds more than its notice; every back-office account can read the same findings in the card’s conversation until an operator prunes it (BR-41), and the pull request’s review comment remains the record. On upgrade, a default recipient that is a number starts receiving findings without an admin action. |
TC-1073…TC-1080; WhatsApp and the contacts; docs/designs/review-alert-detail.md |
| D-129 | 2026-12-04 | A ready test plan is kept in GAOS only: it is a notice on the Notifications page, and it is never sent to WhatsApp.
Context: with D-128 every notifier line is kept in GAOS; the operator found the test-plan-ready line (“A test plan is ready: 16 draft case(s), 0 link(s) · card …”) not worth a WhatsApp message to the group or the task’s QA. Decision (the operator’s request of 2026-12-04): (1) a third notice class, GAOS-only, between sent and quiet (D-123): the notifier records the line as a NoticeRaised as for any notice, then sends nothing — not to a contact, the tracker’s person, the default recipient or the group — and writes no ContactNotified; it logs wa: <kind> kept in GAOS only, not sent; (2) bundle:planned is the first and only GAOS-only kind; the test planner still writes its note on the tracker’s task; (3) the Contacts page drops its bundle:planned box; a contact that ticked it before keeps the tick, accepted and inert. Amends D-104 §5.2 and BR-75. Design: docs/designs/notification-bell.md §10 (an amendment of the approved design). |
TC-1072; What is never sent, and what stays in GAOS |
| D-128 | 2026-12-04 | Every line the notifier would send is also kept in GAOS, as a NoticeRaised event, and shown on a Notifications page behind a bell.
Context: GAOS told people things only through WhatsApp; with WhatsApp off, or a product’s group not linked, a line such as “no unit-test result from Jenkins on a merge; is the Jenkins stage installed? · PR #5040” existed nowhere, and nobody could read one again once the chat scrolled. Decision (the operator’s request of 2026-12-04, design docs/designs/notification-bell.md, approved rev 4 after three review rounds): (1) the notifier records each non-quiet line first, before any WhatsApp check, as one NoticeRaised (rule: the notice kind; task: the card; reason: the pull request), whether or not WhatsApp is on; quiet kinds (D-123) are not recorded; WhatsApp’s own lines are unchanged byte for byte; (2) the stored text is one line, BR-53-stripped, with every URL removed (a pull-request URL becomes the reference), screened by the egress detectors and replaced by a fixed “withheld” sentence on a hit, and at most 300 runes with its reference kept; (3) a notice never waits on the database: a queue of 256 and one worker; repeats within 10 minutes and anything past 100 a day per product and kind are dropped, the first cap replaced by one visible notice, and the page shows the day’s drops; (4) a bell in the back-office bar counts the notices after this browser’s read mark — a __Host- cookie holding the stream’s epoch and a seq, set when the page is shown in a visible tab, cleared at sign-out, and defaulting to the last 24 hours — and /notifications lists the newest 200, live over the SSE hint notice; (5) a notifier line is product information: every back-office account can read it, so nothing only its recipient may see is ever sent through the notifier (BR-68 amended). The operator accepts that the stored text is append-only (BR-04): a secret the detectors miss cannot be redacted. Escalated, not changed here: the WhatsApp line itself is not screened, and the product Timeline fragment and GET /events carry event text without no-store. No database schema change. |
TC-1057…TC-1071; The Notifications page; docs/designs/notification-bell.md |
| D-127 | 2026-12-04 | Only an auto-fix admin links a product’s repositories: from the product page, or by naming one at creation.
Context: Master.Repos decides which pull requests GAOS acts on, which repositories auto-fix may target and where a bearer client may plan PR cards, but could only be set at creation, by any signed-in account, unchecked; the live product’s second repository was added by hand in the database (2026-12-04). Decision (the operator’s ruling of 2026-12-04, “we need the GUI … only the linked repos will trigger actions”): (1) a Repositories block on the product page lists them to everyone signed in and lets an auto-fix admin link and unlink; creation may name a repository only when an admin creates the product; (2) a link is refused unless the entry parses and is not a placeholder, the review token can read it, the product holds fewer than 64, and no other product of the instance links it; the check proves reachability, not ownership, so a public or internal repository, a different owner, or another product’s auto-fix repository is linked with a warning, and the write token’s access is reported, not required; at most ten link attempts a minute per instance; (3) an unlink drops the repository’s kind and, when no auto-fix list names it, its GitLab pin — amending D-114 (2): unlink then link is how an admin accepts a new project at the path, pinned at link time; it keeps the auto-fix lists, open cards and the graph edge; planning, revision rounds and staging runs for it stop; (4) both emit RecordUpdated (no new event type), re-evaluate readiness (BR-10) and clear the Brain Town reader’s ownership cache; pull requests already open at link time are not reviewed, and their merge gets the review at merge of D-116. A repository must also be inside the instance’s Brain Town scope, and the scopes of two instances never overlap. |
TC-1049…TC-1056; Linked repositories; docs/designs/product-repositories.md |
| D-126 | 2026-12-04 | Until a dedicated bot account exists, the first instance posts on GitHub with an existing shared organisation account; then it moves to the dedicated bot with one more token swap.
Context: the operator offered an account that already existed instead of signing up a new one. The account is a member of two broad teams, can push to about 120 of the organisation’s repositories and administer 15 of other products, people open pull requests with it, and its two classic tokens (scope repo) carry no expiry. Decision (the operator’s choice of 2026-12-04, “use it now, a dedicated account later”): (1) both token files of that instance hold the shared account’s tokens from 2026-12-04, installed in place, the person’s tokens kept as backups for the rollback; (2) the costs are accepted for the interim: a pull request a person opens with the shared account gets only a comment from GAOS, a review a person writes with it reads as GAOS’s to the revision loop, and a leaked token reaches far beyond the product; (3) D-125 stays the target: when the dedicated account exists, the team script grants it the product’s repositories and its tokens replace these, as the page’s steps 6–9 describe. Amends D-125(1) for the interim only. |
The GitHub bot account: the interim shared account |
| D-125 | 2026-12-04 | GAOS posts on GitHub as a bot account of its own, which reaches the product’s repositories through one organisation team with Write; never with a person’s token.
Context: both GitHub token files of the live instance held a person’s tokens, so every review, comment and draft pull request showed that person; the person’s own pull requests got only a comment (GAOS requests changes only when the author is another login), and a review the person wrote by hand came from GAOS’s own login. Decision (the operator’s choice of 2026-12-04): (1) A bot account (a machine user), with two tokens of its own, one per file (prod.pr-github-token, prod.pr-github-write-token); no code change: GAOS learns its login from the token. A GitHub App was not chosen: GAOS refuses ghs_ tokens, cannot ask an App token who it is, and does not renew a token; it stays possible later, on the same team and list. (2) One team, gaos-bot, holding only the bot (the creator is removed), closed, with Write (push) on each repository: not per-repository invitations, not the organisation’s base permission. Never Maintain or Admin. (3) Every sibling repository of the product, not only the ones GAOS watches, checked against the organisation first (misspelled, embedded and external entries dropped; forgotten ones added); the list is private to the instance. (4) The switchover happens when no review card is posting; reviews posted under the old login are not recognised as GAOS’s afterwards, accepted until a release lets GAOS name earlier logins. The person’s old tokens are revoked after a day of normal traffic. Amended by D-126: until the dedicated account exists, the first instance uses an existing shared organisation account. |
The GitHub bot account |
| D-124 | 2026-12-04 | An auto-fix admin may ask GAOS to read one pull request from the forge now, to record the task code its body names. Context: the poller never reads a merged, closed or 90-day-old pull request again, so a task code the author writes after the merge is never seen, and the Pull requests page says “no task code” for good. Decision: (1) amends D-092(1): the page may make one forge read, on an auto-fix admin’s request (Re-sync), for a review row that was alerted for a missing code and still names none; opening the drawer and the list still make none, and opening or closing the drawer now swaps only the drawer. (2) amends D-100(3): for a row the poller no longer reads, that read records the task code only — not the state, not the links — and a code found keys the row to its task’s bundle as if it had been there before the merge, except a bundle already planned (a late joiner is listed, not planned). A row the poller still reads is recorded exactly as by a poll, alerts included. (3) amends D-092(2): an admin’s re-sync is a cache fill a person times; it emits no event and is attributed in the log by a hash of the account. (4) At most ten re-syncs a minute per instance, and one reader per row at a time (the poll or a re-sync). Every refusal is a 4xx toast with a fixed text. | TC-1042…TC-1046; docs/designs/pr-resync-and-drawer.md |
| D-123 | 2026-12-04 | No news is good news: GAOS sends a WhatsApp line only for an error, a need-you or an important warning; a routine outcome is never sent, and no contact can opt into it.
Context: every automation-planner decision was sent as an automation:planned line, including none (“no new or changed spec is needed”) and automate, which ask nothing of anyone; the operator found the noise annoying. Decision (the operator’s ruling of 2026-12-04): (1) a new kind automation:routine carries the planner’s none and automate decisions; (2) the notifier drops a quiet kind before routing, in every send path, logs wa: quiet <kind> not sent and records no ContactNotified event; (3) a quiet kind is not on the Contacts page and a contact naming one is refused, so there is no opt-in; (4) automation:planned now means a catalog pull request waits for a person’s review, or the planner could not plan; (5) bundle:planned, fix:pr, every failure, review of medium or worse, manual review, approval, defect and template alert stay sent. The decision stays on the planner card and the e2e card. Outcome: v0.83.0. |
BR-75; TC-1035, TC-1036, TC-931 amended; Pull-request agents |
| D-122 | 2026-12-04 | GAOS instances on different domains share no state and no namespace; a service two of them call is shared only through a namespace unique per instance and set explicitly.
Context: both production instances called one ai-manager with the same tenant, loop-eng, and product ids restart at p-1 in every database. When one instance created a p-6, its first Blueprint sync wrote into the other instance’s live p-6 workspace; for an hour each side’s agents ran under the other product’s rules, and the drift gate (BR-39) refused every dispatch of the affected product. Decision: (1) every instance that shares ai-manager sets its own GAOS_AIM_TENANT before its first sync; the original prod now uses office, the second prod keeps loop-eng (renaming would orphan its workspace and checkout). (2) One Brain Town consumer per instance, with scopes that never overlap; never two instances on one repository. (3) Database, QA tool, back office, edge and secrets are per instance. The rule is .claude/rules/multi-instance.md. No code change: a boot refusal when the tenant is unset was rejected, because it would stop a single-instance deploy at its next restart. Amended the same day (rev 3, the operator’s request): three guards. (a) In ai-manager mode the dashboard refuses to start without an explicit, usable GAOS_AIM_TENANT; (b) the deploy’s pre-flight refuses a prod deploy without one, before the running stack is touched, so (a) never takes prod down; (c) a Blueprint sync or a reviewer reset refuses to write into a workspace that already exists on ai-manager and that this instance never provisioned (foreign-workspace), which catches a collision even when two instances choose the same name. The second prod’s tenant was set explicitly to the value it already used. TC-1037…TC-1040. |
Several GAOS instances; docs/designs/multi-instance.md |
| D-117 | 2026-12-04 | Unit-test results may come from a GitLab pipeline: GAOS reads the job named in the unit settings in the newest pipeline that ran the merge request’s last head commit, and its JUnit report on a failure.
Context: the operator’s GitLab product merges by pushing with -o ci.skip, so a merge commit has no pipeline, while every branch push runs one (design docs/designs/gitlab-forge.md §4.8, approved rev 4, PR 5 of five). Decision (the operator’s answer of 2026-12-04: the branch pipeline): (1) the source gitlab-pipeline; CheckName is the job name and the workflow is unused; (2) every fix-target repository must be on the source’s forge (GitLab for gitlab-pipeline, GitHub for github-actions; Jenkins has none), so a product whose targets span both forges can use only Jenkins; (3) the watch of a merge records the merge request’s head SHA; (4) the poll keeps the branch pipeline (push, the source branch) and the detached MR pipeline (merge_request_event, refs/merge-requests/<iid>/head) of that SHA, the newest decides, and an older one that failed the job is said as superseded-after-failure; (5) among the job’s attempts (retried ones included) the latest decides, an earlier failure is said as retried-after-failure; a pass with either note sends one group line; (6) created, pending, running and waiting jobs wait, success passes, canceled, skipped and manual are inconclusive, and a failure reads the pipeline’s test report: each failed or errored case becomes a failure annotation, its output cut to 4 KiB and withheld whole when an egress detector fires; no report is the “did not report” path. Residual: the branch is tested before the merge, so a conflict that exists only in the merge result is not seen. Extends D-106; BR-65 amended. |
TC-989…TC-994; docs/designs/gitlab-forge.md; dashboard/gitlabunit.go |
What is not in this log
The commercial shape is decided; several of its parameters are not. The rate-card numbers and where the model price table lives and who maintains it are still live questions — as are the authentication approach, now a blocking dependency rather than a deferred one (D-040), high availability, and whether autonomy is band-driven by default. Which provider CLIs are supported left this list on 2026-08-21: one of them is answered (D-049) and the rest of the list is a measurement per tool rather than a decision. They are on the open questions page, and each one lands here the day it is answered.
Several things here are decided and not yet true in code. D-037 needs
four new event names, a new task state and two TaskRun properties, and
D-003 with BR-05 means those land in
the data model document, dashboard/events.go and the fold together or not at all.
D-042 promises a repository interface behind which all three tenancy
strategies stay reachable: the interface now exists and one strategy runs, but the other two have
never been run and a strategy that has never been run is a claim rather than a capability;
D-041 names one adapter and no second one exists; and
D-040's three preconditions — authentication, per-tenant scoping,
accessibility — are none of them started. D-049,
D-050 and D-051 recorded what a provider's tool was
measured to do on 2026-08-21, and constrained
M4 without advancing it.
One day later the adapter that obeys them exists
(T-057), and so does the egress gate
BR-32 required in front of it
(T-126,
T-127). The claim that needs care is
what that does not mean. The scheduler and the lease arrived later the same day; what has
not is a reason to trust it unattended — nothing reviews what a run produced and no guard ends a
retry loop. A real provider was first invoked from inside GAOS on 2026-08-23,
once M4.5 gave it a packet on disk and a contract to satisfy. A decision recorded
here is a commitment about what gets built, never a claim that it was.
The eight gateway decisions are the clearest case of that. D-055 to D-062 retire code that works — the CLI adapter, the lease, the reconciler that made GAOS's first real model call possible — in favour of an upstream that does not yet have the endpoint GAOS needs (D-059). Until M14 lands, the superseded rows above still describe what runs.