Product

QA test plan

Answers OQ-13 — who runs the acceptance tests and how often — and enumerates every test scenario that follows from it: one thousand one hundred and one cases, positive and negative, across the four deploy automations, the product seed script and the two Go test packages that actually run today — forty-five of them retired (forty-four with the CLI execution layer in v0.29.0, one by D-118) and struck rather than deleted — all thirty-six of the gateway's forward specifications now running, plus the two business acceptance tests BRD §4.1 specifies and nothing has yet executed — the third, the fold test, runs as of v0.11.0 and has moved into the register proper. Since D-039 this register is also the project's definition of success: GAOS is done when every case here passes, positive and negative alike, and no numeric outcome target stands beside it.

How to read this register

Every row is a TC-nnn. Kind is Positive (the invariant holds, or the action succeeds) or Negative (the invariant is violated, or the action is refused) — both are listed for almost every scenario, because a check that never fails is unverified, not passing. Status is Implemented (the automation exists and this page describes its real, current behaviour, re-read from deploy/check-stacks.sh and deploy/rebuild-restart.sh at the time this page was written), Not implemented (a forward specification for a test the design commits to but nothing in the repository can run yet), or Retired (a case whose premise a later rule overturned — struck, never deleted and never renumbered, with the reason and the replacement on the row, because an ID that silently disappears is an ID somebody will reuse).

Who runs these tests, and how often

GAOS has no CI configuration anywhere in the repository — these automations only run when a human or agent invokes them by hand. BRD §5.1 names four internal roles — product owner, platform operator, fleet operator, record author — and notes they are currently one person. That person is the runner for everything below, whether they invoke deploy/rebuild-restart.sh directly or through the gaos-deploy subagent, which exists precisely so the same deterministic script runs the same way every time instead of a free-handed docker compose command drifting between invocations.

AutomationRunnerTrigger / cadenceOn failure
check-stacks.shProduct owner, via rebuild-restart.sh or standaloneAutomatically, as the first step of every deploy and restart — both tiers. Never runs for statusRefuses the action outright, exit 1, before Docker is touched. The operator fixes the offending compose or Traefik file and reruns
go test ./... (dashboard, pustaka) + pustaka check ./docsSameAutomatically, before every deploy action only — restart has no test gate at allRefuses the build, exit 1. The operator fixes the code or docs and reruns
Post-deploy verification (bind, healthz, routes, base-href, and with --full-verify: X-Forwarded-For, public HTTPS)SameAutomatically, after every deploy and restartEach check reports independently; the run exits 1 on any failure, but nothing rolls back automatically today — the nonzero exit is the operator's signal to investigate
rebuild-restart.sh statusSameOn demand, whenever the operator wants a read of current stateNo failure mode by design — see TC-017
deploy/schema/scratch.sh + go test -run ConformanceProduct owner, on demandNever automatically: the ArcadeDB half of the store conformance suite skips without GAOS_ARCADE_TEST_URL, so the deploy gate stays green on a machine with no database. Run it by hand when the store or the schema changesNothing is deployed, because nothing was — the throwaway container is --rm with no volume. The operator reads the failure and reruns
deploy/acceptance/kill-mid-task.shProduct owner, before every release that touches the runner, the lease or recoveryNever automatically, and never against dev or prod: it needs a scratch ArcadeDB, it sends a real SIGKILL, and recovery writes to the graph. It also cannot run against GAOS_STORE=memory, which loses the task records there would be anything to reconcileNothing is deployed. This is build-order step 5 and a failure is a release blocker, not a warning — a runner whose work does not survive a restart is a runner that loses paid model calls
deploy/schema/apply.shProduct owner, on demandOnly for a scratch database from a workstation. Dev and prod get the schema from the dashboard binary's embedded copy on every boot, which is idempotentExit 1 with the offending statement and the server's own detail. A partial apply is safe to rerun
Unsatisfiable-task testProduct owner, once domain E existsProposed: before every releasePer §7.5: looping or failing silently means the guard-limit implementation is not finished — release is blocked
Fold testProduct owner, once domain H existsProposed: periodic (weekly) — the design itself calls this test "periodic"Divergence is a release blocker, in the design's own words: "divergence proves the event model is incomplete"
Second-run testProduct ownerOn demand; at minimum once, to seed the numeric baseline that has never existed — D-039 leaves outcome targets unset until this run happensA viability signal, not a gate: per §1.4, no improvement means "the extraction step is decorative"

This is the answer to OQ-13, logged as D-025.

The register

All one thousand one hundred and one cases in one filterable table. Filter by automation, kind, or any word in a scenario — go test narrows it to the unit tests, check-stacks to the deploy pre-flight.

IDAutomationKindScenarioStatus
TC-001check-stacks.shPositiveCompose files as committed: each tier names its own database on the shared server and never the other'sImplemented
TC-002check-stacks.shNegativeDev compose file edited to use the prod database, or prod to use the dev oneImplemented
TC-003check-stacks.shPositiveEach tier publishes exactly one port, bound to the tunnel address onlyImplemented
TC-004check-stacks.shNegativeA ports: mapping drops the tunnel-address prefix or a second mapping is addedImplemented
TC-005check-stacks.shPositiveNo service in either tier joins a neighbour's shared infra networkImplemented
TC-006check-stacks.shNegativeA service is joined to a shared infra network againImplemented
TC-007check-stacks.shPositiveDistinct compose project names and subnets, no reuse of a neighbour's rangeImplemented
TC-008check-stacks.shNegativeProd's subnet is set to a neighbouring product's rangeImplemented
TC-009check-stacks.shPositiveThe cookie-secure flag is identical between tiersImplemented
TC-010check-stacks.shNegativeDev's Secure cookie flag is turned off "because it's dev"Implemented
TC-011check-stacks.shPositiveNo compose file mounts the Docker socket into the proxyImplemented
TC-012check-stacks.shNegativeA Docker socket volume mount is added to a Traefik serviceImplemented
TC-013check-stacks.shPositiveNo .env file (other than .example) or gateway secret file (*.aim-*) is tracked, no baked-in passwordImplemented
TC-014check-stacks.shNegativeA real deploy/stacks/*.env file is committed to gitImplemented
TC-015check-stacks.shPositiveThe /app and /docs trailing-slash redirects exist with correct priorityImplemented
TC-016check-stacks.shNegativeThe /docs redirect rule is removedImplemented
TC-017rebuild-restart.shPositiveThe status action reports state, mutates nothing, always exits 0Implemented
TC-018rebuild-restart.shNegativeEnvironment or action argument missingImplemented
TC-019rebuild-restart.shNegativeUnknown service name givenImplemented
TC-020rebuild-restart.shNegativeEnvironment or action given twiceImplemented
TC-021rebuild-restart.shPositivePre-flight check-stacks.sh passes, action proceedsImplemented
TC-022rebuild-restart.shNegativePre-flight check-stacks.sh fails, action refused for both tiersImplemented
TC-023rebuild-restart.shNegativeProd tree is dirty and --allow-dirty is not passedImplemented
TC-024rebuild-restart.shPositiveProd tree is dirty and --allow-dirty is passedImplemented
TC-025rebuild-restart.shPositiveDev tree is dirty — no dirty-tree check runs at allImplemented
TC-026rebuild-restart.shNegativeDashboard go test ./... failsImplemented
TC-027rebuild-restart.shNegativePustaka go test ./... failsImplemented
TC-028rebuild-restart.shNegativepustaka check ./docs failsImplemented
TC-029rebuild-restart.shPositiveAll three test gates pass, build proceedsImplemented
TC-030rebuild-restart.shPositivedocker compose build and up -d both succeedImplemented
TC-031rebuild-restart.shNegativedocker compose build failsImplemented
TC-032rebuild-restart.shNegativedocker compose up -d failsImplemented
TC-033rebuild-restart.shPositiveThe restart action succeeds, no build ever runsImplemented
TC-034rebuild-restart.shNegativedocker compose restart failsImplemented
TC-035rebuild-restart.shPositiveA named service scopes build/up/restart to that container aloneImplemented
TC-036rebuild-restart.shPositiveBound to the tunnel address onlyImplemented
TC-037rebuild-restart.shNegativeBound to an unexpected addressImplemented
TC-038rebuild-restart.shPositiveHealthz through the tunnel reports ok:trueImplemented
TC-039rebuild-restart.shNegativeHealthz does not report ok:trueImplemented
TC-040rebuild-restart.shPositiveAll four routes return the expected status codeImplemented
TC-041rebuild-restart.shNegativeOne route returns the wrong status codeImplemented
TC-042rebuild-restart.shPositiveThe base href survives the mount-point stripImplemented
TC-043rebuild-restart.shNegativeThe base href is stripped, wrong, or absentImplemented
TC-044rebuild-restart.shPositiveX-Forwarded-For is trusted through to the access logImplemented
TC-045rebuild-restart.shNegativeX-Forwarded-For is not trustedImplemented
TC-046rebuild-restart.shPositivePublic HTTPS healthz reports ok:trueImplemented
TC-047rebuild-restart.shNegativePublic HTTPS path is downImplemented
TC-048Unsatisfiable taskPositiveStops within guard limits, reason code recorded, human queue item createdNot implemented
TC-049Unsatisfiable taskNegativeLoops past guard limits, or stops without a reason codeNot implemented
TC-050dashboard (go test)PositiveFold from genesis equals fold from nearest snapshot, at every rung of the ladder and at moments between them (TestFoldFromGenesisEqualsFoldFromNearestSnapshot)Implemented
TC-051dashboard (go test)NegativeAn event dropped from the stream must change the folded floor — a comparison that cannot fail proves nothing about the two floors it was given (TestFoldIsTheNegativeCaseToo)Implemented
TC-052Second runPositiveSecond run needs fewer retries and less intervention than the firstNot implemented
TC-053Second runNegativeSecond run needs the same or more retries/interventionNot implemented
TC-054dashboard (go test)PositiveEvery documented route answers its expected status across 33 method/path cases, and an unknown product id is a 404 (TestEveryRouteAnswers)Implemented
TC-055dashboard (go test)NegativeA template that fails to execute must not leave a 200 and half a page on the wire (TestNoTemplateErrorEscapesAsSuccess)Implemented
TC-056dashboard (go test)NegativeNo surface carrying a computed style emits the literal ZgotmplZ (TestNoZgotmplZ)Implemented
TC-057dashboard (go test)NegativeA forged or malformed X-Forwarded-Prefix is refused rather than sanitised into a plausible <base href> (TestBaseHrefFollowsForwardedPrefix)Implemented
TC-058dashboard (go test)PositiveAn unconfigured database keeps /healthz a 200 with store: memory (TestHealthUnconfiguredIsHealthy)Implemented
TC-059dashboard (go test)NegativeA configured but unreachable ArcadeDB makes /healthz a 503 reporting database: unreachable (TestHealthUnreachableDatabaseIs503)Implemented
TC-060dashboard (go test)NegativeEvery one of the nine back-office routes refuses an unauthenticated caller with a 401 (TestBackOfficeRoutesRequireASession)Implemented
TC-061dashboard (go test)NegativeA login that is not an email address is a 422 and the message reaches the form (TestLoginRejectsANonEmail)Implemented
TC-062dashboard (go test)PositiveThe tenant label survives a cookie round trip despite the middle dot net/http would drop silently (TestTenantCookieSurvivesNonASCII)Implemented
TC-063dashboard (go test)NegativeApproving a desk that carries no gate is refused (TestApproveRequiresAGate)Implemented
TC-064dashboard (go test)NegativeThree retries succeed and the fourth is refused with a reason naming the guard (TestRetryGuardExhausts)Implemented
TC-065dashboard (go test)PositiveCancelling a task returns the desk to idle with no agents assigned (TestCancelReleasesTheDesk)Implemented
TC-066dashboard (go test)NegativeA caller mutating a returned snapshot cannot change the live floor (TestSnapshotsDoNotAliasTheLiveFloor)Implemented
TC-067dashboard (go test)NegativeNothing is dropped from the front of the stream and no sequence number is skipped: genesis is still FloorOpened at seq 1 after four hundred ticks, genesis is still reachable, and replaying past the end is a not-found rather than a silent clamp (TestTheEventStreamIsUnboundedAndKeepsGenesis) — this case asserted the opposite until v0.11.0, when T-013 removed the 160-entry ring BR-04 forbidsImplemented
TC-068dashboard (go test)NegativeA ticking simulation does not advance a floor an operator is replaying (TestReplayFreezesTheFloor)Implemented
TC-069dashboard (go test)PositiveForty ticks emit events and accumulate spend (TestSimulationActuallyMoves)Implemented
TC-070dashboard (go test)NegativeA paused floor does not advance its clock over thirty ticks (TestPausedFloorDoesNotTick)Implemented
TC-071dashboard (go test)PositiveA seeded record projects to the expected vertex count and reports 75% story coverage (TestProjectionAndCoverage)Implemented
TC-072dashboard (go test)NegativeA record with no stories and no diagrams does not report full readiness, and scores below the planning floor (TestReadinessIsHonestAboutAnEmptyRecord)Implemented
TC-073dashboard (go test)NegativeA story with no role is refused (TestAddStoryRejectsAnEmptyOne)Implemented
TC-074dashboard (go test)NegativeA caller mutating a returned Master cannot change the store (TestMasterCloneIsDeep)Implemented
TC-075dashboard (go test)PositiveA plan has eight tasks starting planner then architect, every dependency points earlier in the plan, and the gated task is last, devops, on the top model tier (TestPlanShapeAndDependencies)Implemented
TC-076dashboard (go test)PositiveA record with no stories still produces the six-task stage template (TestPlanWithoutStoriesStillProducesOne) — retired 2026-08-20. It pinned the absence of BR-07: planning an empty record is exactly what the rule forbids. The refusal is TC-160Retired
TC-077dashboard (go test)PositivePlanning a story that had no tasks raises the record's coverage (TestCreateWorkflowMovesCoverage)Implemented
TC-078dashboard (go test)NegativeA workflow with no objective is refused (TestCreateWorkflowNeedsAnObjective)Implemented
TC-079dashboard (go test)PositiveThe wizard draft survives the hop to step 3 through hidden form fields (TestWizardDraftRoundTrips)Implemented
TC-080dashboard (go test)NegativeAdvancing without picking a product is a 422 and the refusal reaches the operator as a toast (TestWizardRefusesToAdvanceWithoutAProduct)Implemented
TC-081dashboard (go test)PositiveGoing back a step is never blocked by the field you went back to fix (TestWizardBackIsNeverValidated)Implemented
TC-082dashboard (go test)PositiveA two-line sequence source renders participants, the message and a return arrow into SVG (TestRenderSequence)Implemented
TC-083dashboard (go test)NegativeA source with no arrow falls back to preformatted text instead of a broken diagram (TestRenderSequenceFallsBackToText)Implemented
TC-084dashboard (go test)NegativeMarkup in a sequence source cannot reach the hand-built SVG unescaped (TestRenderSequenceEscapes)Implemented
TC-085dashboard (go test)PositivesplitLines drops blank lines and trims surrounding space (TestSplitLinesDropsBlanks)Implemented
TC-086dashboard (go test)Positiveslug lowercases, collapses runs of space and replaces a slash with a hyphen (TestSlug)Implemented
TC-087pustaka (go test)NegativeFour malformed .page-meta variants each fail check, and three valid ones pass (TestCheckPageMetadata)Implemented
TC-088pustaka (go test)NegativeA numeric component after a wildcard is rejected as a version bound (TestVersionBound)Implemented
TC-089pustaka (go test)PositiveThe engine's own identity constants are unchanged: pustaka and /__pustaka (TestPustakaIdentity)Implemented
TC-090pustaka (go test)NegativeEvery malformed auth environment variable fails fast at boot rather than picking a side (TestLoadAuthConfig)Implemented
TC-091pustaka (go test)NegativeSeven malformed tokens, an expired one, another secret and a rotated password all fail to verify (TestSessionToken)Implemented
TC-092pustaka (go test)NegativeFive near-miss credential pairs are all refused (TestAuthCreds)Implemented
TC-093pustaka (go test)NegativeEleven hostile next values — protocol-relative, absolute, javascript:, CRLF, NUL, oversized — all reduce to / (TestSafeNext)Implemented
TC-094pustaka (go test)NegativeTwenty-nine gating cases: what redirects, what 401s, what stays public, and that neither traversal nor a template path rides the allowlist (TestAuthMiddlewareMatrix)Implemented
TC-095pustaka (go test)PositivePUSTAKA_AUTH_PUBLIC_HOME=1 reproduces the pre-gating allowlist exactly (TestAuthPublicHomeMode)Implemented
TC-096pustaka (go test)PositiveGated mode hides the login page's back link, and both the shipped and embedded templates still carry the sentinel (TestLoginPageHomeLink)Implemented
TC-097pustaka (go test)NegativeAn anonymous caller of /__pustaka/info does not learn the record count (TestAuthInfoPayload)Implemented
TC-098pustaka (go test)PositiveWith auth off every page serves, the login route does not exist, and /info grows no auth key (TestAuthDisabledPassthrough)Implemented
TC-099pustaka (go test)PositiveEleven login-handler behaviours: form and JSON success, hostile next, bad credentials, cross-site origin, logout and lockout (TestLoginHandlers)Implemented
TC-100pustaka (go test)NegativeThree failures lock an address for a minute, the lock is per address, it expires, and reset clears it (TestThrottleLockout)Implemented
TC-101pustaka (go test)NegativeThe throttle map is swept rather than growing without bound (TestThrottleSweep)Implemented
TC-102pustaka (go test)NegativeEvery login-page placeholder is escaped, and a docs root with no _login.html falls back to the embedded page (TestLoginPageFallbackAndEscaping)Implemented
TC-103pustaka (go test)Positivesite.name wins over product.name, and a missing registry falls back to the engine's own identity (TestSiteMeta)Implemented
TC-104pustaka (go test)PositiveA deliberately invalid _login.html does not make check fail (TestCheckIgnoresLoginPage)Implemented
TC-105pustaka (go test)NegativeA denial is not gzip-framed, while an allowed page still is (TestAuthGzipOrdering)Implemented
TC-106pustaka (go test)NegativeSix malformed X-Forwarded-Prefix values are ignored and four valid ones honoured (TestSitePrefix)Implemented
TC-107pustaka (go test)PositivetrimSitePrefix strips only on a segment boundary and leaves an already site-relative path alone (TestTrimSitePrefix)Implemented
TC-108pustaka (go test)PositiveBehind /docs every login redirect, asset base, form action and logout target carries the prefix exactly once (TestAuthBehindPrefixStrip)Implemented
TC-109dashboard (go test)PositiveThe DDL under dashboard/schema/ declares the 28 vertex, 3 document and 37 edge types the model document counts — 25/3/32 in its lede, plus §15's Blueprint types since v0.24.0 — each exactly once (TestSchemaDeclaresTheDocumentedTypeCounts)Implemented
TC-110dashboard (go test)NegativeAn edge type with no UNIQUE index on its endpoints, or a revived CREATE EDGE TYPE … UNIQUE, is refused (TestEveryEdgeTypeCarriesItsUniquenessIndex)Implemented
TC-111dashboard (go test)NegativeA type declaration without IF NOT EXISTS is refused, because it breaks the re-application apply.sh promises (TestEverySchemaDeclarationIsIdempotent)Implemented
TC-112dashboard (go test)PositiveAll ten numbered schema files are present, so the filename order apply.sh relies on has no gap (TestSchemaDirectoryHasEveryNumberedFile)Implemented
TC-113dashboard (go test)PositiveA read goes to /api/v1/query, decodes the result envelope, and sends its parameters as parameters rather than interpolating them into the statement (TestArcadeQueryDecodesTheResultEnvelope)Implemented
TC-114dashboard (go test)PositiveA write goes to /api/v1/command, not the read-only query endpoint (TestArcadeCommandUsesTheWriteEndpoint)Implemented
TC-115dashboard (go test)NegativeA failed statement surfaces the server's detail field, since every SQL error on this server is an HTTP 500 and the status names no cause (TestArcadeErrorCarriesTheServerDetail)Implemented
TC-116dashboard (go test)NegativeAn “already exists” re-declaration is classified as a skip and a genuine error is not, which is what makes the schema re-application verifiable (TestArcadeAlreadyExistsIsNotAFailure)Implemented
TC-117dashboard (go test)NegativeAn unconfigured store refuses every statement with ErrUnconfigured, while the health probe still answers “unconfigured” rather than an outage (TestArcadeUnconfiguredRefusesToQuery)Implemented
TC-118dashboard (go test)PositiveEvery statement inside a transaction carries the arcadedb-session-id header, and a rollback after a successful commit is a no-op (TestArcadeTransactionCarriesTheSessionHeader)Implemented
TC-119dashboard (go test)NegativeA begin that returns no session id is an error, rather than a transaction whose statements silently run outside it (TestArcadeBeginWithoutASessionHeaderIsAnError)Implemented
TC-120dashboard (go test)NegativeA query against a database that never answers gives up on the caller's context deadline (TestArcadeQueryHonoursTheContextDeadline)Implemented
TC-121dashboard (go test)PositiveThe schema embedded in the binary matches dashboard/schema/ file for file and byte for byte (TestEmbeddedSchemaMatchesTheDirectory)Implemented
TC-122dashboard (go test)PositiveThe Go statement splitter strips comments, folds multi-line declarations and splits on the terminator exactly as apply.sh does (TestSplitStatementsMatchesTheShellApplier)Implemented
TC-123dashboard (go test)NegativeNo statement survives the split empty or still carrying a comment marker, and the total does not collapse (TestEverySchemaStatementSurvivesTheSplit)Implemented
TC-124dashboard (go test)PositiveAll fifty-four contract cases pass against MemStore (TestStoreConformanceMemory)Implemented
TC-125dashboard (go test)PositiveThe same fifty-four cases pass against ArcadeStore on a live ArcadeDB, or skip when none is configured (TestStoreConformanceArcadeDB)Implemented
TC-126dashboard (go test)PositiveA store reopened on the same tenant rebuilds the floor, the events and the master record from the graph, so the in-memory projection is a cache rather than a source of truth (TestArcadeStoreRebuildsTheFloorFromTheGraph)Implemented
TC-127check-stacks.shPositiveBoth tiers declare GAOS_STORE: "arcadedb", so neither is quietly serving fixturesImplemented
TC-128check-stacks.shNegativeA tier's GAOS_STORE setting is removed or changed away from arcadedbImplemented
TC-129scratch.shPositiveup starts the pinned ArcadeDB, waits for the ready probe, applies the DDL clean and prints the environment the conformance suite needsImplemented
TC-130scratch.shNegativestatus or env with no container running, an unknown action, or a port already boundImplemented
TC-131dashboard (go test)PositiveA fold from genesis reproduces the live floor field for field — state, gate, score, counters, stage, task and agents — on a workflow driven three hundred events deep (TestFoldFromGenesisMatchesTheLiveFloor)Implemented
TC-132dashboard (go test)NegativeDiscarding every snapshot must not change the folded floor; if it does, the ladder has become the source of truth and the event stream has stopped being it (TestFoldNeedsNoSnapshotAtAll)Implemented
TC-133dashboard (go test)NegativeAn event type this build has never heard of, interleaved through the whole stream, leaves the folded floor unchanged rather than failing the fold (TestReducerSkipsUnknownEventTypes)Implemented
TC-134dashboard (go test)PositiveFolding the same stream twice gives the same answer, and the folded floor does not alias the base state it was folded from (TestReducerIsPure)Implemented
TC-135dashboard (go test)PositiveThe same events shuffled into a different order fold to the same floor, because ties are broken by (ts, seq) (TestFoldIsOrderStable)Implemented
TC-136dashboard (go test)PositiveEvery event in the stream is a moment replay can reach, genesis included, and -1 returns to live (TestReplayReachesEveryMomentInTheStream)Implemented
TC-137dashboard (go test)PositiveEvent deltas survive the graph: a store reopened on the same tenant reloads payloads that are not empty, and the reloaded stream folds to the floor the graph itself reports (TestFoldSurvivesTheGraphRoundTrip)Implemented
TC-138dashboard (go test)PositiveEvery transition the table declares is taken, and a state may always go to itself (TestStateMachineAllowsTheDeclaredTransitions)Implemented
TC-139dashboard (go test)NegativeFifteen named illegal moves are refused — idle to review, review to blocked, deferred to blocked and the rest — as are moves in and out of a state nobody declared. Sixteen until v0.15.0: BR-32 made idle → blocked legal, so a refused dispatch can block a task that never started, and the row was inverted rather than deleted — the move is now asserted legal by TC-196 (TestStateMachineRefusesIllegalTransitions)Implemented
TC-140dashboard (go test)NegativeAn illegal transition comes back as an ErrRejected naming both states and leaves the desk where it was; an undeclared target says the name is unknown instead (TestSetStateRejectsWithAReason)Implemented
TC-141dashboard (go test)PositiveEvery state a live desk reaches, and every state the reducer can produce, is a state the transition table declares (TestEveryReachableDeskStateIsDeclared)Implemented
TC-142dashboard (go test)NegativeA retry or a cancel on an idle desk is refused with a sentence rather than a bare failure (TestMutationsRefusedByTheMachineExplainThemselves)Implemented
TC-143dashboard (go test)PositiveEvery event a full run writes is in the model document's closed catalog or in the fenced UI-lifecycle block, checked against a list written out independently of events.go (TestEveryEmittedEventIsInTheClosedCatalog)Implemented
TC-144dashboard (go test)NegativeThe twelve declared-but-unwritten names are exactly the ones owed to M3.2, M4.2, M5.2, M5.5, M7.3 and M10.3 — a name that starts being emitted, or a new one nothing writes and nothing explains, fails (TestTheUnemittedNamesAreExactlyTheOnesStillOwedToLaterModules)Implemented
TC-145dashboard (go test)NegativeA readiness score that falls across a band boundary emits ReadinessDropped; one that rises across the same boundary does not (TestReadinessDroppedFiresOnlyOnADownwardBandCrossing)Implemented
TC-146dashboard (go test)PositiveTask.status permits DEFERRED and TaskRun declares invocation and costBasis with their vocabularies — asserted in one test because D-037 forbids landing them piecemeal (TestTheDeferredStateAndItsCompanionsLandedTogether)Implemented
TC-147rebuild-restart.shPositiveThe deploy test gate runs whether or not the machine has a Go toolchain: natively when go is on PATH, otherwise in the pinned golang:1.24-alpine containerImplemented
TC-148rebuild-restart.shNegativeNeither Go nor Docker is available, so the gate cannot run and the deploy stops rather than building untested codeImplemented
TC-149dashboard (go test)PositiveA floor rebuilt from the graph survives a merge-gate approval — the projection ArcadeStore.load() builds carries every field a method on it may reach, so advance() seats a task instead of dereferencing a nil rng (TestTheProjectionSurvivesAnApprovalWithNoFixturesBehindIt)Implemented
TC-150check-stacks.shPositiveEvery vendored asset ships the licence text it is redistributed under — each font family, ECharts, its NOTICE and the d3 subcomponent it embedsImplemented
TC-151check-stacks.shNegativeAn asset is present and its licence text is not, so the pre-flight fails and the deploy stops rather than shipping an image that strips a licenceImplemented
TC-152rebuild-restart.shPositive--tag <ref> checks the ref out into a detached worktree and re-runs the script inside it, so the invariant check, the test gate and the build all read the tagged treeImplemented
TC-153rebuild-restart.shNegativeA prod action given neither --tag nor --from-tree is refused, so production cannot track whatever happens to be checked outImplemented
TC-154rebuild-restart.shNegative--tag naming a ref that does not exist is refused before any worktree is created, so a typo leaves nothing behindImplemented
TC-155rebuild-restart.shPositive--from-tree restores the working-tree build deliberately, and the dirty-tree refusal still guards itImplemented
TC-156dashboard (go test)PositiveThe rubric is twelve signals whose weights sum to one hundred, and every signal carries a missing-list line (TestTheRubricWeightsSumToOneHundred)Implemented
TC-157dashboard (go test)PositiveA record carrying every signal it can express scores 95 in band complete, the twelfth being deferred rather than dropped (TestACompleteRecordScoresNinetyFive)Implemented
TC-158dashboard (go test)NegativeAn empty record scores zero in band insufficient and names all twelve signals as missing (TestAnEmptyRecordScoresZeroAndNamesEverySignal)Implemented
TC-159dashboard (go test)NegativeOne thin must story forfeits the whole twelve-point coverage signal, and a record with no stories cannot earn it by vacuous truth (TestCriteriaCoverageIsAllOrNothingAcrossMustStories)Implemented
TC-160dashboard (go test)NegativeBelow an effective 45 the planner returns no plan and a list of what is missing, and the same record filled in still plans (TestThePlannerRefusesBelowTheFloorAndSaysWhatIsMissing)Implemented
TC-161dashboard (go test)PositiveThe egress pass is a function of its arguments: two screens of one packet return an identical verdict, because the verdict becomes an event and the reducer folds it (TestTheEgressPassIsPure)Implemented
TC-162dashboard (go test)PositiveA slice with nothing to find clears, reports no redaction, and carries a digest and a byte count (TestACleanSliceClearsAndCarriesADigest)Implemented
TC-163dashboard (go test)NegativeSeven credential and secret shapes in a slice each refuse the dispatch under rule secret (TestACredentialInTheSliceRefusesTheDispatch)Implemented
TC-164dashboard (go test)NegativeA refusal names the file, the detector and the byte offset and never the matched text (TestARefusalNeverCarriesTheSecretItFound)Implemented
TC-165dashboard (go test)NegativeA path outside the allowlist is dropped from the slice and the dispatch proceeds; the part is gone from the cleared packet (TestAPathOutsideTheAllowlistIsRedactedNotRefused)Implemented
TC-166dashboard (go test)PositiveA key inside a dropped .env is a redaction rather than a refusal, because the file never left (TestASecretInsideARedactedFileIsNotARefusal)Implemented
TC-167dashboard (go test)NegativeA packet part resolving outside the workspace is refused under rule path-escape rather than quietly dropped (TestTheAllowlistIsNotFooledByADotDotPath)Implemented
TC-168dashboard (go test)Positive** crosses separators and * does not, so src/** matches files nested beneath src (TestGlobMatchingCrossesSeparatorsForDoubleStar)Implemented
TC-169dashboard (go test)NegativeA slice over the whole-slice byte limit is refused rather than truncated (TestAnOversizedSliceIsRefusedRatherThanTruncated)Implemented
TC-170dashboard (go test)NegativeOne file over the per-file limit is dropped and the rest of the slice still dispatches (TestAnOversizedFileIsRedactedAgainstThePerPartLimit)Implemented
TC-171dashboard (go test)NegativeWith local_only set a non-local target is refused, and a locally-hosted one still runs (TestLocalOnlyRefusesANonLocalTarget)Implemented
TC-172dashboard (go test)NegativeWhen several rules apply at once the refusal reports the credential, not the byte count (TestARefusalReportsTheMostDangerousReasonWhenSeveralApply)Implemented
TC-173dashboard (go test)PositiveAn empty policy arms every detector and restricts no path — the two defaults differ, deliberately (TestAnEmptyPolicyStillRunsEveryDetector)Implemented
TC-174dashboard (go test)NegativeA packet whose every part was redacted is refused rather than dispatched empty, so no attempt is spent on nothing (TestEveryPartRedactedIsARefusalNotAnEmptyDispatch)Implemented
TC-175dashboard (go test)NegativeNo file outside egress.go constructs a populated Cleared, checked by walking the package's syntax tree (TestNothingOutsideTheEgressPassConstructsACleared)Implemented
TC-176dashboard (go test)PositiveThe declared handoff shape parses: every mandatory field, both criteria with their evidence, the artifacts and the usage block (TestAWellFormedHandoffParsesEveryMandatoryField)Implemented
TC-177dashboard (go test)NegativeA document that is prose where front matter belongs fails with the signature handoff-missing (TestProseWithNoFrontMatterIsHandoffMissing)Implemented
TC-178dashboard (go test)NegativeA handoff missing a mandatory field, or carrying a status outside complete|blocked|partial, is the same one failure (TestAHandoffMissingAMandatoryFieldIsHandoffMissing)Implemented
TC-179dashboard (go test)PositiveA document that omits the usage block entirely is legal and reports no usage rather than a zero (TestAHandoffWithNoUsageBlockIsLegalAndReportsNothing)Implemented
TC-180dashboard (go test)NegativeA workspace with no handoff document at all fails with the same signature as an unparseable one (TestAnAbsentHandoffFileIsHandoffMissing) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no handoff file to be absent: the handoff travels in the reply (D-057). Replaced by TC-281.Retired
TC-181dashboard (go test)PositiveThe captured --version output of the pinned tool parses to 2.1.238 (TestTheVersionParserReadsTheCapturedOutput) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no tool on this host to read a version from; the boot smoke test asks the gateway instead. Replaced by TC-283.Retired
TC-182dashboard (go test)NegativeOutput with no dotted triple is an error, never a zero version that would read as drift or silently pass (TestAnUnparseableVersionIsARefusalNotAZero) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the version parser went with the CLI adapter. Replaced by TC-283.Retired
TC-183dashboard (go test)Negative>= is inclusive and < exclusive at both edges, and a pin using any other operator is refused (TestThePinPermitsTheMeasuredVersionAndRefusesTheNeighbours) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the version pin went with the CLI adapter; ai-manager owns which claude it runs. Replaced by TC-283.Retired
TC-184dashboard (go test)NegativeA tool outside the pin refuses the boot, and the refusal names the tool, the version and the pin (TestTheBootSmokeTestRefusesOnDrift) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the pinned-tool smoke test went with the CLI adapter. Replaced by TC-283.Retired
TC-185dashboard (go test)PositiveMode off and an empty configuration both build no adapter and boot; the retired mode cli, gateway mode with no URL, and mode api all refuse (TestAnUnconfiguredAdapterIsAValidState)Implemented
TC-186dashboard (go test)NegativeA tool that exits 0 having written status: blocked reports the outcome blocked, read from the document and never from the exit code (TestTheAdapterNeverReadsTheOutcomeFromTheExitCode) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): no process exit code exists to be misread; the outcome is read from the reply's handoff block. Replaced by TC-280.Retired
TC-187dashboard (go test)NegativeExit 0 with no handoff written, and exit 0 with an unparseable one, are both a failed attempt with the signature handoff-missing (TestAMissingHandoffIsAFailedAttemptWithItsSignature) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the handoff file is gone; a reply with no readable block is the same failure. Replaced by TC-281.Retired
TC-188dashboard (go test)PositiveA non-zero exit still reads the handoff the run left behind, because the document is the authority whatever the process did (TestACrashStillReadsTheHandoffItLeftBehind) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no process to crash after writing; a turn either answers or is a gateway failure. Replaced by TC-280.Retired
TC-189dashboard (go test)PositiveThe tool runs with the workspace as its working directory and an environment built from named variables, inheriting nothing else (TestTheAdapterRunsTheToolInTheWorkspaceWithAnIsolatedEnvironment) — retired 2026-11-02 in v0.29.0 (M14.7, D-060). There is no child process and no host environment to inherit: the turn runs upstream in the product's workspace. No successor; the property no longer exists.Retired
TC-190dashboard (go test)PositiveCost and tokens come from the tool's own JSON report as measured, cache reads included; a silent tool reports unavailable, never zero (TestTheAdapterReadsCostAndTokensFromTheToolsOwnReport) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the tool's own cost report is now the gateway's cost_usd. Replaced by TC-275, TC-282.Retired
TC-191dashboard (go test)NegativeThe gateway adapter refuses a zero-value Cleared and sends the gateway nothing — the belt behind the type discipline's braces (TestTheAdapterRefusesAPacketTheEgressPassNeverCleared)Implemented
TC-192dashboard (go test)PositiveThe smoke test runs the real binary and passes on the pinned version, then refuses when the pin cannot be satisfied (TestTheSmokeTestRunsTheRealBinaryAndComparesThePin) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the exec half of the pinned smoke test went with the binary. Replaced by TC-283.Retired
TC-193dashboard (go test)NegativeNo file above the adapter compares or switches on the invocation mode, checked by walking the package's syntax tree (TestNothingAboveTheAdapterBranchesOnTheInvocationMode)Implemented
TC-194dashboard (go test)PositiveA dispatch whose slice clears emits TaskDispatched carrying the digest and byte count of what was sent (TestDispatchEmitsTaskDispatchedWhenTheSliceClears)Implemented
TC-195dashboard (go test)NegativeA refused dispatch returns a result with a toast rather than a rejection, so the events it wrote reach the response that renders them (TestARefusedDispatchIsAnEventNotAnError)Implemented
TC-196dashboard (go test)NegativeA refused dispatch blocks the desk with its reason, raises the attention count, and carries the machine-readable rule on the payload (TestARefusedDispatchBlocksTheDeskAndSaysWhy)Implemented
TC-197dashboard (go test)PositiveA slice cut down by the allowlist — repository parts supplied through the store's repository seam — emits ContextRedacted with its count and still goes on to dispatch (TestARedactedSliceStillDispatchesAndSaysSoOnTheTimeline)Implemented
TC-198dashboard (go test)PositiveThe two new event types fold to the same floor twice, and the fold agrees with the live desk about the refusal (TestTheRefusalAndTheRedactionFoldTheSameWayTwice)Implemented
TC-199dashboard (go test)NegativeThe read-only handle refuses a dispatch, so a floor parked in the past cannot send a slice assembled from a historical record (TestDispatchIsRefusedInReplay)Implemented
TC-200dashboard (go test)NegativeA real credential in a repository file refuses the dispatch, emits nothing that carries the key, and never reaches TaskDispatched (TestACredentialInTheWorkspaceRefusesTheDispatch)Implemented
TC-201dashboard (go test)PositiveTwo picked stories become two independent branches off the architect, and the security review waits on every verifier (TestThePlannerProducesADAGWithFanOutAndFanIn)Implemented
TC-202dashboard (go test)PositiveEvery prerequisite is placed before the task that waits on it in the topological order (TestEveryDependencyPointsAtATaskEarlierInTheTopologicalOrder)Implemented
TC-203dashboard (go test)NegativeA caller-supplied plan whose dependencies loop is refused, names every task in the cycle, and writes nothing (TestThePlannerRefusesAPlanWhoseDependenciesFormACycle)Implemented
TC-204dashboard (go test)NegativeA task depending on an id outside its own plan is refused and the missing prerequisite is named (TestADependencyOnATaskOutsideThePlanIsRejectedAndNamesIt)Implemented
TC-205dashboard (go test)NegativeTwo workflows on one desk produce distinct task ids and distinct workflow ids, so neither upserts over the other under Task (tenantId, id) UNIQUE (TestTaskIdsAreUniqueAcrossTwoWorkflowsOnTheSameDesk)Implemented
TC-206dashboard (go test)PositiveThe folded floor is identical with and without a planned graph, and the graph is still there afterwards — it is persisted state, not a reduction (TestTheGraphSurvivesAFoldBecauseItIsNotInTheFloor)Implemented
TC-207dashboard (go test)PositiveEvery transition the task table declares is permitted, including a status moving to itself (TestEveryDeclaredTaskTransitionIsPermitted)Implemented
TC-208dashboard (go test)NegativeFourteen undeclared task moves are refused, each with the reason it is illegal, and an undeclared status is refused in both directions (TestEveryUndeclaredTaskTransitionIsRefused)Implemented
TC-209dashboard (go test)NegativeDEFERRED cannot reach FAILED, the refusal names both statuses, and the task is unchanged afterwards (TestADeferredTaskCanNeverGoStraightToFailed)Implemented
TC-210dashboard (go test)PositiveThe ten Go task statuses and Task.status's DDL regexp are the same set, checked in both directions (TestTheTaskStatusVocabularyMatchesTheDDL)Implemented
TC-211dashboard (go test)PositiveA store reopened on the same tenant returns every task, its ordinal and its prerequisites, and the workflow counter with them (TestTheTaskGraphSurvivesARestart)Implemented
TC-212dashboard (go test)PositiveTwo replicas handed the same graph in a shuffled row order reach the identical decision (TestTwoReplicasSchedulingTheSameGraphAgree)Implemented
TC-213dashboard (go test)Negativescheduler.go may not import beyond fmt, sort and strings, may declare no method, and may not reach a lock or an rng (TestTheSchedulerIsAPureFunctionOfTheGraph)Implemented
TC-214dashboard (go test)PositiveExactly five blocking reasons are declared, and each one is actually produced by an input that breaks its condition (TestTheSchedulerNamesTheFiveBlockingReasonsAndNoOthers)Implemented
TC-215dashboard (go test)NegativeA task failing all five conditions is reported once, under the precedence reason, never under whichever check ran first (TestATaskBlockedForFiveReasonsReportsThePrecedenceOne)Implemented
TC-216dashboard (go test)NegativeA cycle reaching the scheduler blocks every member as a dependency and names the whole cycle on each (TestTheSchedulerRefusesACycleAndNamesTheTasksInIt)Implemented
TC-217dashboard (go test)NegativeA task exactly at the floor dispatches and one below it does not, so BR-07 holds after the record decays as well as before the plan (TestNothingIsDispatchedBelowReadinessFortyFive)Implemented
TC-218dashboard (go test)NegativeTwo ready tasks are never handed the same workspace or the same agent inside one pass (TestTwoReadyTasksAreNeverHandedTheSameAgentOrWorkspace)Implemented
TC-219dashboard (go test)PositiveAdvancing a stage seats the same agent regardless of the store's seed, so two replicas cannot disagree about who is busy (TestAgentSeatingIsDeterministic)Implemented
TC-220dashboard (go test)NegativeA second run is refused a workspace that is already leased, the refusal names the holder, and the losing acquire writes nothing (TestASecondLeaseOnALiveWorkspaceIsRefused) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the file lease is gone; one live turn per product is the graph lease (BR-38). Replaced by TC-295.Retired
TC-221dashboard (go test)NegativeAn expired lease is still refused by AcquireLease and only BreakLease clears it, because expiry describes the supervisor and not the detached child (TestAnExpiredLeaseIsStillNotTakenByAcquire) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the file lease is gone. Replaced by TC-295.Retired
TC-222dashboard (go test)PositiveA run re-acquiring its own lease succeeds and refreshes the expiry rather than deadlocking against itself (TestReAcquiringYourOwnLeaseSucceeds) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the file lease is gone. Replaced by TC-295.Retired
TC-223dashboard (go test)NegativeA renewal extends only the expiry and only for the run holding the lease; a run that does not hold it is refused (TestAHeartbeatExtendsTheLeaseAndOnlyForTheRunThatHoldsIt) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the file lease is gone; the beat renews nothing. Replaced by TC-295.Retired
TC-224dashboard (go test)NegativeOnly the holder may release a lease, and releasing one that is already gone is not an error (TestReleaseGivesTheWorkspaceBackAndOnlyToItsHolder) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the file lease is gone. Replaced by TC-295.Retired
TC-225dashboard (go test)NegativeA truncated lockfile reads as held rather than as absent, and the scheduler reaches the same conclusion (TestAnUnreadableLeaseIsTreatedAsHeldRatherThanAsAbsent) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no lockfile to be unreadable. Replaced by TC-295.Retired
TC-226dashboard (go test)PositiveThe lease round-trips through the file for a process that never held it, and the beat/stale/expiry ladder is ordered as declared (TestTheLeaseFileSurvivesTheProcessThatWroteIt) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no lease file to survive anything; the request id in the graph is what survives a restart. Replaced by TC-297.Retired
TC-227dashboard (go test)PositiveA supervised turn writes RunStarted, a Heartbeat and RunExited in that order, and the gateway's measured cost reaches the desk (TestARunEmitsRunStartedAndRunExitedAroundTheWorkItSupervised)Implemented
TC-228dashboard (go test)NegativeA brief that names no task is never submitted and writes no event at all, because a RunStarted for a turn nobody sent is invented evidence (TestARunThatCouldNotStartEmitsNoRunStarted)Implemented
TC-229dashboard (go test)PositiveTwelve minutes of beats writes twenty-four field updates and three Heartbeat events, with both endpoints always written (TestTheHeartbeatWritesTheBeatMoreOftenThanItWritesAnEvent)Implemented
TC-230dashboard (go test)PositiveA turn recovered by its request id and a supervised one produce the same Attempt, cost included, because both are read by the same poll (TestAnAdoptedRunAndASupervisedRunProduceTheSameAttempt)Implemented
TC-231dashboard (go test)NegativeA handoff left by an earlier attempt is not read as this one's; a run that wrote nothing reports handoff-missing rather than the stale success (TestAHandoffFromThePreviousAttemptIsNotReadAsThisOnes) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): no handoff file is left behind by an earlier attempt; a block naming another run is refused instead. Replaced by TC-281.Retired
TC-232dashboard (go test)PositiveCancelling the caller's context mid-run does not kill the child, which is D-2 on the graceful-shutdown path that used to violate it (TestTheDetachedChildIsNotKilledByTheOrchestratorsContext) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no child process; a turn runs upstream and outlives the orchestrator by construction. Replaced by TC-298.Retired
TC-233dashboard (go test)PositiveThe lease is released whether the run completed or produced no handoff at all (TestTheRunReleasesItsLeaseWhateverHappens) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no lease for a run to release. Replaced by TC-295.Retired
TC-234dashboard (go test)NegativeA run with no workspace is refused before anything is leased or spawned (TestTheRunnerRefusesToSpawnWithoutAWorkspaceRoot) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): a turn needs no folder on this host; the workspace is the product's, upstream. Replaced by TC-291.Retired
TC-235dashboard (go test)NegativeA test binary may exec only a tool under testdata, and Dispatch is checked to still carry the guard (TestNoTestEverReachesTheRealProviderCommand) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no provider command to reach; every test talks to an httptest fake gateway. Replaced by TC-275.Retired
TC-236dashboard (go test)PositiveThe three recovery branches match the architecture page's pseudocode, each carrying a machine-readable rule and a reason (TestTheThreeRecoveryBranches) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the three lease-and-beat branches became poll-by-request-id: adopt, keep polling, or orphan by deadline. Replaced by TC-297, TC-298.Retired
TC-237dashboard (go test)NegativeOnly DISPATCHED and RUNNING are reconciled; the other eight statuses are left alone (TestTheReconcilerLooksAtEveryTaskClaimingToBeDispatchedOrRunningAndNoOthers) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): reconcile.go is gone; recovery polls every open turn and requeues a claimed task with none. Replaced by TC-297, TC-298.Retired
TC-238dashboard (go test)Negativereconcile.go may import only fmt and sort and may declare no method (TestReconciliationIsPureAndDoesNotReadTheClock) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): reconcile.go is gone. Replaced by TC-297.Retired
TC-239dashboard (go test)PositiveAdopt and requeue share TaskResumed and are distinguishable only by the payload's rule, so the catalog stays closed (TestAdoptAndRequeueReuseTheCatalogNamesAndDifferOnlyInTheRule) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the adopt and requeue rules are now asserted on the recovery path itself. Replaced by TC-297, TC-298.Retired
TC-240dashboard (go test)NegativeA requeue with nothing able to kill the previous run degrades to an orphan rather than handing the workspace on (TestARequeueThatCannotKillDegradesToAnOrphan) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): nothing is killed any more (OQ-26: the gateway cannot cancel); a lost turn holds its product until its deadline. Replaced by TC-298.Retired
TC-241dashboard (go test)PositiveAn adopted run keeps its lease, its RUNNING status and its desk; nothing is killed and nothing restarted (TestAnAdoptedRunIsNotKilledAndNotRestarted) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no lease for adoption to keep. Replaced by TC-297.Retired
TC-242dashboard (go test)PositiveAn orphaned run releases its workspace, so the expiry that made it an orphan does not go on making it one (TestOrphanReleasesTheWorkspaceSoSomethingCanUseItAgain) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no workspace lease to release. Replaced by TC-298.Retired
TC-243kill-mid-task.shPositiveAfter SIGKILL to the orchestrator the child process is still alive — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no child process to outlive the orchestrator. Replaced by TC-298.Retired
TC-244kill-mid-task.shNegativeThe child died with its orchestrator, which is D-2 broken — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no child process to outlive the orchestrator. Replaced by TC-298.Retired
TC-245kill-mid-task.shPositiveThe restarted orchestrator reconciles before it listens and adopts the surviving run — retired 2026-11-02 in v0.29.0 (M14.7, D-060): lease-based adoption became adoption by request id. Replaced by TC-297.Retired
TC-246kill-mid-task.shNegativeNo adoption in the timeline — a held lease with a fresh beat was requeued or orphaned instead — retired 2026-11-02 in v0.29.0 (M14.7, D-060): lease-based adoption became adoption by request id. Replaced by TC-297.Retired
TC-247dashboard (go test)PositiveTwo attempts on one task leave two TaskRun records with different ids, and the first one's evidence is still there after the second (TestEachAttemptGetsItsOwnRunRecord)Implemented
TC-248dashboard (go test)PositiveA finished attempt records the cost, the tokens, the invocation mode, the request id, the stored reply and a duration that reads forwards (TestAFinishedRunRecordsWhatItCostAndWhatItLeftBehind)Implemented
TC-249dashboard (go test)NegativeA turn the gateway refused at submit is one failed attempt with a signature, never one carrying a measured cost basis (TestARunThatCouldNotStartIsNotRecordedAsMeasured)Implemented
TC-250dashboard (go test)PositiveA dispatch that clears the egress pass freezes a ContextSlice under the digest its event published, with rendered text and at least one role-bearing citation (TestTheSliceIsFrozenWhenTheDispatchClears)Implemented
TC-251dashboard (go test)NegativeA citation whose packet part the egress pass redacted does not survive into the cleared packet (TestARedactedPartTakesItsCitationsWithIt)Implemented
TC-252dashboard (go test)PositiveTwo attempts given byte-identical context share one ContextSlice, and it records the attempt that created it (TestTwoAttemptsGivenTheSameContextShareOneSlice)Implemented
TC-253dashboard (go test)PositiveGET /tasks/{id}/context answers live before anything has run and from the frozen slice afterwards, with the digest the attempt was given (TestTaskContextAnswersFromTheFrozenSliceOnceSomethingHasRun)Implemented
TC-254dashboard (go test)NegativeEditing the master record after an attempt must not move the frozen slice's digest or its chips (TestTheFrozenSliceDoesNotChangeWhenTheRecordDoes)Implemented
TC-255dashboard (go test)PositiveBoot recovery closes the attempt whose request the gateway no longer knows, once its deadline has passed — status ORPHANED with an end time, not left asserting RUNNING (TestBootReconciliationClosesTheAttemptItRecovered)Implemented
TC-256dashboard (go test)PositiveA store reopened on the same tenant still answers with the frozen slice, its digest and every citation (TestTheFrozenSliceSurvivesARestart)Implemented
TC-257dashboard (go test)PositiveA reopened store holds the attempt with its status, model, cost, basis and the slice it names (TestAnAttemptSurvivesARestart)Implemented
TC-258dashboard (go test)NegativeThe read-only handle passes both new reads through and still refuses a dispatch (TestTheReadOnlyHandleStillAnswersRunsAndContext)Implemented
TC-259dashboard (go test)PositiveThe example block inside the reply contract parses through ExtractHandoff, so a model that copies it faithfully passes rather than fails (TestTheContractsOwnExampleParses)Implemented
TC-260dashboard (go test)PositiveThe contract names the block's fence, the task, the run, the role and the failure signature, rather than describing fields the model must guess (TestTheContractNamesTheRunTheDocumentMustCarry)Implemented
TC-261dashboard (go test)PositiveThe contract travels in the frozen packet and reaches the prompt sent to the gateway, so what a turn was asked for is inside the digest (TestAFrozenPacketCarriesTheContract)Implemented
TC-262dashboard (go test)PositiveThe cleared packet is written as files in the leased workspace and the handoff document is declared empty beside it (TestMaterialiseWritesThePacketAndDeclaresTheHandoff) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the packet is no longer written to a folder; the cleared brief is the prompt. Replaced by TC-261.Retired
TC-263dashboard (go test)NegativeA part the egress pass redacted is never written into the workspace the tool can read (TestMaterialiseNeverWritesARedactedPart) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): nothing is written to a folder for a redacted part to reach. Replaced by TC-197, TC-251.Retired
TC-264dashboard (go test)NegativeA packet path that resolves outside the workspace is refused at the boundary that writes, not only at the one that screens (TestTheWriterRefusesAPathThatLeavesTheWorkspace) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the packet writer is gone; GAOS names a workspace id, never a path (BR-42). Replaced by TC-286.Retired
TC-265dashboard (go test)NegativeA run that writes no document fails the attempt with handoff-missing, on the attempt record as well as the outcome (TestARunWithNoHandoffFailsWithTheSignature) — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the file contract is gone; a reply with no block fails the same way. Replaced by TC-281.Retired
TC-266dashboard (go test)PositiveThe handoff block one attempt replied with is stored as an Artifact of kind handoff and cited into the next packet with role lesson — never the prompt or the reply stored beside it (TestTheHandoffIsStoredForTheNextAgent)Implemented
TC-267dashboard (go test)NegativeAn attempt is never cited the handoff it produced itself (TestAnAttemptDoesNotCiteItsOwnHandoff)Implemented
TC-268live-cli-run.shPositiveA real provider tool is present, inside the version pin, and the dashboard boots against it — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no provider tool on this host; the live check is now a turn through the gateway. Replaced by TC-300.Retired
TC-269live-cli-run.shPositiveA record written through the back office scores above the planning floor and the planner accepts it — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the CLI live run is gone. Replaced by TC-301.Retired
TC-270live-cli-run.shNegativeA dispatch the egress pass refused is reported as a refusal with its reason, rather than read as success from the 200 — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the CLI live run is gone. Replaced by TC-302.Retired
TC-271live-cli-run.shPositiveThe packet is on disk in the leased worktree before the tool is given it — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no packet on disk. Replaced by TC-303.Retired
TC-272live-cli-run.shPositiveA real model, given only the packet, writes a handoff document GAOS parses to an outcome rather than a signature — retired 2026-11-02 in v0.29.0 (M14.7, D-060): the CLI live run is gone. Replaced by TC-303.Retired
TC-273live-cli-run.shNegativeThe deliverable the packet asked for is absent from the worktree, or does not mention what the packet asked about — retired 2026-11-02 in v0.29.0 (M14.7, D-060): there is no worktree deliverable; deliverables travel in the reply until OQ-27. Replaced by TC-303.Retired
TC-274dashboard (go test)PositiveThe store records what the schema apply did, and two applies of one embedded DDL count the same total (TestTheStoreRecordsWhatTheSchemaApplyDid)Implemented
TC-275dashboard (go test)PositiveA turn through a fake ai-manager records the session id, the tokens and a measured cost on the attempt (TestAGatewayTurnRecordsTheSessionTokensAndAMeasuredCost)Implemented
TC-276dashboard (go test)NegativeA 410 on resume fails the attempt with session-lost, and no new session is opened in its place (TestA410OnResumeIsSessionLostAndOpensNoSessionInItsPlace)Implemented
TC-277dashboard (go test)NegativeA reply carrying metadata.session_warning fails as turn-unsaved, even with a valid handoff block (TestASessionWarningFailsTheTurnEvenWithAValidHandoff)Implemented
TC-278dashboard (go test)NegativeA 409 is busy rather than failed: the adapter returns ErrTurnRunning and no attempt at all (TestA409IsBusyNotAFailedAttempt)Implemented
TC-279dashboard (go test)PositiveSubmit answers 202, polling reaches the result, and resubmitting the same X-Request-ID starts no second turn (TestAResubmittedRequestIDStartsNoSecondTurn)Implemented
TC-280dashboard (go test)PositiveExtractHandoff takes the last gaos-handoff block and keeps the prose before it as the reply (TestExtractHandoffTakesTheLastBlockAndKeepsTheProse)Implemented
TC-281dashboard (go test)NegativeNo block, two blocks with different run ids, or a run id that is not this run's, is handoff-missing (TestARepliedHandoffForAnotherRunIsHandoffMissing)Implemented
TC-282dashboard (go test)NegativeA missing cost_usd, or zero with tokens above zero, is unavailable and never zero (TestAGatewayCostThatIsMissingOrZeroIsUnavailable)Implemented
TC-283dashboard (go test)NegativeThe boot smoke test refuses to start when the gateway is unreachable or lists no claude provider (TestTheGatewaySmokeRefusesAnUnreachableGatewayOrNoClaude)Implemented
TC-284dashboard (go test)NegativeThe admin key never appears in an attempt, an event, a log line or an error message (TestTheGatewayCredentialsNeverReachTheRecord)Implemented
TC-285dashboard (go test)PositiveThe same Blueprint renders to the same bytes and the same digest, in either store (TestTheBlueprintRendersTheSameBytesEveryTime)Implemented
TC-286dashboard (go test)NegativeA render over the caps, or onto a path outside the allowlist, refuses the publish and names the policy (TestABlueprintOverTheCapsRefusesThePublishAndNamesThePolicy)Implemented
TC-287dashboard (go test)PositiveA published version is immutable: editing a policy afterwards changes the draft only (TestAPublishedVersionIsImmutable)Implemented
TC-288dashboard (go test)NegativePublishing an unchanged Blueprint creates no version and emits no event (TestPublishingAnUnchangedBlueprintDoesNothing)Implemented
TC-289dashboard (go test)PositiveA knowledge source is rendered with its pinned ref and its purpose (TestAKnowledgeSourceIsRenderedPinned)Implemented
TC-290dashboard (go test)NegativeA knowledge source with a non-https URL, or one carrying credentials, is refused (TestAKnowledgeSourceThatIsNotHTTPSOrCarriesCredentialsIsRefused)Implemented
TC-291dashboard (go test)PositiveProvisioning is idempotent and derives gaos-<tenant>-<product> and gaos-<tenant>-<product>-review; a second call emits nothing (TestProvisioningIsIdempotentAndTheWorkspaceIDIsDerived)Implemented
TC-292dashboard (go test)NegativeA workspace whose synced digest is not the published one refuses dispatch with blueprint-drift, no turn is sent, and a sync releases the product (TestADriftedWorkspaceRefusesTheDispatchAndASyncReleasesIt)Implemented
TC-293dashboard (go test)NegativeA credential in a policy refuses the sync, and the fake gateway receives nothing (TestACredentialInAPolicyRefusesTheSyncAndNothingReachesTheGateway)Implemented
TC-294dashboard (go test)PositiveThe attempt record carries the pinned version, the slice digest, the session id and the request id, across a store reopen (TestTheAttemptRecordPinsTheBlueprintAndTheGatewayIDsAcrossAReopen)Implemented
TC-295dashboard (go test)NegativeWhile a turn is live, a second ready task in the same product is blocked with the lease reason (TestASecondTaskInAProductWithALiveTurnIsBlocked)Implemented
TC-296dashboard (go test)PositiveA retry resumes the task's session; an escalation opens a new one with SessionOpened reason escalation (TestARetryResumesTheTasksSessionAndAnEscalationOpensANewOne)Implemented
TC-297dashboard (go test)PositiveAfter a restart, a completed request is adopted into the same attempt a supervised run would have produced (TestRecoveryAdoptsACompletedRequest)Implemented
TC-298dashboard (go test)NegativeA 404 on recovery emits TaskOrphaned rule request-lost, holds the lease until the deadline, then requeues on a new session (TestALostRequestIsOrphanedHeldUntilTheDeadlineThenRequeued)Implemented
TC-299dashboard (go test)PositiveThe prompt and the reply stay readable after the fake gateway answers 410 (TestThePromptAndReplyOutliveTheSession)Implemented
TC-300live-aim-run.shPositiveA real gateway is reachable, the boot smoke test passes, and the product's workspace is provisionedImplemented
TC-301live-aim-run.shPositiveA record written through the back office scores above the planning floor, and its Blueprint publishes and syncsImplemented
TC-302live-aim-run.shNegativeA dispatch the egress pass refused is reported as a refusal with its reason, not read as successImplemented
TC-303live-aim-run.shPositiveA real model's reply carries a gaos-handoff block GAOS parses to an outcome, under the pinned digestImplemented
TC-304dashboard (go test)PositiveThe board has the declared columns, every task exactly once, and one lane per story (TestTheBoardHasItsColumnsEveryTaskOnceAndALanePerStory)Implemented
TC-305dashboard (go test)PositiveEach legal move produces its events and its status (TestEachLegalMoveProducesItsEventAndStatus)Implemented
TC-306dashboard (go test)NegativeEvery move outside the legal-move table answers 409 and writes no event (TestAMoveOutsideTheTableAnswers409AndWritesNoEvent)Implemented
TC-307dashboard (go test)NegativeA lane change, a card create and a card delete each answer 409 (TestALaneChangeACreateAndADeleteAnswer409)Implemented
TC-308dashboard (go test)PositiveA fold over the events reproduces the board, after every actor that moves a task has moved one (TestTheTaskFoldReproducesTheBoard)Implemented
TC-309dashboard (go test)NegativeThe read-only replay handle refuses every move (TestTheReplayHandleRefusesEveryMove)Implemented
TC-310check-stacks.shNegativeA vendored sisflow board without its licence or its NOTICE beside it fails the deploy pre-flightImplemented
TC-311dashboard (go test)PositiveA policy, a knowledge source and a published Blueprint version come back from a reopened ArcadeDB store (TestTheBlueprintSurvivesARestart)Implemented
TC-312dashboard (go test)PositiveThe back-office Blueprint tab renders, saves a policy and publishes version 1, and refuses a publish without a session (TestTheBlueprintTabRendersAndPublishes)Implemented
TC-313dashboard (go test)PositiveA user who may read its database but not create it boots, and one who can do neither is refused with both reasons (TestALeastPrivilegeUserBootsAgainstADatabaseItCannotCreate)Implemented
TC-314dashboard (go test)PositiveSigned in, GET / opens on the product list with no floor and no ticker; signed out, on the sign-in sheet with the product master closed (TestTheHomePageIsTheProductListAndSignedOutItAsksForASignIn)Implemented
TC-315dashboard (go test)NegativeA product's Timeline tab shows the event just written for it and not the one written for another product (TestAProductsTimelineShowsItsOwnEventsAndNoOtherProducts)Implemented
TC-316dashboard (go test)NegativeA fold missing the last TaskMoved disagrees with the board (TestATaskFoldMissingAMoveDisagreesWithTheBoard)Implemented
TC-317dashboard (go test)PositiveA workspace rewritten during the turn refuses the next dispatch, and a sync releases it (TestAWorkspaceRewrittenDuringTheTurnRefusesTheNextDispatch)Implemented
TC-318dashboard (go test)PositiveA parent CLAUDE.md, a missing rule, a rule GAOS did not render or an agent in the observed context is drift (TestAnObservedContextGAOSDidNotWriteIsDrift)Implemented
TC-319dashboard (go test)NegativeA matching observed context, or none at all, does not block the product (TestAMatchingObservedContextIsNotDrift)Implemented
TC-320dashboard (go test)PositiveA failed turn's error reaches the next agent as failure-previous.md, labelled; a clean turn's handoff is still handoff-previous.md (TestAFailedTurnIsCitedAsAFailureNotAHandoff)Implemented
TC-321dashboard (go test)PositiveA turn that ends on a question leaves its task AWAITING_INPUT, not failed, with the question in the inbox, on a QuestionAsked, as an artifact and as a notice (TestAQuestionTurnWaitsOnTheOperator)Implemented
TC-322dashboard (go test)PositiveAn answer in the operator's own words puts the task back in READY, empties the inbox, and a second answer is refused (TestAnAnswerPutsTheTaskBackInTheQueue)Implemented
TC-323dashboard (go test)NegativeChoice 0, choice 5, an empty fourth answer and an answer through another product are refused and write nothing (TestAnInvalidAnswerIsRefusedAndChangesNothing)Implemented
TC-324dashboard (go test)PositiveThe next attempt carries the answer in its packet and sends the turn once, through ai-manager's answer route under its own request id, with the reply contract (TestTheNextTurnResumesThroughTheAnswerRoute)Implemented
TC-325dashboard (go test)NegativeA 409, 410 or 503 from the answer route does not strand the turn: it is sent once through /v1/chat (TestARefusedAnswerRouteFallsBackToAnOrdinaryTurn)Implemented
TC-326dashboard (go test)NegativeA question with two options is not a question: with no handoff the turn fails handoff-missing and nothing reaches the inbox (TestAMalformedQuestionIsNotAQuestion)Implemented
TC-327dashboard (go test)NegativeA waiting card cannot be dragged to ready, review or done, nor into Needs you; it can be canceled, and its question leaves the inbox (TestAWaitingCardMovesOnlyByAnAnswerOrACancel)Implemented
TC-328dashboard (go test)PositiveThe gateway client maps the answer route's 202, 409, 410 and 404 to success and three typed errors (TestTheGatewayClientMapsTheAnswerRoute)Implemented
TC-329dashboard (go test)Negative12-questions.sql widens Task.status to exactly what 04-execution.sql creates, and Artifact.kind admits question (TestTheQuestionDDLWidensWhatTheCreateDeclares)Implemented
TC-330dashboard (go test)PositiveGET …/questions lists the waiting task; the answer route answers 401, 422, 200, then 409 and 404 (TestTheInboxAndTheAnswerRouteSpeakJSON)Implemented
TC-331dashboard (go test)NegativePublishing never blocks on a subscriber that does not read; the slow one is dropped, the reading one kept, and ending twice is harmless (TestTheBrokerFansOutAndDropsASlowSubscriber)Implemented
TC-332dashboard (go test)PositiveAn emitted event reaches the live store's broker, and a bare projection has none, so a replay cannot re-announce the past (TestOnlyTheLiveStorePublishes)Implemented
TC-333dashboard (go test)PositiveGET /events/stream refuses without the session, answers text/event-stream unbuffered, and sends a question hint naming the type and task but not the question (TestTheStreamSendsAHintForAQuestion)Implemented
TC-334dashboard (go test)PositiveThe inbox lists every waiting agent oldest first, with how long it has waited and when its question expires (urgent under three days), both re-tickable live, the question's first line only, and a product filter (TestTheInboxListsEveryWaitingAgentOldestFirst)Implemented
TC-335dashboard (go test)NegativeAn empty inbox says no agent is waiting (TestAnEmptyInboxSaysNoAgentIsWaiting)Implemented
TC-336dashboard (go test)PositiveThe Needs-you chip counts waiting agents for a session only, sits in the back-office sheet's head, and drops with an answer (TestTheChipCountsWaitingAgentsOnlyForASession)Implemented
TC-337dashboard (go test)PositiveThe answer sheet preselects the recommended option, offers the operator's own words as a fourth, posts relatively, and refuses a task not waiting (422) or no session (401) (TestTheAnswerSheetPreselectsTheRecommendation)Implemented
TC-338dashboard (go test)PositiveAn answer re-renders the view it came from — inbox or board — and a second one comes back as a 422 toast (TestAnAnswerReRendersTheViewItCameFrom)Implemented
TC-339dashboard (go test)PositiveThe board has a Needs-you column and a waiting card carries a badge that opens its answer sheet (TestTheBoardBadgesAWaitingCard)Implemented
TC-340dashboard (go test)NegativeThe live stream behind the gzip middleware answers 200 uncompressed with the retry hint first — compressed, no browser could flush it (TestTheLiveStreamIsNotGzipped)Implemented
TC-341dashboard (go test)PositiveA question unanswered thirty days after it was asked expires with its session: the task goes to BLOCKED once, with rule question-expired; a younger or untimed one stays open (TestAnUnansweredQuestionExpiresWithItsSession)Implemented
TC-342dashboard (go test)PositiveAn answered question's next turn resumes the asking session past the 25-day rotation; an unanswered task still rotates (TestAnAnswerResumesTheAskingSessionPastTheRotationAge)Implemented
TC-343dashboard (go test)PositiveA product with no vendor policy sends every role to Claude, and its turn carries no provider and GAOS_MODEL, the body it had before M16 (TestAProductRunsOnClaudeUntilItsPolicySaysOtherwise)Implemented
TC-344dashboard (go test)PositiveIn mixed mode each role resolves to its mapped vendor, an unmapped role to Claude, and the board card shows where its next turn goes (TestMixedModeResolvesTheVendorByRole)Implemented
TC-345dashboard (go test)NegativeAn unknown mode, role or vendor is refused with a reason and changes nothing (TestAnUnknownModeRoleOrVendorIsRefused)Implemented
TC-346dashboard (go test)NegativeAn Antigravity model the gateway's /v1/providers does not list is refused; one it lists is saved (TestAnAntigravityModelTheGatewayDoesNotOfferIsRefused)Implemented
TC-347dashboard (go test)PositiveAn Antigravity turn is sent with provider: antigravity and the product's model, the run records the provider, and a resumed turn names the vendor too (TestAnAntigravityTurnNamesTheVendorAndItsModel)Implemented
TC-348dashboard (go test)PositiveA retry whose vendor changed opens a new session with reason vendor (TestAVendorChangeOpensANewSession)Implemented
TC-349dashboard (go test)NegativeA session is never re-opened needlessly: a pre-M16 run resumes under Claude, and an Antigravity retry with no chosen model is not an escalation from GAOS_MODEL (TestASessionResumesOnTheVendorThatOpenedIt)Implemented
TC-350dashboard (go test)NegativeThe Blueprint gate refuses a product whose Antigravity copy of the workspace is unsynced, naming Antigravity, and opens once both vendors hold it (TestTheBlueprintGateHoldsAProductWhoseAntigravityCopyIsStale)Implemented
TC-351dashboard (go test)PositiveA sync writes every vendor the policy uses, a Claude-only product's sync names no vendor, and the record says what each copy holds (TestASyncWritesEveryVendorThePolicyUses)Implemented
TC-352dashboard (go test)NegativeA sync whose Antigravity pool fails still syncs Claude, names the failure, and leaves the product held — nothing falls back to another vendor (TestAPoolThatFailsTheSyncLeavesTheProductHeldAndNeverFallsBack)Implemented
TC-353dashboard (go test)PositiveThe vendor policy and each run's provider survive a reopen on ArcadeDB, or skip when none is configured (TestTheVendorPolicyAndEachRunsVendorSurviveAReopen)Implemented
TC-354dashboard (go test)PositiveA pool whose accounts hold different copies (409) is repaired by the sync: provision the missing copies, then one unconditional write (TestAPoolWhoseCopiesDisagreeIsRepairedByTheSync)Implemented
TC-355dashboard (go test)PositiveThe AI vendors tab renders the policy, the role toggles and the pool's model list, with a form that saves to PUT /products/{id}/vendors (TestTheVendorsTabRendersThePolicyAndTheCatalog)Implemented
TC-356dashboard (go test)PositiveSubmitting the vendors form saves the policy and says so; a mode outside the three is refused and changes nothing (TestPuttingTheVendorsFormSavesItAndRefusesABadOne)Implemented
TC-357check-workspace.shPositiveThe agent workspace is internally consistent: every path named in .claude/CLAUDE.md exists, every skill is referenced, every count agrees with its register, no rule is forked, no canary is left, and no secret reached the report storeImplemented
TC-358check-workspace.shNegativeA stale path or a drifted count is reported and the run exits 1Implemented
TC-380check-workspace.shPositiveThe design-engineering skill is vendored, trimmed to the stack-agnostic half, carries no framework vocabulary, and matches the SHA-256 its SOURCE.md recordsImplemented
TC-381check-workspace.shNegativeA skill carrying framework vocabulary, a vendored skill without its licence or its provenance, or a trimmed skill whose digest moved is reported and the run exits 1Implemented
TC-382dashboard (go test)PositiveThe review turn runs in the product's own reviewer workspace: the packet names it and the gateway receives itImplemented
TC-383dashboard (go test)NegativeThe reviewer's workspace is never the product's own workspaceImplemented
TC-384dashboard (go test)PositiveThe reviewer's workspace id obeys the gateway's grammar: the prefix, the charset and the length capImplemented
TC-385dashboard (go test)PositiveThe reviewer's workspace is reset to the published Blueprint before every review turn, and holds the standing files and nothing else Amended by D-122 rev 3: the fixture syncs the Blueprint first, as live; a reviewer copy of a product this instance never provisioned is refused (TC-1038).Implemented
TC-386dashboard (go test)NegativeA reviewer workspace that cannot be prepared refuses the dispatch before anything is spentImplemented
TC-387dashboard (go test)NegativeA reviewer's turn does not mark the product's workspace drifted, so the author is not refused for the reviewer's behaviourImplemented
TC-388dashboard (go test)NegativeThe observed drift check still fires for a review turn: a reviewer that rewrote the standing files is caughtImplemented
TC-389dashboard (go test)PositiveThe Blueprint sync keeps the product's workspace and the reviewer's in stepImplemented
TC-390dashboard (go test)PositiveEach product keeps its own workspace root, and no two products share a reviewer workspaceImplemented
TC-359dashboard (go test)PositiveThe design artifact exists with kind design and is attached to the task that wrote itImplemented
TC-360dashboard (go test)PositiveThe implement task is BLOCKED while the review is unresolved, with reason design-unreviewedImplemented
TC-361dashboard (go test)NegativeThe reviewer's prompt carries the design and the rubric and none of the brief, the handoff, the failure lesson, the operator's answer, the stories or the acceptance criteriaImplemented
TC-362dashboard (go test)PositiveAn open Blocker holds the implementation: the review task and the implement task are both BLOCKED, with reason design-blockedImplemented
TC-363dashboard (go test)PositiveA failed review is not a verdict: the review task is BLOCKED with reason review-failed and consumes no retry and no escalationImplemented
TC-364dashboard (go test)PositiveA cleared review releases the implementation exactly once, and the implementer's next packet carries the design and the findingsImplemented
TC-365dashboard (go test)PositiveA review dispatch does not trip the drift gate: the reviewer's workspace holds every file the pinned Blueprint version wroteImplemented
TC-366dashboard (go test)PositiveThe implementer's next packet carries the design it is implementing and the findings made about itImplemented
TC-367dashboard (go test)PositiveEvery story is designed, reviewed and then built, and the implementation waits on its review aloneImplemented
TC-368dashboard (go test)NegativeA plan whose implementation has no review is refused before the first writeImplemented
TC-369dashboard (go test)PositiveBoth new contracts parse their own example, and a malformed severity, a scope carrying prose and an empty findings list without no-findings are refusedImplemented
TC-370dashboard (go test)PositiveA review task opens a fresh session with the reason reviewerImplemented
TC-371dashboard (go test)PositiveA review turn is metered like any other turn: the desk's cost and the tenant's spend both carry itImplemented
TC-372dashboard (go test)PositiveA design written under a superseded Blueprint is reported, with both versions namedImplemented
TC-373dashboard (go test)PositiveThe three closed vocabularies M17 grows agree with the DDL that admits themImplemented
TC-374dashboard (go test)NegativeThe operator's dispatch route refuses a task whose prerequisite is not done, and the board refuses to unblock a task the gate is holdingImplemented
TC-375dashboard (go test)PositiveThe gate adds no event name: it speaks in TaskMoved's ruleImplemented
TC-376dashboard (go test)NegativeThe gate holds through the operator's own routes: the board refuses to unblock a gated task and the dispatch route refuses a task whose review has not resolvedImplemented
TC-377dashboard (go test)NegativeThe gate does not open on a review that had no design: a design the screening refused is recorded as blocked, and the review that follows has nothing to attackImplemented
TC-378dashboard (go test)NegativeA task whose kind is outside the vocabulary is refused before the first write, not normalised into an implement taskImplemented
TC-379dashboard (go test)NegativeThe gate clears on its own recorded verdict, not on a task's status: a review task that reached DONE with no recorded finding leaves the gate closedImplemented
TC-391dashboard (go test)NegativeThe QA case vocabulary is closed: every out-of-vocabulary value, bad pattern, over-cap text, bad reason and non-relative spec is refused with its code, and well-formed cases go inImplemented
TC-392dashboard (go test)PositiveA planned and implemented case is automated; a blocked case that has a script stays blocked and is listed as needing a decisionImplemented
TC-393dashboard (go test)NegativeAn import never rewrites the automation half of an existing case, a results item naming a planning field is a decode error, and a seeded import carries script facts only for a new caseImplemented
TC-394dashboard (go test)PositiveAn identical re-post of cases or results changes nothing: no revision moves and no event is emittedImplemented
TC-395dashboard (go test)NegativeA results post rejects an unknown case, a stale run, a future run and a result without a runAt while valid items apply; an equal run is unchanged and force skips staleImplemented
TC-396dashboard (go test)PositiveA product made in the back office gets a desk and can be planned exactly as a seeded one; a parked floor with a runtime desk answers; desk order survives p-10; the workflow and task routes refuse a caller with no cookieImplemented
TC-397dashboard (go test)NegativeThe machine API fails closed: no tokens is 503, a missing or wrong token 401, a QA token on an admin route 403, malformed or equal tokens disable it, /app is 404, a second concurrent write is 429, and no token is ever echoedImplemented
TC-398dashboard (go test)NegativeThe QA token reaches only the products listed in GAOS_API_QA_PRODUCTS: any other id is 404, the product list is filtered, an unset list or a name reaches nothing, and force is the admin'sImplemented
TC-399dashboard (go test)NegativeEvery batch is bounded and strictly decoded: 201 items or a body over 1 MiB is 413, an unknown field, trailing JSON or a bad query is 400, and the stripped /v1 path worksImplemented
TC-400dashboard (go test)PositiveThe cases feed pages by revision: every case comes back exactly once, a touched case moves to the end of the feed, and next is null on the short pageImplemented
TC-401dashboard (go test)NegativeQA writes carry no floor: while the floor is parked the API writes answer 200 and the live desks do not move, and the back office's own sync path is refusedImplemented
TC-402dashboard (go test)NegativeThe outbound URL is valid only as https or as http to a loopback or tunnel IP literal with no userinfo or query, never GAOS's own gateway or database host; a missing token or an over-long cursor is refusedImplemented
TC-403dashboard (go test)PositiveA pull applies each page through the results rules and keeps the cursor; stale and unknown items are counted, and a hostile or malformed page fails the sync and keeps the cursorImplemented
TC-404dashboard (go test)PositiveA push advances its cursor per accepted batch, stops at the first failure, keeps at most the well-formed rejected ids, and resumes from the stored cursorImplemented
TC-405dashboard (go test)NegativeThe sync buttons refuse a redirect, an overlapping sync, a click inside the process-wide cooldown, an unconfigured client, a product outside GAOS_API_QA_PRODUCTS and replayImplemented
TC-406dashboard (go test)PositiveThe generic product seed, run on the invented example, is idempotent and meets the readiness floor: the second run changes nothing, an operator's edits survive, no task is moved, and a secret, a thin seed, an unseeded same-named product or replay is refusedImplemented
TC-407dashboard (go test)PositiveThe tracked example seed is well formed: 3 modules, 8 features, 4 epics, 12 unique cases, 5 implemented and 9 planned, every reference resolves, and the egress detector finds nothingImplemented
TC-408dashboard (go test)NegativeThe QA token may create a case but never change one: a new planned case is created, while parking, run fields, a wrong epic infix, a differing existing case and the case ceiling are refused with their codesImplemented
TC-409dashboard (go test)PositiveA new epic adds exactly one BLOCKED card and nothing else moves: no existing task changes, a cleared review does not release it, no workflow or a parked floor defers it, and the epic caps holdImplemented
TC-410dashboard (go test)PositiveAn epic's board card carries live case counts that move with every created case and every result, other cards carry none, and no task is writtenImplemented
TC-411seed.shPositiveThe generic seed script, given a required --dir, ends with ok summary matches, or FAIL naming what differs, after asserting the catalog's totals are at least the seed files'; with no --dir, or a --dir without both files, it refusesImplemented
TC-412dashboard (go test)NegativeThe back office's board host has a bounded height and its scroller lets a scroll reach the page, so the board scrolls both ways (TestTheBoardHostHasABoundedHeight)Implemented
TC-413dashboard (go test)PositiveThe QA token asks and polls only for the products it is scoped to: an out-of-scope or unknown product is a 404 that writes nothing, a missing, wrong or outbound token is a 401, and the QA token on the catalog, the seed or a back-office answer route is a 403 or a 401 (TestAnInboxAskNeedsTheQAScopeAndTheProduct)Implemented
TC-414dashboard (go test)PositiveAsking again with the same (product, externalId) returns the existing item with created false, whatever state it reached, and writes no second event; a product holding 200 open items refuses the next (TestAnInboxAskIsIdempotentOnTheExternalID)Implemented
TC-415dashboard (go test)NegativeA bad id, question, context, title, option list or expiry, an unknown field, a body over 1 MiB and a body the secret detector matches are each refused with their code and write nothing; control and bidi characters are stripped, options and the 168 h expiry default (TestAnInboxAskIsValidatedAndSanitised)Implemented
TC-416dashboard (go test)PositiveA QA tool question shows in the inbox with the QA tool tag and counts on the chip, opens a sheet with no option preselected, and is answered through the back-office route: refused without a session, with no choice, empty own words or an unoffered option, then recorded once (TestTheQAToolsQuestionIsAnsweredFromTheInbox)Implemented
TC-417dashboard (go test)PositiveGET reports open, answered (choice, optionLabel, text, answeredAt) and expired, an overdue open item reading expired before the sweep and leaving the inbox, and absent facts stay absent in the JSON (TestTheInboxStatusReadsOpenAnsweredAndExpired)Implemented
TC-418dashboard (go test)NegativeThe sweep expires an open item after its own deadline exactly once, writes no floor, never touches an answered item, refuses a late answer, and leaves a task question's own expiry alone (TestAnUnansweredInboxItemExpires)Implemented
TC-419dashboard (go test)PositiveAfter a restart the items, their answers, expiries and delivery state read exactly as before, a delivered answer is not pending again, and the same id still asks idempotently (TestAnInboxItemSurvivesARestart)Implemented
TC-420dashboard (go test)PositiveThe webhook POSTs each answered or expired item once to GAOS_QA_URL plus /api/v1/gaos/inbox-answer with the outbound bearer and the agreed body; delivered items are never re-sent, not even after a restart, and an unconfigured or unsafe URL sends nothing (TestTheAnswerWebhookDeliversTheDecision)Implemented
TC-421dashboard (go test)NegativeA failing QA tool is retried at 30 s, 2 min, 10 min and 1 h then given up after five attempts, the backoff survives a restart, a recovered tool is told once, and GET keeps serving the decision (TestTheAnswerWebhookRetriesWithBackoffThenGivesUp)Implemented
TC-422dashboard (go test)NegativeAnswering returns at once while the QA tool hangs or is unreachable; the failure is recorded as a delivery attempt and never reaches the operator (TestAnAnswerNeverWaitsOnTheWebhook)Implemented
TC-423dashboard (go test)NegativeA forged gaos_bo=1 cookie is signed out: back-office routes answer 401 and the sheet shows the sign-in form (TestAForgedBackOfficeCookieIsSignedOut).Implemented
TC-424dashboard (go test)PositiveA correct login issues an HttpOnly session cookie with a Max-Age that opens the back office, the email is canonicalised, and a wrong password and an unknown email answer the same text (TestASignedInCookieOpensTheBackOffice).Implemented
TC-425dashboard (go test)NegativeA cookie with an edited email, expiry or fingerprint, a truncated or missing MAC, an oversized value, another deployment's label or an expired time is refused (TestACookieThatWasTamperedWithIsRefused).Implemented
TC-426dashboard (go test)NegativeA session ends when its account's password changes or the account is removed from the users file (TestAPasswordChangeEndsOldSessions).Implemented
TC-427dashboard (go test)NegativeWith no accounts nobody signs in: login answers 422 not configured, and neither gaos_bo=1 nor a once-valid cookie opens anything (TestWithNoAccountsNobodySignsIn).Implemented
TC-428dashboard (go test)NegativeFive failures lock the account (even for the right password, with Retry-After); email variants share one counter; other accounts are unaffected; a flood of unknown emails neither fills the table nor ends a lock; the lock expires (TestFiveFailuresLockTheAccount).Implemented
TC-429dashboard (go test)NegativeThe users file parser skips comments, blanks, duplicates, malformed lines, an email with a colon or control character and an out-of-range iteration count, and never logs a line's content (TestTheUsersFileParser).Implemented
TC-430dashboard (go test)PositivePBKDF2 matches the RFC 7914 vector; hash-password output round-trips and refuses an empty password (TestHashPasswordRoundTrip).Implemented
TC-431dashboard (go test)NegativeEvery registered route is classified: the public list is fixed, every other pattern answers 401 signed out and with gaos_bo=1 (HTML and JSON), an unknown path is not public, a GET not on the read-only list fails, and replay is a POST (TestEveryRouteIsClassified).Implemented
TC-432dashboard (go test)NegativeA cross-origin non-GET request (foreign Origin, null Origin, cross-site fetch) to login, logout and a back-office PUT is refused 403; same-origin and header-less requests pass; the bearer API is exempt (TestACrossOriginPostIsRefused).Implemented
TC-433dashboard (go test)NegativeThe session key file is trimmed raw bytes of at least 32; a short, unset or unreadable file falls back to a random per-process key with a log line (TestTheSessionKeyFile).Implemented
TC-434dashboard (go test)NegativeAn open event stream closes at the expiry of the session that opened it (TestTheEventStreamClosesAtSessionExpiry).Implemented
TC-435check-stacks.shNegativedeploy/stacks/*.bo-* (the accounts file and the session key) are untracked regular files.Implemented
TC-436check-stacks.shPositiveThe prod compose file passes GAOS_BO_LABEL, so a session is bound to one deployment.Implemented
TC-437check-workspace.shNegativeA pbkdf2-sha256$…$ hash line in the committed review reports is caught by the secret scan.Implemented
TC-438rebuild-restart.shNegativeA tag deploy refuses, with a bad line, when prod.bo-users or prod.bo-session-key is missing.Implemented
TC-439dashboard (go test)NegativeWhen recording a delivery attempt fails (a database outage) the webhook still backs off from its in-memory memory of the attempt and is not re-sent every tick (TestAWebhookWhoseRecordFailsIsNotResentEveryTick).Implemented
TC-440dashboard (go test)PositiveThe first task of a freshly created workflow is ready and dispatched to the planner CreateWorkflow seated at its own desk, not blocked as “every planner agent is busy” (TestAFreshWorkflowsFirstPlannerTaskIsSchedulable).Implemented
TC-441dashboard (go test)NegativeAn agent seated at one product is still busy for another product's task, and an agent busy at no named desk is busy everywhere (TestASeatedAgentIsStillBusyForAnotherDesk).Implemented
TC-442dashboard (go test)PositiveThe packet's task.md briefs the dispatched task — its title, kind, role, story and acceptance criteria — not the desk's first-task line, and two freezes of one attempt keep one digest (TestTheTaskPacketBriefsTheDispatchedTask).Implemented
TC-443dashboard (go test)NegativeGAOS_RUNNER reads as off unset, empty or unrecognised (a typo fails closed), on for on/1/true/yes, manual for manual in any case and with surrounding space; only on and manual may spend (TestRunnerModeReadsGAOS_RUNNER).Implemented
TC-444dashboard (go test)NegativeUnder a manual runner the control loop moves every task the scheduler would start to READY, one per product per pass, and dispatches nothing: no DISPATCHED task, no TaskRun, no turn at the gateway (TestAManualRunnerReadiesWorkAndNeverDispatchesIt).Implemented
TC-445dashboard (go test)NegativeThe manual ready step moves a task only from PENDING: a stale decision naming a task the operator has since dispatched leaves it DISPATCHED and writes nothing (TestTheManualReadyStepMovesOnlyAPendingTask).Implemented
TC-446dashboard (go test)PositiveUnder a manual runner the board move ready → working dispatches the card, sends exactly one turn and the run exits (TestAManualRunnerDispatchesTheCardTheOperatorMoves).Implemented
TC-447dashboard (go test)NegativeThe board dispatch is refused with the runner off, with no adapter, below the readiness floor (BR-07), and for a card whose packet context is not built yet (a test planner after a restart), writing nothing; under a manual runner the desk route sends no turn (TestTheBoardDispatchRefusesWithoutPermission).Implemented
TC-448dashboard (go test)NegativeTwo concurrent board dispatches of two ready cards in one product: exactly one succeeds, the other is refused with BR-38's reason, and the gateway receives one turn (TestTwoBoardDispatchesInOneProductStartOneTurn).Implemented
TC-449dashboard (go test)PositiveUnder a manual runner an answered task waits in READY through a control-loop pass, and the operator's board dispatch resumes it through the answer route under the next attempt's request id, with no ordinary chat post (TestAnAnsweredTaskWaitsInReadyUnderAManualRunner).Implemented
TC-450dashboard (go test)Positive/healthz reports the runner mode: off unset, manual and on when set (TestHealthzSaysWhichRunnerModeIsOn).Implemented
TC-451check-stacks.shPositiveThe prod compose file passes GAOS_RUNNER from the deploy shell, empty (off) by default.Implemented
TC-452check-stacks.shNegativeThe prod compose file sets GAOS_RUNNER in exactly one place, so no spelling of a hard-coded value can sit beside the pass-through.Implemented
TC-453dashboard (go test)PositiveWith the seeded floor untouched and two workflows each seating the planner, no agent is busy while nothing is DISPATCHED or RUNNING, the first workflow's planner task is readied on a-9, and the second's once the first is parked in READY (TestASeatWithNoLiveTurnDoesNotHoldTheAgent).Implemented
TC-454dashboard (go test)NegativeA RUNNING task holds one agent of its role, named with its product, so the same role on another product is blocked as every planner agent is busy and the agent is handed nothing else (TestALiveTurnHoldsItsAgent).Implemented
TC-455dashboard (go test)NegativeAgainst a fake ArcadeDB, a persist with nothing changed sends no upsert and one event insert, one changed task sends exactly one Task upsert, and a task whose commit failed is written again by the next persist (TestAPersistWritesOnlyTheRecordsThatChanged).Implemented
TC-456dashboard (go test)NegativeA background write against an ArcadeDB that stalls every statement gives up within its budget, reports the failure and releases the store lock, so a board move is not left waiting behind it (TestABackgroundWriteReleasesTheStoreLockWhenTheGraphStalls).Implemented
TC-457dashboard (go test)PositiveA manual-runner pass that readies two cards publishes one write carrying both moves, and a pass that moves nothing publishes nothing (TestAManualPassPublishesItsReadiesAsOneWrite).Implemented
TC-458dashboard (go test)NegativeA real architect reply whose gaos-design block carries ```ts code samples parses to the whole design document, through its last section, and its handoff with basis: unmeasured is still refused (TestADesignWithCodeSamplesReachesItsReviewerWhole).Implemented
TC-459dashboard (go test)PositiveA reserved block closes only at a bare fence at nesting depth 0 at least as long as its opener; info-string and tilde fences nest, an unclosed block is ignored, and a reserved tag quoted inside a design is still refused (TestAFencedBlockClosesOnlyAtItsOwnDepth).Implemented
TC-460dashboard (go test)NegativeThe handoff contract a turn is shown states that usage.basis is exactly measured or estimated, and when to use estimated (TestTheContractStatesTheAllowedUsageBasis).Implemented
TC-461dashboard (go test)NegativeThe review contract a reviewer is shown states that a finding's note is one line of at most maxFindingNote (300) characters, read from the constant the parser uses, and that a longer note fails the whole review (TestTheReviewContractStatesTheNoteLimit).Implemented
TC-462dashboard (go test)PositiveA note of exactly 300 characters passes, a note of 301 is refused with a message naming 301 and 300, and a note carrying a control character is refused as one, not as a length (TestAFindingNoteIsHeldToTheStatedLimit).Implemented
TC-463dashboard (go test)NegativeA real reviewer reply whose note ran past 300 characters is still refused, with the length and the limit in the refusal, and a review refused through the gate is BLOCKED with review-failed and its run line on the timeline carries the parser's reason (TestARealReviewWithALongNoteSaysWhyItWasRefused).Implemented
TC-464dashboard (go test)NegativeWith two workflows on one product, each task's packet states its own workflow's goal under Objective — not the desk's, which holds only the latest — and two freezes give one digest (TestEachTaskIsBriefedWithItsOwnWorkflowsGoal).Implemented
TC-465dashboard (go test)NegativeAfter two workflows on one product and a reopened ArcadeStore, the product has one desk, seated on its latest workflow, and each task's packet still states its own workflow's goal; skipped without GAOS_ARCADE_TEST_URL (TestASecondWorkflowKeepsItsGoalAcrossARestart).Implemented
TC-466dashboard (go test)PositiveA card planned, dispatched twice, asked a question and approved yields ten status segments, each with its from-status, move rule, entered-at, left-at and seconds, and a finished lead of 8000 s (TestCardTimingFollowsEveryMove).Implemented
TC-467dashboard (go test)PositiveUnder manual, off and on, AI working + waiting on the operator + queued + blocked + backlog equals the lead time, idle = lead − AI, and READY counts as waiting on the operator unless the runner is on (TestCardTimingBucketsPartitionTheLeadTime).Implemented
TC-468dashboard (go test)PositiveAn unfinished card's last segment is open and measured to now, the lead is now − created, and the chip text is that lead in the console's relSpan format (TestCardTimingAnOpenCardRunsToNow).Implemented
TC-469dashboard (go test)NegativeAn event with no wall-clock time makes the timing unknown with every number 0; a clock that steps backwards cannot break the partition or make idle negative (TestCardTimingWithoutTimesIsUnknownAndAClockStepCannotBreakThePartition).Implemented
TC-470dashboard (go test)NegativeAnother task's moves, the same task id in another product, and non-move events leave a card's timing byte-identical (TestCardTimingIgnoresOtherTasksAndProducts).Implemented
TC-471dashboard (go test)NegativeA history that ends in another status than the card's, or has no plan event, is reported incomplete with a reason, and the card's own status wins (TestCardTimingThatDisagreesWithTheCardIsIncomplete).Implemented
TC-472dashboard (go test)PositivePer-attempt duration, tokens and cost with its basis; cost totals kept per basis (BR-31); a running attempt measured to now; the JSON carries no session id, request id, log ref or workspace (TestCardTimingAttemptsCarryOnlyTheAllowedFields).Implemented
TC-473dashboard (go test)PositiveA workflow's timing starts at its first card's plan, finishes only when every card has, sums its cards' AI time, and is unknown when one card is (TestWorkflowTimingTotals).Implemented
TC-474dashboard (go test)NegativeFor an unknown card the JSON timing route answers 404 {"error":"no such card"} and the timing sheet 404 with the toast “That record is gone.” (TestTheTimingRoutesAnswer404ForAnUnknownCard).Implemented
TC-475dashboard (go test)PositiveThe board JSON carries a timing summary on every card and the workflows' totals, the card route its segments and attempt, the sheet one row per segment, the server board a timing chip — and none of them a run's session or request id (TestTheBoardAndTheSheetCarryTheTiming).Implemented
TC-476dashboard (go test)PositiveThe database's zone offset is the clock difference rounded to a quarter hour: seven hours and forty seconds is 25 200 s, forty seconds alone is 0 (TestTheDatabaseZoneOffsetRoundsToAQuarterHour).Implemented
TC-477dashboard (go test)PositiveEvery event's wall-clock time reads back equal after a reopened ArcadeStore, and a row written without at reads its ts; skipped without GAOS_ARCADE_TEST_URL (TestEventTimeSurvivesTheGraphRoundTrip).Implemented
TC-478dashboard (go test)PositiveA reply with a heading, a three-level nested ordered/unordered list, a fence inside a list item, inline code, bold, italic, an intraword underscore and an https link renders to the exact expected HTML; 3. starts <ol start="3">; a bullet then a number makes two lists (TestMarkdownRendersNestedListsCodeAndInlineCode).Implemented
TC-479dashboard (go test)NegativeScript, img/onerror, a quote in a link, javascript:, http:, data:, relative and non-ASCII-host links, bidi overrides, images and HTML inside fences and code all come out escaped or as text; 500 KiB of delimiters render in under 2 s; a 600 KiB body is one escaped block (TestMarkdownEscapesEverythingTheModelWrote).Implemented
TC-480dashboard (go test)PositiveA card's conversation lists every attempt in order with its prompt, reply, the question it asked and the operator's answer; another product's events are ignored (TestTheConversationListsEveryAttemptWithItsQuestionAndAnswer).Implemented
TC-481dashboard (go test)PositiveArchive writes ConversationArchived by the signed-in account, the chip leaves the board (JSON says archived), the Archive page lists the card, the archived sheet is read-only with Restore, and restore brings the chip back (TestArchiveHidesTheChipAndRestoreBringsItBack).Implemented
TC-482dashboard (go test)NegativeArchive is refused for a READY or AWAITING_INPUT card, a canceled card with a RUNNING attempt, a card with no attempt, twice, and through the replay handle; restore of an active conversation is refused (TestArchiveIsRefusedForAnUnfinishedCardOrTwice).Implemented
TC-483dashboard (go test)PositivePrune empties the prompt, reply and question documents, keeps the handoff and the run records, asks the gateway once per session, and writes a bodies certificate (per-document SHA-256 and length of the original, the Kept list) and a sessions certificate, neither carrying a session id (TestPruneEmptiesDocumentsAndSessionsAndLeavesACertificate).Implemented
TC-484dashboard (go test)NegativeA card restored after the page rendered is skipped, an unlisted archived card is untouched, a busy session counts as failed without its id, a session shared with an unselected card is kept, and a failed database commit changes nothing (TestPruneSkipsWhatChangedAndKeepsWhatIsShared).Implemented
TC-485dashboard (go test)NegativePrune without confirm=PRUNE, or with no card, answers 422 with the exact toast and deletes nothing; the confirmed form prunes (TestPruneWithoutTheTypedConfirmationDeletesNothing).Implemented
TC-486dashboard (go test)NegativeArchive, restore and prune refuse Sec-Fetch-Site cross-site and a foreign Origin with 403; an unknown card's sheet is 404; the sheet and the Archive view are no-store; the back office carries its CSP; the model's HTML is escaped on the sheet (TestTheConversationRoutesAreBackOfficeAndSameOrigin).Implemented
TC-487dashboard (go test)PositiveDeleteSession sends DELETE /admin/sessions/{id} (?provider=antigravity for that vendor) with the admin bearer; 200 is nil, 404, 409, 5xx, unreachable and no key are sentinels without the id; prune never sends a malformed id or an unknown vendor (TestTheGatewayDeletesASessionAndSaysOnlyWhatFailed).Implemented
TC-488dashboard (go test)PositiveAfter a reopen the reply is read from the database; after archive, prune and another reopen the bodies are empty in the database, the certificate's digest is the original text's, the question events remain, and the Event actor column is the account; skipped without GAOS_ARCADE_TEST_URL (TestAPrunedConversationStaysPrunedAfterARestart).Implemented
TC-489dashboard (go test)NegativeTwo thousand seeded random inputs render only allowlisted tags, balanced, with no raw angle bracket outside a tag (TestMarkdownOutputIsWellFormedForAnyInput).Implemented
TC-490dashboard (go test)PositiveThe QA tool answers its own inbox item over the API: 200 with the source (kind, client, origin, actor), the event carries it and the client/handle actor, the webhook still owes the decision, GET shows the same source, the display name is dropped, and the server log records the forwarded chain.Implemented
TC-491dashboard (go test)PositiveThe first answer wins: an identical retry is 200 with the first answer and writes nothing, a different answer is 409 already_answered naming the first source, the API never returns the operator's email, and the back office is refused with "already answered via QA tool".Implemented
TC-492dashboard (go test)NegativeThe answer route refuses: no token 401, the admin token 403, an out-of-scope product or unknown id 404, an expired or lapsed item 410 with its state, a bad choice or empty own words 422, text over 4000 422, a missing, long, spaced, operator or account-email actor 400, a secret (also split by a bidi mark) 400, an unknown field 400, a held write slot 429.Implemented
TC-493dashboard (go test)NegativeThe clients file loads good lines and skips reserved, duplicate, bad-origin, reserved-origin, readable, missing, colliding and QA-product lines; a registry client is 403 on the QA routes, reaches only its products, asks and answers only its own items under its own name and write slot, gets 409 id-taken on another client's id, is never pushed to the QA tool's webhook, and has its own open cap; equal built-in tokens stay 503.Implemented
TC-494dashboard (go test)PositiveThe QA tool's origin is GAOS_QA_ORIGIN when it is a host name, else the host (without port) of a GAOS_QA_URL that is a name, else empty; an invalid GAOS_QA_ORIGIN is logged and ignored.Implemented
TC-495dashboard (go test)PositiveA back-office answer to an inbox item and to a task question records source gaos / back-office / the deployment label / the signed-in email, ends its event text with "in GAOS (…) by …", fills the actor column with the email, and the next packet's answer part does not carry the email.Implemented
TC-496dashboard (go test)PositiveThe source's phrase and its four sentences (refusal, recent row, conversation sheet, event suffix) read as the design's tables say, including no source, no origin and no actor; the API form names the operator, never the account.Implemented
TC-497dashboard (go test)PositiveThe inbox's "Answered recently" lists a QA-tool answer and a back-office answer with their sources, an old answer as "source not recorded", an expiry as "expired unanswered", escaped, filtered by product, newest first and at most twenty.Implemented
TC-498dashboard (go test)PositiveThe card's conversation sheet says "Answered … · in GAOS (…) by …" for a recorded answer and "source not recorded" for one given before D-083.Implemented
TC-499check-stacks.shPositiveThe prod stack passes GAOS_QA_ORIGIN through from the deploy shell, so the QA tool's answers record its host name.Implemented
TC-500dashboard (go test)PositiveA send-back moves the design DONE→READY and the review BLOCKED→PENDING, both TaskMoved carrying the signed-in account, the design's carrying the sorted, trimmed triage; the implementation waits as design-unreviewed; the verdict is read from its anchored line and a cleared review still releases (TestAnOperatorSendsABlockedDesignBackToItsAuthor).Implemented
TC-501dashboard (go test)Positive / NegativeThe revision's packet carries the sent-back design as design.md and the review artifact plus the rendered triage as findings.md, exactly, with no account in any part or the prompt, and resumes the designer's session; a design never sent back carries neither (TestTheRevisionCarriesItsDesignTheFindingsAndTheTriage).Implemented
TC-502dashboard (go test)Positive / NegativeA delivered revision records a second design artifact and its lines-changed caption, the scheduler promotes the waiting review, and a clearing re-review releases the implementation with the new design and findings; a design forced to DONE with no new artifact leaves its review BLOCKED as design-missing (TestTheReviewReturnsToReadyWhenTheRevisionIsDelivered).Implemented
TC-503dashboard (go test)Positive / NegativeAfter a send-back the re-review opens a fresh reviewer session, even after a dispatch that never ran, and its packet holds the new design and neither the triage nor the old findings; its record names the revision's and the re-review run's Blueprint pins; once it has run, its retry resumes (TestTheReReviewOpensAFreshSessionAndSeesOnlyTheNewDesign).Implemented
TC-504dashboard (go test)NegativeOnly a design leaves DONE, and only under the send-back rule: moveTask refuses DONE→READY for implement and review tasks, moveTaskLocked refuses it under every other rule, and DONE→FAILED and CANCELED→READY stay illegal (TestOnlyADesignLeavesDoneAndOnlyBySendBack, taskstate_test.go).Implemented
TC-505dashboard (go test)NegativeA send-back is refused with its sentence and writes nothing for an empty actor, another product's card, a task that is not a design-blocked review, a design not DONE, a verdict that does not ask, and a triage with a missing or repeated finding, a bad disposition, an over-long note, a line separator, a bidi override, a reserved fence or a credential (TestSendingADesignBackIsRefusedUnlessItsReviewBlockedIt).Implemented
TC-506dashboard (go test)NegativeThree send-backs succeed and the fourth is refused with the cap sentence; the review card shows sent 3 of 3, closed, with no ready move, and the sheet shows the sentence and no form (TestADesignIsSentBackAtMostThreeTimes).Implemented
TC-507dashboard (go test)Positive / NegativeThe send-back routes are the back office's: 401 or the login sheet without a session, 403 cross-site, same-site or from a foreign origin, 415 for a non-form body, 404 for another product; the sheet lists 41 worst-case findings escaped and warns for a design over a packet part; the board shows the reason and the button; the posted triage and the session's account are recorded, the query string ignored (TestTheSendBackRoutesAreBackOfficeAndSameOrigin).Implemented
TC-508dashboard (go test)PositiveA design sent back once books the DONE segment it left as blocked, and its lead equals the sum of its buckets (TestALeftDoneSegmentIsBookedAsBlocked, timing_test.go).Implemented
TC-509dashboard (go test)NegativeA design-blocked review is never re-run on the same design: unblock is refused and not offered, approve of a design or review task is refused and not offered, an unblock clears its reason, and a drift release leaves design-blocked, design-unreviewed and qa-epic-added tasks blocked while releasing a drift-blocked one (TestTheGatesVerdictIsNeverRerolled, board_test.go).Implemented
TC-510check-workspace.shPositiveNo tracked or untracked-not-ignored file's content or path matches the git-ignored forbidden-strings list; nothing under deploy/local/ but its README is tracked; the list is not tracked; an invalid pattern or an unusable GAOS_FORBIDDEN_STRINGS fails; a matching path is shown by index and hash, never by name; no list means a printed skipImplemented
TC-511dashboard (go test)PositiveThe Integrations view shows ai-manager, the QA tools, the API and every registered client on both view routes, served no-store like the archive, and renders no token, digest, credential, URL path or queryImplemented
TC-512dashboard (go test)NegativeAn unsigned request never renders the Integrations view, on either route; with nothing configured the view says what is missingImplemented
TC-513dashboard (go test)NegativeWith BRAIN_TOWN_ENABLED not true the feed is off, makes no request and shows state disabled (TestBrainTownDisabledSendsNothing).Implemented
TC-514dashboard (go test)NegativeThe feed's configuration refuses http, userinfo, a query, a deny-listed host, a missing or short or spaced token, a gaos_ token and a GAOS API token, each with a reason; a valid one is usable (TestBrainTownConfigIsValidated).Implemented
TC-515dashboard (go test)PositiveEvery GAOS event maps to the right receiver events; a gate event only for a review task; a failed review is no verdict; no body carries the actor; a QA record update is not mapped (TestBrainTownMapsEveryEventType).Implemented
TC-516dashboard (go test)NegativeA product not listed is sent hidden with the alias name and the task id as title; a listed one sends its real name, titles cut to 200 characters, and a credential-looking title becomes the task id (TestBrainTownRedactsHiddenProducts).Implemented
TC-517dashboard (go test)PositiveA task's whole life arrives in order; a move for a task the receiver has not seen is preceded by a task.created; a send-back sends a second task.done (TestBrainTownLifecycleOrderAndFirstSight).Implemented
TC-518dashboard (go test)PositiveA retry carries the same id as its Idempotency-Key; 5xx and 429 are retried after 1, 5 and 30 s; another 4xx is not; 409 is success; the id is 26 deterministic characters (TestBrainTownRetriesKeepTheSameID).Implemented
TC-519dashboard (go test)NegativeWith the receiver hung, a store write returns in under 100 ms and a flood of events is dropped and counted, never waited on (TestBrainTownSlowReceiverNeverBlocksTheStore).Implemented
TC-520dashboard (go test)NegativeNo log line or status carries the token, the URL path or the receiver's address, and a rejected token file's reason does not echo its content (TestBrainTownTokenNeverLeaks).Implemented
TC-521dashboard (go test)PositiveThe Integrations row shows state, scheme and host and counts only, and the unusable reason (TestBrainTownIntegrationsRowHasNoSecret).Implemented
TC-522dashboard (go test)NegativeThe commit tap sees nothing after a failed ArcadeDB commit, each event once after a good one, and on the memory store fires at emit (TestBrainTownTapFiresOnlyAfterCommit).Implemented
TC-523check-stacks.shPositiveProd mounts the Brain Town token file read-only, passes the switch from the deploy shell, empty by default, and never passes the token as an environment variable; a prod.bt-* file is untracked. Since v0.60.1 the reader's cursor is a writable mode-700 directory mount, and the old read-only cursor file is not mounted.Implemented
TC-524go testNegative and positiveThe reader's URL rule refuses an empty value, a value that is not a URL, plain http, a userinfo, a query, a path, an IP address and a loopback host, each with its own reason, and accepts a good https base addressImplemented
TC-525go testNegative and positiveThe reader's token file: a bt_c_ token is accepted; a file others can read is refused outright; a bt_live_ token, a gaos_ token and a token with no prefix are each refused with their own reason; a missing file is refused, not a panicImplemented
TC-526go testNegative and positiveThe double filter matches the product's own owner/repo pair, case-insensitively, and refuses the same repository name under another owner and a bare repository nameImplemented
TC-527go testPositiveA consumer frame is read into its kind, type, event id, sequence number, owner, repository, pull request number and title, and its key is the flow's keyImplemented
TC-528go testNegativeA frame whose kind or whose type is outside the configured list is handed over only as a cursor marker, never as an event (v0.60.1)Implemented
TC-529go testNegativeA frame for a repository GAOS does not own is handed over only as a cursor marker, never as an event (v0.60.1)Implemented
TC-530go testNegative and positiveAn inbound pull request title is capped at 200 characters, stripped of control characters, and dropped when it looks like a credentialImplemented
TC-531go testPositiveThe cursor file round-trips the last handed-over sequence number and is written mode 0600; a missing cursor is zeroImplemented
TC-532go testPositiveA recording server answers the reader's request and the event arrives with its repository and pull request numberImplemented
TC-533go testPositiveThe Integrations row carries the source host and the counts and no token, and a reader that is off says disabledImplemented
TC-534go testNegative and positiveThe Task.role regexp in the DDL and the Go role set name exactly the same roles, each once; Agent.role (05-capacity.sql) equals it, and 17-defects.sql ALTERs both for a database that already existsImplemented
TC-535go testNegativeEvery pull-request agent role is declared with a model, a room and a labelImplemented
TC-536go testNegative and positiveThe label vocabulary is closed: the set and its order agree, a known label is accepted and an unknown one refused by nameImplemented
TC-537go testPositivenormalizeLabels returns the labels in vocabulary orderImplemented
TC-538go testNegative and positiveThe routing table plans a reviewer and an e2e card on pr.opened, the unit test card alone on pr.merged, and nothing for another eventImplemented
TC-539go testNegative and positiveThe pull-request key carries the owner, so two owners' PR 4 never share a keyImplemented
TC-540go testNegative and positivePlanning a pull request writes two cards and the two events; a replay plans nothingImplemented
TC-541go testPositiveA merge with no earlier open still plans the unit test cardImplemented
TC-542go testPositiveA merge cancels the review and the e2e card that have not startedImplemented
TC-543go testNegativeA repository the product does not own is refusedImplemented
TC-544go testNegativeA draft pull request plans no card and answers with a skipImplemented
TC-545go testNegativeThe per-product cap refuses a burst of pull requests Amended by D-120: the refused pull request is remembered on its row and planned once there is room.Implemented
TC-546go testNegativeA key evicted from the in-memory window cannot make a duplicate card on replayImplemented
TC-547go testNegative and positiveA fork and a stranger's pull request open no card; a member's opens twoImplemented
TC-548go testNegativeAn event no product owns plans nothing and the drain keeps goingImplemented
TC-549go testNegative and positiveThe scheduler never dispatches a manual or QA-tool card, and dispatches an auto oneImplemented
TC-550go testNegative and positiveAn operator's label change is one TaskLabeled event that names no address; an unknown label, a repeat and an unknown card are refused or no-opsImplemented
TC-551go testNegative and positiveA review block is parsed, also over several lines, a block indicator (|, >) is dropped and the block dedented, and a malformed block is refusedImplemented
TC-552go testNegative and positiveThe reviewer's contract names the review block and the handoff and asks for each finding's severity in parentheses (D-130); another role owes no blockImplemented
TC-553go testPositiveOn an unconfigured product a review is posted once as a comment, the card is DONE and a medium finding notifies (a configured product requests changes for medium and worse: TC-811)Implemented
TC-554go testNegativeA low finding is posted but reaches no personImplemented
TC-555go testNegativeA review body carrying a secret is never posted and the card goes to needs-manualImplemented
TC-556go testPositiveA high finding is posted, the card goes to REVIEW and needs-manualImplemented
TC-557go testNegativeA failed post fails the card with a class, github-token for a refused tokenImplemented
TC-558go testNegative and positiveThe reviewer's packet carries the pull request as a data part; a missing context says so and no other role gets itImplemented
TC-559go testNegativeThe pull-request context cache holds at most its maximumImplemented
TC-560go testNegative and positiveA pull-request key splits into owner, repository and number; a staging key has noneImplemented
TC-561go testNegative and positiveThe GitHub config refuses a token of the wrong kind, each with its reasonImplemented
TC-562go testNegativeA token file others can read is refusedImplemented
TC-563go testPositiveA GitHub token in a private file is accepted and keptImplemented
TC-564go testNegative and positiveowner/repo splits into its two parts and a malformed one does notImplemented
TC-565go testPositiveThe client reads the pull request and its files and posts a review as a comment (or, since D-102, a request for changes), never an approvalImplemented
TC-566go testNegativeA review GitHub refuses is reported with its statusImplemented
TC-567go testPositiveThe file list is paged and cappedImplemented
TC-568go testNegativeEach HTTP status gets its class and the error never carries the response bodyImplemented
TC-569go testNegative and positiveA rate limit is retried twice and no more; a 500 is tried onceImplemented
TC-570go testPositiveCommit authors come back last firstImplemented
TC-571go testNegative and positiveThe staging callback plans one e2e card; a replay is a duplicate and a new commit plans anotherImplemented
TC-572go testNegativeA call without the right credential gets 401 with the Basic challenge and plans nothingImplemented
TC-573go testNegativeAnother product's credential answers 404Implemented
TC-574go testNegativeA repository the product does not own is refused with 422Implemented
TC-575go testNegative and positiveRepeated failures lock the door with 429 and Retry-After, and the lock liftsImplemented
TC-576go testNegativeA readable, short or malformed credential file is refused; an unset file is off and answers 503Implemented
TC-577go testNegativeA 200 whose code is not SUCCESS is a failureImplemented
TC-578go testPositiveAn accepted message goes to the pinned group with Basic auth and the status leaks nothingImplemented
TC-579go testNegative and positiveA 429 and a 400 are tried once; a transport error is retried once and never leaks the hostImplemented
TC-580go testNegative and positiveAn unset WhatsApp URL is off, http is refused, a valid config is accepted, a readable group file or a name in place of a JID is refusedImplemented
TC-581go testNegativeA pinned group that is not in the list disables sendingImplemented
TC-582go testPositiveA pinned group that exists keeps the notifier onImplemented
TC-583go testNegative and positiveA contact resolves product first, then every-product, then the group; a wanted kind reaches itImplemented
TC-584go testNegative and positiveA review:medium contact wants medium and worse; one with no list wants everythingImplemented
TC-585go testNegativeA destination is masked when listed and never appears wholeImplemented
TC-586go testNegativeAn invalid contact is refused; an old review:high opt-in still validates and is no longer offered (D-130)Implemented
TC-587go testNegativeThe contact registry never reaches an event, the Blueprint or a packet; deleting twice is not foundImplemented
TC-588go testNegative and positiveThe contact routes need a session and the page never renders the destination wholeImplemented
TC-589go testNegative and positiveThe label route needs a session, changes a label and refuses an unknown one without an eventImplemented
TC-590go testPositiveA medium review finding is sent to the pull-request author's contact, naming the cardImplemented
TC-591go testNegative and positiveA failure with no contact goes to the pinned group; a failed send is recorded and does not touch the cardImplemented
TC-592go testPositiveA nil notifier is silentImplemented
TC-593go testPositiveAn e2e card starts a QA job for the named case, is RUNNING mid-job and DONE on success, with one startImplemented
TC-594go testNegativeA failed job fails the card and a timeout fails it with qa-job-timeoutImplemented
TC-595go testNegativeMissing QA routes fail the card with qa-routes-missingImplemented
TC-596go testNegativeA card that names no case is BLOCKED for a person and no job is startedImplemented
TC-597go testPositiveA staging run asks for every caseImplemented
TC-598go testPositiveThe outbound client speaks the agreed start and status routesImplemented
TC-599check-stacks.shPositiveProd mounts the pull-request flow's four credential files read-only, never passes the GitHub, staging or WhatsApp login as an environment variable, and takes the WhatsApp URL from the deploy shell with no default hostImplemented
TC-600rebuild-restart.shNegativeA prod tag deploy refuses, with a bad line, when any of the four prod.pr-* credential files is missing, and links them into the tag worktree when they exist.Implemented
TC-601go testPositiveTwo commits that share a 12-character prefix get two cards with different ids, and a replay of either is still a no-opImplemented
TC-602go testPositiveA job awaiting approval moves the card to AWAITING_INPUT and stops the 40-minute clock; after approval it runs again and ends DONEImplemented
TC-603go testNegativeAn approval nobody answers fails the card with qa-approval-timeout after the approval wait, and sends exactly one e2e:approval noticeImplemented
TC-604go testPositiveGAOS_QA_APPROVAL_WAIT_HOURS sets the approval wait, and it defaults to 24 hoursImplemented
TC-605go testNegativeAn http gateway is refused without GAOS_WA_ALLOW_HTTP=1, accepted and reported unencrypted with it, and a non-http(s) scheme is always refused; GAOS_WA_ALERT_FINDINGS_OVER_HTTP=1 is read only with =any and is off by default (D-131); so is GAOS_WA_CONFIRM_LINK_OVER_HTTP=1 (D-132)Implemented
TC-606go testPositiveThe group is linked only to the products listed, and an empty list links noneImplemented
TC-607go testNegativeA product the group is not linked to is never notified and leaves no ContactNotified eventImplemented
TC-608go testPositiveA restart re-adopts a RUNNING or AWAITING_INPUT e2e card from the job id in its reason and never starts a second jobImplemented
TC-609go testNegativeA job that flaps between waiting and running more than five times fails the card with qa-job-flapping and sends one notice for the jobImplemented
TC-610go testPositiveAn approval given in the last interval before the cap is seen: the job's last poll is read before the cap is appliedImplemented
TC-611go testNegativeGAOS_QA_APPROVAL_WAIT_HOURS has an upper bound of 720 hoursImplemented
TC-612go testNegativeThe QA tool's report cannot override an operator's move, and the runner's walk never passes through DONE, FAILED or CANCELEDImplemented
TC-613go testNegativeAn http gateway link is allowed only to a private address unless GAOS_WA_ALLOW_HTTP=any, checked on every connectionImplemented
TC-614go testNegativeThe status always says unencrypted for http and says no product is linked, and the boot group check sends no credential with no product linkedImplemented
TC-615go testPositiveAn approval notice goes to the pinned group and never to the committer's contactImplemented
TC-616check-stacks.shPositiveProd passes the WhatsApp http switch, the WhatsApp product list, the review-alert findings-over-http switch (D-131) and the QA approval wait from the deploy shell, empty by default, and never hard-codes the http switch to 1 or any, nor the findings switch to 1Implemented
TC-617go testNegativeA GitHub token file ending in blank lines is accepted and its token carries no surrounding whitespaceImplemented
TC-618go testPositiveEvery way GAOS gives up on a job (work timeout, approval timeout, flapping) cancels it at the QA tool exactly once and fails the cardImplemented
TC-619go testPositiveAn operator canceling the card cancels its QA job once, and never againImplemented
TC-620go testNegativeA failed cancel call never keeps the card from endingImplemented
TC-621go testPositiveThe cancel call speaks the agreed route, a job the QA tool no longer knows is not an error, and a 500 isImplemented
TC-622check-stacks.shPositiveEvery key the landing page marks as translatable has an Indonesian entry, the dictionary holds no unused entry and no key twice, and the page declares at least 100 keysImplemented
TC-623check-stacks.shPositiveEach figure the landing page prints — vertex, edge, document and total graph types, and event types — equals the count taken from the schema files and the event catalogImplemented
TC-624go testPositiveThe Auto-fix view answers 200 with no-store on both view routes; its five tiles count 1 draft, 0 ready, 1 merged, 2 awaiting triage and 1 card waiting for a person, the dispatch tile reads 1 / 3 fix and 0 / 10 triage, and the table shows the state chips, difficulty badges, the noopener GitHub link, the age with its absolute time, WhatsApp sent and the blocked card's reason in words.Implemented
TC-625go testNegativeProduct, state and difficulty narrow the table and stay in the links and the poll URL; a filter that matches nothing says so and offers Clear filters; a value outside the vocabulary or an unknown product is ignored; the 30 s poll answers one #afLive oob fragment and never the sheet; signed out it answers 401.Implemented
TC-626go testPositiveopen=<id> renders the drawer with the before and after as escaped text, the changed paths with line counts (4 of 40 code, 5 of 120 test, 2 of 3 files), the day's dispatch numbers and a timeline from the events; the close link drops open and keeps the filters; code from the reply is never printed; a record with no reply and no defect still renders.Implemented
TC-627go testNegativeA product with auto-fix off says so with the reason and where to turn it on; a product that is on but has lost the write token reads 'On, not ready'; a spent cap reads 'Fix cap 1/1 until 00:00 UTC'; a dead GitHub client or a failing poll is announced with its age.Implemented
TC-628go testNegativeA hostile title, before and after, a failure excerpt, a triage reason, packet text and a token-shaped string never appear raw on the page, the drawer or the poll: markup is escaped, bidi controls are stripped, a detector hit is withheld, and the excerpt and context are never read.Implemented
TC-629go testPositiveThe view and the Integrations view show the kind of the write token (fine-grained, classic (broad), not configured) with its tone and never the token.Implemented
TC-630go testNegative502 records render one page of ten rows and say 'Showing 1–10 of 502' (D-097); Thai, Japanese and ZWJ emoji text survive, a right-to-left override does not, a title is cut at 200 runes; an empty store shows the no-defect state with zero tiles and no placeholder; defects with no pull request say what happens next.Implemented
TC-631go testNegativeThe defect:triage, defect:easy, defect:medium and defect:complex labels are in the closed vocabulary, the scheduler never dispatches a card carrying one, SetTaskLabel and the label route refuse them with 422, and a planner can still plant them while a pr-review label is accepted.Implemented
TC-632go testPositiveDefectReported, DefectTriaged, DefectStateChanged, FixPROpened, FixPRStateChanged and AutoFixConfigured are in the closed event catalog, are written by the store paths that own them, and carry no defect text or address.Implemented
TC-633go testPositivematchGlob answers the table of pattern and path pairs: a single star stops at a slash, a double star crosses it, and a literal matches only itself.Implemented
TC-634go testNegativeThe built-in forbidden paths (CI workflows, dependency manifests and lockfiles, dotfiles, top-level files) are refused, an ordinary source file is not, and a product's own forbidden glob applies.Implemented
TC-635go testNegativePOST /api/v1/products/{id}/qa/defects applies the good items and lists the rejected ones with a reason, refuses an unknown field and a source of pull with 400, and answers 404 for another product.Implemented
TC-636go testNegativeA body over 256 KiB and a request over 50 items are both refused with 413 and the limit named.Implemented
TC-637go testPositiveReporting the same defect again answers 200 with the item unchanged, plans no second card, writes no second DefectReported and only moves lastSeen.Implemented
TC-638go testNegativeFifty new keys per product per UTC day are accepted, the fifty-first is rejected defect-limit, a repeat past the limit is unchanged, and the next day starts again.Implemented
TC-639go testPositiveAn xpass report marks the defect fixed, cancels its open triage card with a TaskMoved naming the rule, writes one DefectStateChanged and does nothing the second time.Implemented
TC-640go testPositiveA fail after a fix finds the old record by its case id, reopens it as generation 2 flagged as a regression, plans a new triage card, and the regression's fix card is born blocked not-easy.Implemented
TC-641go testPositiveAn xfail report for a case supersedes the open fail record: that record is closed with supersededBy set, its card is CANCELED, and a later fail leaves the xfail record unchanged.Implemented
TC-642go testNegativeThe failure excerpt is kept on the record and nowhere else: no event and no card title carries it or the defect title.Implemented
TC-643go testNegativeUntrusted fields lose bidirectional, zero-width and control characters but keep their words, and an excerpt that matches a secret detector is withheld and replaced in the packet by a sentence saying so.Implemented
TC-644go testPositiveOpen defect cards are not counted against the pull-request cap: a pr.opened beside five open defect cards plans its two cards.Implemented
TC-645go testNegativeA defect triage card is moved to READY by the pass and is never offered to the scheduler for dispatch.Implemented
TC-646go testPositiveThe store's close method closes a defect by id or case id, refuses a record of another product as not found, and never lets an address reach an event.Implemented
TC-647go testNegativeA failing code search is an error, retried, and blocks the triage card as search-failed; an empty search is a built context with no files, not an error.Implemented
TC-648go testNegativeThe triage context never fetches a path the rules refuse, stays within the file, byte and search limits, and lists the best-ranked file first with its blob sha.Implemented
TC-649go testPositiveThe triage context is built without the store lock: GitHub is called for the head, a search and a file while the lock is free.Implemented
TC-650go testNegativeA reply with a missing, malformed or out-of-vocabulary gaos-triage block is a triageError with its code, the last of two blocks wins, and a missing verdict fails the card triage-missing and leaves the record open.Implemented
TC-651go testNegativeAn easy verdict is re-checked against the rules; a clean one plans a PENDING defect:easy fix card, each failing case is downgraded to medium with its code and a BLOCKED not-easy card, the triage card ends DONE, and a second verdict is refused.Implemented
TC-652go testPositiveFix cards are born blocked or ready by kind: an e2e defect, a defect with no repository and a verdict naming a repository the product does not own each get their own state, and the card key round-trips through parseDefectCardKey.Implemented
TC-653go testNegativeThe triager's packet is one fenced data part, its contract asks for a gaos-triage block, and a complex verdict plans a blocked card and sends a notice.Implemented
TC-654go testNegativePOST /products/{id}/autofix is refused with 422 without the write token or the preconditions, stores nothing when refused, accepts a valid configuration and switching off, and its AutoFixConfigured event names the alias and the token kind only.Implemented
TC-655go testNegativeThe configuration route answers 403 with no admin list, a missing file, a world-readable file or an unlisted account, and 200 for a listed one; the close route answers 404 for another product's record and needs a signed-in operator.Implemented
TC-656go testNegativeUnder every GAOS_RUNNER mode, including on, the scheduler only readies a defect card and starts no run for it.Implemented
TC-657go testPositiveAutoDispatch writes the TaskMoved and the stamped task through the ArcadeDB path, and a read-only store rejects it.Implemented
TC-658go testNegativeThe fix cap counts dispatches: one card goes, the pass over the cap dispatches none and leaves the second card READY unstamped, and the next UTC day dispatches one.Implemented
TC-659go testNegativeEach gate AutoDispatch shares with dispatchNow (the runner off, BR-56; readiness below the floor, BR-07; one live turn per product, BR-38; an unfinished prerequisite; the egress pass, BR-32) rejects the automatic dispatch, leaves the card READY (BLOCKED for the egress pass) unstamped and sends no turn; a published Blueprint the workspace does not hold is a BR-39 rejection.Implemented
TC-660go testNegativeWith the product's auto-fix switch off a pass dispatches nothing and writes no move; once it is on, the same pass dispatches one.Implemented
TC-661go testNegativeA medium or complex fix card is BLOCKED not-easy and no pass ever dispatches it.Implemented
TC-662go testNegativeA medium card a person moved by hand ends in REVIEW with no GitHub request, no pull-request record and no notification, and a card under a switched-off product ends the same way.Implemented
TC-663go testNegativeRelabelling a defect card is rejected, the card ends in REVIEW, and nothing reaches GitHub or the group.Implemented
TC-664go testPositiveThe fix branch is cut from the repository's default branch unless the product names a base branch, which is read first and validated; a malformed one is refused.Implemented
TC-665go testNegativeA fix whose path is absolute, climbs out, is forbidden or is otherwise bad is refused as fix-bad-path, and a good fix parses into a plan.Implemented
TC-666go testNegativeAn edit whose find text is missing or occurs more than once, or two edits of one file, are refused.Implemented
TC-667go testNegativeA new file that already exists blocks the card with BlockLimits and makes no GitHub write.Implemented
TC-668go testPositiveChanged lines are counted by a Myers diff over the table of before and after texts.Implemented
TC-669go testNegative40 non-test and 120 test changed lines are allowed and one over either cap is refused.Implemented
TC-670go testNegativeIf a file's blob sha moved since the triage the card is BLOCKED base-moved and no GitHub write is made.Implemented
TC-671go testNegativeEvery tree entry the write client sends has mode 100644, and createTree refuses a symlink entry.Implemented
TC-672go testNegativeThe pull-request body holds no bidirectional or zero-width character.Implemented
TC-673go testNegativeA repository whose CI runs secrets on a pull request (including pull_request filters against the base branch) blocks the card ci-secrets with no GitHub write, and a harmless workflow lets the card finish.Implemented
TC-674go testNegativeA branch that already exists and is not ours blocks the card branch-exists and is never used, moved or deleted, while a stale branch of ours is adopted. Amended by D-112: a revision fast-forwards an existing head branch through updateRef only (TC-946, TC-949).Implemented
TC-675go testPositiveAfter a crash the resumed run adopts the existing ref and pull request by the commit trailer, creates no second ref or pull request and deletes only the first run's failed branch.Implemented
TC-676go testNegativedeleteRef deletes only a branch this run created under gaos/fix-, never an adopted one, and never reaches GitHub for any other name.Implemented
TC-677go testNegativeThe pull request is a draft from the fix branch into the base, GitHub sees no merge, update or ready call, the default branch never moves, one comment and the labels are written, and a GitHub that refuses drafts blocks the card with no fallback. Amended by D-112: no ref is moved except a revision’s fast-forward (TC-946).Implemented
TC-678go testNegativeThe body fills the template slots, fences agent text with a fence longer than any run of backticks in it, does not expand text that looks like a slot, and renders the default template.Implemented
TC-679go testNegativeThe summary is one safe line of at most 72 characters with @ rendered as (at) and a default when empty; the commit subject, the branch and the generation-3 branch follow from it, and a long slug is cut.Implemented
TC-680go testNegativeThe WhatsApp line for an opened pull request is exactly the expected text and carries no code or defect text; the complex notice is its own text.Implemented
TC-681go testPositiveThe poller moves a record through ready, back to draft, merged (defect fixed) and closed unmerged (a new person-only blocked card, generation plus one), writes one event per change and none for an unchanged pull request, and never polls or re-plans a final record.Implemented
TC-682go testNegativeA failing read backs off without a hot loop, bounded, and recovers; the read schedule is nothing before 5 minutes, then regular, hourly after a week and none after 30 days.Implemented
TC-683go testPositiveExcerpts older than 30 days are cleared and younger ones kept, with an event, once per UTC day.Implemented
TC-684go testPositiveA poller state change and its events are written to ArcadeDB together, and a cleared excerpt is persisted.Implemented
TC-685go testPositiveThe ArcadeDB store writes a defect with its planned card in one batch, carries autoAt on the Task upsert, upserts the FixPR, writes a stored context once and the configuration on the Product record.Implemented
TC-686go testPositiveThe in-memory store and the ArcadeDB store give the same answer to the same defect operations.Implemented
TC-687check-stacks.shPositiveProd mounts the auto-fix write token and admin list read-only, never passes the write token as an environment variable, and takes the classic-token switch from the deploy shell, empty by default and never hard-coded.Implemented
TC-688rebuild-restart.shNegativeA prod tag deploy refuses, with a bad line, when prod.pr-github-write-token, prod.pr-autofix-admins or prod.pr-unit-results-auth (D-106) is missing, as it does for the four older prod.pr-* files. Since D-118 the two tracker files are no longer required; the profiles folder is ensure-trackers-dir.sh’s (TC-1022).Implemented
TC-689go testPositiveThe QA tool's answer sheet gives its request a time limit and says, in every state in which Send answer is off, why and what to do: pick an answer, write option 4, wait, or try againImplemented
TC-690go testNegativeThe ?v= on app.css, app.js and live.js is the static files' content fingerprint, rendered by {{asset}} and never hand-written, so a change to a static file reaches browsers that cached the old one for a week (TestStaticAssetsAreVersionedByTheirContent; amended in v0.85.1, it compared the ?v= with the product version)Implemented
TC-691go testPositiveA ready defect card that auto-fix does not dispatch is logged with the gate's own sentence, once per card and reasonImplemented
TC-692go testPositiveThe triager's source slice orders hand-written Go source before tests, and both before generated files, request samples and documentsImplemented
TC-693go testNegativeAn auto-fix dispatch the egress pass refuses returns, and a later mutation on the ArcadeDB store still completes: the store no longer waits on its own write lockImplemented
TC-694go testNegativeAn operator's board move to Working that the egress pass refuses returns, and a later mutation still completesImplemented
TC-695go testNegativeA fetched source file that holds a secret-shaped string is left out of the triager's slice, so the egress pass does not refuse the whole triage over itImplemented
TC-696go testPositiveThe triager's source slice orders files by the operation that found them, the defect's own (first) operation first, then by search positionImplemented
TC-697go testPositiveWhen files compete for the slice's byte budget, the one that implements an operation (a func named for it) is kept over one that only mentions itImplemented
TC-698go testPositiveThe CI-secrets check honors a workflow's paths and paths-ignore filters against the files the fix changes: a workflow the fix cannot trigger no longer blocks it; unknown files and negations stay conservativeImplemented
TC-699go testNegative and positiveA new product's id is one past the highest p-<n> in use, not the product count plus one, so an id freed by a deleted product is never handed out again; ids of another shape are ignored.Implemented
TC-700go testNegativeThe Pull requests rows are filled, never rewritten: empty fields only, kind, product and task never change, an unowned or unlisted repository is refused, an invalid branch name is droppedImplemented
TC-701go testNegativeA review event writes its row (also on a repeated event), a merge event writes none, and a pull request that is already a fix record gets no review rowImplemented
TC-702go testPositiveReview rows are back-filled once from the cards that already exist when the release starts, and a second back-fill writes nothingImplemented
TC-703go testNegativeA QA-tool pull request of a repository the product does not list as an automation repository makes no row and is tried onceImplemented
TC-704go testNegativeA QA job's page is a link only on the configured QA host (https, no user info, no query or fragment, the port included, an empty origin refuses); a pull request url is parsed strictlyImplemented
TC-705go testPositiveA QA row is written once, on the final poll, with the job, the case and the validated link; a job adopted after a restart has no case and no linkImplemented
TC-706go testPositiveOne poller fills review rows from GitHub and back-fills the base of a fix record whose state did not change, with no event; an invalid base is never storedImplemented
TC-707go testNegativeThe poller makes no GitHub read for a repository the product no longer follows, nor for a row older than 90 daysImplemented
TC-708go testNegativeA fix record that a retarget replaced, or has pending, never moves the defect: close and merge in each case, a merge while pending lands the fix and blocks the card, a dead card gives today's transitionsImplemented
TC-709go testPositiveThe PullRequest vertex, its prune and the four new properties of Defect and FixPR reach the graph in the transaction of the changeImplemented
TC-710go testPositiveThe view lists the three kinds with their task link, branch and QA link, the Open and Merged tabs, the kind and product filters, one page of ten rows, the empty states, the poll without the drawer and the drawerImplemented
TC-711go testNegativeGitHub-controlled text is escaped or withheld, a link is built from the validated owner, repository and number and never from a stored URL, a non-https QA link is not renderedImplemented
TC-712go testNegativeThe drawer's retarget block says, for each condition in the design's order, why the button is off and how to turn it on, ties the hint to the control, offers only the other allowed bases and makes no GitHub callImplemented
TC-713go testNegativeEvery refusal of the retarget route has its status and sentence, in order, and changes nothing: no session, not an admin, a bad base, no record, a head GAOS did not create, closed, retargeted, unknown or equal base, unowned, no read client, absent or unreachable branch, a defect not fixing, a live or blocked card, a base not allowed, auto-fix off, three retargets; a cross-site postImplemented
TC-714go testPositiveA retarget raises the defect's generation, keeps its verdict, plans one next-generation fix card and records the actor, the rule and the reason in exactly one TaskPlanned and one DefectStateChanged; the old record is not marked yet and the branch is checked onceImplemented
TC-715go testNegativeEight concurrent retarget posts give one success and seven conflicts: the gates are repeated under the store lockImplemented
TC-716go testPositiveThe retarget's fix reads the new base's head, opens its draft pull request against it on a next-generation branch, links both records, posts the retargeted comment, closes the old pull request with the superseded comment saying GAOS closed it (D-108) and the retarget notice, and closing the old pull request afterwards leaves the defect aloneImplemented
TC-717go testNegativeThe previous fix returns to the agent only under an untrusted-data heading, stripped of backticks and angle brackets and cut per field, with the instruction outside it; a first fix card has noneImplemented
TC-718go testNegativeA secret-using workflow that runs only for pull requests into the new base blocks the retarget card, which would not run for the product's own base, and opens no pull requestImplemented
TC-719go testNegativeA failed source search for a retarget blocks the fix card itself so the loop stops retrying, and leaves the finished triage card aloneImplemented
TC-720go testNegativeA base removed from the allowed list opens nothing even if the card is unblocked, a turn started anyway ends in review without a pull request, and the override is cleared when the defect is closed and by a regressionImplemented
TC-721pustaka (go test)PositiveServed pages carry the pre-paint theme snippet once, before </head>, never on assets, underscore pages or partials, never request-derived, and never lost to a 304 (TestHeadInjection)Implemented
TC-722go testNegative and positiveEvery script GAOS writes under static/ pairs its brackets, so a file the browser would refuse to parse — as board.js was from v0.44.0, silently leaving the server board on screen — fails the suite; the guard itself must refuse a function with no closing brace and accept valid JavaScript.Implemented
TC-723go testNegative and positiveA product's slug is its name in a URL: assigned once, unique, never shaped like another product's id; the back-fill keeps a valid slug, replaces a malformed or duplicate one, gives the bare slug to the lower id, is deterministic, and as a mutation emits one RecordUpdated.Implemented
TC-724go testNegative and positiveThe id form of a product URL answers 302 to the slug form with the mount prefix and none of the query; a product with no section redirects to its first; an unknown section is 404 before any redirect is written.Implemented
TC-725go testPositiveEach of the eleven page routes returns the whole document for its view, with its title and no-store, and a product section's pane carries the product and the tab; there are twelve page patterns.Implemented
TC-726go testNegativeSigned out, a deep URL is refused with 401 and the sign-in page: the same bytes for an existing product, a missing one and the home page, naming no product.Implemented
TC-727go testNegative and positiveSigning in on a deep URL answers 204 with HX-Refresh and the session cookie and writes no address into a header; on the home page or with no current URL it answers as before; a wrong password is still refused.Implemented
TC-728go testNegative and positiveA navigation pushes the address, a changed query on the same view replaces it, an unchanged one and a mutation leave it, with and without the prefix; a background refresh and a missing product set no header; every sheet response starts with a non-empty title; the sensitive views are no-store.Implemented
TC-729go testNegativeOnly the listed functions call buildBO; every other handler that renders the sheet goes through sheet(), which sets the address.Implemented
TC-730go testNegativeEvery link that carries hx-get carries the page address of the same view in href, never a fragment route or an absolute path, and the navigation is made of such links.Implemented
TC-731go testNegativeAn unknown product or section answers 404 with the whole page, the product list and a toast saying which; a path with no route is a plain 404.Implemented
TC-732go testNegativeThe page has exactly one htmx-config element and it turns the history cache off and reloads on a history miss.Implemented
TC-733rebuild-restart.shNegative and positiveAfter a deploy, a page three levels below the mount is refused signed out with 401 and its body carries the base of the mount.Implemented
TC-734go testNegative and positiveAgainst the real graph, a boot gives a slug to a product that has none, one whose stored slug is malformed and one that holds another product's, each with one RecordUpdated; the lower id keeps a shared slug; the next boot reads them back and writes nothing. ArcadeDB only.Implemented
TC-735go testNegative and positiveA board page holds at most thirty cards a column by default and three hundred at most, counts what each column matches, and reads its window from bounded, well-formed values only.Implemented
TC-736go testNegativeA column opened deeper starts with the cards it showed before, leaves the other columns alone and holds no card twice.Implemented
TC-737go testNegative and positiveEach filter narrows the cards and the counts; the search text is read from its header only; the state header fills what the URL does not name and the URL wins when it does, also empty; a form body is never read; a value the product does not offer is cleared.Implemented
TC-738go testNegative and positiveDone and Canceled open on the card that changed last and every other column is in rank order; a label is not a state change and lifts no card.Implemented
TC-739go testNegativeA page computes one timing per card it returns and none for the rest, with thirty tasks and with three thousand, on the board and in the table.Implemented
TC-740go testNegative and positiveThe single-card read returns the card the board holds, and ErrNotFound for an unknown card or another product's.Implemented
TC-741go testNegative and positiveA view encodes to a query string that parses back to the same view; the default view encodes to nothing and the default sort has one spelling; a table page round-trips (D-097); the window and the search text are never in it.Implemented
TC-742go testNegative and positiveThe Board tab renders at most thirty cards a column with its count and a Show more, takes the whole width without the side panel, and shows nine columns and No tasks yet for a product with none.Implemented
TC-743go testNegative and positiveShow more answers with that one column, sixty cards deep and out of band; at three hundred the button is gone and the column says so.Implemented
TC-744go testNegative and positiveThe Board's route sends no column the browser already has, exactly two after a move, all nine without a rev; a running card's clock is not in the hash and a printed field is; hiding empty columns changes them; with the client board on screen it sends the count line only.Implemented
TC-745go testNegativeThe Board's route replaces the address when the view changed and the browser is on that Board, a refresh included, and sets nothing when the operator has left; it never pushes, is no-store, and never writes the window or the search text into the address.Implemented
TC-746go testNegative and positiveA move is answered with the two changed columns under the browser's filter, or the table on the page it was on (D-097), with the toast and no address header; a label still answers with the sheet in the same view and search; the Board link and Clear filters win over a stale state.Implemented
TC-747go testNegative and positiveThe table shows ten rows a page and page 2 continues page 1, sorts by its header links in either direction, a sort starts on page 1, and renders no board beside it (TestTheTableSortsAndPages, D-097).Implemented
TC-748go testNegativeThe search box has no name and the form cannot be submitted natively, so nothing can write the search text into a URL; no Board route reads a q parameter; the script sends the text in its header.Implemented
TC-749go testNegative and positiveWithout paged=1 the board document is what it always was, whatever else is asked; with it, each column holds its depth, the document has counts and totals and no lanes, is no-store, and takes its view from the header or the URL.Implemented
TC-750go testNegative and positiveNo product tab but the Timeline's reads the whole event stream, the Timeline prints one page of it, and every tab still shows its count; a sequence diagram is drawn for the Diagrams tab only.Implemented
TC-751check-workspace.shNegativeNo tracked or untracked-not-ignored file holds a routable IPv4 address, and every ToC part is valid JavaScript (section 8)Implemented
TC-752pustaka (go test)Negativepustaka check rejects a ToC part with two entries and no comma between them (TestCheckRejectsAMissingCommaBetweenEntries)Implemented
TC-753dashboard (go test)Negative and positiveThe pager reads a page parameter to its normal form, clamps a page that is not there, and windows its links: page 1, the last, the current ±1, a single skipped page shown as its number (TestPaginateClampsAndWindows).Implemented
TC-754dashboard (go test)Negative and positiveThe Board table shows ten rows a page; a page that is not there is clamped and the address written is the clamped one; every pager link is a page address and the Board's own route, synced with the filter bar; a sort starts on page 1 (TestTheBoardTablePagesByTen).Implemented
TC-755dashboard (go test)NegativeA move answered for a page that no longer exists answers the last page that does, with no pager for a single page (TestTheBoardPageClampsAfterAMove).Implemented
TC-756dashboard (go test)Negative and positiveStories and Agents show five a page; a far page is clamped and its address is the clamped one; a product heading shows only with an item on the page; the address carries the page and nothing else from the request (TestTheListPagesPageByFive).Implemented
TC-757dashboard (go test)Negative and positiveThe Archive pages its two tables on their own keys; the prune confirmation lists and carries every card it takes, and at most the hundred oldest (TestTheArchivePagesEachTableAndListsWhatPruneTakes).Implemented
TC-758dashboard (go test)Negative and positivePull requests and Auto-fix show ten rows a page; a row's link, the drawer's close and the poll keep the page, a state tab does not; a bad or far page is clamped before any link is written (TestThePRAndAutoFixTablesPageByTen).Implemented
TC-759dashboard (go test)Negative and positiveThe wizard opened with lock=1 shows the product instead of the picker through every step and submits with Create tasks; without the lock, or for an unknown product, the picker shows (TestTheWizardLocksTheProduct).Implemented
TC-760dashboard (go test)PositiveThe Board offers New task, opening the wizard locked to its product, and its help panel says what starts a task for each runner state: off, no AI vendor, manual and on (TestTheBoardExplainsTheRunnerAndOffersNewTask).Implemented
TC-761dashboard (go test)Negative and positiveSync record to graph is in the title row of the record tabs only, and the Board does not repeat Create workflow beside New task (TestSyncRecordShowsOnlyOnRecordTabs).Implemented
TC-762dashboard (go test)PositiveThe Timeline and QA by epic show ten rows a page, the Timeline's page is in its address, and the epic heading counts them all (TestTheTimelineAndQAPanesPageByTen).Implemented
TC-763dashboard (go test)NegativeEvery integration's status chip follows the fixed rule table: a broken, unusable or unencrypted state is never green, an old give-up clears, and the pull-request flow is never Connected without the GitHub client and the Brain Town reader (TestIntegChipsFollowTheState).Implemented
TC-764dashboard (go test)PositiveEach of the six integration headings and the three pull-request rows carries one status chip from the closed set of labels, the state's reason stays in a State row, and no heading carries its state after a middle dot (TestTheIntegrationsViewColoursEveryHeading).Implemented
TC-765dashboard (go test)Positiveai-manager, the QA tools and the Machine API are marked Mandatory; Brain Town, its reader and the pull-request flow Optional; the two lists carry neither (TestTheIntegrationsViewMarksMandatoryIntegrations).Implemented
TC-766dashboard (go test)PositiveEach of the six info buttons opens exactly one popover of its own, which says what the integration does, when connected and when disconnected; the Machine API's names the staging callback's own credential (TestEveryIntegrationInfoButtonOpensItsPopover).Implemented
TC-767dashboard (go test)Negative and positiveA merge finishes its pull request's review card when it waits in Review; a running review is left to its run, a review held for a secret is never finished, and a review that had not started is still canceled (TestMergedPRFinishesItsReviewCard).Implemented
TC-768dashboard (go test)Negative and positiveWhen the cap refuses a merge's unit-test card, the merge's cancel and finish moves are still returned for the store to commit and the Result says Capped; with nothing to move the cap is the old refusal (TestMergeMovesSurviveTheCap). Amended by D-120: a merge is never refused by the cap, so its card is planned.Implemented
TC-769dashboard (go test)Negative and positiveA review that was running when its pull request merged, and reached Review after the row went final, is finished by the poller's next pass; a secret-held review is not (TestFinishMergedReviewsSweep).Implemented
TC-770dashboard (go test)Negative and positiveThe reader's cursor has one writer: a filtered frame behind a queued event never passes it, the cursor never moves back, a retry drops what the ended session queued, and a full channel ends the session instead of dropping a frame (TestConsumerCursorSingleWriter).Implemented
TC-771dashboard (go test)Negative and positiveA network error, a 5xx, a 429 or a failed products read is retried, a GitHub 403, 404 or 422 is acknowledged at once; after five retries the event is skipped, logged and shown on the Integrations row (TestFlowOutcomeClassesAndRetryBound).Implemented
TC-772dashboard (go test)PositiveA capped merge's moves reach ArcadeDB in the merge's own transaction, against the recording fake graph (TestArcadeMergeMovesPersist). Amended by D-120: the merge at the cap plans its card; its moves still reach the graph.Implemented
TC-773dashboard (go test)Negative and positiveA clients-file line without a sixth field means inbox, a tasks line holds tasks only, an unknown capability skips the line; a tasks-only client may share a product with the QA token, a client holding inbox may not; the QA tools hold inbox and never tasks; a clients file others can read is refused (TestClientsFileCapabilities).Implemented
TC-774dashboard (go test)Negative and positiveThe task routes answer 401 without a token, 403 to an inbox client, to the QA token and to the admin token planning, 404 on another product, and 201 to a tasks client on its own; a tasks client is 403 on the inbox, and the QA token still reaches it (TestTaskRoutesCapabilityMatrix).Implemented
TC-775dashboard (go test)PositiveA pull-request kind planned by the API is Brain Town’s card — key, id, role, title, labels and Pull requests row — emits no pull-request lifecycle event, and records its owner, ref and time; an automation run carries its product, client, code and id in its key (TestPlanAPICardMatchesBrainTown).Implemented
TC-776dashboard (go test)Negative and positiveA request for a pull request Brain Town already planned adopts its card: one read grant per client, at most eight, the owner’s never evicted, and the label, dispatch flag and owner unchanged; the adopter may read it (TestAPICardAdoption).Implemented
TC-777dashboard (go test)Negative and positiveThe same request twice answers the same card without a second GitHub call; the same externalId for another request is 409 externalId-reused; a natural key planned during the GitHub check is adopted under the lock (TestAPICardIdempotency).Implemented
TC-778dashboard (go test)NegativeEvery refusal of POST tasks: invalid-kind, invalid-field, repo-not-owned, a title field, a draft, a fork, a stranger, a review of a merged pull request, unit tests of an unmerged one, github-off for every pull-request kind, qa-off and runner-off (TestAPICardRefusals).Implemented
TC-779dashboard (go test)Negative and positiveA client stops at GAOS_API_MAX_OPEN and GAOS_API_DAILY (canceled cards count), a product holds one open run, and a client at its cap never makes Brain Town skip on GAOS_PR_MAX_OPEN (TestAPICapsKeepThePRFlow).Implemented
TC-780dashboard (go test)Negative and positiveA client reads and cancels only its own cards, the client name compared whole; the reason is mapped to held, blocked, failed or empty; a natural-key card is not cancelable; the owner cancels its run (TestAPIGetAndCancelScope).Implemented
TC-781dashboard (go test)PositiveThe dispatch answer, per runner mode, unattended list, labels and flag: scheduler, auto, operator, manual-review or qa-tool (TestAPIDispatchAnswer).Implemented
TC-782dashboard (go test)Negative and positiveThe unattended start claims only a listed product’s autoDispatch card under manual, counts only autoDispatch cards toward its daily cap, stops for a manual label or an egress refusal, does nothing under on, and goes through the one dispatch function (TestAPIAutoDispatchClaim).Implemented
TC-783dashboard (go test)PositiveA specific automation run asks the QA tool for its own code, ALL asks for every case, and prKeyParts never reads a qa-run or bundle key as a pull request (TestQARunKeys).Implemented
TC-784pustaka (go test)NegativeThe tutorial page and its markdown download name the same four routes and six fields, and carry only placeholder hosts and product ids, no token literal and no container secret path (TestExternalTasksTutorialPair).Implemented
TC-785dashboard (go test)PositiveA test-planner card is readied by the scheduler: the role and its agent seat exist (TestTestPlannerRoleIsSeated).Implemented
TC-786dashboard (go test)PositiveThe Task upsert carries apiOwner, apiRefs, apiAt and autoDispatch, against the recording fake graph (TestArcadeTaskAPIFieldsRoundTrip).Implemented
TC-787dashboard (go test)Negative and positiveThe PR template parser over six fixtures: the ticked source, the code (a path-shaped one refused), the links (https://todo, hints and the pull request’s own link dropped, at most twenty, no duplicate), the QA notes (placeholders dropped, a credential held) and the QA-case line (TestParsePRTemplateGolden).Implemented
TC-788dashboard (go test)Negative and positiveThe bundle key rules: a self key for a row that links others, adopted by its links; a code supersedes the pr: key before planning; a late pull request joins through stored links; a planned bundle is final; a row nothing links joins none (TestApplyBundleLinks).Implemented
TC-789dashboard (go test)Negative and positiveA bundle is complete when every member is merged or closed, one merged, after the ten-minute grace; at most two open test plans per product, each bundle planned once; a member of an unplanned bundle survives the prune (TestBundleCompleteness).Implemented
TC-790dashboard (go test)Negative and positiveA product not listed gets no bundle; an unfollowed link is listed as a ref and never read; a stranger’s linked pull request never becomes a row; a followed linked pull request becomes a member (TestBundleScope).Implemented
TC-791dashboard (go test)Negative and positiveThe missing-code alert: (a) after ten minutes, (b) after sixty, one comment and one line, recorded and never repeated, naming no repository; another source ticked, a bundle member and a row polled before the release are never alerted (TestMissingTaskCodeAlertOnce).Implemented
TC-792dashboard (go test)Negative and positiveThe test planner’s packet part only reads the cache: empty gives the context-unavailable part and the claim refuses the card; cached, the claim admits it; the context is fenced with a fresh nonce (TestBundleContextBuiltOutsideTheLock).Implemented
TC-793dashboard (go test)Negative and positiveThe gaos-test-plan contract carries the DATA clause; an unknown epic, a bad enum and an invented case code are each dropped, more than twenty cases and a missing block are refused, and contractsFor picks the contract (TestTestPlannerContract).Implemented
TC-794dashboard (go test)Negative and positiveA plan the QA tool takes ends the card DONE with the counts and carries the code and the merged pull requests; a retry sends the same positional codes; a QA-tool error fails the card with one bundle:failure line (TestTestPlannerAfterRun).Implemented
TC-795dashboard (go test)PositiveA pr: line goes to the pull request author’s contact naming only the number, a bundle: line to the group, and both record a ContactNotified (TestNotifyPRRecipients).Implemented
TC-796dashboard (go test)PositiveThe PullRequest upsert carries taskCode, links, bundleKey, bundledAt, alerted and templateSeen, against the recording fake graph (TestArcadeBundleFieldsRoundTrip).Implemented
TC-797dashboard (go test)Negative and positiveAn operator who sets pr-review:manual or pr-review:needs-manual sends one line to the pull request author’s contact; the same label again or a return to auto sends nothing; a client’s manual review reaches the group naming the client, and adoption sends nothing (TestManualLabelSendsOneNotice).Implemented
TC-798dashboard (go test)PositiveA held review sends one review:needs-manual line whatever its severity and carries the secret-held reason; a high review calls the review alert only and sends no line through Notify (D-130) (TestHeldAndHighReviewsSendOneLine).Implemented
TC-799dashboard (go test)Negative and positiveA contact may opt into review:manual, review:needs-manual and pr:no-task-code; a review:medium contact does not get the manual kinds through the rank but still gets review:high by the rank match (since D-130 no high review is routed through it); an empty or exact list does (TestNotifyOnWantsManualKindsExactly).Implemented
TC-800dashboard (go test)NegativeAn unknown product, an unknown agent and a reset that names agents are refused; a save sorts and de-duplicates the ids and emits one RecordUpdated naming the actor's alias, never the address, with the first-save notice; a reset clears (TestSetAssignedRefusesAndRecordsTheActor).Implemented
TC-801dashboard (go test)PositiveOn ArcadeDB, a product's assignments survive a reopen and an untouched product reopens unconfigured (TestAssignmentsSurviveARestart).Implemented
TC-802dashboard (go test)PositiveA product whose assignments were never saved runs every PR-flow role and plans both cards of a pr.opened with no skip (TestNotConfiguredIsTodaysBehaviour).Implemented
TC-803dashboard (go test)PositiveThe Agents page shows assignment chips, filters by a validated product, says so for an unconfigured product, ignores an unknown product, and writes agents?product=<id>&page=<n> in the address and the pager (TestAgentsPageFiltersByProductAndPagesKeepTheFilter).Implemented
TC-804dashboard (go test)NegativePOST /agents/assign refuses no session and a non-admin (403), saves for an admin, ignores ticked boxes on reset, and refuses an unknown action (400) (TestAssignRouteIsAdminOnly).Implemented
TC-805dashboard (go test)NegativeOn a configured product a role with no assigned agent plans no card (Skipped unassigned:<roles>), cards planned before are left as they are, and the staging callback answers 422 unassigned naming no agent (TestUnassignedRoleGetsNoCard).Implemented
TC-806dashboard (go test)PositiveOn ArcadeDB, a pr.opened with every role unassigned is not an error, and its Pull requests row survives a reopen (TestGatedOpenStillWritesThePullRequestRow).Implemented
TC-807dashboard (go test)PositiveA merge on a product with no unit-test agent still cancels the pull request's unstarted cards, and a gated-out open still carries its row (TestMergeStillCancelsWhenUnitTestIsUnassigned).Implemented
TC-808dashboard (go test)PositiveThe reviewer sets severity:<level> before posting, also when the body is held or the post fails; an operator's correction replaces it, one per card (TestReviewSetsTheSeverityLabelBeforePosting).Implemented
TC-809dashboard (go test)PositiveThe severity facet lists the levels present in ladder order and the label facet none of them; medium+ is exactly medium, high and critical in the table and on the board; an unknown value is dropped; the sort is worst first, a card with none last both ways (TestBoardSeverityFilterSortAndMediumPlus).Implemented
TC-810dashboard (go test)PositiveThe kanban shows the severity chip once, the Board tab has the Severity select with Medium or worse, the table has Severity and Labels columns, and the JSON card keeps every label (TestBoardRendersTheSeverity).Implemented
TC-811dashboard (go test)NegativeAn unconfigured product only comments; a configured one requests changes for medium and worse with the dismissal line, which the hidden review marker follows (D-112); an own, unknown or unreadable author, an unknown own login or no reader comments only; APPROVE is refused (TestReviewEventBySeverityAndAuthor).Implemented
TC-812dashboard (go test)NegativeA low review plans one review defect (kind review, gen 1, be, triaged easy, the branch and pinned head) with a fixer card and three events, once per pull request; each §6.1 condition refuses alone; a burst of 10 plans the cap of 3; * is refused as a branch pattern; the QA intake refuses kind review (TestLowReviewPlansAReviewDefectOnlyWhenBounded).Implemented
TC-813dashboard (go test)PositiveOn ArcadeDB, a review defect with its branch and pinned head survives a reopen (the schema 19 regexp and properties) (TestReviewDefectSurvivesARestart).Implemented
TC-814dashboard (go test)NegativeA review fix is planned only at the head the reviewer read: a lost context, a moved head, an incomplete file list, a workflow change, unreadable files or a non-target repository plan nothing; removed files are never read (TestReviewDefectPinsTheReviewedHead).Implemented
TC-815dashboard (go test)NegativeEach of the ten review-fix refusals fires alone; the default branch is a shared branch; check point 1 blocks the card with its reason and closes the record before any model turn, and a second pass inside the throttle window makes no GitHub call (TestReviewFixRefusals).Implemented
TC-816dashboard (go test)PositiveA review fix opens one draft into the reviewed branch whose commit's parent is the reviewed head, posts the draft-fix line with the review client, fences the findings after the verdict; an edit outside the pull request's files, or a moved head at check point 2, blocks the card and creates no branch (TestReviewFixOpensADraftIntoTheReviewedBranch).Implemented
TC-817dashboard (go test)PositiveOnly a GitHub-confirmed merge closes a pending review fix; a base change closes the record and closes nothing on GitHub; GAOS's own review-fix merge plans nothing while a D-091 fix merge still plans its card; a closed draft closes the record with no new generation; a review fix is never retargeted (TestReviewFixLifecycle).Implemented
TC-818dashboard (go test)NegativeAn API card carries source:api and a bundle's test-planner card source:bundle, a Brain Town card neither; an operator cannot set a source label; the board's label filter matches the API card (TestCardSourceLabels).Implemented
TC-819dashboard (go test)NegativeA repository kind must name a repository of the product and be be or fullstack; the map replaces; the event names the actor, the kinds and both switches; the kinds form saves without touching assignment (TestRepoKindsAreSavedAndValidated).Implemented
TC-820dashboard (go test)PositiveRepository kinds and the staging-creates and auto-merge switches survive a reopen on ArcadeDB; an untouched product has none (TestRepoKindsSurviveARestart).Implemented
TC-821dashboard (go test)NegativeA staging run of a repository with a kind carries e2e-kind; a repository without one, and a pull request automation card, carry none; an operator cannot set the label (TestRunCardsCarryTheRepositoryKind).Implemented
TC-822dashboard (go test)NegativeThe capabilities are cached ten minutes, an error keeps the last set and a 404 is empty; an empty request keeps today's body; the kind is sent only to a tool that lists it, and a run never carries auto_merge (TestKindAndAutoMergeAreSentOnlyWithTheCapability).Implemented
TC-823dashboard (go test)PositiveWith no kind a staging deploy plans one run of every case, sends today's body even to a tool with every capability, and ends Done without a kind note (TestNoKindIsTodaysBehaviour).Implemented
TC-824dashboard (go test)NegativeEvery reason carries the job and the case; a job adopted after a restart keeps its case and the row it records names it (TestEveryReasonCarriesTheCase).Implemented
TC-825dashboard (go test)NegativeWith the switch off nothing is created; a be deploy creates the API case labelled be, a fullstack deploy the WEB case; a fullstack-only product creates its API case as be; a replay creates none; a key-breaking case code is refused; the runner reads the case from the key (TestStagingPlansCreatesForUncoveredCases).Implemented
TC-826dashboard (go test)NegativeAn open create, a pull request card with the case recorded, an open spec row (30 days), a merged one not yet implemented (14 days) and a closed one or a failed create (7 days) block a create; past each window it is planned, a retry as #2 (TestCreateBlockingRules).Implemented
TC-827dashboard (go test)NegativeTwo creates per deploy and four open; creates stay outside the pull-request cap and are never read as a pull request; GAOS_E2E_CREATE_MAX lowers the first (TestCreatesHaveTheirOwnCap).Implemented
TC-828dashboard (go test)NegativeThe staging callback answers 202 with the creates, 200 on a replay with none, 409 with the creates kept when the run is capped, and 422 when no qa agent is assigned (TestStagingAnswersCarryCreates).Implemented
TC-829dashboard (go test)PositiveOn ArcadeDB the creates planned beside a capped run, and the pull request's own cards, survive a reopen (TestCreatesPersistWhenTheRunIsCapped).Implemented
TC-830dashboard (go test)NegativeA finished create says its spec pull request is open with a link GAOS rebuilt and how it merges (enabled, refused with a bounded reason, or a person); a kind the tool could not be told is said last (TestCreateDoneReasons).Implemented
TC-831dashboard (go test)PositiveA QA spec row merged at its approved commit, its case implemented, plans one run of that case, never twice; the runner runs that case alone; the key is not a pull request (TestAMergedApprovedSpecRunsItsCaseOnce).Implemented
TC-832dashboard (go test)NegativeA spec merged at another commit, or with no approved commit recorded, plans no run; the row notes it and an event records it (TestAMergedUnapprovedHeadIsReportedAndDoesNotRun).Implemented
TC-833dashboard (go test)NegativeA merged spec whose case is not yet implemented waits; the catalog result that implements it plans the run; past fourteen days it plans nothing (TestAMergedSpecWaitsForTheCatalog).Implemented
TC-834dashboard (go test)NegativeOn a product with no qa agent assigned a merged spec plans no run and its row says so (TestAMergedSpecWithoutQARoleDoesNotRun).Implemented
TC-835dashboard (go test)NegativeAuto-merge is allowed only with the product switch on in the Working or Complete band; a create sends auto_merge only to a tool that lists it, false with the switch off (TestAutoMergeFollowsSwitchAndBand).Implemented
TC-836dashboard (go test)NegativeA job that reports its pull request before its pushed commit has the commit recorded when it comes, lower-cased; a malformed one is never stored (TestQaShaIsRecordedEvenWhenTheURLComesFirst).Implemented
TC-837dashboard (go test)NegativeGET spec-auto-merge needs the QA token, answers 404 for an unscoped product, and says allowed only with the switch on in a Working band (TestSpecAutoMergeRoute).Implemented
TC-838dashboard (go test)PositiveA QA spec row's approved commit, its note and when it became final survive a reopen on ArcadeDB (TestPullRequestReleaseBFieldsSurviveARestart).Implemented
TC-839dashboard (go test)PositiveThe protobuf codec round-trips varints, strings and nested messages, and skips an unknown field of every wire type (TestProtowireRoundTrip).Implemented
TC-840dashboard (go test)NegativeThe tracker client speaks the task-tracker contract against an in-test gRPC server: its paths, OK, not found (5), auth (7, 8, 16), invalid (3), unimplemented (12) and a malformed answer as unavailable, an oversized or two-frame answer never decoded, a deadline; the Basic header is sent and grpc-message is never logged (TestTrackerClientCalls). Changed by D-118: the contract’s paths and field numbers replace the private API’s.Implemented
TC-841dashboard (go test)NegativeA profile with ca.pem gives a TLS client to the pinned certificate, a private address with ca.pem is on over TLS, and the transport dials no address but the configured one (TestTrackerConfig). Changed by D-118: the settings are a connection profile, not environment variables; an IP literal and the certificate off loopback are still required.Implemented
TC-842dashboard (go test)NegativeAn auth refusal latches the breaker until the credential file changes or an hour passes; three unavailable answers open it for a minute, doubling to thirty; nothing is called while it is open (TestTrackerBreaker).Implemented
TC-843dashboard (go test)PositiveThe people directory pages ListPeople, keeps only verified logins, drops a login two people hold, counts usable numbers, keeps a stale directory on a failed refresh and empties on disable; the contract returns active people only, so no active filter is asserted (TestTrackerPeopleDirectory).Implemented
TC-844dashboard (go test)NegativeA third-party binding checks its kind and code, answers 409 for a second product enabling the same (connection, code) pair, emits ThirdPartyConfigured naming the connection, is admin-only, clears the validation cache and survives the Arcade store (TestThirdPartyBinding). Changed by D-118: the conflict is per pair, not per instance.Implemented
TC-845dashboard (go test)NegativeAn unknown, deleted, archived or other-product task code alerts once each, a row already alerted for a missing code is alerted again, a known code or an open breaker alerts nothing, and the cache spares a second call (TestTaskCodeValidationAlert). Changed by D-118: the task state is the contract’s TaskState.Implemented
TC-846dashboard (go test)PositiveA notice whose login has no contact reaches the tracker person; a contact that filters the kind out and e2e:approval go to the group; the alias is stored, never the number (TestNotifyLoginThroughTracker).Implemented
TC-847dashboard (go test)NegativeA DONE test plan sends bundle:planned to the task’s QA and writes one comment within 1500 characters ending in the marker; another product’s task or a pr: bundle writes nothing; case codes are filtered (TestTestPlanReadyAndWriteBack).Implemented
TC-848dashboard (go test)PositiveThe Integrations view shows the tracker block with its status order, the counts to everyone and the per-person table only to an auto-fix admin (TestIntegrationsShowTracker).Implemented
TC-849check-stacks.shPositiveProd mounts the tracker credential and pinned certificate read-only, never passes the credential as an environment variable, and takes the tracker address from the deploy shell, empty by default — retired 2026-12-04 in v0.78.0 (D-118): the three settings and their two files are gone; a tracker connection is a profile folder. Replaced by TC-1020 and TC-1021.Retired
TC-851dashboard (go test)Negative and positiveBR-64: a review row whose pr.opened planned no card (the daily cap) is first read by the poll, which marks it template-seen with its code before recording the check, so the missing-code alert reaches it after the grace; a row polled before the release stays unseen and is never alerted (TestThePollerReadsTheTemplateOfARowItNeverPolled).Implemented
TC-852dashboard (go test)NegativeBoth ArcadeDB clients share one pool that drops an idle connection before ArcadeDB’s own 30-second limit, so a POST never goes out on a connection the server has just closed (TestArcadeDropsIdleConnectionsBeforeTheServer).Implemented
TC-850dashboard (go test)NegativeA QA client without GAOS_QA_URL is not usable: it answers no request, lists no capability and never dereferences its missing base URL, so the runner is not started and the API answers qa-off (TestAnUnconfiguredQAToolIsNeverCalled).Implemented
TC-853dashboard (go test)NegativeThe unit-check setting is saved with its defaults and a RecordUpdated naming the actor, keeps the stored no-ci day, and refuses a cap outside 0 to 20, a bad or ninth base, a bad check name or workflow path, and turning it on without auto-fix, a fixer and a triager, or a fix-target repository; the read-only handle refuses every write (TestUnitChecksAreSavedAndRefused)Implemented
TC-854dashboard (go test)PositiveA watch is planted once per merge commit with no event, refused without a 40-hex commit, an owner/repo, a base or a known outcome, capped at 200 pending per product; its delay and prune apply, and on ArcadeDB the watches, the prune and the setting survive a reopen (TestUnitWatchIsPlantedOnceAndPersists)Implemented
TC-855dashboard (go test)PositiveA merge of a watched fix-target repository into a unit base plants one watch on the merge commit decoded from a recorded GitHub body and plans no agent unit-test card; a transient re-read retries, a permanent one, a missing merged_at or a bad commit are recorded as skipped, a feature branch plants nothing, an extra base needs no default read, an unreadable default plants nothing (TestAMergeIntoAUnitBasePlantsAWatchNotAnAgentCard)Implemented
TC-856dashboard (go test)PositiveA merge keeps today’s agent unit-test card and plants no watch when unit checks are off, the repository is an automation repository or not listed, or another product merged; a watched repository’s plan says unit-checks in its skipped reason (TestOtherMergesKeepTodaysUnitCard) Amended by D-121: an automation repository’s merge plans no unit-test card at all.Implemented
TC-857dashboard (go test)PositiveA failing check files a unit defect keyed by repository, base and a hash of its failing set, with a held triage card; the same set again follows the newer merge, a different set updates the one open defect of that base (the union, newest first, same card), a failed build is its own defect, and the store refuses failing tests the poller should have screened out (TestUnitDefectRecordDedupAndUpdate)Implemented
TC-858dashboard (go test)NegativeA new unit defect is refused, and its watch ends refused:<slug>, when unit checks are off, no fixer or triager is assigned, auto-fix is off, the repository is not a fix target, or the unit or defect daily cap is reached; an open defect is still updated past the cap and a watch ends once (TestUnitDefectGateAndCaps)Implemented
TC-859dashboard (go test)PositiveA later passing check on the same base marks a held unit defect once without moving its card and closes a released one; a pass of another base or an older merge touches nothing; a newer failure clears the mark; a closed defect seen again is reopened with a new held card; a build defect closes on a pass, a defect whose tests retention emptied does not (TestAPassClosesOrMarksUnitDefects)Implemented
TC-860dashboard (go test)NegativeA failure of a merge older than a passed one files nothing (refused:older), whether the pass is a done watch or the closed record’s own pass; a failure newer than every pass files (TestAnOlderFailureNeverFilesWhatAPassCovered)Implemented
TC-861dashboard (go test)PositiveOn ArcadeDB a unit defect’s schema-21 properties, its held triage card and its watches’ outcomes survive a reopen (TestUnitDefectFieldsSurviveARestart)Implemented
TC-862dashboard (go test)NegativeOnly the configured workflow’s push run on the merge commit and base counts, its latest attempt, and only the check run of that run’s check suite from the github-actions app with the exact name; a forged check of another suite is ignored, two runs are inconclusive, the check name is escaped, and commit statuses are never read (TestOnlyTheWorkflowsCheckIsRead)Implemented
TC-863dashboard (go test)NegativeEach check ends its watch with its outcome: success passed, a failure filed, no failure annotation a build defect, all withheld refused, a failure without the workflow’s unit-tests-total notice (a job that never started) inconclusive with nothing filed and the daily “did not report” notice, no run waits with growing intervals and becomes no-ci after 6 hours only when a read was answered, in progress waits then inconclusive, every other conclusion, 20 failed reads, a never-answered watch and a repository no longer a fix target inconclusive; the pass runs every fourth poller pass, reads at most 10 watches and serves products round-robin (TestUnitOutcomes)Implemented
TC-864dashboard (go test)NegativeAnnotations are screened: a root-package path, Example and Fuzz names and an empty path are kept (an empty path protects no file), a bad name, an unsafe or credential-shaped path and a secret are withheld, at most 10 are kept, the total notice is clamped, and a check with no failure annotation is a build failure with one screened paragraph of summary (TestAnnotationsAreScreened)Implemented
TC-865dashboard (go test)NegativeA held unit triage card moves only for an auto-fix admin: unblock and cancel refused otherwise, an admin’s cancel of the held card closes the defect and of another card does not, a non-admin cancel of any unit card refused, the board trims those moves (TestTheHeldCardIsAdminOnly)Implemented
TC-866dashboard (go test)NegativeA unit fix may not edit the failing tests’ files or other packet test files, add tests beside them, or add TestMain or init; a build fix may edit only the test file its summary names (TestAUnitFixMayNotWeakenTheFailingTests)Implemented
TC-867dashboard (go test)NegativeA unit fix opens against its unit base, refused when that base is no longer allowed, on a branch of its own; it is never retargeted, and a reopened unit defect is fixable after release (TestTheUnitBaseIsRecheckedAndNeverRetargeted)Implemented
TC-868dashboard (go test)NegativeThe unit-check route answers 401 without a session, 403 for a non-admin and 422 for a refusal, refuses turning it on without GitHub or the Brain Town reader, and the Auto-fix page shows the section (TestUnitChecksRouteAndSection)Implemented
TC-869dashboard (go test)PositiveThe unit notices go to the group once each and name no repository: held, passed, closed, all withheld and at most one no-ci a day; a notice lost between the store write and the send is re-sent by the next scan (TestUnitNoticesAreSentOnceAndResent)Implemented
TC-870dashboard (go test)PositiveA held unit defect’s context is its failing test file, then the source of its directory, read at the merge commit; a failed build of it is retried at most every 30 minutes and the QA search never runs; the retention empties the excerpt and the failing tests after 30 days and keeps the protected files, and done watches are pruned 30 days after they ended (TestUnitRetentionAndContext)Implemented
TC-871dashboard (go test)NegativeThe unit-check source is GitHub Actions or Jenkins, an empty one reads as GitHub Actions; a switch to Jenkins keeps the workflow and check (restored on the way back) and the event names the source, and a posted result’s run reads @jenkins (TestUnitSourceIsSavedAndValidated)Implemented
TC-872dashboard (go test)PositiveA Jenkins-posted result finishes its watch with the build link, the caller’s address and the posted result, its events carry the actor jenkins:<product>, the conflict notice is marked once, and on ArcadeDB the source, the watch’s schema-22 properties and the defect’s @jenkins run survive a reopen (TestAJenkinsResultSurvivesARestart)Implemented
TC-873dashboard (go test)NegativeThe unit-results route answers like the staging callback but with its own credential file: 404 through another mount, 503 jenkins-off without the file or with a password under 32 characters, 401 with the Basic challenge for no or a wrong credential, 404 for another product’s credential counted against that product; a staging credential never opens it nor its credential staging, and an accepted result is not a staging callback (TestUnitResultsAreAuthenticatedLikeStaging)Implemented
TC-874dashboard (go test)NegativeThe posted body is strict: an unknown field, trailing data, more than 64 KiB, a bad repository, commit (a 64-hex one too), branch, result or total, failing tests with a pass or a build failure, none with a failure, more than 50, and a summary outside a build failure are 422 rejected and change nothing; an http or malformed build link is stored empty and a 600-byte test dropped, the result accepted, and a 3 KiB summary is capped on a rune boundary (TestUnitResultsBodyIsStrict)Implemented
TC-875dashboard (go test)PositiveA posted result finishes its watch through the poller’s store call: a failure files a held defect run @jenkins with the caller’s address and build link and events by jenkins:<product>, a pass marks a held defect and closes a released one, a build failure files the ~build defect, an all-withheld failure is refused:withheld with its notice, 50 sent keep 10 with the total from the kept count; another branch is 409, a repository that is not a target 422 or, with a watch, inconclusive; a result that lost the race to the poller is answered for the stored state (TestAPostedResultFinishesTheWatch)Implemented
TC-876dashboard (go test)NegativeWithout a pending watch a fix target’s result is 409 no-watch with Retry-After: 60, six of them count no failure and the right post still passes; with unit checks off it is 409 unit-checks-off and with GitHub Actions 409 not-jenkins, nothing stored in each (TestUnitResultsRefusedWithoutAJenkinsWatch)Implemented
TC-877dashboard (go test)NegativeOn both Basic routes the failure lock keys on X-Real-IP, else the rightmost public X-Forwarded-For hop, else the peer, an IPv6 address as its /64: a caller-written first hop neither escapes the lock nor locks Jenkins out, rotating the path id or a wrong-product credential through ids does not escape it, a success between guesses clears only its own product’s key, a staging lock does not block unit results, and 10,000 sources never grow the map past 4096 (a new key past the cap is 429); the unit-results file refuses a 31-character password (TestTheJenkinsLockIgnoresTheCallersForwardedFor)Implemented
TC-878dashboard (go test)NegativeEvery machine API route without Authorization answers 401 (503 when its authentication is unconfigured); the bearer routes challenge Bearer, and only the two listed Basic routes, staging and unit results, challenge Basic (TestEveryMachineRouteAuthenticates)Implemented
TC-879dashboard (go test)NegativeA result over a no-ci watch within 24 hours is accepted and files; after 24 hours, or over any finished watch, the same result is 200 duplicate (a GitHub-finished watch compared by class) and a different one 409 already-finished with the first standing, and 20 conflicting posts send exactly one conflict notice (TestALateOrConflictingUnitResult)Implemented
TC-880dashboard (go test)PositiveUnder the Jenkins source the unit pass reads nothing from GitHub: a due watch sleeps once until 6 hours after its merge, then ends no-ci with the Jenkins daily line, even after an earlier product spent the budget, without counting in the pass’s reads or moving the round-robin; a watch the route finished first sends no line, and a source switched between reads decides the next read (TestAJenkinsWatchEndsNoCIWithoutReadingGitHub)Implemented
TC-881dashboard (go test)PositiveThe “Unit tests (CI)” section shows the “Before you switch this on” checklist in full while the switch is off (the unit bases, the -short rule with its testing.Short() example, the link to the source’s docs) and one line once on; the source select hides the other source’s block; the credential line reads both ways; the build is a link only for GAOS_JENKINS_ORIGIN; no-ci reads in the source’s words; turning Jenkins on without a credential is refused and a form without the source keeps it (TestTheUnitSectionShowsTheChecklistAndTheSource)Implemented
TC-882dashboard (go test)PositiveThe sample body the agents page documents under #release-b-unit-jenkins is posted to the route and accepted (202), so the docs and the decoder cannot drift (TestTheDocumentedJenkinsBodyIsAccepted)Implemented
TC-883check-stacks.shPositiveProd mounts the unit-results credential read-only and never passes it as an environment value, passes GAOS_JENKINS_ORIGIN from the deploy shell, empty by default, and Traefik trusts forwarded headers from the edge (10.10.0.1/32) only, never the tunnel or a GAOS VMImplemented
TC-884dashboard (go test)PositiveThe traffic store’s RESP2 client encodes AUTH, XADD … MAXLEN ~ n *, XTRIM … MINID ~ and XREVRANGE … COUNT byte-exact, parses every reply type, and a pipeline of 128 answers 128 replies in order (TestRESPRoundTripsTheTrafficCommands)Implemented
TC-885dashboard (go test)NegativeEvery bound of the RESP2 parser exceeded, a negative or non-numeric length, a truncated reply and an unknown type byte are errors that close the connection, nothing is allocated from a declared length, an error reply is cut to 80 bytes, and a refused AUTH is one fixed error with no password in it (TestRESPRefusesMalformedOrOversizedReplies)Implemented
TC-886dashboard (go test)NegativeRecording is on only for an address with a numeric port inside 172.30.40.0/29 and a mode-600, non-empty password file; anything else is off with its reason, the boot line never prints the password, and the thirteen streams’ caps (28 000 in all; D-114 added out:gitlab) and the 48-hour window are constants (TestTrafficSettings)Implemented
TC-887dashboard (go test)PositiveAn outbound path is recorded relative to its configured base ({base}, or {other} outside it), a branch and a file path become {ref} and {path}, identifiers become {n} or {id}, at most 12 segments and 160 bytes, never a query or a fragment (TestOutboundPathIsTemplated)Implemented
TC-888dashboard (go test)NegativeThe recording transport stores none of a bearer token, userinfo, query, fragment, request body, response header or body, nor the configured base path; the record’s fields are exactly the outbound set and the caller’s response is unchanged (TestRecordingTransportKeepsNoSecret)Implemented
TC-889dashboard (go test)PositiveA timeout, a cancel, a refused connection, an unknown CA and a reset are recorded as their class with status 0 and no error text; a tracker call records once in do with its raw gRPC code and outcome, and only auth and unavailable are failures (TestRecordingTransportClassifiesErrors)Implemented
TC-890dashboard (go test)NegativeRecording never blocks: with the writer unstarted, 4096 + 1000 records enqueue at once and exactly 1000 are counted dropped; with the store refusing connections, 300 recorded calls all succeed (TestTrafficRecordingNeverBlocks)Implemented
TC-891dashboard (go test)PositiveThe writer signs in first on each connection, adds each record to its stream with that stream’s cap, trims all thirteen streams to 48 hours, drops one record per OOM or NOPERM, redials a lost connection with a backoff from 1 s to 30 s, moves firstWriteAt to the first write after it, and logs each transition once (TestTrafficWriterTrimsByLengthAndAge)Implemented
TC-892dashboard (go test)PositiveWith recording on, the QA, AI-manager (default client), Brain Town, Brain Town reader, GitHub, GitHub write and WhatsApp clients carry a recording transport with their label and base; an injected AI-manager client, the tracker and ArcadeDB are not wrapped; with recording off each has today’s transport; an unknown label panics (TestEveryExternalClientIsRecorded)Implemented
TC-893dashboard (go test)PositiveThe gate records every API call with its pattern, source, via, principal and product, and every direct request whatever its route and exit (the signed-out page, requireBO, the cross-origin 403, the health probe), reduced when it is not an API call; edge requests that are not API calls make nothing; no field holds a token, a password, a query or an unmatched path (TestInboundRecordsRouteSourceAndClient)Implemented
TC-894dashboard (go test)PositiveBehind the inbound recorder’s writer SetReadDeadline and Flush still reach the real writer, an over-limit body answers 413, a handler that writes nothing records 200, and a panic records 500 and reaches net/http (TestInboundRecorderKeepsTheResponseController)Implemented
TC-895dashboard (go test)Negative10 000 anonymous API calls from 5 000 sources through the edge leave the direct and authenticated streams’ records in place and fill only in:anon to its cap; anonymous records stop at ¾ of the queue and an outbound record still enqueues (TestAnAnonymousFloodEvictsNoDirectOrAuthenticatedRecord)Implemented
TC-896dashboard (go test)Negative10 000 authenticated direct calls fill only in:direct:auth to its cap and leave the one unauthenticated direct record in in:direct:other; the summary holds both sources and counts one unknown (TestAnAuthenticatedDirectBurstEvictsNoOtherDirectRecord)Implemented
TC-897dashboard (go test)NegativeWith GAOS_REDIS_ADDR set, a QA URL and a Brain Town URL on the traffic store’s host are refused with the existing “names a host GAOS already uses” reason, and are not refused for it without the setting (TestOutboundURLsRefuseTheTrafficStore)Implemented
TC-898dashboard (go test)PositiveThe Traffic page counts each platform’s calls, 4xx and failures (The tracker by its outcome) with nearest-rank p50 and p95 over answered calls, shows each stream as kept since its oldest record and cap only at its cap, lists the nine platforms in order (D-114 added GitLab) and at most 50 inbound pairs newest first, ignores records older than 48 hours, says the store may have been emptied only when the first write came a minute after start, and keeps the summary since boot with its untracked note past 512 sources (TestTrafficSummaries)Implemented
TC-899dashboard (go test)PositiveThe Traffic page’s filters: a platform forces outbound, a source forces inbound, both set drops the source, the tabs show the forced direction, a non-admin’s source is masked before it is compared or echoed, invalid values are ignored and never echoed, ten calls a page, and the poll URL keeps the filters and the page (TestTrafficFiltersAndPages)Implemented
TC-900dashboard (go test)PositiveThe Traffic page renders its Off, Unavailable, Empty, Filtered empty and Normal states (Off and Unavailable with the direct-source summary), is no-store, polls out of band, does not retry a failed read within 15 s, and signed out both routes answer 401 without touching the store (TestTrafficPageStates)Implemented
TC-901dashboard (go test)NegativeHosts, paths, routes and principals holding markup or 2 KiB render escaped and clipped; for a non-admin a public source appears only as its /24 or /48, nowhere in full, while tunnel and CGNAT sources stay whole, and two public sources in one /24 count as one unknown source; an admin sees full addresses (TestTrafficPageEscapesAndMasksAddresses)Implemented
TC-902check-stacks.shPositiveProd’s traffic store is pinned by version and digest, persists nothing, has a memory limit with noeviction, turns the default user off and admits the gaos user to the traffic keys and three data commands, publishes no port, sits alone with the dashboard on the internal traffic network at its pinned address, has an authenticated healthcheck; the dashboard reaches it by address with the shared password file, which is untracked, regular and mode 600; the dashboard’s edge hop is Traefik’s one trusted address; nothing in prod has a start-order dependency (eleven lines over thirty conditions)Implemented
TC-903rebuild-restart.shPositiveA prod deploy with no traffic-store password file creates it mode 600 with 64 hex characters without printing the value, leaves an existing one unchanged, links it into the tag worktree, and with Redis not healthy prints a warning and still passes verificationImplemented
TC-904dashboard (go test)PositiveThe global back-office bar groups Stories, Diagrams, Knowledge and Archive under Library, Auto-fix and Pull requests under Automation, and Integrations and Traffic under System; the group of the current view is marked, every view’s link is present once, and a signed-out page carries no group.Implemented
TC-905dashboard (go test)PositiveA product’s bar keeps seven sections flat and puts Blueprint and AI vendors under Setup, which is marked only when one of the two is open; the global groups are absent.Implemented
TC-906dashboard (go test)PositiveOnce a retarget’s new draft is recorded, GAOS closes the pull request it replaced on GitHub, records the close with rule autofix-retarget, comments that it closed it and kept its branch, and leaves the defect fixing on the new record with no new card.Implemented
TC-907dashboard (go test)NegativeWhen GitHub refuses the close, the replaced record stays a draft, its comment says it is left open, the duplicate check lists it as superseded, and the next boot’s sweep closes it.Implemented
TC-908dashboard (go test)PositiveThe duplicate check names an open record replaced by an open or merged one (not one whose successor closed unmerged), both links of a chain, and the extra open records of one defect, keeping the defect’s own record when it is open, else the newest; final records are never named; superseded findings come first.Implemented
TC-909dashboard (go test)NegativeThe duplicate close route answers 401 without a session, 403 for a non-admin, 404 for an unknown record, 409 for a record that is no duplicate or in replay (with no GitHub call), 502 when GitHub fails, 422 for a branch that is not gaos/fix-; then it closes the pull request, records rule autofix-dedup, leaves the defect alone and answers the Auto-fix view; a pull request already merged on GitHub is recorded merged without a close.Implemented
TC-910dashboard (go test)NegativeA close of a fix record the defect does not wait on changes only the record; a close of the defect’s own record still plans the person-only second attempt.Implemented
TC-911dashboard (go test)PositiveEach fix pull request says what triggered it — a retarget, a review finding, a unit-test failure, a second attempt, a QA report, or a missing defect — with a link to the earlier record when there is one, and the table shows its branch and base.Implemented
TC-912dashboard (go test)PositiveCards waiting shows five cards a page; a page past the end clamps to the last; the next-page link keeps the product and the section and drops an open drawer.Implemented
TC-913dashboard (go test)PositiveThe Auto-fix page shows one section at a time, Fix pull requests by default and whenever a drawer is open; the section is carried by the poll, the filter form and the state links; an unknown section is ignored.Implemented
TC-914dashboard (go test)PositiveA pressed button is disabled, aria-busy and .is-busy until its request ends, a second press while busy is cancelled, a live refresh is left alone, and the spinner is still under prefers-reduced-motion (TestEverySubmittingButtonIsBusyUntilItsAnswerLands).Implemented
TC-915dashboard (go test)PositiveA form whose non-GET request answered 2xx marks its own submit button .is-done (a check mark) for a moment, found again by id after the swap; a refusal does not (TestASavedFormConfirmsOnItsOwnButton).Implemented
TC-916dashboard (go test)PositiveThe task code is read from the shapes authors write — bold, in brackets, followed by its link, a bare the tracker link, a code after a word — and words, a placeholder, a path and a code with no dash and digit read as no code (TestTaskCodeFromValueShapes).Implemented
TC-917dashboard (go test)PositiveThe two live template shapes, a code followed by its link and a code in bold brackets, are read as a task-manager code (TestTheTemplateReadsACodeWithATrailingLink).Implemented
TC-918dashboard (go test)PositiveA pull request that uses the template with no code and one that does not use the template each get their own chat text, and both record the one kind pr:no-task-code (TestTheTwoMissingCodeAlertsHaveTheirOwnText).Implemented
TC-919dashboard (go test)PositiveGAOS_PUBLIC_URL is accepted only as an https URL with a host and no query, fragment or userinfo (http only for localhost), with a trailing slash trimmed (TestAPublicURLIsHTTPSWithNoQuery).Implemented
TC-920dashboard (go test)PositiveA notification line carries its links each on its own line — the pull request’s URL and the card link — a unit notice keeps · card and gains only the card link, a line with no public URL and no pull request has none, and the gateway keeps the line breaks (TestALineCarriesItsLinks).Implemented
TC-921dashboard (go test)PositiveGET /c/{taskId} answers 303 to where the card’s action is — the Inbox, the Auto-fix waiting section or the product’s board — under the site prefix; a forged prefix never makes a protocol-relative redirect, an unknown card is 404 and a signed-out browser gets the sign-in page (TestTheCardLinkRedirectsToTheAction).Implemented
TC-922dashboard (go test)PositiveThe needs-a-person line names the fix card the defect points at, and a defect with no fix card finds none (TestNeedsAPersonNamesTheFixCard).Implemented
TC-923dashboard (go test)PositivewhoFor finds the person behind a line — the pull request’s author for a review defect and a planner’s line, the commit author for a unit defect — says a QA run’s defect has nobody by nature, and answers the group for a failed lookup or no GitHub client (TestWhoForFindsThePersonBehindALine).Implemented
TC-924dashboard (go test)PositiveThe product’s default recipient takes a QA run’s defect; a person who filtered the kind out stays on the group, never the default; NotifyPR never reaches the default (TestRouteGivesTheDefaultRecipientOnlyPersonlessLines; route only — the D-130 review alert is TC-1076).Implemented
TC-925dashboard (go test)PositiveA tracker destination is resolved at send time, with no tracker link it is the group, it is valid for a person and refused on the default recipient (TestATrackerDestinationResolvesAtSendTime).Implemented
TC-926dashboard (go test)PositiveA contact’s destination is normalised — spaces, dashes, brackets and a leading + removed, a group id and a WhatsApp jid kept — and a local number, a short number, a malformed group id and an email address are refused (TestContactDestinationsAreNormalised).Implemented
TC-927dashboard (go test)NegativeOnly an auto-fix admin changes a contact: anyone else is answered 403 on a save and a delete and sees the table with no form, no Remove and no people list; an admin sees the form and the tracker people with no number (TestOnlyAnAdminChangesContacts).Implemented
TC-928dashboard (go test)PositiveThe Contacts form’s choices reach the registry: one notifyOn per ticked box, the legacy comma value split, Everything or nothing ticked stored as everything, the Default recipient box stored as the login *, and a default recipient with a tracker destination refused (TestTheContactsPageSavesItsChoices).Implemented
TC-929dashboard (go test)PositiveAn e2e card with no case plans an automation planner and waits BLOCKED on it, starting no job; a release while the planner is open waits again; a planned case reads back only from the reason’s start; an unassigned role and GAOS_PLANNER_DAILY refuse the planner, while a full GAOS_PR_MAX_OPEN does not (TestAnE2ECardWithNoCaseHandsOverToThePlanner).Implemented
TC-930dashboard (go test)NegativeThe automation plan’s rules: a catalog needs a new epic code, a path under docs/test-catalog/, content within bounds and no credential; automate needs a known case in the right state, a note for an update and a pull request’s planner; none carries no epic; a summary is required (TestTheAutomationPlanIsValidated).Implemented
TC-931dashboard (go test)PositiveEvery planner outcome leaves the e2e card BLOCKED for a person; the catalog write refuses with no repository, a public one, an existing file or a secret-bearing workflow, and reuses an open pull request; the catalog and fix ref guards never cross; a test planner’s handoff plans the bundle’s planner; the planner runs on claude-opus-5-5 unless overridden (TestTheAutomationPlannerAfterRun).Implemented
TC-932dashboard (go test)PositiveA revision’s case id revise:r<k>:<owner/repo>#<n> keeps the number last for reviewNumber; the review marker is an opaque hash that names no card or product, only the last marker counts, and planted markers are stripped (TestRevisionKeysAndMarkers).Implemented
TC-933dashboard (go test)PositiveA GAOS review ends with its marker and is pinned to the commit the reviewer read; a 422 (that commit is gone) ends the card DONE review-stale (TestReviewerMarksAndPinsItsReview).Implemented
TC-934dashboard (go test)NegativeA review by the token’s own login carrying this card’s marker skips the post, a stranger’s copy of the marker does not; the severity branch (needs-manual, the review alert since D-130) runs either way (TestReviewerSkipsAPostItsMarkerShows).Implemented
TC-935dashboard (go test)PositiveOn an agent’s pull request a medium review is a COMMENT with no dismissal line, and a low finding plans no D-102 draft fix (TestReviewerOnAnAgentPullRequestCommentsOnly).Implemented
TC-936dashboard (go test)NegativeA pull request closed since the run gets no review and its card ends DONE pull request closed; a card whose post is claimed is not posted again (TestReviewerLeavesAClosedPullRequestAndClaimsTheCard).Implemented
TC-937dashboard (go test)PositiveThe boot sweep posts a reviewer card’s stored reply once; a second boot finds the marker on GitHub and posts nothing (TestResumeReviewsPostsAStoredReplyOnce).Implemented
TC-938dashboard (go test)PositiveA pr.reviewed event on an agent’s pull request plans round 1 with the review ids, the pinned head and the inline comments; a second review while it is open is refused round-open; pr.reviewed is a default consumer type (TestReviewedEventPlansARound).Implemented
TC-939dashboard (go test)NegativeThe trigger refuses off (with no GitHub read), a human author, a draft, a fork, an empty association and a closed pull request; a 429 lets the cursor pass, a 5xx retries (TestReviewedEventRefusals).Implemented
TC-940dashboard (go test)NegativeCandidates: round 1 only on the head; never APPROVED or DISMISSED; GAOS’s own only at low or medium, a stranger’s marker is text; from round 2 only past the last handled id; a GAOS high on the head holds (TestRevisionCandidates).Implemented
TC-941dashboard (go test)NegativeA read-only reviewer, a body-only COMMENTED review and a GAOS none are not actionable; a GAOS low plans; a GAOS critical holds; a secret in the review withholds it (TestReviewedEventActionability).Implemented
TC-942dashboard (go test)PositiveThe findings text is newest first, carries inline comments as path:line: body, strips markers and leaves out a secret-bearing review while answering its id (TestRenderFindingsNewestFirst).Implemented
TC-943dashboard (go test)NegativeA pull request is GAOS-opened only by a non-revision FixPR on its own gaos/fix- branch; a revision’s record and a different branch never count (TestAgentAuthored).Implemented
TC-944dashboard (go test)NegativeStep 0’s refusals (off, unassigned, not-target, round-open, cap); handled ids; a pushed round counts toward the cap, a closed one neither blocks nor counts; the form refuses a cap of 11 and the store clamps it (TestRevisionRefusalsAndPlan).Implemented
TC-945dashboard (go test)PositiveA revision round’s reviseReviews and its record’s reviseDone survive a reopen of the ArcadeDB store (skips without GAOS_ARCADE_TEST_URL) (TestRevisionSurvivesARestart).Implemented
TC-946dashboard (go test)PositiveA round fast-forwards the pull request’s own branch (force false, parent the reviewed head, the trailer), opens no branch or pull request, adds no label, records it ready, ends the card DONE, posts one marked comment and plans review r2 unattended; the agent’s merge stays its own and the record is never closable (TestRevisionFastForwardsThePullRequestBranch).Implemented
TC-947dashboard (go test)PositiveAfter a crash between the push and the record, the boot job adopts the commit by its trailer and parent and records it, with no second push (TestRevisionAdoptsAPushACrashLeftBehind).Implemented
TC-948dashboard (go test)NegativeA person’s push ends the round review-base-moved with nothing pushed; a 422 on a branch that stayed put is review-push-refused; a secret-using push workflow on the head branch blocks ci-secrets (TestRevisionRefusesAMovedBranch).Implemented
TC-949dashboard (go test)NegativeupdateRef refuses the default branch, a .. name and another’s gaos/fix- branch before GitHub is called, and maps a 422 to not-a-fast-forward (TestUpdateRefGuards).Implemented
TC-950dashboard (go test)PositiveAt the cap no re-review is planned, a marked cap comment and one notice are sent, and a second finish posts nothing (TestRevisionCapEndsTheLoopOnce).Implemented
TC-951dashboard (go test)PositiveA push whose re-review the assignment gate refused keeps reviseDone false; the boot job plans it once the role is back, without a second comment (TestResumeRevisionsPlansAMissingReReview).Implemented
TC-952dashboard (go test)PositiveA re-review card is keyed pr-reviewer-r<k>, planned once, never for round 1; a confirmed merge cancels it and closes a pending revision round (TestReReviewCardsAndTheMerge).Implemented
TC-953dashboard (go test)PositiveA reviewer card starts unattended only on a listed product with the role assigned; an unattended start waits for its context, which the warm pass fetches outside the lock (TestReviewerAutoStartAndTheContextGate).Implemented
TC-954dashboard (go test)Positive and negativeFor every GitHub entry the old repository regexp accepts, the repository split answers what it answered before; an entry only the old split accepted is refused (TestGhOwnerRepoUnchangedForGitHub).Implemented
TC-955dashboard (go test)Positive and negativeAn entry is a GitHub pair or a GitLab path on the one configured host; a GitLab entry does not parse while no host is configured, and every grammar rule refuses its broken shape (TestParseRepo).Implemented
TC-956dashboard (go test)PositiveA nested GitLab path splits at its last slash and every key built from owner and repository round-trips: the card key, the pull-request reference, the row key and the review defect key (TestKeysRoundTripNestedRepo).Implemented
TC-957dashboard (go test)Positive and negativeA pull request’s page is built and read back on GitHub and on the configured GitLab host; a GitLab page is refused while no host is configured, and every other shape is refused (TestPRURLRoundTrip).Implemented
TC-958dashboard (go test)NegativeWith GitHub alone configured, the per-repository gates answer what their nil checks answered; a repository whose forge has no client is skipped and a call answers errNoForge (TestNoTokenPathsStillSkip).Implemented
TC-959dashboard (go test)Positive and negativeThe per-repository gate reads a nil router in an interface as absent and a test fake, by value or by pointer, as present, without panicking (TestForgeHasTypedNil).Implemented
TC-960dashboard (go test)NegativeNo struct outside the forge files holds a concrete GitHub client, writer or router, but for the revision writer and the unit poller’s router (TestNoNewConcreteForgeHolder).Implemented
TC-961dashboard (go test)NegativeThe git-object primitives are called only by the GitHub write and the revision write; every other write goes through commitFiles (TestPrimitivesOnlyInRevision).Implemented
TC-962dashboard (go test)Positive and negativeThe fixer writes and reads through its router and falls back to its GitHub writer when none is set; with neither it has no writer and no reader (TestDefectFixerFallsBackToGh).Implemented
TC-963dashboard (go test)Positive and negativeThe GitLab client starts only on a server of 15.7 or later; an older one leaves GitLab off with the reason (TestGitLabRefusesOldVersion).Implemented
TC-964dashboard (go test)Positive and negativeA GitLab entry is pinned to its project id on first use, on every product that lists it; a different id after a restart, a frame naming another id and a 404 are refused, and a transient error pins nothing (TestGitLabProjectPin).Implemented
TC-965dashboard (go test)Positive and negativeA merge request maps to the pull request the flows read (state, refs, gitlab: author, labels, merge commit, page), a fork is refused whatever GAOS_PR_ALLOW_FORKS says, and an MR of another project is refused (TestGitLabPullRequestMapping).Implemented
TC-966dashboard (go test)Positive and negativeA member's access level maps to OWNER, MEMBER or NONE; a lower level, an inactive member, a 404 and no author are NONE, never empty (TestGitLabAssociation).Implemented
TC-967dashboard (go test)Positive and negativeA merge request's diffs map to changed files with their counts; more than 300 files is a deterministic refusal, not a retry (TestGitLabTooManyFiles).Implemented
TC-968dashboard (go test)NegativeA branch name that breaks git's ref rules is refused before any call is made (TestGitLabHostileNames).Implemented
TC-969dashboard (go test)Positive and negativeA comment review posts a note and a request for changes an unresolved thread; APPROVE is refused and a moved head answers the stale-review 422 (TestGitLabReviewEvents).Implemented
TC-970dashboard (go test)NegativeEvery body GAOS sends to GitLab has its quick-action lines, mentions and closing keywords neutralised, on every send path (TestGitLabBodiesNoQuickActions).Implemented
TC-971dashboard (go test)NegativeA GitLab pr.reviewed is refused as gitlab-unsupported: the revision loop stays GitHub's (TestGitLabReviewedRefused).Implemented
TC-972dashboard (go test)Positive and negativeA GitLab frame is matched on its host, full path and project id: an owned one is handed over, an incomplete one, another host, a same-named project in another subgroup and an over-long path are skipped, unreadable products retry, and a frame naming another project id plans nothing (TestGitLabFrameMatch).Implemented
TC-973dashboard (go test)Positive and negativeThe GitLab token loader accepts a mode-600 glpat- token and refuses every other kind, mode, length and prefix, the host must be a bare name, and one token in both files is refused (TestTokenLoaderGitLab).Implemented
TC-974dashboard (go test)Positive and negativeThe egress screen detects the GitLab credential family and the runner registration prefix as credentials, and not text that only looks like one (TestEgressGitLabFamily).Implemented
TC-975dashboard (go test)PositiveAn outbound GitLab path is templated so that no file name, branch or commit survives (TestTrafficPathGitLab).Implemented
TC-976dashboard (go test)Positive and negativeAn automation directory is 1 to 4 segments of [a-z0-9_-]{1,32}, only for an automation repository, never reached by an allowed glob; the form line is ‘<repository> <directory>’, Clone copies the map, and the auto-fix event reason names it as dirs=.Implemented
TC-977dashboard (go test)Positive and negativeOnly an automation repository without a directory is automation-only; one with a directory is a unit fix target again.Implemented
TC-978dashboard (go test)NegativeA fix path under the repository’s automation directory is forbidden (checkFix refuses it), another repository’s is not, and the product’s own forbidden globs are untouched.Implemented
TC-979dashboard (go test)Positive and negativeA QA merge request (every path, old and new, inside the directory, no CI file) plans nothing at open or merge; one with application code pushed after open gets a review at merge and the unit card; a transient file read retries; a list that is too large is ordinary.Implemented
TC-980dashboard (go test)Positive and negativeWith an automation directory the epic path must be under <dir>/docs/test-catalog/ (stripped, then matched); without one the root path stands, and the planner’s layout names the directory.Implemented
TC-981dashboard (go test)Positive and negativeA GitLab fix write creates its branch and commit in one Commits API call (update or create per file, base64, the executable mode, the trailer kept); step 0 refuses a branch outside gaos/fix-, a CI file or an included CI file, the automation directory, a catalog repository not listed and a catalog path outside the catalog, and a catalog write carries [skip ci] and the GitLab-only trailer (TestGitLabCommitFilesCreate).Implemented
TC-982dashboard (go test)NegativeA 400 behind which the branch appeared goes to adoption, which refuses a branch that is not ours; a 400 with no branch is returned as it is (TestGitLabCreateRace).Implemented
TC-983dashboard (go test)Positive and negativeA branch already there is adopted, with no commit written, only when the merge-base compare lists exactly our paths, our content is at its head and its head carries our trailer, also after the base moved; an extra file, changed content or a missing trailer is the branch-exists block (TestGitLabAdoption).Implemented
TC-984dashboard (go test)Positive and negativeA GitLab merge request is opened as a draft that removes its source branch, with a neutralised description; labels, a neutralised note, close and the state mapping work, and only visibility private counts as private (TestGitLabCreatePR).Implemented
TC-985dashboard (go test)NegativeThe GitLab writer deletes a gaos/fix- branch and refuses a catalog branch, a person’s branch, main and a name with .. (TestGitLabDeleteRefPrefix).Implemented
TC-986dashboard (go test)Positive and negative.gitlab-ci.yml anywhere and .gitlab/** are built-in forbidden; an allowed glob that names GitLab CI configuration is refused at save, and a broad ** is not (TestGitLabCIForbiddenGlobs).Implemented
TC-987dashboard (go test)Positive and negativeThe GitLab CI files are resolved from ci_config_path through local, string and child-pipeline includes; a wildcard, a $ path, a project, remote, template, component, artifact or flow include, a foreign ci_config_path and more than ten files are refusals (TestGitLabCIIncludes).Implemented
TC-988dashboard (go test)Positive and negativeEach target repository is checked against its own forge: the GitHub statement and token for GitHub targets (and none named), the GitLab write token for GitLab targets, the GitLab CI statement for a GitLab target or automation repository; one token in both GitLab files is refused (TestPreconditionsPerForge).Implemented
TC-989dashboard (go test)Positive and negativeThe source names read back as github-actions, jenkins and gitlab-pipeline, an unknown source reads as github-actions, gitlab-pipeline with a job name is valid, and the source gitlab is refused (TestUnitSourceName).Implemented
TC-990dashboard (go test)Positive and negativeEvery fix-target repository must be on the source’s forge: github-actions over a GitLab target is refused, gitlab-pipeline over a GitLab target and Jenkins over any are saved, and a mixed list allows only Jenkins (TestSetUnitChecksForge).Implemented
TC-991dashboard (go test)Positive and negativeThe poll keeps the branch pipeline and the MR pipeline of the head SHA and no other ref, source or MR; the newest decides; an older failed pipeline is said as superseded-after-failure, a retried job as retried-after-failure; no pipeline leaves the watch pending (TestGitLabUnitPicksNewestBranchPipeline).Implemented
TC-992dashboard (go test)Positive and negativeA GitLab job status maps to wait, passed, failed or inconclusive; a running job delays the watch, a canceled or manual one ends it inconclusive, and a pipeline without the named job is inconclusive (TestGitLabUnitJobStates).Implemented
TC-993dashboard (go test)Positive and negativeA failed job’s test report files a unit defect naming the failed case; a failed job with no report ends inconclusive with the JUnit daily line and files nothing (TestGitLabUnitTestReport).Implemented
TC-994dashboard (go test)NegativeA failed case’s output is cut to 4 KiB and withheld whole when a credential or a GitLab token is in it; the annotations carry the total notice first (TestUnitSystemOutputEgress).Implemented
TC-1004dashboard (go test)PositiveEvery method path, field number, wire type and TaskState value of the codec equals the published task-tracker-v1.proto; since D-132 also RecordMerge, the Task fields url, title and assignee_ids, the two RecordMerge messages and every MergeOutcome value (TestTheTrackerCodecMatchesTheContract).Implemented
TC-1005dashboard (go test)PositiveTwo valid profiles load on, their products lines are read with comments ignored, and allows follows them, the code without regard to case (TestTrackerProfilesLoad).Implemented
TC-1006dashboard (go test)NegativeAn unset or missing GAOS_TRACKERS_DIR, a linked profile folder, a bad folder name and a plain file are each skipped with a log line (TestTrackerProfileSkips).Implemented
TC-1007dashboard (go test)NegativeA missing or malformed endpoint, a host name, no ca.pem off loopback, a ca.pem with no PEM, a file not mode 600, a linked credentials, a missing or bad products, an id-only credential and a folder open to others each make the profile unusable with a reason that names no content; an empty credential is off; a reload refuses a link (TestTrackerProfileRefusals).Implemented
TC-1008dashboard (go test)NegativeAn UNSPECIFIED or out-of-range state and OK without a task are unchecked: no breaker failure, a 5-minute cache entry, and ten in a row mark the window all-unchecked (TestTrackerUncheckedState).Implemented
TC-1009dashboard (go test)NegativeA stored destination GAOS no longer knows goes to the group, never to the gateway as a literal (TestDestForRefusesAnInvalidDestination).Implemented
TC-1010dashboard (go test)NegativeOne enabled binding per (connection, code) pair, the code without regard to case; the same connection with another code and another connection with the same code are accepted (TestSetThirdPartyPairConflict).Implemented
TC-1011dashboard (go test)NegativeEnabling needs a valid, installed profile that allows the product and code (422 otherwise), a disabled save needs no connection, an unknown kind is dropped and an entry with no connection is never ready (TestSaveThirdPartyNeedsAnAllowedConnection).Implemented
TC-1012dashboard (go test)PositiveTwo products on two profiles each reach their own tracker’s person, and one profile’s open breaker leaves the other product ready (TestTrackerTwoConnectionsIsolated).Implemented
TC-1013git grep, check-workspace.shNegativeNo tracked file or path matches the private name’s pattern, kept in the operator’s ignored list: the git grep of that pattern is empty and check-workspace.sh passes with the list. Run by hand at release.Implemented
TC-1014dashboard (go test)Positive and negativeAn unplanned bundle under a legacy prefix moves whole to task:<code> with BundledAt kept; a planned legacy bundle, a pr: key and a legacy key whose task: target is planned stay; a second run moves nothing (TestMigrateBundleKeys).Implemented
TC-1015dashboard (go test)Positive and negativeThe write-back’s code is read from the bundle key, not the rows: a row edited after planning cannot redirect it, a legacy-prefix key writes to its suffix, and a pr: bundle writes nothing (TestTaskCodeComesFromTheKey).Implemented
TC-1016dashboard (go test)Positive and negativeThe Task tracker chip, one case per rule: Off with no binding or never refreshed, Connected, Unusable when not installed, not allowed or auth-latched, Degraded when off, stale, ten unchecked lookups or not in GAOS_PR_TEMPLATE_PRODUCTS (TestTrackerChip).Implemented
TC-1017dashboard (go test)NegativeThe endpoint, the unusable: reason and the products lines are an auto-fix admin’s only, and no row carries the credential (TestTrackerEndpointIsAdminOnly).Implemented
TC-1018dashboard (go test)PositiveThe GitHub-account datalist is the de-duplicated union of the people of every profile an enabled binding names (TestContactsDatalistUnion).Implemented
TC-1019dashboard (go test)NegativeThe stored alias is ext: plus the sanitised username (TestTrackerAliasIsSanitised).Implemented
TC-1020check-stacks.shPositiveA mode-700 prod.pr-trackers of mode-600 files passes, prod mounts it read-only at /run/secrets/trackers and passes GAOS_TRACKERS_DIR.Implemented
TC-1021check-stacks.shNegativeA prod.pr-trackers at mode 755, a file in it at 644, or a regular file in its place each fail; any other *.pr-* directory still fails as not a regular file.Implemented
TC-1022ensure-trackers-dir.shPositiveAn absent path is created mode 700 and a second run finds it a directory; no deploy runs.Implemented
TC-1023ensure-trackers-dir.shNegativeA regular file at the path is refused with exit 1.Implemented
TC-1024check-workspace.shPositive and negativeThe agents’ deny-list covers deploy/stacks/prod.* and everything under it; a copy without the entries fails (GAOS_SETTINGS_FILE).Implemented
TC-1025rebuild-restart.shPositive and negativeA prod deploy of a tag that mounts an optional GitLab secret file the checkout’s own script does not know creates it empty (mode 600) in the checkout and links it in the inner pass; a directory Docker left in its place stops the deploy with the command to remove it.Implemented
TC-1026dashboard (go test)PositiveA pull request the card cap refuses keeps a row marked capSkippedAt (a replay keeps the first time); a new pull request never overtakes one waiting; the oldest is planned and its mark cleared; a reopened row is open again (TestPRCapRemembersAndOrders).Implemented
TC-1027dashboard (go test)PositiveA merge at the cap still plans its card and clears the merged pull request’s mark; a waiting row does not count as reviewed, so a review at merge (D-116) still applies (TestPRCapNeverRefusesAMerge).Implemented
TC-1028dashboard (go test)NegativereplanCapped plans nothing while the cap is full, plans the waiting pull request when there is room, clears the mark of a merged, draft, stranger or gone one, and keeps it on a transient GitHub error (TestPRCapReplanOutcomes).Implemented
TC-1029dashboard (go test)NegativeThe merge and the poller’s sweep cancel a merged pull request’s blocked e2e card, and keep one waiting on a catalog pull request, a planned case or a planner in flight (TestPRCapFreesAMergedBlockedE2E).Implemented
TC-1030dashboard (go test)PositiveThe Pull requests page shows each product’s open cards against the cap, the waiting count and age, the note on what happens at the cap, and the waiting for room chip (TestPRCapIsShownOnThePullRequestsPage).Implemented
TC-1031dashboard (go test)NegativeThe 5-minute revision sweep leaves a round whose claim afterRun holds, and finishes it once the claim is free (TestResumeRevisionsHonoursTheClaim).Implemented
TC-1032dashboard (go test)PositiveA row’s capSkippedAt survives a reopen of the ArcadeDB store (skips without GAOS_ARCADE_TEST_URL) (TestPRCapSurvivesARestart).Implemented
TC-1033dashboard (go test)NegativeA merge in an automation repository plans no unit-test card (skipped automation-repo); an application repository’s merge and a monorepo with an automation directory still plan it (TestAnAutomationRepoMergePlansNoUnitCard).Implemented
TC-1034dashboard (go test)PositiveThe Pull requests page shows the “no task code” chip only while an alerted row still names no code and has no bundle, and shows the code in the Task column and the drawer.Implemented
TC-1035dashboard (go test)NegativeA routine notice (automation:routine) is never sent by any send path and leaves no ContactNotified event, while a catalog line and an e2e failure still go outImplemented
TC-1036dashboard (go test)NegativeNo contact can opt into a quiet notice, and no error, need-you or warning kind is quietImplemented
TC-1037dashboard (go test)NegativeIn ai-manager mode the gateway adapter refuses an unset GAOS_AIM_TENANT (the loop-eng fallback) and an unusable name, and reads an explicit one (TestTheGatewayTenantMustBeExplicit).Implemented
TC-1038dashboard (go test)NegativeA Blueprint sync and a reviewer reset never write into a workspace that already exists on ai-manager and that this instance never provisioned (foreign-workspace); once free, the first sync provisions and records it, and later syncs write (TestASyncNeverWritesIntoAnotherInstancesWorkspace).Implemented
TC-1039rebuild-restart.shNegative and positiveA prod deploy or restart whose prod.dashboard.env has no usable GAOS_AIM_TENANT stops in the pre-flight, before the running stack is touched; a usable one passes; only the plain form GAOS_AIM_TENANT=name is read, exactly as Docker reads it, and restart is not checked.Implemented
TC-1040dashboard (go test)NegativeA pool whose members disagree, for a workspace this instance never provisioned, is refused as foreign-workspace and not written over (TestAForeignPoolThatDisagreesIsNotOverwritten).Implemented
TC-1041dashboard (go test)PositiveA product with no published Blueprint shows an alert on every tab (with a link to the Blueprint, and what to do on the Blueprint tab) and a no Blueprint chip on its card; both disappear once a Blueprint is published (TestAProductWithNoBlueprintIsFlagged).Implemented
TC-1042dashboard (go test)PositiveThe Pull requests drawer route answers only the drawer, out of band, moves the address unless it is the quiet refresh after a re-sync, and is refused signed out.Implemented
TC-1043dashboard (go test)PositiveThe Re-sync button is offered only to an auto-fix admin, in the row and the drawer of an alerted review row that still names no task code.Implemented
TC-1044dashboard (go test)PositiveA re-sync of a merged row records only the task code its body names: its bundle key, not its state, check time or links; one forge read, no comment.Implemented
TC-1045dashboard (go test)PositiveA re-sync of an open row is a poll read (one unknown-code comment), is refused while a poll reads the row, and records only the code past 90 days.Implemented
TC-1046dashboard (go test)NegativeA re-sync is refused, always with a 4xx toast, without a session, for a non-admin, an unknown or coded row, an unlisted product, no forge, an unfollowed repository, a forge error, the eleventh in a minute, and in replay.Implemented
TC-1047dashboard (go test)NegativeA test plan the QA tool refuses fails its card with the QA tool's own reason on the card and the bundle:failure line; a body that is not its JSON error, or a reason the egress detectors fire on, leaves only the status (TestTheQAToolsRefusalReasonReachesTheCard)Implemented
TC-1048dashboard (go test)PositiveThe case-proposals call has its own deadline: an answer later than the 15 s of every other QA call is still read, the client's own deadline is unchanged, and an answer later than the proposals deadline still fails as unreachable (TestTheCaseProposalsCallOutlivesTheShortDeadline)Implemented
TC-1049dashboard (go test)PositiveA link appends the trimmed entry and emits RecordUpdated (rule repo-link, the alias, never the email); a duplicate or another product's repository is 409, a bad entry or the placeholder 422, the 65th 422; a differing GitLab pin is refused and a new one stored; creation names a repository only for an admin (TestSetRepoLinkedLinks)Implemented
TC-1050dashboard (go test)PositiveAn unlink drops the entry and its kind, drops the GitLab pin unless an auto-fix list names it, leaves the auto-fix lists, removes an entry that does not parse or a placeholder, names the new primary, refuses an unknown entry with 404, and emits ReadinessDropped when the last repository leaves the minimum band (TestSetRepoLinkedUnlinks)Implemented
TC-1051dashboard (go test)NegativePOST /products/{id}/repos refuses a non-admin, a body over 4 KiB, an unknown action or product, a replay, an 11th link in a minute, no review client, an unreadable, moved or wrong repository, a slow or failing forge and a cross-site POST, each with its toast text and no change to the list (TestRepoLinkRouteRefuses)Implemented
TC-1052dashboard (go test)PositiveAn admin's link shows the write note read with the write token and the public, owner and other-product warnings, clears the Brain Town ownership cache; an unlink makes no forge call; the product page shows the block with its forms to an admin and without them to anyone else (TestRepoLinkRouteLinks)Implemented
TC-1053dashboard (go test)PositiveA linked repository's pull request plans cards and a merge of one opened before the link plans the review at merge; after the unlink a new pull request plans nothing; the defect targets keep the repository only while an auto-fix list names it (TestLinkedRepoGatesTheFlow)Implemented
TC-1054dashboard (go test)PositiveOn ArcadeDB, two links and an unlink survive a reopen of the store; skipped when no database is configured (TestRepoLinksSurviveARestart)Implemented
TC-1055dashboard (go test)PositiveThe GitHub read escapes the path, accepts only a matching full_name with permissions, surfaces 404 and 301 as statuses, and the write check reads push with the write token (TestRepoFactsGitHub)Implemented
TC-1056dashboard (go test)PositiveThe GitLab read escapes the path as one segment, accepts only a matching path_with_namespace, reads the visibility and the project id without caching it, maps access levels 40, 20 and none to can, cannot and unknown, and an unlink's forget evicts the cached id (TestProjectFactsGitLab)Implemented
TC-1057dashboard (go test)PositiveThree notices among other events: NoticesAfter(0) counts 3 with the highest seq and the epoch, after the second notice 1, after the highest 0; Notices(2) is the newest two, newest first (TestNoticesAfterAndNewestFirst)Implemented
TC-1058dashboard (go test)PositiveA store rebuilt from the stream by restartFrom answers the same NoticesAfter and Notices as the original: the lazy index needs no append site (TestNoticeIndexIsRebuiltAtBoot)Implemented
TC-1059dashboard (go test)PositiveWith WhatsApp off, NotifyPR of the Jenkins line on PR 5040 leaves one NoticeRaised ending · PR #5040, rule unit:failure, reason #5040, Event.Kind info, and no ContactNotified (TestBellRaisesWithWhatsAppOff)Implemented
TC-1060dashboard (go test)NegativeA WhatsApp send that fails still leaves the notice for the card, and ContactNotified says failed (TestBellRaisesBeforeAFailedSend)Implemented
TC-1061dashboard (go test)NegativeA quiet kind (automation:routine, D-123) leaves no notice (TestBellSkipsQuietKinds)Implemented
TC-1062dashboard (go test)PositiveA caller's URL is removed (the auto-fix line keeps its PR as the ref and loses its dangling colon), a line break becomes a space, and a 1 000-rune line is stored as exactly 300 runes ending … · PR #5040 (TestBellTextIsOneLineWithNoURL)Implemented
TC-1063dashboard (go test)NegativeA line holding a token-shaped secret is stored as the withheld sentence with its kind and reference kept, and the log never repeats it (TestBellWithholdsASecret)Implemented
TC-1064dashboard (go test)PositiveNotify and NotifyPR send WhatsApp exactly the strings they sent before; an automation planner card's notice carries its source PR as the ref (TestBellLeavesWhatsAppUnchanged)Implemented
TC-1065dashboard (go test)NegativeThe same notice twice within 10 minutes is stored once; 101 review:manual notices store 100 and one cap notice; a later unit:failure still lands; drops count repeat=1, cap=1 (TestBellGuardDropsRepeatsAndCapsPerKind)Implemented
TC-1066dashboard (go test)NegativeWith the queue on and the store blocked, NotifyPR returns and every WhatsApp message goes; a full queue counts a queue drop and does not use the cap; a store error counts a store drop (TestBellDoesNotWaitOnTheStore)Implemented
TC-1067dashboard (go test)PositivesseName(NoticeRaised) is notice; live.js listens for it and re-reads the bell in its open handler (TestNoticeHintAndLiveListener)Implemented
TC-1068dashboard (go test)NegativeThe seen POST clamps to the highest notice, never moves back, answers the bell with no badge, and sets a Secure HttpOnly __Host- mark; a negative, malformed, other-epoch or too-high mark gets the last-day default; sign-out expires it with a Secure cookie (TestSeenMarkRules)Implemented
TC-1069dashboard (go test)NegativeThe four routes refuse a signed-out caller with 401, and a cross-site seen POST is 403 with no mark (TestNotificationRoutesNeedTheSession)Implemented
TC-1070dashboard (go test)PositiveThe page links the card and the pull request through prPageURL (one link only, rel="noopener noreferrer"), gives #n and a malformed entry no link, escapes the text, shows a deleted product's id and posts seen (TestNotificationsPageRendersLinks)Implemented
TC-1071dashboard (go test)NegativeSigned out, / and /ui/needs carry no bell; signed in, the bar's bell shows one unread notice (TestUnreadIsZeroSignedOut)Implemented
TC-1072dashboard (go test)NegativeA ready test plan (bundle:planned) sent through notifyTo to the QA or the group, or through Notify, reaches no WhatsApp and leaves no ContactNotified, but is kept as a notice; the Contacts page offers no box for it and an old opt-in is still accepted (TestBellOnlyNoticeIsKeptNotSent)Implemented
TC-1073dashboard (go test)Negative and positiveA high or critical review alert keeps only the numbered findings whose own tag, the first before Reason:, is high or worse, in order; no such finding sends the whole body (TestReviewAlertFindings)Implemented
TC-1074dashboard (go test)NegativeThe alert's findings carry no live address (any scheme, every x.letter dot), no invisible rune, no mention, and every line, Unicode separators included, is quoted (TestAlertSafeText)Implemented
TC-1075dashboard (go test)Negative and positiveThe alert adds whole findings while they fit, then counts the rest (singular, plural, 100 or more); an over-long first finding is clipped; the result never exceeds its budget (TestFitAlertKeepsWholeFindingsAndCountsTheRest)Implemented
TC-1076dashboard (go test)PositiveA critical review sends the default recipient one message: the line, both links, the caveat and the high and critical findings defanged, no medium one; a 6000-byte body stays within 3500 runes with its links and a count (TestAHighReviewAlertCarriesItsFindingsToTheDefaultRecipient)Implemented
TC-1077dashboard (go test)PositiveThe default recipient's Notify on does not filter the review alert (TestAHighReviewAlertIgnoresTheDefaultRecipientsOptIn)Implemented
TC-1078dashboard (go test)NegativeNo default recipient, a group-id default recipient, a public-http gateway and findings that trip a detector (raw or after a zero-width rune is dropped) each send today's line alone; a public-http gateway with the D-131 opt-in carries the findings; an unlinked product sends nothing and keeps one notice (TestAHighReviewAlertWithheldGoesWithoutFindings)Implemented
TC-1079dashboard (go test)NegativeA critical review calls the review alert and never the author's line; a medium review still sends the author's line (TestAHighReviewNoLongerTellsTheAuthor)Implemented
TC-1080dashboard (go test)NegativeThe bell keeps the review alert's headline and card id, never its findings (TestTheBellKeepsOnlyTheAlertsHeadline)Implemented
TC-1081dashboard (go test)Negative and positiveGetTask reads a task’s url, title and every assignee; a plain RecordMerge sends the code, the product code, the pull request’s URL and the person with no nonce and reads NEEDS_DEV_DONE with its nonce; an accept sends mark_dev_done with the nonce; an outcome GAOS does not know is unchecked (TestTrackerRecordMergeCodec)Implemented
TC-1082dashboard (go test)NegativeEvery failing RecordMerge answer (12, 7, HTTP 404 and 501, 8, 16, 14, a timeout, 5) maps to its error and sets its own merge pause, never the shared breaker; 7 on an accept turns confirmations off for an hour without pausing plain writes; 7 from GetTask still latches the breaker (TestTrackerRecordMergeNeverTripsTheBreaker)Implemented
TC-1083dashboard (go test)Negative and positiveA valid web file is read; a malformed one sets the fixed webWhy, never echoes the file and leaves the profile usable; a task link is shown only on the web base’s scheme, host and path, under 300 bytes, with no whitespace (TestTrackerWebBase)Implemented
TC-1084dashboard (go test)Negative and positiveThe open→merged step marks a review row with a task code pending and freezes its MergeCode, or marks it codechanged when the code changed at that read; a row with no code, closed unmerged, already merged at load or on GitLab is not marked; a later re-read never moves the frozen code (TestMergeMarkOnTransition)Implemented
TC-1085dashboard (go test)PositiveThe eight merge properties and the confirmation’s hash lookup survive an ArcadeDB reopen, or the test skips with no database configured (TestMergeConfirmSurvivesARestart)Implemented
TC-1086dashboard (go test)PositiveA ready wait makes one plain RecordMerge carrying the binding’s product code, the GitHub URL and the author’s person, becomes recorded and sends one T1 to the author’s own number; a second pass calls and sends nothing (TestMergeSweepRecorded)Implemented
TC-1087dashboard (go test)Negative and positiveAn open sibling holds the wait past 24 hours with no call and no notice; once it merges, one call is made, one row is recorded and the other grouped, and the one notice names both pull requests (TestMergeSweepWaitsForSiblings)Implemented
TC-1088dashboard (go test)NegativeA task of another product is unknown with no call and one T3; a code already alerted while the pull request was open is unknown and silent (TestMergeSweepUnknownCode)Implemented
TC-1089dashboard (go test)Negative and positiveAn author with no tracker account, or one not assigned to the task, gets T3 and no call; an empty assignee list leaves the check to the tracker; a directory not loaded keeps the wait pending (TestMergeSweepAuthorChecks)Implemented
TC-1090dashboard (go test)NegativeA pr:merged line never reaches a group: a Contact with a group id, a Contact tracker with no number, a product WhatsApp does not cover, and an author nobody can reach each keep the bell entry and send nothing (TestMergeSweepNeverToAGroup)Implemented
TC-1091dashboard (go test)Negative and positiveNEEDS_DEV_DONE stores the token’s hash, the person and the nonce but never the token, sends the link on line 2 to the person’s own number, keeps it out of the bell and the log, and a long task title never cuts it (TestMergeSweepNeedsDevDone)Implemented
TC-1092dashboard (go test)Negative and positiveAn http public URL, a public-http gateway without the opt-in, no WhatsApp number, no nonce and confirmations turned off each refuse with T3 and mint no token; with GAOS_WA_CONFIRM_LINK_OVER_HTTP the link is sent; a failed send clears the token (TestMergeSweepLinkPreconditions)Implemented
TC-1093dashboard (go test)Negative and positiveThe same person’s next merge on a task with a live link is grouped with no call and no line; another assignee’s merge gets its own link (TestMergeSweepOneLiveLinkPerTaskAndPerson)Implemented
TC-1094dashboard (go test)NegativeAn interrupted mint is cleared back to pending; an accept younger than 30 s is left alone; an expired link becomes expired with no person, no nonce and one T3 (TestMergeSweepMaintenance)Implemented
TC-1095dashboard (go test)NegativeAn unavailable or unimplemented RecordMerge keeps the wait pending, a started wait is not tried again for 5 minutes, after 24 hours it is skipped with a nomerge give-up kept off WhatsApp, and one pass makes at most four calls of a budget of five (TestMergeSweepPendingAndGiveUp)Implemented
TC-1096dashboard (go test)NegativeA code that changed at the merge read is refused with one T3 and no tracker call (TestMergeSweepCodeChanged)Implemented
TC-1097dashboard (go test)NegativeA sweep write from a stale read does not overwrite a newer state (TestMergeSweepCASConflict)Implemented
TC-1098dashboard (go test)NegativeA tracker’s reason holding an address or a scheme is defanged and kept to one line in the WhatsApp text (TestMergeTrackerTextDefanged)Implemented
TC-1099dashboard (go test)Negativepr:merged is not a box on the Contacts page and no contact can opt into it (TestPRMergedNotOnContactsPage)Implemented
TC-1100dashboard (go test)PositiveThe tracker connection’s row carries and renders its merge write-back state and the web file’s reason (TestIntegrationsShowsMergeState)Implemented
TC-1101dashboard (go test)PositiveTwo looks at a live link show the buttons, the person and the task code, and change nothing and call nothing (TestMergeConfirmLookChangesNothing)Implemented
TC-1102dashboard (go test)Negative and positiveAn accept sends mark_dev_done with the stored code, product, person and nonce, records the row with no person and no nonce left, sends T1 with the undo hint to the person’s own number, and a second act is “already answered” with no call (TestMergeConfirmAcceptOnce)Implemented
TC-1103dashboard (go test)PositiveAn accept answered ALREADY records accepted:already and sends T1′ naming the release label (TestMergeConfirmAcceptAlready)Implemented
TC-1104dashboard (go test)NegativeA reject makes the row refused with no person and no nonce in one write, voids the nonce with a plain call, and the link reads “already answered” afterwards (TestMergeConfirmReject)Implemented
TC-1105dashboard (go test)NegativeA changed binding, an author no longer assigned and confirmations not granted each refuse the accept with no mark_dev_done call (TestMergeConfirmBindingAssigneeOrGrantChanged)Implemented
TC-1106dashboard (go test)NegativeAn expired link answers 410, an unknown token 404, and a malformed token or action 400 without consuming the token (TestMergeConfirmExpiredUnknownMalformed)Implemented
TC-1107dashboard (go test)Negative and positiveAn unavailable tracker releases the token with the person and nonce kept, an act within the cooldown makes no call, and after it the accept records (TestMergeConfirmReleasedAndCooldown)Implemented
TC-1108dashboard (go test)Negative and positiveAn accept whose tracker write succeeds after the sweep expired the row still records it and sends T1; an act during an accept is busy; an accept stuck 30 s shows the buttons again (TestMergeConfirmAcceptRacesExpiry)Implemented
TC-1109dashboard (go test)NegativeThe shell and the fragments carry no-store, no-referrer, noindex and the strict CSP, the shell never holds the token, a cross-origin act is 403, a body over 1 KiB is 400, hostile titles render as text, and the 31st request a minute from one source is refused (TestMergeConfirmHeadersLimitsEscaping)Implemented
TC-1110check-stacks.shPositiveProd passes GAOS_WA_CONFIRM_LINK_OVER_HTTP from the deploy shell, empty by default, and never hard-codes it to 1Implemented
No test case matches — try a broader word.

Test scenarios — implemented automations

Everything below runs today, in deploy/check-stacks.sh, deploy/rebuild-restart.sh, deploy/schema/scratch.sh and the two Go test packages, dashboard/ and pustaka/. Every expected message is quoted from the script or the test that produces it, not paraphrased.

check-stacks.sh — tier database isolation (TC-001, TC-002)

The script's own header names this the expensive check: a dev stack pointed at the production database starts cleanly, passes every smoke test, and is invisible at runtime. Since 2026-11-02 both tiers use one ArcadeDB server, the shared one on clinodb, reached over WireGuard at http://10.10.0.5:2480 through deploy/clinodb/compose.arcade-bridge.yml; the boundary is now the database and its user — gaos_dev read by user gaos_dev, gaos by gaos_prod, each refused (403) on the other's, which was measured when the users were created. Positive (TC-001): the files as committed print ok dev uses the gaos_dev database, ok dev does not use the PROD database, ok prod uses the gaos database (overridable per instance) (prod names it as "${GAOS_ARCADE_DB:-gaos}", so a second instance can set its own database), ok prod does not use the DEV database, ok dev reaches the database over WireGuard and ok prod reaches the database over WireGuard (prod names the URL as "${GAOS_ARCADE_URL:-http://10.10.0.5:2480}", so a second instance can point at its own ArcadeDB). Negative (TC-002): set dev's GAOS_ARCADE_DB to "gaos" — FAIL dev uses the gaos_dev database and FAIL dev does not use the PROD database, and the run exits 1.

check-stacks.sh — tunnel-only publish binding (TC-003, TC-004)

Without the 10.10.0.2 prefix a ports: mapping binds every interface the host has, including the LAN — and nothing at runtime says so. Positive (TC-003): dev publishes "10.10.0.2:19301:80", prod publishes "${GAOS_TUNNEL_IP:-10.10.0.2}:18301:80" (the default is vm-rnd-ardi; a second instance sets GAOS_TUNNEL_IP to its own wg address), each file has exactly one ports: mapping. Negative (TC-004): drop the address prefix ("19301:80") or add a second mapping — FAIL unexpected bind or FAIL n ports: mappings, want 1.

check-stacks.sh — no neighbour's network (TC-005, TC-006)

Least privilege as topology. Until 2026-11-02 the dashboard alone joined the shared infra network to resolve ArcadeDB by name; with the database an address on the tunnel, no service needs a neighbour's network at all. Positive (TC-005): ok compose.dev.yaml: no service on a shared infra network, and the same for prod. Negative (TC-006): put a service back on [internal, infra] — FAIL compose.dev.yaml: 4 line(s) join a shared infra network, want none (the count is every matching line in the file).

check-stacks.sh — distinct project identity (TC-007, TC-008)

Positive (TC-007): name: gaos-dev / 172.30.13.0/24 and name: gaos-prod / 172.30.12.0/24, neither reusing 172.30.10.0/24 or 172.30.11.0/24 (the neighbouring product's range). Negative (TC-008): set prod's subnet to 172.30.10.0/24 — FAIL prod does not reuse a neighbour's subnet.

check-stacks.sh — cross-tier parity (TC-009, TC-010)

The Secure cookie flag is env-driven, never scheme-derived — both tiers sit behind real TLS at the edge and see plain HTTP inside the tunnel, per D-023. Positive (TC-009): both files carry GAOS_COOKIE_SECURE: "1". The database name used to be asserted equal here too; since both tiers share one server it must differ, and that moved to TC-001. Negative (TC-010): turn dev's flag off "because it's dev" — FAIL dev keeps Secure cookies on — exactly the bug D-023 exists to prevent.

check-stacks.sh — no Docker socket on the proxy (TC-011, TC-012)

Positive (TC-011): no compose file mounts /var/run/docker.sock, and deploy/stacks/traefik.yml uses the file provider, not docker:. Negative (TC-012): mount the socket into a Traefik service — FAIL dev traefik has no Docker socket.

check-stacks.sh — no committed secret (TC-013, TC-014)

Positive (TC-013): no deploy/stacks/*.env file other than *.example is tracked by git, and neither compose file bakes a literal PASSWORD: "…". Negative (TC-014): git add a real docs.env — git ls-files --error-unmatch succeeds, so the check prints FAIL deploy/stacks/docs.env is tracked by git. Since 2026-11-02 the same loop covers the gateway's two secret files, deploy/stacks/*.aim-* (the ai-stack login and ai-manager's admin key, mounted read-only into the dev dashboard): ok dev.aim-chat.json is untracked, or FAIL deploy/stacks/dev.aim-chat.json is tracked by git. Since v0.37.0 (D-072) it covers the machine API's three token files, deploy/stacks/*.api-* (prod.api-admin, prod.api-qa, prod.api-qa-out): ok prod.api-qa is untracked, or FAIL deploy/stacks/prod.api-qa is tracked by git, and FAIL deploy/stacks/prod.api-qa is not a regular file (a missing bind-mount source is created by Docker as a root-owned directory) when one is a directory. Since v0.61.0 (D-099) prod.api-clients is the one directory the loop expects: ok prod.api-clients is a mode-700 directory of mode-600 files, or FAIL deploy/stacks/prod.api-clients is not a directory (the API clients file and tokens live in it), FAIL deploy/stacks/prod.api-clients is mode %s, want 700 and FAIL deploy/stacks/prod.api-clients holds %d file(s) that are not mode 600; the compose checks add ok prod mounts the API clients directory read-only, ok prod reads the API clients file from the clients directory and ok prod passes the unattended-start list from the deploy shell, empty (off) by default; since v0.62.0 (D-100) ok prod passes the PR-template product list from the deploy shell, empty (off) by default.

check-stacks.sh — trailing-slash redirects (TC-015, TC-016)

Without these the <base href> resolves one level up and every asset 404s, while the document itself still answers 200 — silent, browser-side, invisible to any status-code check. Positive (TC-015): deploy/traefik/dynamic.yml defines the /app and /docs redirect rules, and the landing catch-all has priority: 1. Negative (TC-016): remove the /docs$ rule — FAIL the /docs trailing-slash redirect is present.

rebuild-restart.sh — the status action (TC-017)

Positive: rebuild-restart.sh dev status prints docker compose ps plus one healthz probe over SSH through the tunnel, mutates nothing, and always exits 0 — including when the SSH probe itself fails or times out, since status returns before the pre-flight section runs at all and has no verification contract, only a report. There is no negative case in the usual sense: a broken tunnel shows up as raw error text in the output, not a nonzero exit.

rebuild-restart.sh — argument validation (TC-018, TC-019, TC-020)

All three are refused before any git, Docker or SSH call. TC-018: rebuild-restart.sh dev (no action) or rebuild-restart.sh deploy (no environment) prints usage() and exits 2. TC-019: rebuild-restart.sh dev deploy bogus-service prints unknown service 'bogus-service' -- valid: traefik landing dashboard docs redis, exits 2. TC-020: rebuild-restart.sh dev prod deploy prints environment given twice, exits 2 — the same path catches an action given twice.

rebuild-restart.sh — the check-stacks.sh gate (TC-021, TC-022)

Applies identically to deploy and restart, both tiers. Positive (TC-021): check-stacks.sh exits 0 → ok "check-stacks.sh passed", the action proceeds. Negative (TC-022): any TC-002/TC-004/etc. mutation is present → bad "check-stacks.sh failed -- refusing to $ACTION", exit 1, before Docker is touched — dev and prod are blocked equally.

rebuild-restart.sh — the prod dirty-tree gate (TC-023, TC-024, TC-025)

Prod builds from the working tree directly — there is no separate worktree yet (see deploy/STACKS.md, "Known gaps"). Negative (TC-023): git status --porcelain is non-empty on a prod action without --allow-dirty → refuses, prints the dirty file list, exit 1. Positive (TC-024): same dirty tree with --allow-dirty → proceeds, echoing "working tree is dirty -- proceeding, --allow-dirty was passed" and the file list. Positive, informational (TC-025): dev with a dirty tree — the dirty check is wrapped in if [ "$ENVIRON" = prod ], so dev is structurally exempt; there is no violation to demonstrate.

rebuild-restart.sh — the deploy test gate (TC-026, TC-027, TC-028, TC-029)

Runs only inside if [ "$ACTION" = deploy ] — restart has no test gate at all. Three checks run in order and stop at the first failure: TC-026: dashboard go test ./... fails → bad "dashboard tests failed", exit 1, pustaka's tests never run. TC-027: pustaka go test ./... fails → bad "pustaka tests failed", exit 1. TC-028: pustaka check ./docs fails (a broken internal link, a missing page-meta field, a stale registry entry) → bad "pustaka docs check failed", exit 1. TC-029, positive: all three pass → proceeds to docker compose build.

check-stacks.sh — no vendored asset ships without its licence (TC-150, TC-151)

Apache-2.0 redistribution means keeping the licence text of what you bundle, and deploy/Dockerfile.pustaka copies docs/ wholesale into the published image. So a font added without its OFL text ships in every image built afterwards, and nothing anywhere says so — the failure is a legal one with no runtime symptom at all. This is the only place that would notice. Positive (TC-150): one check per font family rather than per weight, because the licence covers the family — atkinson-hyperlegible has its licence text, bricolage-grotesque has its licence text, jetbrains-mono has its licence text — then the charting library and what travels with it: echarts has its licence text, echarts has its NOTICE (Apache 2.0 section 4(d) requires the NOTICE separately from the licence), and the d3 subcomponent has its licence text, because ECharts embeds BSD 3-Clause d3 code and its own LICENSE points at a text it does not itself contain. Negative (TC-151): a family whose text is missing or empty fails with <family> has no LICENSE-<family>.txt; the library's three fail with echarts has no LICENSE-echarts.txt, echarts has no NOTICE-echarts.txt and echarts cites LICENSE-d3 and none is vendored. Any of them makes the script exit 1, which stops the deploy at pre-flight.

check-stacks.sh — the vendored sisflow board ships with its grant (TC-310)

T-165. The sisflow board is vendored into the dashboard image, under dashboard/static/vendor/sisflow/, rather than into the docs, and it ships under the owner's Apache-2.0 grant (D-063, which answered OQ-25). The check runs only when the board's board/index.js is present, so a tree without the board passes. Positive: sisflow has its licence text and sisflow has its NOTICE — the NOTICE records the grant and the source commit. Negative (TC-310): the board present without either file fails with sisflow is vendored without LICENSE-sisflow.txt or sisflow is vendored without NOTICE-sisflow.txt, and the script exits 1, as for the fonts and the charting library (TC-150/TC-151).

rebuild-restart.sh — prod builds from a tag (TC-152…TC-155)

Until v0.13.0 both tiers built from the working tree, so production tracked whatever happened to be checked out. The --allow-dirty refusal narrowed that and did not close it: a clean tree is not a named tree, and "what is running in prod?" had no answer a month later. --tag <ref> checks the ref out into a detached worktree under .worktrees/ and re-runs the script inside it, so the invariant check, the test gate and docker compose build all read the tagged tree. It works without any path rewriting because both compose files address their build contexts relatively. Positive (TC-152): worktree at v0.12.0 (b4b43bf) -> .worktrees/v0.12.0 — or worktree already at v0.12.0 (b4b43bf) when one is being reused — then env files linked from the working tree (they are not in any commit), because the tier's credentials are created by hand and never committed, so a fresh worktree has none and compose would stop at env file not found; then re-running inside the worktree and, from the second invocation, inside the worktree at v0.12.0 (b4b43bf). The --tag flag is deliberately not forwarded to that second invocation: the script it runs is the tag's own copy of this file, which may predate the flag entirely, and dropping it is what lets --tag build a ref older than the feature. Negative (TC-153): a prod action with neither flag is refused — prod builds from a tag -- refusing to deploy from the working tree, followed by the available tags. Negative (TC-154): an unknown ref is resolved before anything is created, so no such ref: v9.9.9 and nothing was created. `git tag` lists what is available. leave no half-made directory behind. Positive (TC-155): --from-tree is the deliberate escape hatch — building from the working tree (b4b43bf) — and the dirty refusal still guards it with working tree is dirty -- refusing to touch prod. Passing both flags is a usage error: --tag and --from-tree contradict each other. Dev is unchanged and needs no tag, which is the point of dev. Since v0.37.0 (D-072) a prod --tag whose compose mounts the machine API's token files also refuses to start when one is missing: FAIL deploy/stacks/prod.api-qa is missing (or is not a regular file), with create it, mode 600 (empty is fine) -- see compose.prod.yaml -- then re-run., and prints ok the machine API's token files exist otherwise; Docker would otherwise create the missing source as a root-owned directory. Since v0.61.0 (D-099) the same block refuses a missing API clients directory: FAIL deploy/stacks/prod.api-clients is missing, not owned by <user>, or not mode 700, the hint create it: mkdir -m 700 deploy/stacks/prod.api-clients && install -m 600 /dev/null deploy/stacks/prod.api-clients/clients -- then re-run. and exit 1; otherwise ok the API clients directory exists.

rebuild-restart.sh — the test gate runs with or without a local Go (TC-147, TC-148)

The VM these stacks run on has Docker and no Go toolchain — not on PATH, not under a login shell, not in /usr/local/go. The gate above has no bypass flag, so until v0.11.0 the documented deploy path could not complete on the machine it deploys to, and the workaround was to run docker compose by hand: the one thing .claude/agents/gaos-deploy.md tells the subagent never to do. A gap in the tooling that forces the rule to be broken is a gap in the tooling. Positive (TC-147): the script now picks an arm before the gate and says which, go toolchain: local go1.24.x or go toolchain: docker golang:1.24-alpine, and all three checks run identically either way — the container arm mounts the repo at /src and keeps GOCACHE inside itself, so no build cache lands in the working tree. The image is GAOS_GO_IMAGE, pinned by default. Negative (TC-148): a machine with neither Go nor Docker stops the deploy rather than skipping the gate — no go toolchain and no docker -- the test gate cannot run, followed by install Go, or install Docker so the gate can run in $GO_IMAGE, exit 1. A gate that silently skips itself is worse than one that cannot run, because the output still reads as though the tests were part of the deploy.

rebuild-restart.sh — build and up (TC-030, TC-031, TC-032)

Positive (TC-030): docker compose build $SERVICE and up -d $SERVICE both exit 0, the container list prints, verification begins. Negative (TC-031): the build fails (a broken Dockerfile, a missing build context) → bad "build failed", exit 1, up -d never runs. Negative (TC-032): up -d fails (e.g. a port collision with a stray container) → bad "up -d failed", exit 1.

rebuild-restart.sh — the restart action (TC-033, TC-034)

Positive (TC-033): docker compose restart $SERVICE exits 0 — no build step ever runs for this action — verification begins. Negative (TC-034): restart fails (e.g. the named service isn't currently running) → bad "restart failed", exit 1.

rebuild-restart.sh — single-service scope (TC-035)

Positive: rebuild-restart.sh dev deploy dashboard builds, ups, or restarts only the dashboard service — traefik, landing and docs are untouched, visible in the printed dc ps line as the only service with a fresh timestamp.

rebuild-restart.sh — verification: bind address (TC-036, TC-037)

Positive: ss -ltn shows the port bound to $TUNNEL:$PORT only (TUNNEL is $GAOS_TUNNEL_IP, default 10.10.0.2) → vok "bound to $TUNNEL:$PORT only". Negative: a compose or Traefik regression drops the tunnel prefix, or the entrypoint binds 0.0.0.0 → vbad "unexpected bind: …".

rebuild-restart.sh — verification: healthz (TC-038, TC-039)

Positive: curl through the SSH tunnel with the right Host: header returns a body containing "ok":true → vok "healthz ok:true". Since 2026-11-02 the probe is polled every 3 seconds for up to GAOS_HEALTH_WAIT seconds (default 90), and the body is printed with (after Ns): the dashboard applies its schema over the tunnel to clinodb before it listens, and a single probe straight after up -d reported every healthy deploy as three failures. Negative: the dashboard is crash-looping or Host: routing is misconfigured, so the wait runs out → vbad "healthz did not report ok:true".

rebuild-restart.sh — verification: route status codes (TC-040, TC-041)

Positive: / → 200, /app → 301, /docs → 301, /app/ → 200 — all four vok. Negative: any one path returns the wrong code (e.g. the /app redirect regressed to TC-016's failure mode) → vbad "$path -> $got, want $want" for that path only; the other three still pass independently.

rebuild-restart.sh — verification: base href survival (TC-042, TC-043)

Positive: GET /app/ contains exactly <base href="/app/"> → vok. Negative: the base href is stripped, wrong, or absent — a template regression, or a downstream effect of TC-041's redirect failure — → vbad "base href: '…', want '<base href=\"/app/\">'".

rebuild-restart.sh — verification: --full-verify checks (TC-044, TC-045, TC-046, TC-047)

Only run when --full-verify is passed. TC-044, positive: a request carrying X-Forwarded-For: 203.0.113.9 produces a Traefik access-log line for /api/healthz whose ClientHost is 203.0.113.9 → vok. TC-045, negative: Traefik's trusted-proxy list doesn't include the tunnel hop, so the header is ignored and the log shows the tunnel's own address instead → vbad "ClientHost not 203.0.113.9: …". TC-046, positive: curl https://$HOST/api/healthz from the public edge returns "ok":true within 15 seconds → vok. TC-047, negative: the public path is down — edge nginx misconfigured, an expired certificate, the WireGuard tunnel down — → curl times out or returns a non-JSON body → vbad "public healthz did not report ok:true".

The rest of this section is the two Go test packages. They differ from the shell automations in one way worth stating: a shell check prints ok or FAIL and keeps going, while a Go test fails with a message written for whoever has to fix it. Those messages are what is quoted below — copied from dashboard/main_test.go and pustaka/main_test.go, not reconstructed. One TC- per func Test…, because that is the unit go test -run can actually select; several of them are table-driven and carry both a positive and a negative half, and where that happens both halves are described.

dashboard — routes and rendering (TC-054, TC-055, TC-056, TC-057)

The file's own header explains why these exist: a dashboard has almost no assertions of its own, so a wrong template renders a page that looks fine. Positive (TC-054): TestEveryRouteAnswers walks 49 method/path cases with a back-office cookie — the documented surface (whose desk routes answer JSON since v0.29.0), the back office and every product tab, the wizard, the page routes of D-094 with their two redirects and a missing product (thirteen cases), and the Board's own route, its table and the client board's paged document of D-095 (four) — and the negative half of the same table asks for GET /products/nope and five routes of the retired floor, and requires a 404 for each; a mismatch prints %s %s = %d, want %d followed by body: %s. Negative (TC-055): three surfaces are fetched and the body must not contain template error — %s rendered a template error. Negative (TC-056): the style-attribute trap. html/template refuses to interpolate a plain string into a style="" context and substitutes the literal ZgotmplZ; the page still renders and has silently lost every colour, width and role tint, so five surfaces are checked and the failure is %s emitted ZgotmplZ -- a computed style lost its template.CSS type. Negative (TC-057): X-Forwarded-Prefix is attacker-controlled on an unproxied request and its value lands in browser-visible output. Three valid values must produce <base href="/app/"> or <base href="/">; eight hostile ones — https://evil.example, //evil.example, a bare app, a backslash, a quote, a newline, and a 200-character path — must each be refused back to <base href="/"> rather than sanitised into something plausible, or prefix %q: want %s.

dashboard — health (TC-058, TC-059)

Positive (TC-058): with no database configured, /healthz parses as JSON, ok is true and store is memory — that is the local stack, and the failure says so: an unconfigured database must stay a 200: that is the local stack. Negative (TC-059): pointing Arcade at http://127.0.0.1:1 reproduces the failure the deploy check exists to catch — wrong network name, wrong alias, wrong password — and must give a 503: status = %d, want 503, then database = %v, want unreachable.

dashboard — the auth boundary (TC-060, TC-061, TC-062)

The check behind this boundary is a placeholder (see M6.4); its shape is not, and that is what these pin. Negative (TC-060): the test walks all nine guarded routes rather than sampling them, because a route that quietly never had a check is exactly what it exists to find — %s %s = %d, want 401. Negative (TC-061): a login value that is not an email is a 422 carrying Enter the email, or status = %d, want 422 and the error message did not reach the form. Positive (TC-062): the tenant label contains a middle dot, and net/http drops invalid bytes from a cookie value silently, so an unescaped value is a truncated header rather than an error; the cookie must round-trip to loop-eng · a@b.c, or no tenant cookie was set / round-trip = %q.

dashboard — floor mutations and their guards (TC-063, TC-064, TC-065, TC-149)

Negative (TC-063): approving a desk with no gate must be rejected. Negative (TC-064): architecture §06 sets max_retry_count at 3 per task, and the guardrail belongs in the store rather than the UI because the UI is not the only caller it will ever have — three retries succeed, then the fourth retry must be refused, and the error text must contain guard or the refusal must say why: %v. Positive (TC-065): cancelling releases the desk, or state=%s agents=%v, want idle with no agents. Positive (TC-149): the same approval, but on a floor rebuilt from the graph rather than seeded from fixtures. ArcadeStore.load() wrote its own MemStore literal and left rng nil, because nothing in the load path reads it — but advance() does, through pickTask, and ApproveTask calls advance(). So a dashboard restarted against a populated database segfaulted the first time an operator released a merge gate, and every store the conformance suite builds goes through NewMemStore, which sets rng, so nothing caught it. The case builds the store the way load() does and drives that path: approving a gate on a rebuilt floor: %v, then releasing a merge gate must emit at least ApprovalGranted, then advance must have seated a task; a nil rng used to panic here instead. The fix is one construction path — newProjection() — because a projection is a store with no fixtures in it, not a store with no fields.

dashboard — the readiness rubric and the planning floor (TC-156…TC-160)

BRD §8.2 specifies the rubric as twelve machine-checkable signals worth 100 points, and BR-07 makes 45 a refusal line rather than a label. Until v0.13.0 dashboard/model.go scored seven booleans and marked itself as the stand-in, and the planner planned whatever it was given. Both failures are quiet ones: a rubric whose weights no longer sum to 100 still returns a plausible number and still sorts records, and a planner that plans an empty brief returns a plan that is confidently wrong. Positive (TC-156): the weights are the document's, not ours — the rubric has %d signals, want 12 and the twelve weights sum to %d, want 100 — and every signal must carry the line the author is shown when it fails, or signal %q carries no missing-list line. Positive (TC-157): the honest ceiling is 95, not 100. Eleven signals can be earned today; §8.2's verification strategy asks how correctness is proven and the in-memory record has nowhere to record the answer, so the signal is listed, scores zero and says why rather than being dropped — a complete record scores %d, want 95, 95 is band %q, want complete, a complete record is missing %d signals, want 1, and the one deferred signal should be verification strategy, got %q. A rubric that quietly removes the signal it cannot measure is how a bar moves without anyone voting on it. Negative (TC-158): the other end — an empty record scores %d, want 0, 0 is band %q, want insufficient, an empty record is missing %d signals, want all 12. Negative (TC-159): criteria coverage is the signal most likely to be softened into partial credit, so it is pinned all-or-nothing. One must story with a single criterion forfeits all twelve points — one must story with a single criterion must forfeit the whole signal and losing coverage costs the full 12 points: scored %d, want 83 — and a record with no stories at all must not collect them by vacuous truth, which is the quiet way an empty brief scores well: a record with no stories must not earn coverage by vacuous truth. Negative (TC-160): BR-07 itself. The draft record p-5 scores 35, and planning it must fail rather than produce the stage template — planned %d tasks for a record scoring %d; BR-07 refuses below %d, with a refused plan must be nil, not a half-built one. The refusal must satisfy ErrRejected, so every handler that already turns a rejection into a toast keeps working (a refusal is a rejection, not a failure: %v), and it must carry the list, because a refusal that does not say what is missing is a dead end (the refusal must carry the missing list, got %T, a refusal that does not say what is missing is a dead end, the refusal reports %d/%s, the record scores %d/%s). Finally a floor that never lets anything through is a wall, so the filled record still plans: p-1 scores %d and must still plan: %v. The rule lives in MemStore.PlanWorkflow, which is also what ArcadeStore plans through, so there is one implementation and the two stores cannot disagree about it.

dashboard — the pre-dispatch egress pass (TC-161…TC-175)

L-4 specifies a pass that runs on every context slice before the model sees anything, and BR-32 makes a positive detection refuse the dispatch rather than report the leak afterwards. R-11 is what that is for: egress is "automatic, continuous, and widens on every retry ... correct behaviour, unreviewed content, irreversible send." The pass is a pure function, so every case below is a table entry rather than a scenario. Positive (TC-161): the verdict becomes an event and the reducer folds it, so two screens of one packet must agree — Screen returned a different verdict on the second call with identical input, and the message goes on to say why: "a pass that is not a function of its arguments makes a replay disagree with the run". Positive (TC-162): a control that never lets anything through is not a control — a slice with nothing to find was refused: rule=%q reason=%q — a pass that never lets anything through is not a control, it is an outage, and the cleared packet must carry a digest, because 04-execution.sql declares ContextSlice.digest and an empty one proves nothing. Negative (TC-163): seven real credential shapes — an Anthropic key, an AWS access key id, a private-key block, a GitHub token, a password assignment, a JWT and a URL carrying basic auth — each must refuse: a %s was in the slice and Screen allowed the dispatch; L-4 says a positive detection refuses BEFORE the model sees anything, and a secret scored afterwards has already left the building. Negative (TC-164): the most dangerous thing this file could do is record what it found. the verdict for detector %q contains the matched text; a DispatchRefused event is append-only (BR-04) and rendered to a browser, so this writes the credential permanently into the record that exists to prove it never left. Negative (TC-165) and Positive (TC-166): the allowlist and the detectors sit on opposite sides of one line. A path outside the allowlist is dropped — the allowlist bounds what leaves, it does not abort — the part is dropped and ContextRedacted records it — and a key inside a file that was dropped is therefore not a refusal at all: a key inside a dropped .env refused the dispatch: rule=%q; the file never left, so it is a redaction — refusing here would make every repository with a .env undispatchable. Negative (TC-167): %q cleaned to a path outside the workspace and the pass allowed it; a path that escapes the workspace is a refusal, or an allowlist is a suggestion. Positive (TC-168): the bug the standard library hands you for free — matchGlob(%q, %q) = %v, want %v; path.Match's * never crosses a separator, so "src/**" that matched only "src/a" would be a policy that looks configured and protects nothing. Negative (TC-169, TC-170): the whole-slice limit refuses and the per-file limit drops, and collapsing the two would lose the distinction — truncating makes the frozen packet a lie about what the model received (D-051), so the limit refuses. Negative (TC-171): L-6's no-egress mode — local_only is set and target %q is not local, and Screen allowed it; L-6 fails the task rather than downgrading quietly — and the other half, that it still permits a local model. Negative (TC-172): the reported reason is a fixed ranking rather than whichever check ran first: a slice that was both oversized and carried a credential was refused with rule %q; the operator must be told about the key, not the byte count. Positive (TC-173): the two defaults differ and a reader will assume they match, so both are pinned — an empty Redact list is a scanner nobody armed, and the default for a forgotten security control is on against an empty AllowPaths is an allowlist nobody wrote, which cannot be a list of files somebody meant to exclude. Negative (TC-174): every part was redacted and the dispatch went ahead with an empty slice; spending an attempt on a packet with nothing in it burns a retry against BR-17's guard and teaches the reviewer nothing. Negative (TC-175): the gate is a type — an adapter takes a Cleared, and only the pass returns one — but everything here is one Go package, so the type stops a caller forgetting and not a caller deciding. The deliberate version is caught by walking the package's syntax tree: %s:%d constructs a populated Cleared outside egress.go; BR-32 says nothing reaches a provider without the egress pass, and the only reason that is true is that Screen is the only thing that makes the argument Dispatch takes.

dashboard — the handoff document (TC-176…TC-180)

BR-30 requires a handoff document in the declared shape at the declared path, and D-050 promoted it from a convenience to the thing correctness rests on. §7.6 calls it a contract rather than a convention: "an agent that writes prose where a parser expects a field has failed the attempt." Positive (TC-176): the shape printed in the BRD parses field for field — field %s parsed as %q, want %q; the handoff is a contract, not a convention, and a parser that is lenient about the shape is a chain that degrades quietly, plus parsed %d acceptance criteria, want 2; no criterion means no verdict, and the reviewer will invent one and criterion 0 evidence is %q; the evidence is what makes a met criterion checkable rather than claimed. Negative (TC-177): a document with no front matter parsed successfully; §7.6 says an agent that writes prose where a parser expects a field has failed the attempt. Negative (TC-178): a missing field and an invented status are the same failure — a handoff with no run id and no criteria was accepted; all four ways this fails — absent, no front matter, unparseable, incomplete — are one failure to the retry loop and carry one signature, and status "probably-fine" was accepted; the contract declares complete|blocked|partial and a fourth value is a document GAOS cannot score. Positive (TC-179): the usage block is optional and its absence is not a zero — the absent usage block parsed as %+v, want nil; nil is what makes the basis unavailable rather than a zero somebody invented. Negative (TC-180): a workspace with no handoff document read successfully; BR-30 says a missing one is a failed attempt, never a silent pass. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-281.

dashboard — the version pin and the boot smoke test (TC-181…TC-185)

D-049 pins the first supported adapter at @anthropic-ai/claude-code@2.1.238 and leaves one obligation: "the pin is worthless without the boot smoke test §7.6.3 already promises, and that lands with T-057 rather than before it." The comparison is pure and tested against captured output; the exec half is TC-192. Positive (TC-181): ParseVersion(%q) = %v, want %v; this is the captured output of the version D-049 pins, and the parser reading it wrong is how a correct install refuses to boot. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-283. Negative (TC-182): ParseVersion(%q) returned %v with no error; a zero version compares as below the pin, which sends the operator hunting a drift that is really a changed banner — and against a pin with no minimum it would silently pass. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-283. Negative (TC-183): both edges, and the closed grammar — pin %q permits %v = %v, want %v; >= is inclusive and < is exclusive, and a pin that got either edge wrong would look right for every version except the two that matter, with ParsePin(%q) succeeded; the grammar is >=x.y.z and <x.y.z and nothing else, because an operator guessing which one ~ implements has pinned something other than what they meant. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-283. Negative (TC-184): a tool reporting %v against pin %q started the dashboard; §7.6.3 pins the CLI because flags and output formats move with no deprecation window, and an adapter on an unmeasured version produces wrong evidence rather than an error, and the refusal must name all three of the tool, the version and the pin, or the operator cannot tell a drift from a missing binary. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-283. Positive (TC-185): an unconfigured adapter is a valid state — an empty ModelConfig gave (%v, %v), want (nil, nil); an upgrade that refused to boot until a new variable was set would take every running dashboard down — while the retired mode, a half-configured gateway and an unbuilt API mode all refuse. Since v0.29.0 the case lives in adapter_guard_test.go: GAOS_MODEL_MODE=cli gave %v; the CLI path was retired (D-055) and must refuse the boot saying so, gateway mode with no URL built an adapter; a half-configured gateway is a deployment error, not a run to fail later, and mode api built an adapter; T-058 is not built, and an operator who asked for a metered adapter must not silently get another.

dashboard — the CLI adapter, and the seam guards that outlived it (TC-186…TC-193)

T-057, run against a stand-in tool in testdata/fakecli rather than a real provider: no network call, no credential and no cost in go test. The fake exists to reproduce the finding behind D-050, which is the one that makes this seam's shape necessary. Negative (TC-186): the measurement was that Claude Code separates a crash from a completed run but not a refusal from a success. So the fake exits 0 having written status: blocked, and the adapter must still say blocked — the tool exited %d and wrote status %q, and the attempt reports outcome %q — D-050: the exit code may classify crash versus ran and nothing else, because Claude Code exits 0 with terminal_reason: completed for a task it could not do. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-280. Negative (TC-187): exit 0 with nothing written, and exit 0 with prose written, are one failure — the tool exited 0 and wrote no handoff document, and the attempt came back as %q with signature %q; BR-30 says missing or unparseable is a failed attempt with the signature handoff-missing, never a silent pass, and splitting the class would give the guard two counters where BR-17 specifies one. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-281. Positive (TC-188): the document is read even after a bad exit — a non-zero exit skipped the handoff read; the document is the authority whatever the process did, and a run killed after writing it still said what happened. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-280. Positive (TC-189): D-051's closing measurement was that a default invocation inherited the host's configuration and roughly 24k cache-read tokens. So the child's environment is built rather than inherited — the child inherited a host variable nobody named; D-051 measured 24k cache-read tokens arriving this way, which makes the frozen slice a lie about what the model received — and the named session variables must still arrive, or the tool cannot find its own session. Retired in v0.29.0 with the CLI execution layer (M14.7). Positive (TC-190): cost comes from the tool's own report — the tool reported total_cost_usd and the attempt carries %v/%q; D-051 says the first adapter reports, so the basis is measured from the first run — cache reads included, because the cache-read count is real spend the operator was billed for, and dropping it under-reports every run; and a silent tool gives %q, want %q; BR-37 and D-044 forbid an unpriceable figure being reported as zero or dressed up as an estimate. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-275 and TC-282. Negative (TC-191): since v0.29.0 against the gateway adapter, in adapter_guard_test.go — the adapter dispatched a zero-value Cleared; BR-32 says nothing reaches a model provider without passing the egress check first, and a type is only most of that guarantee, and the fake gateway must have received nothing: a zero-value Cleared reached the gateway as %d request(s). Positive (TC-192): the exec half of the smoke test, both ways — a tool outside the pin passed the boot smoke test; the pin is inert without it, which is exactly what D-049 said the obligation was. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-283. Negative (TC-193): BR-33 made checkable rather than trusted, by the same syntax-tree walk TC-175 uses: %s:%d branches on the invocation mode outside the adapter; BR-33 says the mode may be recorded and never branched on, and TaskRun.invocation exists so that prohibition can be checked rather than trusted. Since v0.24.0 the walk also treats InvocationGateway as a mode constant. Since v0.29.0 it lives in adapter_guard_test.go and exempts exactly the seam — adapter.go, adapter_aimanager.go, modelconfig.go and the two test files that drive it.

dashboard — the dispatch route and its two events (TC-194…TC-200)

T-127. L-5 requires that redactions and refusals "appear in the timeline like any other state change", and an event with no emitter appears nowhere — which is why these run through MemStore.DispatchTask rather than through the pass. The simulator is pointedly not the emitter: dashboard/events.go calls emitting a catalog event from sim.go inventing evidence. Positive (TC-194): a dispatch that cleared the egress pass emitted %v; the stream is the record (BR-04) and a dispatch nothing wrote never happened, and the event carries the digest, because an attempt that does not name its input cannot be audited against one. Negative (TC-195): the one surprising line in the method, pinned so nobody “fixes” it — DispatchTask returned err=%v on a refusal; a refusal is a recorded state change, and returning ErrRejected means the two events L-5 requires are written to the stream and never reach the response that renders them. Negative (TC-196): the desk is %q after a refused dispatch, want blocked — a desk left idle says nothing happened, and something did, plus a refused dispatch did not raise the attention count (%d -> %d); stats() counts blocked desks, and a refusal nobody is told about is indistinguishable from a broken filter, and the payload's rule, because a reducer that had to parse the sentence would break the first time somebody improved the wording. This case is why TC-139 in dashboard/state_test.go changed: idle → blocked was asserted illegal with the reason "nothing is running, so nothing can be blocked", and BR-32 created the counter-example. The row is inverted rather than deleted. Positive (TC-197): the repository parts come through the same seam as TC-200's — a slice with a part cut dispatched without a ContextRedacted: %v; L-5 exists because an invisible filter is indistinguishable from a broken one. Positive (TC-198): two brand-new event types are the likeliest place for the reducer's contract to lapse — folding the stream twice put desk %s in %q then %q; the reducer is required to be pure and order-stable, and a refusal the reducer does not reproduce is a refusal that vanishes on restart. Negative (TC-199): the read-only handle dispatched a task; the floor is parked in the past, and a dispatch from there would send a slice assembled out of a historical record. Negative (TC-200): the end-to-end version of R-11, with a real key in a repository file. Since v0.29.0 GAOS reads no folder on its host, so the file reaches the packet through the store's repository seam (repoParts, where M1.2's index and the Blueprint's knowledge sources will plug in) rather than off a disk; the pass it meets is the same — a workspace carrying a credential was dispatched; BR-32 says a detection refuses the dispatch, and the safety score in domain E cannot recall a sent slice, and the refusal pill contains the credential; the event stream is append-only and rendered to a browser, so this writes the key permanently into the record that exists to prove it never left.

dashboard — store isolation, the unbounded stream and replay (TC-066…TC-070)

Negative (TC-066): a snapshot that shares its slices with the live floor is a replay that keeps changing under the operator, so Clone is tested directly rather than through a handler — mutating a snapshot changed the store. Negative (TC-067): this case asserted the opposite until v0.11.0. It required the stream to stay capped at a hundred and sixty entries, which is what BR-04 says an append-only record must not be, and T-013 removed the ring. It now requires that nothing is ever dropped: after four hundred ticks the oldest event is still genesis (oldest event is %s, want FloorOpened -- the front of the stream was dropped) at sequence one (oldest event has seq %d, want 1), with no hole anywhere behind it (gap in the stream: seq %d follows %d). Genesis is still reachable (replay to genesis: %v) and replaying past the end must still fail: replaying past the end must be a not-found, not a silent clamp. Negative (TC-068): twenty ticks while an operator is replaying must not move the floor — the floor advanced while an operator was replaying it. Positive (TC-069): forty ticks must produce events and spend, or 40 ticks emitted no events and 40 ticks cost nothing. Negative (TC-070): a paused floor advanced its clock.

dashboard — the master record (TC-071…TC-074)

Positive (TC-071): the seeded record projects to 1 + 7 + 4 + 10 + 2 + 2 + 2 vertices and three of its four stories carry a task, so coverage = %d, want 75. Negative (TC-072): the complete record earns every signal it can express and the thin one must not — p-1 is a complete record: %d of 12 signals, want 11, p-1 scores %d, want 95, p-5 has no stories and no diagrams; readiness must say so, and p-5 scores %d, which clears the planning floor of %d. Negative (TC-073): a story with no role must be refused. Negative (TC-074): mutating a returned Master changed the store.

dashboard — planning and the wizard (TC-075…TC-081)

Positive (TC-075): a plan is eight tasks — planner, architect, backend and QA twice, security, devops. It must start planner then architect (a plan always starts planner then architect); every DEPENDS_ON must point at a task earlier in the plan, which is the acyclicity invariant from the ArcadeDB model §11 (%s depends on %s, which is not earlier in the plan); and the last task must be the gated devops one running the top tier (the gated task is the last one, and it is devops, then a gated task runs on the top tier, got %s against claude-opus-5). Positive (TC-076): a record with no stories still follows the six-task stage template — retired 2026-08-20. That case asserted the absence of BR-07: a record scoring below 45 is precisely what the planner must now refuse, so the behaviour it pinned was the gap, not a feature. Its replacement is TC-160, and the row is struck rather than renumbered. Positive (TC-077): planning a story that had no tasks must raise coverage: US-04 had no tasks; planning it must raise coverage (%d -> %d). Negative (TC-078): a workflow with no objective must be refused. Positive (TC-079): the wizard's draft round-trips through hidden form fields, and if that breaks, step 3 silently plans against the wrong product — the body must still carry name="product" value="p-1" and both story ids, or the draft lost %s. Negative (TC-080): advancing without a product is status = %d, want 422 and the body must carry Pick the product, or the refusal must reach the operator as a toast. Positive (TC-081): going back must never be blocked by the field you went back to fix — going back was blocked: %d.

dashboard — the sequence renderer and the helpers (TC-082…TC-086)

dashboard/seq.go builds SVG by hand, so every value that reaches it must be escaped by hand too — it is the one place in the codebase where html/template is not doing that work. Positive (TC-082): a two-line source renders <svg class="seq", both participants, the message text and class="arrow ret" for the dashed return, or missing %q in plus the SVG. Negative (TC-083): a source with no arrow falls back to <pre> — a source with no arrow is shown as text, got %q. Negative (TC-084): a source containing <script> in both the participant and the message must not reach the output unescaped: unescaped markup reached the SVG:. Positive (TC-085): splitLines drops blanks and trims — got %q. Positive (TC-086): slug(%q) = %q, want %q, over Route Planner, a double-spaced string and Ops/Warehouse.

dashboard — the graph schema and its two reconciliations (TC-109…TC-112)

The DDL in dashboard/schema/ is extracted from the data model document and reconciled against ArcadeDB 26.7.2; schema/RECONCILIATION.md records both deviations and how to reproduce the measurement. These four cases need no database — they guard the text, because the live failures they stand in for are slow and quiet. Positive (TC-109): the counts the model document states about itself must hold — 28, 3 and 37 since 11-blueprint.sql added Policy, KnowledgeSource, BlueprintVersion and five edges (§15) — or %s types: got %d, want %d (the model document's own count) -- %v; the two supertypes are excluded and their absence is fatal on its own (supertype %s is not declared; every concrete type EXTENDS it), and a repeated declaration fails with type %s is declared more than once. Negative (TC-110): D-045 replaced the UNIQUE keyword — which 26.7.2 rejects outright — with a unique index on the endpoints, and that substitution is the one most likely to rot silently, since duplicate edges do not raise, they accumulate: %d edge types have no UNIQUE index on (`@out`, `@in`), so duplicate edges between the same pair will accumulate silently: %v -- see schema/RECONCILIATION.md deviation 1. The keyword coming back is caught separately — %s: `CREATE EDGE TYPE ... UNIQUE` is not valid on ArcadeDB 26.7.2 and fails the whole file: %s. Negative (TC-111): deploy/schema/apply.sh promises a second run is a no-op, which is what makes it safe to point at dev or prod, and that promise rests entirely on the clause: %s: declaration without IF NOT EXISTS breaks re-application: %s. 10-storage.sql is asserted to be ALTER-only for the same reason, since an ALTER has no such clause to carry — 10-storage.sql declares %d types; it is meant to be ALTER-only, and an ALTER carries no IF NOT EXISTS to protect it. Positive (TC-112): a guard on the other three, which would otherwise pass vacuously over an empty directory — no schema file numbered %s; apply.sh runs them in filename order and a gap means a dependency was skipped.

dashboard — the ArcadeDB query path and the embedded schema (TC-113…TC-123)

T-007 gave dashboard/arcade.go a query path; before it, the only thing in this repository that could speak SQL to ArcadeDB was deploy/schema/apply.sh, in shell. These eleven cases run against an httptest server that speaks the same envelope, so they need no database; the live version of the same assertions is TC-125. Positive (TC-113): a read must reach the read-only endpoint, or a read went to %q, want /api/v1/query/gaos -- the command endpoint would accept a write from a path that is meant to be read-only; and the values must travel as parameters rather than be pasted into the statement, since a product goal containing an apostrophe would otherwise be a syntax error and rather worse than that — the parameter was interpolated into the statement text. Positive (TC-114): the write path is the other endpoint — a write went to %q, want /api/v1/command/gaos. Negative (TC-115): every SQL failure on this server is an HTTP 500, so the status says only that something went wrong and the body says what: the message reads %q; it must carry the detail rather than "Error on transaction commit", which names no cause. Negative (TC-116): IF NOT EXISTS is on every schema statement, but ArcadeDB still reports some re-declarations as errors, and treating those as failures would make the idempotence this project relies on unverifiable — AlreadyExists() is %v for %s, want %v. Negative (TC-117): an unset GAOS_ARCADE_URL is the local stack and a valid state, so a statement must refuse rather than dial nothing (Query on an unconfigured store returned %v, want ErrUnconfigured) while the probe keeps answering as before — Probe reported (%q, %v), want ("unconfigured", nil). Positive (TC-118): an event write allocates a sequence number, writes the event and writes the state together, so a statement that lost the session would leave a state change that emitted no event: a statement inside the transaction carried no arcadedb-session-id; it ran outside the transaction it was meant to be in. Negative (TC-119): the same failure at the other end — Begin accepted a response with no session id; every statement after it would silently run outside the transaction. Negative (TC-120): store.go put a context on every method for this reason — the query took %s to give up; store.go put a context on every method so a slow database cannot hold a request open. Positive (TC-121): the deployed dashboard runs on distroless with no shell, so it applies the DDL from a //go:embed copy rather than from the script. A pattern that stopped matching a file would leave the binary applying a schema one file short and reporting success: the binary embeds %d schema files and %s holds %d: %v vs %v -- the //go:embed pattern and the directory have drifted apart, and byte-level drift is caught by %s differs between the embedded copy and the file on disk. Positive (TC-122): two readers of the same DDL must agree on what a statement is, or the script and the binary would disagree about whether a schema had been applied — split into %d statements, want %d: %q. Negative (TC-123): the negative half over the real files, since a statement that came out empty or still carrying a comment marker is one the database cannot parse — %s: a statement still carries a comment marker: %s, %s: an empty statement survived the split, and the embedded schema split into %d statements; the DDL is a few hundred and a number this low means a file stopped being read.

dashboard — one conformance suite, both stores (TC-124…TC-126)

T-008 asks for MemStore to stay the test double and for both implementations to run against one interface suite, and the implementation plan gives the reason: running both implementations against one interface suite is what stops the seam from rotting. dashboard/store_conformance_test.go holds fifty-four cases — since v0.33.0 including the vendor policy's round trip, since v0.40.0 a manual runner's pass (AManualRunnerReadiesAndNeverDispatches, D-080: whatever the scheduler names is READY, nothing is DISPATCHED or RUNNING, and the fake gateway receives no turn), since v0.41.0 a planned task's timing (CardTimingOfAPlannedTask, D-081: known, complete, opened on its plan in PENDING, and an unknown card is not found), since v0.42.0 a conversation's archive round trip (ConversationArchiveRoundTrip, D-082: a card with no attempt is refused, an unknown card is not found, a fresh card's conversation is active and empty), since v0.44.0 a send-back's round trip (ASendBackRoundTrips, D-084: the design READY, the review PENDING with no reason, two send-back events, a second send-back refused, and in the graph store the actor and the triage survive a reopen), since v0.89.0 the merge write-back’s state (TheMergeWriteBackStateRoundTrips, D-132: the open→merged step marks the row pending with its code frozen — else the merge step answered %+v %v, want the row pending with its code frozen; a patch from a stale read — a patch from a stale read answered %v, want errMergeConflict; a state outside the vocabulary — a state outside the vocabulary answered %v, want errMergeNote; a stored confirmation is found by its hash — the lookup answered %+v %v; an unknown hash answered %v, want ErrNotFound; a fresh confirmation is in state %d, want valid; a reject in one write — a reject left %+v (%d, %v); want refused, no person, no nonce, the code kept; a second use is in state %d, want used; a cleared confirmation leaves the index — a cleared confirmation is still found: %v) — each taking a Store and nothing else — a constraint that is doing real work, because it is what stops a case reaching for MemStore.Tick(), which is not on the interface. The four tick-driven tests in main_test.go stay where they are for the same reason: they test the simulation, which is one store's private business — and since v0.29.0 a test-only one, in sim_test.go. The speed, pause and focus cases left the table with the floor controls they tested, which are no longer on the interface. Positive (TC-124) and (TC-125): the same table runs twice. Both stores start from the same fixtures, so a case that passes against one and fails against the other is a real disagreement rather than a difference in seed data. Every rejection is compared against its exact wording — rejection reads %q, want %q — and against the shape §09 requires: got %v, want an ErrRejected -- §09 says a mutation that will not happen says why, in a form the handler can turn into a toast. The ArcadeDB half skips rather than fails when no database is configured, because go test ./... has always run anywhere in this repository and rebuild-restart.sh gates every deploy on it: GAOS_ARCADE_TEST_URL is unset; run deploy/schema/scratch.sh up for the ArcadeDB half. Each case gets its own tenant inside one database, which is also a standing check on the tenant scoping — a case that leaked would see another case's desks. Positive (TC-126): the case that cannot be written against the interface, because “restart the process” is not something a Store exposes. It is also the one that decides whether the in-memory projection is a cache or a lie, since BR-01 allows anything cached in memory that is reconstructible: reopened floor has %d desks, the graph was written with %d -- the projection is holding state the database never received, and reopened store has %d events, wrote %d -- BR-02 says a state change that emitted no event never happened, and half of these did not.

dashboard — the fold test (TC-050, TC-051, TC-131, TC-132)

This is the acceptance test BRD §4.1 has been waiting on since the BRD was written, and it ran for the first time on 2026-08-17. It was a forward specification on this page until then, under not yet implemented; the specification has not changed, only its section. Architecture §08 states the target exactly — state(t) = fold(reduce, events.filter(e => e.ts <= t), snapshot_before(t) ?? empty) — and gives the reason snapshots cannot be the source: if the UI can only replay from stored snapshots, then any moment between two snapshots is unreachable and any bug in snapshot writing is invisible.

Positive (TC-050): the run is driven past two rungs of the snapshot ladder, then fold-from-genesis and fold-from-nearest-snapshot are compared at every rung and at moments between them — between is where a broken ladder hides, because a snapshot only ever asked for its own sequence is never asked to be folded forward from. A disagreement is a release blocker, not a warning: at seq %d, fold-from-genesis and fold-from-nearest-snapshot produced different floors; divergence proves the event model is incomplete. The run first proves the ladder exists at all, so the test cannot pass by comparing a fold from genesis against a fold from genesis: %d events produced %d snapshot rungs; the ladder is not being built. Positive (TC-131): the fold is then held against the live floor, field by field, for everything an event is responsible for — desk %s folded to state %q, live is %q, desk %s folded to gate=%v, live is %v, desk %s folded to retry=%d esc=%d, live is retry=%d esc=%d, and the same for score, stage, task and agents. This is the case that decides whether BR-02 actually holds: a state change that emitted no event is one the fold cannot know about, and the two floors part company. Negative (TC-051): the comparison has to be capable of failing, or passing it means nothing. The last event that moved a desk is deleted from the stream and the fold must notice — dropping the %s at seq %d did not change the folded floor; the comparison cannot fail, so passing it means nothing. The last rather than the first, deliberately: events carry absolute values, so an early one is usually overwritten by a later one on the same desk and dropping it correctly changes nothing. Negative (TC-132): the entire ladder is then thrown away and the identical floor demanded, which is BR-21 stated as a test — discarding every snapshot changed the folded floor; the snapshots have become the source of truth and the event stream has stopped being it.

dashboard — the reducer is pure, total and order-stable (TC-133…TC-137)

Three properties, each named in §08 and each tested rather than asserted in a comment. Negative (TC-133) — total: events carrying a type this build has never heard of are interleaved through the whole stream, with payloads designed to do damage if anyone read them, and the folded floor must be unchanged: an unknown event type changed the folded floor; reduce must skip what it does not recognise, not guess at it. The scenario is not hypothetical — the catalog is closed but not frozen, D-037 added three names to it in this very release, and a rolling upgrade means one build reading another's stream. Positive (TC-134) — pure: folding the same stream twice gives the same answer (folding the same stream twice gave two answers) and the result does not alias the state it was folded from (the fold handed back a floor aliasing its own base state). Positive (TC-135) — order-stable: the same events shuffled into a different order fold to the same floor, because ties are broken by (ts, seq) — the same events in a different order folded to a different floor; §08 requires ties broken by (ts, seq) so a replay is the same replay every time. Positive (TC-136): every event in the stream is a moment replay can reach, genesis included, which the 160-entry ring made impossible: replay to seq %d (%s): %v. Positive (TC-137): the deltas have to survive the database, not just the process that wrote them. A store is written through, reopened on the same tenant, and the reloaded stream folded — every event came back from the graph with an empty payload; the reducer deltas are not being persisted and a replay would fold to a blank floor, then desk %s: the graph says %q, the reloaded stream folds to %q. Skips with the rest of the ArcadeDB half when no database is configured.

dashboard — the task state machine (TC-138…TC-142)

Build-order step 2, and the half of BR-06 that was missing: Result and reject() gave the shape, but transitions were enforced by whichever code path happened to run rather than by a boundary that refuses an illegal one. dashboard/state.go is that boundary and every write to Desk.State goes through it. Positive (TC-138): every move the table declares is taken, and a state may always go to itself — the table declares %s -> %s and canTransition refuses it, and %s -> %s refused; a mutation that leaves the state alone is still a mutation, and every call site would need its own exception. A machine that refuses legal work is as broken as one that permits illegal work, and it is the failure a transition table gets wrong most often. Negative (TC-139): sixteen named illegal moves, each with the reason it is illegal written beside it — idle to review (an empty desk has produced nothing to review), review to blocked (review is not waiting on a dependency, it is waiting on a verdict), deferred to blocked (BR-34: a deferral is not a failure and not a blocker) and the rest — all reported as %s -> %s is permitted; %s. Moves in and out of a state nobody declared are refused too. Negative (TC-140): the refusal has to explain itself and has to not happen. An illegal transition returns an ErrRejected reading A task cannot go from idle to completed. and leaves the desk where it was (a refused transition still moved the desk to %q); an undeclared target says the name is unknown instead ("nonsense" is not a task state.), because those two need different messages or the first person to hit one goes looking in the wrong place. Positive (TC-141): every state a live desk reaches and every state the reducer can produce is one the table declares — desk %s is in state %q, which the transition table does not declare and the fold put desk %s in state %q, which is not a declared state. A desk in an undeclared state would be stuck, and the reason would read like a typo. Negative (TC-142): end to end through the seam, a retry or a cancel on an idle desk is refused with a sentence — %s on an idle desk returned %v, want ErrRejected and %s refused without saying why.

dashboard — the closed event catalog (TC-143, TC-144, TC-145, TC-146)

BR-05 closes the catalog: a new event type is a schema change to the fold, not a free addition. Positive (TC-143): a full run — the simulator, plus the operator-driven mutations it never reaches by itself — is checked against the model document's list, written out in the test file independently of dashboard/events.go. Deriving it from the constants would make the test agree with the code by construction, which is the one thing it must not do: event seq %d was written as %q, which is in neither the model document's catalog nor the UI-lifecycle block. The run must be broad enough to mean something — only %d distinct event types were emitted; the run is not exercising enough of the catalog for this to mean anything. Negative (TC-144): the declared-but-unwritten names are pinned to the modules that owe them — the review engine (M5.2), the six guards (M5.5), the planner's task graph (M3.2), recall (M7.3) and the budget guard (M10.3). BlueprintPublished joined the catalog in v0.24.0 already emitted, never owed: the driver saves a policy and publishes a Blueprint, so the name lands with something that writes it. QuestionAsked and QuestionAnswered joined in v0.31.0 the same way: the runner driver also supervises a turn that asks and answers it, so both names land written. The whole execution group came off that list on 2026-08-22, which is what this case is for: the driver now runs one real supervision and one boot recovery — since v0.29.0 a gateway turn against the fake ai-manager and a request the gateway answers 404 for, past its deadline — because a name is only emitted if something emits it and a test that just deleted four rows from the map would be recording an intention. TaskOrphaned needed the second driver rather than the first, and the reason is the point: no live supervisor ever witnesses an orphan, because an orphan is a run whose supervisor is already gone. A name that starts being emitted fails (%s is being emitted, but this list still says it is owed to %s -- if the module landed, take it out of the list) and so does a declared name with no reason beside it (%s is in the catalog, is not emitted, and is not listed as owed to a later module; a declared name nothing writes needs a reason next to it). Emitting a Heartbeat nobody sent, or a RunExited from a process that never started, would be inventing evidence in the one place that must not. Negative (TC-145): BR-10 makes a downward band crossing an event rather than a silent recalculation. A record is filled in, injected, gutted and re-injected, and the drop must be announced — readiness fell from %s (%d) to %s (%d) and no ReadinessDropped was emitted; BR-10 calls that a silent recalculation. Driving it back up must not produce one: readiness went back up and ReadinessDropped was emitted anyway. Positive (TC-146): D-037 adds three event names, one task state and two TaskRun properties, and the BRD is explicit that none of it should be done piecemeal. So they are asserted in one test rather than five, because five would let four pass while one was missing: Task.status permits %q, which has no DEFERRED -- model.go declares StateDeferred and state.go declares its transitions, so a task that reaches it could not be written down, and %s is not declared with a regexp; D-037 lands it with its vocabulary or not at all.

check-stacks.sh — both tiers run the graph store (TC-127, TC-128)

Since M0.2, dev and prod both set GAOS_STORE: "arcadedb". This is the one invariant on the list that is invisible from outside: a tier that fell back to the in-memory fixtures would still serve a floor, still answer /healthz with ok:true, and lose every write on restart — which is precisely what BR-01 is about. Positive (TC-127): the compose files as committed — dev runs the arcadedb store and prod runs the arcadedb store. Negative (TC-128): the setting is removed from a tier, or changed to anything else, and the same two lines print with FAIL instead. The binary itself is the second line of defence and refuses to start rather than falling back, which is the failure this check exists to catch before a deploy rather than during one.

scratch.sh — the throwaway database for the conformance suite (TC-129, TC-130)

The ArcadeDB half of the store suite needs a reachable database, and deploy/schema/scratch.sh is the one command that produces one. It is deliberately throwaway — --rm, no volume, a port of its own — because nothing in dashboard/schema/ should ever be pointed first at an instance anyone depends on. Positive (TC-129): up reports started arcadedata/arcadedb:26.7.2 as gaos-scratch-db on http://localhost:2481, waits for the probe (ready probe answers), applies the DDL and echoes apply.sh's own last line, then prints the two export lines the suite reads. Measured on 2026-08-17, after D-037 took the DDL to 323 statements: 323 applied, 0 already present, 0 failed on a fresh database, and 0 failed on a second run. Negative (TC-130): status or env against nothing prints gaos-scratch-db is not running and exits 1; a port already in use gives could not start arcadedata/arcadedb:26.7.2 on port 2481 with the remedy (is something already bound to 2481? set GAOS_SCRATCH_PORT to move it); a probe that never answers gives http://localhost:2481/api/v1/ready never answered 204; and an unknown action prints the usage and exits 2.

pustaka — the docs checker (TC-087, TC-088, TC-104)

This is the checker every page on this site is validated by, including this one. Negative (TC-087): seven sub-cases run check over a generated fixture and compare the failure count — check() = %d, want %d. Three must pass: omitted metadata, a bounded version range, an open one. Four must fail with exactly one problem: updated before published, bad hashtag (Not Valid, which is neither lowercase nor kebab-case), reversed version (1.0.0 → 0.9.x) and duplicate item (guide, Guide, caught case-insensitively). Negative (TC-088): 0.6.0 must not be after 0.8.x, and a numeric component after a wildcard is rejected — numeric component after wildcard must fail. Positive (TC-104): the whole auth design leans on underscore-prefixed files are invisible to the engine, so a deliberately invalid _login.html — no doctype, no data-page, no main, not registered — must still leave check() = %d, want 0 — _login.html must stay invisible to the checker at zero.

pustaka — engine identity and site metadata (TC-089, TC-103)

Positive (TC-089): productName = %q, want pustaka and internalRoutePrefix = %q, want /__pustaka — the two constants every route and every authored page depends on. Positive (TC-103): one repository documents one product, and the header must show the site's name rather than the product's: name = %q, want Fixture Docs (product.name must not win), then version = %q, want v9.9.9; with no registry at all it falls back to the engine's own identity.

pustaka — configuration and session tokens (TC-090, TC-091, TC-092)

Negative (TC-090): every malformed environment must fail at boot rather than at the first request. Unset is unset PUSTAKA_AUTH = (%v, %v), want (nil, nil); PUSTAKA_AUTH=false must disable the feature; a missing user or password gives enabled without %s must fail fast; then a malformed TTL must fail fast, a negative TTL must fail fast, an unknown SECURE mode must fail fast and an unknown PUBLIC_HOME value must fail fast, not pick a side. The defaults are pinned too: a generated secret is 32 bytes, the TTL is 12 hours, and the docs home must be gated by default. Negative (TC-091): a fresh token verifies; an expired one must not; seven malformed shapes — empty, no dot, tampered body, tampered signature, truncated signature, oversized, trailing garbage — each give %s must not verify; and both a token signed with another secret must not verify and changing the password must invalidate existing sessions, which is what the credential fingerprint is for. Negative (TC-092): the configured pair authenticates and five near misses — wrong password, wrong user, both empty, a trailing space, an upper-cased user — give creds(%q, %q) must fail.

pustaka — what is gated, and what a denial looks like (TC-093, TC-094, TC-097, TC-105)

Negative (TC-093): sixteen next values through safeNext(%q) = %q, want %q. Same-site paths, queries and fragments survive; //evil.com, /\evil.com, an absolute URL, javascript:, a relative path, a CRLF header injection, an embedded NUL, the login and logout routes themselves, and a 600-character path all reduce to /. Negative (TC-094): twenty-nine cases decide what redirects, what 401s and what stays public — %s %s = %d, want %d. The home and index.html are gated; site.js, toc.js, the ToC parts and the vendored chart library are 401 to an XHR; the stylesheets, webfonts and the sw.js killswitch stay public; a POST is never redirected; curl gets JSON where a browser gets a 302; and neither /assets/fonts/../../guide/x.html nor /assets/../guide/x.html may ride the allowlist. Every denial also asserts a denial must not be cacheable, got %q. Negative (TC-097): an anonymous call to /__pustaka/info must not leak the size of the site — an anonymous caller must not learn the record count — while an authenticated one gets the full payload. Negative (TC-105): ordering matters, because a gzip wrapper placed outside the auth middleware frames the redirect itself: a denial must not be gzip-framed, got %q, and an allowed page should still be compressed, got %q.

pustaka — public-home mode and auth off (TC-095, TC-096, TC-098)

Positive (TC-095): PUSTAKA_AUTH_PUBLIC_HOME=1 is the escape hatch and must reproduce the allowlist exactly as it was before the home was gated — the home and all of assets/ answer 200, a guarded page and _login.html still 302, logout goes somewhere the visitor can actually see (logout Location = %q, want %q), and the back link should be visible in public-home mode: %q. Positive (TC-096): in the default gated mode the same link must be hidden — gated mode must hide the back link, got %q — and both the shipped docs/_login.html and the embedded fallback must still carry the sentinel, or %s no longer carries {{HOME_HIDDEN}} and renderLogin silently stops hiding anything. Positive (TC-098): with auth off nothing changes for the reader — with auth off, %s = %d, want 200 — the login route does not exist at all (with auth off the login route must not exist, got %d), and with auth off /info must not grow an auth key.

pustaka — the login handlers (TC-099, TC-102)

Positive (TC-099): eleven sub-cases. The page renders with no {{ left behind (placeholders were left unsubstituted) and the login page must not be cached; a signed-in visitor is forwarded instead of shown the form; form and JSON logins both succeed and the cookie carries Path=/, HttpOnly, SameSite=Lax and Max-Age=, or Set-Cookie %q is missing %q; a hostile next is reduced to /; bad credentials are a 401 carrying Incorrect username or password, and a failed login must not set a session cookie; the JSON form reports attemptsLeft; a cross-site Origin is a 403 while a same-site one is accepted; GET on logout is a 405 and logout must expire the cookie, got %q; and past the attempt limit the answer is 429 with a lockout must tell the client how long to wait. Negative (TC-102): a docs root with no _login.html must fall back to the embedded page, the on-disk one wins when present, and every placeholder is escaped — the error message must be HTML-escaped, next must not break out of its attribute, and the retry countdown should reach the page.

pustaka — the login throttle (TC-100, TC-101)

Negative (TC-100): with a stubbed clock, three failures walk the counter down — first failure left %d, want 2, then second failure left %d, want 1, then third failure = (%d, %v), want (0, 1m). After that a locked address must not be allowed, the lockout must be per address, sixty-one seconds later the lockout must expire, and reset must clear the record. Negative (TC-101): the throttle map is the one piece of per-IP state the server holds, so it is swept rather than left to grow: after a sweep interval of failures and ten minutes, sweep left %d entries, want 1 — the map must not grow without bound.

pustaka — behind a prefix strip (TC-106, TC-107, TC-108)

The docs sit behind a /docs strip, and every URL the server hands back has to carry that prefix or it lands on the landing page, which is a different service entirely. Negative (TC-106): ten header values through sitePrefix(%q) = %q, want %q — /docs and /a/b are honoured, while a protocol-relative value, a missing leading slash, a folded backslash, a CRLF injection and a 180-character path are all ignored. Positive (TC-107): trimSitePrefix(%q, %q) = %q, want %q strips only on a segment boundary, so /docsy/x.html is left alone and an already site-relative path is not stripped twice. Positive (TC-108): six behaviours behind the strip: a guarded page bounces to /docs/__pustaka/auth/login?next=%2Fguide%2Fx.html (Location = %q, want the prefixed login URL with a site-relative next); the login page's own href="/docs/assets/site.css" and form action are prefixed (login page is missing %s); a next that already carries the prefix is not doubled (the prefix was applied twice to next); the gated home (home Location = %q, want the prefixed login URL) and logout (logout Location = %q, want the prefixed login page) are prefixed too; and with no proxy in front, nothing changes — unproxied Location = %q, want the unprefixed login URL.

pustaka — the pre-paint head snippet (TC-721)

The runtime builds a page's header, sidebar and table of contents in the browser. It used to load its registry parts one after another before doing so, so a page looked broken until it had loaded: the article sat in the sidebar column, the header arrived late, and a dark-theme reader saw the light palette first. The layout half of the fix is CSS. The theme half is a snippet the server inserts before </head> of every page it serves (D-093, docs/designs/pustaka-loading-and-motion.md). Positive (TC-721, TestHeadInjection): /, /index.html and /guide/x.html carry the marker once (%s: marker appears %d times, want 1), inside the head (%s: snippet is not inside <head>), with the theme script (%s: theme script missing), a font preload whose base matches the page (%s: preload %s missing) and a true length (%s: Content-Length %q, body %d bytes). Compressed, the body is still gzip (Content-Encoding %q, want gzip) and still carries it once (the gzip body lost or doubled the snippet), and inserting twice changes nothing (injectHead is not idempotent). Negative: an asset (an asset must not be injected), an underscore page (an underscore page must not be injected) and the partial endpoint (the partial endpoint must not carry the head snippet) carry no snippet. A revalidation at a file date older than the server's start is not answered 304 (a revalidation at the file's mtime answered %d without the snippet), so a cached page always gets it. The snippet is identical under a hostile Host and X-Forwarded-Prefix (the snippet varies with the request:\n%s\n%s), because /docs shares an origin with the back office. A base that is not a run of ../ gets no preload (a non-relative base produced a preload: %s), and a page without </head> is left as it is (a page without </head> changed: %q).

Manual check, not automatable in Go. Run headless Chrome against go run . serve docs with requests matching assets/(site|toc).js and assets/toc/ delayed by 2 s, at 1280, 1024 and 390 px, in light and dark. main.doc's x, y and width 600 ms after it attaches equal its values once the header exists. In dark mode the mid-load body background is rgb(12, 20, 24). A partial navigation delayed 600 ms shows the progress bar and leaves no page error. The eight registry parts overlap in the network waterfall. With prefers-reduced-motion, a navigation swaps without movement.

pustaka — a ToC part the browser would drop (TC-752)

The engine reads the registry with patterns, which find both entries even when a comma between them is missing. The browser throws on the whole file, so every page in it disappears from the sidebar and from search. This is what happened to the Guide and Product parts from v0.37.0 to v0.55.0. Negative (TC-752, TestCheckRejectsAMissingCommaBetweenEntries): a registry with } at the end of one line and { at the start of the next fails check (a registry with no comma between two entries passed check), and check prints <part> — line N: two entries with no comma between them — the browser drops this whole file. Positive: the valid fixture passes (the valid fixture failed check with %d problem(s)).

dashboard — the persisted task graph (TC-201…TC-206, TC-211)

T-042. M3.2 was "🟡 on the strength of its signature, not its output": PlanWorkflow was pure and produced a chain, every task carrying the previous one as its only prerequisite, and CreateWorkflow then threw the result away. A chain is acyclic the way a straight line is, which is why the cycle check had nothing to catch and DEPENDS_ON was decoration. Positive (TC-201): two picked stories become two branches off the architect rather than a queue behind each other — %s waits on %v rather than on the architect alone; two stories that wait on each other are a chain wearing a graph's name — and the security review waits on both, which is the fan-in that makes the field a slice: security waits on %v, want %v; the fan-in is per story, so its prerequisite count is a property of the record rather than a number written in the planner. Positive (TC-202): the model document's planner invariant, asserted against the sort rather than against slice order, because the old version asserted an accident of how the planner walked the stories — %s is placed at %d and its prerequisite %s at %d; DEPENDS_ON points from the dependent to the prerequisite, so the prerequisite runs first. Negative (TC-203): the check lives in CreateWorkflow, not in PlanWorkflow, because the planner cannot build a cycle and the seam is public — a plan that loops was accepted; a task graph with no first task can never be scheduled, and the scheduler would spin over it forever, it must carry its members (the refusal is %T and does not carry the cycle; sending an operator back to the wizard without naming a row is a dead end (B-3)), and it must leave nothing behind: a refused plan wrote %d task(s); every check in CreateWorkflow runs before the first write precisely so a rejection leaves nothing behind. Negative (TC-204): the other unusable plan, kept separate because the operator's next action differs — a task depending on something outside the plan was accepted; the DEPENDS_ON edge would point at a vertex that does not exist and the task would never be ready, and the refusal reads %q and does not name the missing prerequisite. Negative (TC-205): two id bugs that were cosmetic until vertices existed. PlanWorkflow numbers from t-1 every time and wf-%d was built from len(desks)+1, which never changes — two workflows left %d tasks on the desk, want %d; the second plan overwrote the first rather than joining it, %s appears twice; Task (tenantId, id) is UNIQUE, so the second write would upsert over the first and inherit its DEPENDS_ON edges, and the two workflows are called %v; len(desks)+1 does not change between creations, which is how every workflow ended up being wf-7. Positive (TC-206): the decision that the graph is read from the store and not folded, pinned so a later reader does not tidy it into the reducer — the folded floor differs between two runs whose only difference is the task graph; the reducer is reading TaskPlanned's payload, and FloorState has just grown a copy of the graph that every snapshot rung now carries, with the other half of the argument as its companion: the graph is empty after planning; not being folded is the reason it must be persisted, and a graph that is neither is not state at all. Positive (TC-211): and therefore BR-01 is proved by reload rather than by fold, which is the same way TestArcadeStoreRebuildsTheFloorFromTheGraph proves it for the floor — this one needs a reachable ArcadeDB and skips without one. the reopened graph holds %d tasks, %d were written -- the graph is not folded from the stream, so load() is the only way back and it did not bring them; the ordinal comes back because the slice order has to be a property of the data (%s came back on workflow %q at ordinal %d, was %q at %d; the ordinal is what puts the slice back in plan order, which D-1 needs to be a property of the data rather than of the bucket layout); the edge direction is asserted rather than assumed, because a reversed edge round-trips perfectly and inverts every readiness answer — %s waits on %v after the reopen, wrote %v; DEPENDS_ON points from the dependent to its prerequisite, and an edge that came back reversed would invert every readiness answer computed from it; and the workflow counter is restored from the ids in the graph, not from a count: %s was written twice after a restart; the workflow counter restarted too, and Task (tenantId, id) UNIQUE means the second write upserted over the first.

dashboard — the task status machine (TC-207, TC-208, TC-209, TC-210)

T-042, and a second state machine rather than an extension of the first. dashboard/state.go is about Desk.State — seven lowercase names, one desk per product, each of which model.go calls "a distinct CSS selector in app.css (data-state)" — while Task.status is ten uppercase names on a different cardinality, four of which (PENDING, READY, DISPATCHED, RUNNING) are never a desk's state at all. Positive (TC-207): same shape as TC-131 one table over — the table declares %s -> %s and canTaskTransition refuses it, and a status may always reach itself, because %s -> %s refused; recording a beat on a task that is already there is still a write, and every call site would need its own exception. Negative (TC-208): fourteen rows (since v0.44.0: DONE→READY left the list as the send-back row, D-084, asserted by TC-504), each carrying the reason it is illegal and each printing that reason — %s -> %s is permitted; %s — so a rule nobody can explain does not get deleted later as an oversight. An undeclared status is a typo rather than a task that cannot move, and gets its own message in both directions: "SHIPPING" is not a task status and the machine accepted it and the machine accepted a move out of a status it does not declare. Negative (TC-209): BR-34 as its own test, because DEFERRED → FAILED reads as an omission — every other non-terminal status reaches FAILED, and a reader adding the row would be making the table symmetrical and the product wrong. DEFERRED -> FAILED is permitted; BR-34 says a deferral is not a failure, and a task that failed for want of budget has spent a retry it never used, the boundary is the only way through (moveTask carried a deferred task to FAILED; the table is the boundary and a caller that can go around it means there is no boundary), the refusal is a rejection rather than a 500 (moveTask returned %v, which is not an ErrRejected; BR-06 wants a reason a handler can put in a toast, not a 500), and a refused move must not have written anyway: the task is %q after a refused move, want DEFERRED — a rejected transition that still wrote is worse than one that was never checked. Positive (TC-210): the Go vocabulary and the DDL's, compared as sets in both directions. TC-146 next door checks that one name is present, which catches a DDL missing a state Go can reach but not a Go constant the DDL would refuse — and that one fails at commit time in production and in no test at all. Task.status permits %q; Go declares %q — a status the DDL refuses is a row the scheduler cannot write, and it fails at commit rather than here, and the other way, the DDL permits %q and taskstate.go declares no transitions for it; a status nothing can produce or leave is a state the machine cannot reach.

dashboard — the scheduler, and the property it has to have (TC-212…TC-219)

T-048 and T-049. D-1 asks for something stronger than a working scheduler — "a pure function of the graph, such that two replicas computing it independently reach the same answer" — and the sentence after it is the reason: leader election then protects against duplicate dispatch rather than divergent state, which is BR-01 at the one layer that would otherwise need authoritative state of its own. Positive (TC-212): the shuffle is the test. Two replicas read the same rows out of the same database and are not promised the same order across buckets, so a scheduler that inherited slice order would pass a naive version of this and diverge only in production — two replicas over the same graph produced different decisions (%+v vs %+v); D-1 makes the scheduler a function of the graph, and a scheduler that depends on row order is a function of the database's bucket layout. Paired with the plain purity half, the same shape TestTheEgressPassIsPure uses next door: two identical calls disagreed; a decision that varies between calls becomes an event, and a replay would disagree with the run it replays. And a fixture that scheduled nothing would prove nothing, so the fixture scheduled nothing, so agreeing about it proves nothing. Negative (TC-213): purity cannot be tested by calling the function — a clock read that happened to return the same value twice passes every behavioural test there is — so this parses dashboard/scheduler.go instead, in the mould of TC-193. The import list is the test: scheduler.go imports %s; a scheduler that can reach the clock is one edit from reading it, and D-1 says the answer must be a function of the graph alone. No declaration may have a receiver (scheduler.go declares a method (%s); a method on the store has the lock and the rng in scope by definition, and the file's whole claim is that it has neither), and nothing may reach the machinery the imports keep out: scheduler.go reads .%s; SchedulerInput is the only input the decision may have, and every field on it is a value the caller already resolved. Positive (TC-214): BRD §7.4 is prescriptive about the number — all five blocking reasons "must be surfaced in the UI as the blocking reason … because an unexplained idle floor is indistinguishable from a broken product" — so the count is asserted rather than assumed: the scheduler declares %d blocking reasons, BRD §7.4 names five; a sixth is a reason the UI has no row for, and a fifth missing is a floor that looks idle for a reason nobody can explain. Each one is then produced by an input that breaks its condition, because a constant nothing emits is a row the UI renders blank forever — %s did not block the task; %s is a reason the scheduler declares and nothing produces — and budget is the one at real risk, since its guard is M10.3 and does not exist yet. Every block carries a specific: %s blocked with no detail; a reason without a specific is a dead end (B-3) and leaves the operator nothing to act on. Negative (TC-215): the rule Screen already states for the egress pass, applied here — every reason is computed before one is reported — a task failing all five reported %q; readiness comes first because below the planning floor nothing else is worth saying, and the reported reason must not depend on which check ran first, and once only: one task produced %d blocked entries; a task has one reason at a time or the floor shows the same desk five times. Negative (TC-216): CreateWorkflow refuses a cycle at planning time, so one reaching the scheduler means the graph was written by something else or edited since — %d task(s) in a three-way cycle were dispatched; none of them can ever have its prerequisite satisfied, every member is named (%d of 3 cycle members were reported blocked; a member the floor does not mention is a desk sitting idle for no stated reason), and it is not a sixth reason: %s in a cycle reported %q; the BRD makes acyclicity part of the dependency condition rather than a sixth reason. Negative (TC-217): BR-07 at the scheduler, which is not the same check as the planner-side refusal TC-156 asserts. The planner refuses to produce a plan below the floor; this refuses to dispatch a plan produced above it whose record has decayed since, which is the only way a task reaches here under a failing gate. Both boundaries: a task exactly at the floor of %d was not dispatched; BR-07 says BELOW the floor, and an off-by-one here refuses work that is allowed to run, and a task on a record below the planning floor was dispatched; BR-07 ends "Nothing is dispatched", and a model called against a record this thin is money spent on a brief nobody finished. Negative (TC-218): the within-one-pass half of D-3 — %d tasks were dispatched into one workspace; D-3 exists because "two runs in one workspace corrupt each other silently", and the seat as well as the workspace: both tasks were seated on %s; one agent cannot carry two runs, and the conflict would surface as a lease failure rather than as a decision. Since v0.25.0 the "both may run" half uses two products rather than two workspaces of one: BR-38 made the product the unit, so two workspaces of one product no longer license two runs. Positive (TC-219): the last rng on a scheduling path, removed. advance() reseated with cand[s.rng.IntN(len(cand))], which was survivable while one process owned the floor and stops being survivable at D-1 — two stores with different seeds seated different agents (%v vs %v); fixtures.go says a dispatch that seated a different agent on every replay would make the fold disagree with the run, and D-1 extends that to two replicas.

dashboard — the exclusive workspace lease (TC-220…TC-226) — retired in v0.29.0

Retired in v0.29.0 (M14.7)

The code these cases tested was deleted when GAOS stopped running a model tool itself (D-055, D-060). Every row is struck in the register with its successor — TC-295 holds one live turn per product in the graph. The prose below is kept as the record of what they asserted at v0.28.0, and nothing in the repository runs it.

T-051. D-3 asks for an exclusive workspace lease with an expiry, and names the failure it is written against: "two runs in one workspace corrupt each other silently." That failure is not loud — two agents editing one checkout do not crash, they produce a diff neither of them wrote, which is then reviewed, scored and possibly merged. The enforcement is an O_EXCL lockfile at .gaos/run/LEASE.json rather than a row, because the thing being protected is a directory and the only primitive that excludes atomically at that granularity between processes is the filesystem. Negative (TC-220): a second run took a workspace that was already leased; D-3 exists because two runs in one workspace corrupt each other silently, and neither would crash; the refusal has to be identifiable (the refusal is %v, which is not an ErrLeaseHeld; a caller cannot tell a busy workspace from a broken disk) and has to carry the holder, because the refusal is %+v and does not name the holder; the reconciler needs the pid and the expiry to decide between adopting, requeuing and orphaning. The loser must also leave the file alone: the lease now reads %+v; the refused acquire wrote over the holder it was refused by. Negative (TC-221): the row most likely to be “fixed” later, so it is asserted rather than left to a comment. An expired lease looks takeable — the expiry exists and it passed — but expiry says the supervisor stopped renewing, and D-2 detaches the child precisely so it outlives its supervisor: an expired lease was taken by a new run (err=%v); the expiry says the supervisor stopped renewing and says nothing about the child it was supervising, which D-2 detached so it would outlive exactly this. Clearing one is BreakLease, a separate name for an operation only safe once the previous run has been made dead (D-053). Positive (TC-222): a run could not re-acquire its own lease: %v; a retry after a partial write would deadlock against itself. Negative (TC-223): the renewal half, whose negative is the one that matters — a run that does not hold the lease extended it (err=%v); a supervisor declared dead and broken off could keep somebody else's workspace alive, which hands one directory to two runs through the back door. A beat that does not extend is equally wrong: the expiry is %d after a renewal, want 2300; a beat that does not extend the lease is a beat that lets the workspace expire under a live run. Negative (TC-224): a run released a lease it did not hold (err=%v), and the lockfile must actually go — the lockfile survived a release; the next run would be refused by a lease whose holder has finished. Negative (TC-225): the corrupt-file case, where the direction of the answer is the whole test. Treating an unparseable lease as “no lease” would hand the workspace to a second run on the strength of a truncated write: a truncated lease read as ok=%v err=%v; an unreadable lease must not read as an absent one, or a half-written file hands the workspace to a second run, and the safe answer must not stop at the boundary — leaseStateOf called an unreadable lease free; the scheduler would dispatch into a workspace nothing could prove was empty. Positive (TC-226): the property that makes a file the right primitive at all — a value read back by something that never held the original, which is what an adopting orchestrator is: the lease round-tripped as %+v, wrote %+v; a process that has never seen the database has only this file to work out whose workspace it is. The four intervals are asserted in the same case because the relationship between them is the design: the intervals are beat=%d stale=%d ttl=%d; a beat slower than the staleness window declares every live run dead, and a ttl inside it expires the lease before the beat is even missed, and D-053's separation of the two cadences — the Heartbeat event cadence is %ds against a %ds beat; D-053 separates them so a twenty-minute run writes five pills rather than forty into a stream that is append-only and rendered in full.

dashboard — the supervisor and its heartbeat (TC-227…TC-235)

Since v0.29.0 the supervisor runs gateway turns only, and the four cases that survived — TC-227…TC-230, in a new dashboard/runner_test.go — drive the fake ai-manager rather than a stand-in binary. What follows from here to TC-232 is the record of the detached runner. T-050 and T-052. D-2 asks that work run in detached processes that survive the orchestrator, "an orchestrator restart must not kill a paid model call in flight", and until this landed the code did the opposite on the one path an operator actually uses: Dispatch built its context from the caller's, serve() builds the caller's from signal.NotifyContext(SIGINT, SIGTERM), so a graceful shutdown cancelled the context and CommandContext killed the child. SIGKILL was already fine by accident — the Go runtime never runs and Setpgid means no terminal signal arrives — so the ungraceful path satisfied D-2 and the graceful one violated it, which is the wrong way round. Positive (TC-232): context.WithoutCancel is the fix, and this is the assertion on it — the child reported %q after its caller's context was cancelled; D-2 says work runs in detached processes that survive the orchestrator, and an orchestrator restart must not kill a paid model call in flight. The full property, killing the orchestrator process, cannot be a Go test: the test binary is the parent of everything it spawns and go test reaps the tree on exit, so the harness undoes the thing under test. That is a shell script and it belongs with T-053. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-298. Positive (TC-227): the three names, in order, around one gateway turn — the turn wrote %v, want %v; RunStarted before the work and RunExited after it is the shape a replay reads a run's duration from (SessionOpened is left out of the comparison: the session is transport, BR-41) — and the money reaching the record: the attempt's basis is %q and the desk reads %.2f; D-062 measures the gateway's cost_usd, and a cost nothing recorded is a cost the budget guard will never see. Negative (TC-228): the discipline dashboard/events.go states, checked rather than trusted. A brief that names no task is refused before anything is recorded or sent — a turn that never started wrote %v and sent %d request(s); a RunStarted for a turn nobody sent is invented evidence. Positive (TC-229): D-053 made checkable, and against the pure half so it does not take twelve minutes to run: the same twelve minutes wrote %d Heartbeat events, want 3; D-053 separates the cadences so a run does not put one pill per beat into a stream that is append-only, snapshotted every %d events and rendered in full. Both endpoints always write, because a run with no opening beat has no start for a replay to measure silence from. Positive (TC-230): BR-33 as a comparison rather than a promise. Recovery polls a request this process did not submit, so Resume is a second entry point — and a second place to drift: an adopted turn produced %+v and a supervised one %+v; BR-33 asks that nothing above the seam be able to tell them apart. The prompt is the one honest difference and is blanked before the comparison: the adopting process did not send it. And the adopted turn's basis is %q, want measured; the cost travels with the request's result precisely so this works. Negative (TC-231): handoff.go has said since it was written that the document "is declared and empty before the invocation starts", and nothing did it. A retry in a reused workspace would read the previous attempt's document — a run that wrote no handoff reported %q, want %q; the previous attempt's document was still on disk and was read as this one's, and the direction of that mistake is the worst available: the attempt's outcome is %q; a stale document made a run that produced nothing look like one that succeeded. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-281. Positive (TC-233): the lease survived a %s run (held=%v err=%v); the workspace can never be scheduled again and nothing short of a restart would notice. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-295. Negative (TC-234): a run was supervised with no workspace; there would be nothing to lease and nothing to be exclusive about. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-291. Negative (TC-235): the money guard. Five configuration guards stand in front of a paid call — GAOS_MODEL_MODE defaults to off, only serve() builds a real adapter, GAOS_WORKSPACE_ROOT is unset, GAOS_RUNNER is off — and every one can be switched on by a developer with a good reason who then runs go test ./.... So the sixth is in the code: refuseIfUnderTest permitted the real provider command from a test binary; a paid model call triggered by go test is money that does not come back, and it must not block the stand-in, because a guard that blocks them is a guard somebody will delete. The case also parses adapter_cli.go to check the guard is still on the spawn path, because every test in this package would still pass without it, because they all drive the fake, and the deletion would only surface as a bill. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-275.

dashboard — boot reconciliation (TC-236…TC-242) — retired in v0.29.0

Retired in v0.29.0 (M14.7)

The code these cases tested was deleted when GAOS stopped running a model tool itself (D-055, D-060). Every row is struck in the register with its successor — TC-297 adopts a turn by its request id and TC-298 orphans and requeues a lost one by its deadline. The prose below is kept as the record of what they asserted at v0.28.0, and nothing in the repository runs it.

T-053. D-4 does not hedge: "On boot, reconcile every task claiming to be dispatched or running against its lease and heartbeat: adopt, requeue, or fail as orphaned. This is the whole of recovery; there is no other path." Positive (TC-236): the architecture page's pseudocode, one row per branch, each carrying the reason it is what it is — a live lease with a fresh beat is adopted, because "killing or restarting it would throw away work that is going fine"; a live lease with a stale beat is requeued, because "the supervisor stopped beating, which says nothing about the child — D-2 detached it precisely so it would outlive its supervisor"; an expired lease is orphaned, because "a task that cannot be proved alive is not assumed alive". Failures read %s was %s, want %s; %s with that reason substituted, and every decision must carry one: the decision carries no reason; a recovery nobody can explain is a recovery nobody can audit. Negative (TC-237): D-4's scope is a scope rather than a filter — %d of the ten statuses were reconciled, want 2; D-4 scopes recovery to DISPATCHED and RUNNING, and a task in any other status is not claiming a process, and neither may be skipped: %s was not reconciled; a task claiming a process that nobody checked is the hole recovery exists to close. Negative (TC-238): the same structural discipline the scheduler is held to, for a sharper reason — this runs once per boot over evidence nobody can reproduce afterwards: reconcile.go imports %s; the whole of recovery has to be a function of the evidence it was handed, and a file that can reach the clock is one edit from a recovery nobody can reproduce. Positive (TC-239): the closed catalog, kept closed — both recoveries carry rule %q; they share TaskResumed, so the rule is the only thing that distinguishes them and a reader of the stream could not tell an adopted run from a requeued one. Negative (TC-240): D-054's teeth, and the case most likely to be read as over-caution. Requeue promises the previous run has been made dead; with nothing able to kill it that promise cannot be kept, and a requeue whose kill silently did nothing is the second run in one workspace wearing a reassuring event saying it was handled — a requeue with nothing able to kill emitted %s, want %s; the requeue would have handed the workspace on while claiming the previous run was dead, which is the corruption D-3 exists to prevent reached through the recovery routine. Positive (TC-241): the task is %s after adoption, want %s; nothing stopped, so nothing should have moved, and adoption broke the lease; the run is still going and its workspace is still its own. Positive (TC-242): BRD §7.5's exception row — an orphaned run kept its lease; the workspace can never be scheduled again, and the expiry that made it an orphan would go on making it one forever.

kill-mid-task.sh — build-order step 5 (TC-243…TC-246) — retired in v0.29.0

Retired in v0.29.0 (M14.7)

The code these cases tested was deleted when GAOS stopped running a model tool itself (D-055, D-060). Every row is struck in the register with its successor — TC-297 and TC-298: a turn runs upstream, so nothing on this host can die with it. The prose below is kept as the record of what they asserted at v0.28.0, and nothing in the repository runs it.

The acceptance test the whole of M4.2 exists to satisfy: "Kill the orchestrator mid-task; the work survives and is re-adopted." It cannot be a Go test, and pretending otherwise would be worse than not having it. The property is that a child outlives its parent; under go test the test binary is the parent of everything it spawns and the harness reaps the tree on exit, so the framework undoes the one thing being asserted. TC-232 gets as close as Go can by cancelling a context, which covers context.WithoutCancel and nothing beyond it. Positive (TC-243) / Negative (TC-244): the assertion the script exists for — the child outlived the orchestrator that started it, against the child died with its orchestrator — D-2 says work runs in detached processes that survive it. Positive (TC-245) / Negative (TC-246): the recovery half — boot reconciliation ran before the listener came up and the run was adopted rather than restarted or orphaned, against no adoption in the timeline — a lease held and a beat fresh is the adopt branch (D-4). It closes with step 5: the work survived and was re-adopted. Two limits, both deliberate and both printed rather than discovered. It runs against a scratch ArcadeDB and never against dev or prod, because recovery writes to the graph and those instances belong to the wider stacks. And it cannot run with GAOS_STORE=memory: MemStore loses every task record on restart, so there is no claim left to reconcile — recovery is a property of the ArcadeDB deployment, and a green run against memory would have proved nothing. The provider tool is the stand-in, with a sleep long enough to be killed around; the thing under test is the orchestrator's recovery, not a model's output.

dashboard — one record per attempt, and the slice it was given (TC-247…TC-258)

T-054, T-055 and T-056, in dashboard/taskrun_test.go, driven since v0.29.0 by the fake ai-manager (gateway_fixture_test.go) rather than a stand-in binary. The thing these guard is not a feature but a claim: D-6 says the slice sent to a model is frozen and stored per attempt, and the failure mode is not a crash — it is a route that keeps answering, plausibly, with a slice it recomputed from a record that has since moved on. Positive (TC-247): two attempts, two records — two attempts left %d record(s); BR-22 makes each attempt its own record, and a retry that overwrites the attempt it retried destroys the only evidence the retry policy has to reason from, with both attempts share the run id %q; two rows that cannot be told apart are one row beside it. Positive (TC-248): the fields are the point of the record — the record holds cost %.4f / %d in / %d out and the attempt reported %.4f / %d / %d; a figure that does not survive the write is a figure the budget guard will never see, plus the record says invocation %q, adapter mode is %q; D-13 requires it recorded precisely so the prohibition on branching can be checked rather than trusted; the log reference became the request id and the stored reply — the record names no turn or keeps no reply; BR-25 keeps the output out of the vertex and BR-41 keeps it in GAOS, so the artifact is the only way back to it. Negative (TC-249): the tempting mistake, since 04-execution.sql defaults costBasis to estimated. The gateway refuses the submit, so no turn ran — a refused submit came back as an error (%v); it is a failed attempt with a signature, and a turn the gateway refused was recorded as %+v; want one failed attempt whose cost is not measured, because nothing was, and BR-31 forbids aggregating it with figures that were. Positive (TC-250): the freeze happens on the operator's route too, with no runner behind it — nothing was frozen for digest %s; D-6 stores the slice, and a slice reassembled later answers a different question convincingly, and every citation must carry a role, because role is mandatory on USES_CONTEXT and an unlabelled edge answers only that a node was there. Negative (TC-251): the honesty of the audit edge — the cleared packet cites %d node(s), want 1; a citation whose part was redacted claims the model was given something the pass refused to send. Positive (TC-252): identity by digest — two attempts on identical context stored %d slices, want 1; storing it twice makes comparing two runs a diff of two copies of one string, which is what H-4's comparison scope will read. Positive (TC-253): the route itself — an attempt has run and the route still computes a slice live; GET /tasks/{id}/context has to match what the model actually received (D-6), and before anything runs the opposite: a desk that has never run an attempt reported a frozen slice; there is no evidence to serve and saying otherwise is the failure D-6 describes. Negative (TC-254): the case that says why freezing is worth the storage — the frozen slice's digest moved from %q to %q when the record was edited; a slice that follows the record is not evidence of anything. Positive (TC-255): recovery closes what it gave up on — a request the gateway answers 404 for, past its deadline — the recovered attempt is still %q, want %q; a run the reconciler gave up on and left marked RUNNING is the graph asserting a process nobody believes in. Positive (TC-256, TC-257): the ArcadeDB half, which cannot be written against the interface for the same reason TC-126 cannot — restart the process is not something Store offers. the reopened store answers with a live assembly; the slice was written and load() did not bring it back, so the process that could answer what digest %s contained is gone, and for the attempt, the reopened store holds %d attempt(s), one was written; a TaskRun that does not survive a restart is an attempt the retry guard will never count. Both skip without GAOS_ARCADE_TEST_URL; see scratch.sh. Negative (TC-258): the replay handle reads and still refuses to write — the read-only handle refused TaskContext: %v; a handle that cannot read is not a replay handle.

One finding, in the same class as D-047

TC-256 and the conformance suite failed on the first ArcadeDB run with "Upsert must involve an index to retrieve the records" — ContextSlice is now written by business id and had no (tenantId, id) index. That is precisely the case D-047 predicted when it said "the next task that writes one of them adds its index in the same change", so the index was added under the same heading and no new ruling was needed. The DDL applies 324 statements rather than 323; dashboard/schema/RECONCILIATION.md records it.

dashboard — the reply contract, and the handoff kept for the next agent (TC-259…TC-267)

Since v0.29.0 the five cases that survived live in dashboard/contract_test.go and test the reply contract of D-057; the packet on disk (TC-262…TC-265) went with the CLI adapter. T-061…T-064, originally in dashboard/packet_test.go. Until these existed a real provider tool could be spawned and could not possibly succeed: it was handed a working directory with nothing in it and an instruction that never said what to produce, so it would do the work, exit 0, and fail the attempt with handoff-missing every single time. Positive (TC-259): the case that would have caught the whole feature being useless — the contract's own example does not parse: %v; a model that copies it faithfully fails the attempt, and the contract is the only instruction it got. The contract and the parser are two files written at different times, and nothing else makes them agree. The example is now wrapped in its gaos-handoff fence and read through ExtractHandoff, exactly as a reply would be. Positive (TC-260): the contract never mentions %q; a model cannot satisfy a requirement nobody stated. Positive (TC-261): the frozen packet has no contract part; every turn would do the work and fail with handoff-missing, because nothing ever told it what to write, and the contract must survive into what is sent: the prompt sent to the gateway never mentions the handoff block; the contract is in the packet and not in what the packet is turned into. Positive (TC-262): %s is not on disk: %v; cmd.Dir points at this directory and the tool has nothing to read, and the declared document must be empty, because the declared handoff is %d bytes (err %v), want an empty file. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-261. Negative (TC-263): the security half — a redacted part was written into the workspace the tool reads; the egress pass refused it at the front door and the packet writer let it in the back. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-197 and TC-251. Negative (TC-264): path %q resolved to %q instead of being refused; the workspace is a lease and anything outside it belongs to somebody else. Asserted at insideWorkspace rather than through MaterialisePacket, because driving it from the top would mean forging a Cleared and TC-175 walks the syntax tree to forbid that — a guard that caught this test being written the easy way. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-286. Negative (TC-265): a run that wrote no handoff came back with failure %q, want %q; BR-30 makes the document mandatory and the exit code says only that the process ran. Retired in v0.29.0 with the CLI execution layer (M14.7); see TC-281. Positive (TC-266): the turn replied with a handoff and the store holds none for the next attempt; the session is transport, the artifact is the record, and the next packet does not cite %s; a document the next agent cannot be shown to have received is not a handoff. Porting it found a bug: since v0.27.0 the prompt and the reply are stored as artifacts beside the handoff, and the lookup took the newest artifact of any kind, so the next agent was cited the previous turn's reply as its lesson. It now takes handoffs only. Negative (TC-267): attempt 1 of t-1 was cited artifact %s, which attempt 1 of t-1 produced; an attempt reading its own output is a loop with extra steps.

live-cli-run.sh — the first real model call (TC-268…TC-273) — retired in v0.29.0

Retired in v0.29.0 (M14.7)

The code these cases tested was deleted when GAOS stopped running a model tool itself (D-055, D-060). Every row is struck in the register with its successor — TC-300…TC-303, live-aim-run.sh. The prose below is kept as the record of what they asserted at v0.28.0, and nothing in the repository runs it.

The only script in this repository that spends money, and the only check anywhere that can answer the question the CLI approach rests on: does a real provider tool, handed GAOS's packet and nothing else, produce a document GAOS can read? A fake tool told to write a document writes it whatever the packet said, so every other check here proves the orchestrator and not the contract.

Opt-in twice over: GAOS_LIVE_FAKE=1 exercises the whole harness for nothing, and GAOS_LIVE_OK=1 is the real call. With neither it prints what it would do and stops. The agent is given a git worktree at a temporary path, detached at HEAD, never the working tree; nothing is committed and nothing is pushed. Positive (TC-268): ok claude present — 2.1.241 (Claude Code) and ok dashboard ready — the boot smoke test passed against the pin, against FAIL the dashboard never became ready. Positive (TC-269): ok readiness 69 — the planning floor is 45 (BR-07), against FAIL the planner refused the workflow (HTTP %s), which on a thin record is the correct answer. Negative (TC-270): FAIL the egress pass refused the dispatch. It reads the stream rather than the status code, because a refusal is a recorded state change with a toast and a 200 — see TC-195, which pins that on purpose. Positive (TC-271): ok packet: .gaos/packet/handoff.md. Positive (TC-272): ok GAOS read the document: %s, against FAIL GAOS recorded a failed attempt: %s. Read from RunExited's text and not from a payload: Events() strips payloads at the seam, and an earlier version of this script grepped for the failure signature there and passed on every run including the one where no document was written. Negative (TC-273): FAIL %s was not created, and the weaker half, FAIL the file exists but never mentions "%s"; the packet may not have reached the model.

dashboard — what the schema apply did (TC-274)

ApplySchema has always returned two counts so the boot could say what happened, and NewArcadeStoreFor discarded both — so after a deploy that added an index, the only way to confirm it had landed was to query the database by hand. The store keeps them now and serve() prints one line: schema: 324 statements from the embedded DDL, none failed (128 accepted, 196 already declared) — 365 statements since v0.24.0 added 11-blueprint.sql. Positive (TC-274): the counts are captured — the store reports %d applied and %d present; the DDL is over three hundred statements, so both being zero means the counts were thrown away rather than that nothing ran — and the total is stable across two applies, because two applies of one embedded DDL counted %d statements then %d; the DDL is compiled into the binary and cannot change between them. Skips without GAOS_ARCADE_TEST_URL; see scratch.sh.

What the counts do not mean, measured

This case was first written to assert that a second apply against a populated database applies nothing. The database said 128. On 26.7.2 most of the DDL is IF NOT EXISTS and the server honours that silently rather than raising AlreadyExists, so applied means "the server accepted it" and never "something new was created". The pair tells an operator how large the embedded DDL is and that none of it failed; it cannot say whether anything changed. The doc comment on ApplySchema promised more than that and has been corrected, and the log line is worded accepted rather than applied for the same reason — a line implying a migration had run would send somebody looking for one that never happened.

What the first live runs measured, including two things nobody had asked

The loop works, three times. On 2026-08-23 three real Claude Code runs, spawned by the scheduler from a planned graph, were each given the packet, wrote the handoff document, and had it parsed to outcome complete. Cost is measured from the tool's own JSON envelope rather than estimated (D-051):

RunCostTurnsDurationDeliverable
1$1.283418195 s376-line runbook
2$1.079816143 s227-line runbook
3$1.183417164 s314-line runbook

Identical input, different output, and that is the useful half. Runs 2 and 3 were given byte-identical packets — same four files, same digest 1d6ffc90a0067d2f, which is why both wrote their log to a file of that name — and produced runbooks of 227 and 314 lines. GAOS's half of the system is reproducible and the model's half is not, which is exactly the split the design assumes: replay reconstructs what an attempt was given (D-6) and never what it answered, and H-4's fourth scope exists to compare two runs precisely because they differ. A frozen slice would be worth much less if they did not.

The contract has to be a standing instruction. The first attempt did the work well and never wrote the document: the contract had been the last section of a long input and read as background by the time the work was done. It is now repeated in the task's definition of done and passed to the tool as a system prompt. That is a measurement, not a preference, and dashboard/adapter_cli.go records it where the flag is set.

An agent reads more than the packet. The runbook it wrote quotes dashboard/egress.go — a file the allowlist had deliberately kept OUT of the packet. The agent read it off the worktree. The allowlist bounds what GAOS sends; in CLI mode it does not bound what the tool can open, because the tool has a working directory. That materially qualifies L-4 and it is now OQ-24.

dashboard — the ai-manager adapter and the reply handoff (TC-275…TC-284)

Written as forward specifications on 2026-11-02 and made to run the same day (M14.2), so the anchor keeps its ni- name: links to it predate the code. Every case runs against an httptest fake ai-manager in dashboard/aimanager_test.go that scripts the answer to each request id and counts the POSTs it receives — no binary is spawned and nothing spends money. The fake signs in as chat-secret-MARKER and holds admin-key-MARKER as its admin key, so a leak is a substring search.

TC-275, positive (TestAGatewayTurnRecordsTheSessionTokensAndAMeasuredCost): a 200 with 1200/300 tokens, cost_usd: 0.42 and one valid block gives outcome complete, those tokens, cost basis measured and invocation gateway, and the request went out as a new session in gaos-t1-p-5 carrying the reply contract. It fails with attempt = %+v, want outcome complete with the reply's tokens, cost %v %q invocation %q, want 0.42 measured through the gateway (D-062), or the turn was sent as %+v; want a new session in the product's workspace with the reply contract.

TC-279, positive (TestAResubmittedRequestIDStartsNoSecondTurn): three 202s then the result give one completed attempt; the request id is gaos.t1.r-1 for run R-1 — deterministic, so a resend is the same request — and Resume polling that id yields the same completed attempt. Fails with request id %q posted %d times; the id must be deterministic so a resend is the same request or polling the request id gave %+v %v, want the same completed attempt. TC-280, positive (TestExtractHandoffTakesTheLastBlockAndKeepsTheProse): prose, a go fence and then the handoff block yield the handoff block; a block without its --- lines parses too. Fails with extract = %+v %q %v or a block without --- lines: %+v %v.

The negative half is the gateway's error mapping, one test per row. TC-276 (TestA410OnResumeIsSessionLostAndOpensNoSessionInItsPlace): a 410 gave %+v %v, want a failed attempt with %s (BR-40), and a lost session was silently replaced by a new one: %+v if any request carried new_session. TC-277 (TestASessionWarningFailsTheTurnEvenWithAValidHandoff): a turn the gateway did not save gave %+v, want %s — turn-unsaved. TC-278 (TestA409IsBusyNotAFailedAttempt): the adapter returns ErrTurnRunning and no attempt at all — a 409 gave %+v %v, want ErrTurnRunning and no attempt at all. What the runner then does with a busy answer (no TaskRun closed, the task left READY) is M14.5's; one turn per product is asserted with TC-295. TC-281 (TestARepliedHandoffForAnotherRunIsHandoffMissing): no block, two blocks for different runs, the previous run's block, and another task's block each give %s: err = %v, want %s with handoff-missing. TC-282 (TestAGatewayCostThatIsMissingOrZeroIsUnavailable): case %d: %v %q, want %q and never a priced zero (BR-37). TC-283 (TestTheGatewaySmokeRefusesAnUnreachableGatewayOrNoClaude): smoke with no claude provider: %v, and smoke passed against a gateway answering 502. TC-284 (TestTheGatewayCredentialsNeverReachTheRecord): a credential reached the record: %s over two attempts, an error and a smoke result; and the admin key was sent on a chat route; it is for provisioning only.

dashboard — the Blueprint: render, publish, pin (TC-285…TC-290, TC-311, TC-312)

In dashboard/blueprint_test.go, M14.3. TC-285, positive (TestTheBlueprintRendersTheSameBytesEveryTime): two renders of one record are byte-identical (two renders of one Blueprint differ: %s vs %s), every section file is present (the render has no %s; files are %v), and — the load-bearing half — BlueprintDigest reproduces the manifest_digest the production ai-claude-cli computed on 2026-11-02 for the same two files, b7326dfe…: BlueprintDigest = %s, the production worker computed %s for the same files. If that ever fails, GAOS and the worker disagree about what a workspace holds and every workspace would read as drifted. TC-287, positive (TestAPublishedVersionIsImmutable): editing a policy changed published version 1 (%s -> %s), and the draft is %+v, want the one policy, replaced by key. TC-289, positive (TestAKnowledgeSourceIsRenderedPinned): knowledge sources rendered as %q, want the URL with its pinned ref and purpose.

TC-286, negative (TestABlueprintOverTheCapsRefusesThePublishAndNamesThePolicy): a 64 KiB custom policy refuses the render — an oversized policy rendered with err %v, want a refusal naming policy huge — and a key that could not render inside .claude/rules is refused at save: a key that would render outside .claude/rules was accepted: %v. TC-288, negative (TestPublishingAnUnchangedBlueprintDoesNothing): an unchanged publish gave %d events and %d versions (%v); want none and still one. TC-290, negative (TestAKnowledgeSourceThatIsNotHTTPSOrCarriesCredentialsIsRefused): an http:// URL, a URL with user:token@, and a blank ref each give %+v was accepted (%v); it would make an attempt irreproducible or leak a credential.

Two cases were added when the code landed, because no forward specification covered them. TC-311, positive (TestTheBlueprintSurvivesARestart, ArcadeDB only, skipped without GAOS_ARCADE_TEST_URL): a policy, a source and a published version come back from a reopened store — the reopened store has versions %+v, want the one published (%s), the draft came back as %+v. TC-312, positive (TestTheBlueprintTabRendersAndPublishes): the back-office tab renders, saves a policy and publishes version 1 (GET the Blueprint tab = %d; want 200 with the publish button, publish through the tab = %d; want the pane to show version 1), and refuses a publish without a session: publishing without a back-office session = %d, want 401. Since v0.25.0 it also syncs with no gateway configured and expects the refusal: syncing with no gateway = %d; want the refusal naming GAOS_MODEL_MODE=aimanager. It exists because the first version of the pane called a (value, bool) method, which html/template cannot — a 500 that every store-level test passed straight over.

The conformance table gained PublishBlueprintRoundTrips and SavePolicyWithABadKindIsRejected, and the read-only case now refuses the three new mutations; those run under TC-124/TC-125 rather than rows of their own.

dashboard — one workspace per product, the sync, the drift gate (TC-291…TC-295)

M14.4, in dashboard/workspace_test.go, against the fake ai-manager, which now also answers the provisioning routes, keeps files per workspace and computes the worker's digest. TC-291, positive (TestProvisioningIsIdempotentAndTheWorkspaceIDIsDerived): the first sync emits two WorkspaceProvisioned and two BlueprintSynced — the product's workspace and the reviewer's (the first sync gave %v %v; want two WorkspaceProvisioned and two BlueprintSynced — the product's workspace and the reviewer's), the two workspaces are gaos-t1-<product> and gaos-t1-<product>-review (the workspace is %q (worker has %d workspace(s)); want %s, derived from tenant and product), and a second sync neither provisions again nor rewrites unchanged files (a second sync provisioned again or rewrote unchanged files (%d writes); both must be no-ops). TC-294, positive (TestTheAttemptRecordPinsTheBlueprintAndTheGatewayIDsAcrossAReopen, ArcadeDB only): a supervised gateway attempt, read back from a reopened store, carries version 1, its request id, its session id, its slice digest and invocation gateway — the reopened attempt is %+v; want pinned to version 1 with its request id, session id, slice digest and invocation gateway; PINNED_TO is the edge behind the version.

TC-292, negative (TestADriftedWorkspaceRefusesTheDispatchAndASyncReleasesIt): with a published Blueprint the workspace does not hold, the operator's dispatch writes one DispatchRefused with rule blueprint-drift — dispatching with an unsynced Blueprint gave %v %v; want one DispatchRefused rule %s (BR-39) — and sends nothing (a drifted dispatch still sent %d turn(s) to the gateway); after a sync the gate pins version 1 and the block is released (after the sync the gate says pin %d drift %+v, block reason %q; want version 1, no drift, released). The scheduler's route goes through the same gate and the same refusal. TC-293, negative (TestACredentialInAPolicyRefusesTheSyncAndNothingReachesTheGateway, T-154): a policy holding an AWS key id publishes, and its sync is refused before any write — a Blueprint carrying a credential synced with %v %v; want DispatchRefused rule %s (BR-32), the gateway received %d write(s) of a Blueprint the egress pass refused. The refusal is a result with its event, not an error, so the graph store persists it. TC-295, negative (TestASecondTaskInAProductWithALiveTurnIsBlocked): the graph lease — a DISPATCHED or RUNNING task holds its product whether or not a workspace folder exists here — t-b reported %+v; with t-a running in the same product it must be blocked by the graph lease (BR-38), while another product's task still runs (dispatched %+v; another product's task must still run).

dashboard — booting as a least-privilege database user (TC-313)

Since 2026-11-02 each tier signs in to the shared ArcadeDB on clinodb as a user with rights on its own database alone, and only root may run server commands such as create database. ensureDatabase used to treat that refusal as fatal, and the dev dashboard crash-looped on its first boot against the shared server. It now proves the database exists by reading it as that user. TC-313, positive (TestALeastPrivilegeUserBootsAgainstADatabaseItCannotCreate), against an httptest server answering the measured refusal: a user who can read gaos_dev boots — a user who may read gaos_dev but not create it was refused at boot: %v — and a database the user can neither create nor read fails with both reasons — a database this user can neither create nor read booted with %v; want the refusal naming both.

dashboard — sessions per task, recovery by request id, the transcript (TC-296…TC-299)

M14.5, in dashboard/turns_test.go; the anchor keeps its ni- name because links to it predate the code. Every turn here runs with no folder on this host, which is what a gateway turn no longer needs. TC-296, positive (TestARetryResumesTheTasksSessionAndAnEscalationOpensANewOne): attempt 1 opens a session and attempt 2 resumes it — attempt 1 sent %+v and the retry %+v; a retry on the same model must resume the task's session (D-056) — and after the configured model changes, the next attempt opens a new one with SessionOpened rule escalation: after an escalation the turn sent %+v and SessionOpened was %v; want a new session opened with reason escalation. TC-297, positive (TestRecoveryAdoptsACompletedRequest): a run left RUNNING with a request id the fake has a result for is finished by boot recovery without a new turn — the recovered turn closed as %+v; want the completed attempt a supervised run would have produced, recovery sent %d new turn(s); it must poll the request it already has. TC-299, positive (TestThePromptAndReplyOutliveTheSession): after a 410 (the 410 gave %d SessionLost event(s), want 1) the first attempt's prompt and reply artifacts are still in the store — after the session was lost the store holds prompt %+v and reply %+v; both must outlive it (BR-41).

TC-298, negative (TestALostRequestIsOrphanedHeldUntilTheDeadlineThenRequeued): a request the gateway answers 404 for is TaskOrphaned rule request-lost while the task stays RUNNING, holding its product — a lost request gave %v with the task %s; want TaskOrphaned rule %s and the product still held (D-060) — and only after the turn deadline is it READY, its run request-lost, its next session a new one: after the deadline the task is %s, the run %+v, next session reason %q; want READY, request-lost, and a new session. Writing this case found the session policy naming that reason first: a lost request never learned its session id, and the empty-session branch was checked before the failure.

live-aim-run.sh — the first turn through the gateway (TC-300…TC-303)

deploy/acceptance/live-aim-run.sh, the successor of live-cli-run.sh. It spends one turn, so it does nothing without GAOS_LIVE_OK=1, the three GAOS_AIM_* settings and, since v0.39.1, GAOS_ACCEPT_PASSWORD_FILE: the script hashes the file's first line into a one-account users file for the dashboard it boots, signs in (ok signed in to the back office as acceptance@example.test (D-079), else FAIL the back office refused the sign-in for acceptance@example.test; check GAOS_ACCEPT_PASSWORD_FILE) and sends the cookie jar on every later call. It no longer cancels the desk after planning: the seated planner takes its own desk's first task (TC-440) (D-025: the owner runs it). First run 2026-11-02 against ai-manager on rnd-v2-vpn: every line below printed ok. TC-300, positive: ok dashboard ready in gateway mode — the boot smoke test found ai-manager's claude provider, else FAIL the dashboard did not come up in gateway mode. TC-301, positive: ok readiness 69 — above the planning floor of 45 (BR-07) and ok Blueprint version 2 is in the workspace gaos-acceptance-p-5. — provisioned and written through ai-manager, else FAIL the Blueprint did not reach the workspace. TC-302, negative: a coding policy carrying an AWS key id is published and its sync refused — ok a Blueprint carrying a credential was refused before the sync, and the refusal is on the timeline (BR-32), else FAIL a Blueprint carrying a credential was not reported as refused. TC-303, positive: one real turn — ok SessionOpened — the turn ran in a new session in gaos-acceptance-p-5 and ok the reply's gaos-handoff block parsed: run wf-6-t-1-a1 exited ran, outcome complete, else FAIL GAOS recorded a failed attempt; a refusal as drift would print FAIL the dispatch was refused as drift.

dashboard — the board and its legal-move table (TC-304…TC-307, TC-309)

M14.6, in dashboard/board_test.go, against a workflow planned on a seeded product. TC-304, positive (TestTheBoardHasItsColumnsEveryTaskOnceAndALanePerStory): the Board tab renders a card (the Board tab rendered %d without a card; a template error here is a 500 no store test sees), a product with no tasks answers an empty array rather than null (a product with no tasks answered %s; cards must be an empty array, not null — found on dev, where the fresh database had no tasks), the columns are the nine declared ones in order — Needs you, M15, sits between Working and Review (columns are %s; want the nine declared ones in order), every card sits in a declared lane (card %s sits in lane %q, which the board does not declare), and every task appears exactly once with a plan lane (the board has %d cards for %d tasks (lanes %v); want every task exactly once and a plan lane). TC-305, positive (TestEachLegalMoveProducesItsEventAndStatus): review to done, review to ready, failed to ready, blocked to ready and pending to canceled each give their status and one TaskMoved naming the action — %s -> %s gave status %s, events %v, err %v; want %s and one TaskMoved %s; a move inside a column gives one TaskReordered (a move inside its column gave %v %v; want one TaskReordered); and ready to working dispatches a real turn through the fake gateway with the runner on (ready -> working gave %v %v; want a dispatch).

TC-306, negative (TestAMoveOutsideTheTableAnswers409AndWritesNoEvent): seven moves over HTTP — pending to ready, done to ready, deferred to ready, into blocked, review to working, a running task to canceled, canceled to backlog — each answer 409 with a reason and write nothing: %s -> %s answered %d %v and left %s with %d new event(s); want 409 with a reason and nothing written (BR-43). The running case is refused because a live turn cannot be stopped through the gateway (OQ-26). TC-307, negative (TestALaneChangeACreateAndADeleteAnswer409): a lane change answered %d; a card's lane is its story and cannot move, and %s %s answered %d; cards are planned, not created, edited or deleted on the board for POST, PUT and DELETE. TC-309, negative (TestTheReplayHandleRefusesEveryMove): the read-only handle moved a card (%v); replay must not write (BR-20); the conformance suite's read-only case refuses MoveCard too.

dashboard — the product list is the home page (TC-314, TC-315)

T-167 and T-168, in dashboard/home_test.go. M14.7 retired the engineering floor — the desk carousel, the inspector, the meeting room, the timeline strip and their controls — together with the CLI execution layer it animated, and the simulator that drove it now runs only inside the tests (sim_test.go). What replaced it is the product master, which was always there as a sheet over the floor. Positive (TC-314): signed in, GET / opens on the product list — signed in, the home page did not open on the product list naming %q; the product master is the home page (T-168) — with nothing of the floor left on it: the home page still carries the engineering floor or its ticker; the floor UI was retired in M14.7. Signed out, the same page is the sign-in sheet: signed out, the home page did not show the sign-in sheet with the product master closed. Negative (TC-315): each product's page has a Timeline tab beside its Board and Blueprint, and it is that product's stream and no other's. A story is added to two products and the first one's tab is read — the Timeline tab of %s does not show %q, the event of the story just added to it, and the Timeline tab of %s shows %q, an event of %s; a product's timeline is its own.

dashboard — the task fold replays the board (TC-308, TC-316)

T-164, in dashboard/taskfold_test.go. Since v0.30.0 every task status change writes a TaskMoved naming the task, whoever made it — the board, the scheduler, the runner, recovery, a drift release — with Rule naming the actor and To the status reached, and TaskPlanned carries each card's story, model, gate and priority. foldTasks rebuilds a product's tasks from those three events, and boardOf projects them exactly as the live board does. The history the test drives goes only through the store's own routes: a turn that reaches review and is approved on the board, a turn with no handoff that fails and is retried, a reorder and a cancel in the backlog, and a published Blueprint the workspace does not hold, which refuses a dispatch until a sync releases it. TC-308, positive (TestTheTaskFoldReproducesTheBoard): the live board reaches every column the history aims at — the live board has cards in %v and none in %s; the history did not reach every actor — every actor wrote its move — the history wrote TaskMoved with rules %v and none with %q; every actor that moves a task must name it — and the folded board equals the live one: folding the events gave the board %+v; the store reports %+v -- a status change wrote no TaskMoved (T-164, BR-04). Since v0.44.0 the design gate's board decoration — a blocked card's reason, a review's send-back state and the moves it removes (D-084) — is read-time, like the timing, and is compared without. TC-316, negative (TestATaskFoldMissingAMoveDisagreesWithTheBoard): the same history with its last TaskMoved dropped must not reproduce the board — a fold missing the TaskMoved %q still reproduced the board; the fold is not reading the stream (TC-316) — which is what proves the fold reads the stream rather than the store.

dashboard — the Blueprint is checked again after the turn (TC-317…TC-319)

T-156, in dashboard/workspace_test.go, the second half of BR-39. The gate before dispatch reads GAOS's own record of what the workspace holds; only the worker can say what happened during the turn. After every run GAOS asks the workspace for its digest again and compares metadata.context.workspace — the context the worker reports it offered the model — with the pinned version. Drift leaves the attempt's own outcome alone and refuses the next dispatch: a DispatchRefused with rule observed-drift, the product blocked with a BR-39 reason, and the workspace record no longer matching the published digest until a sync. TC-317, positive (TestAWorkspaceRewrittenDuringTheTurnRefusesTheNextDispatch): the workspace's CLAUDE.md is rewritten behind GAOS's record — a workspace rewritten during the turn gave %d observed-drift refusal(s), gate %+v, block reason %q; want one DispatchRefused rule %s, the next dispatch refused, the product blocked (BR-39); the task keeps its outcome — the drifted turn left its task %s; drift blocks the product, it does not judge the work; and a re-sync releases it — after the re-sync the gate says pin %d drift %+v, block reason %q; want version %d, no drift, released. TC-318, positive (TestAnObservedContextGAOSDidNotWriteIsDrift): a CLAUDE.md from a parent folder, a rule the version wrote and the worker did not load, a rule GAOS did not render, and an agent each give %s in the observed context gave %d observed-drift refusal(s) and gate %+v; want one DispatchRefused rule %s and the next dispatch refused (BR-39) if they do not block. TC-319, negative (TestAMatchingObservedContextIsNotDrift): a context that matches the pin, and a reply that reports no context at all, leave the product free — %s gave %d observed-drift refusal(s), gate pin %d drift %+v; a turn whose workspace matches its pin must not block the product. No context is not drift: there is nothing to judge, and the digest is still checked.

dashboard — a failed turn is cited as a failure (TC-320)

In dashboard/contract_test.go. A failed turn's error text is still stored as that attempt's handoff, because it is the best evidence of what happened, and the next agent is still cited it as the lesson. What changed is how it is shown: under .gaos/packet/context/failure-previous.md, opening with "The previous attempt (run …) failed with `…`. What follows is the error it returned, not a handoff from an agent." Positive: after a 410 the next packet carries the labelled failure and no handoff-previous.md — after a failed turn the next packet holds failure-previous.md %v (body %q) and handoff-previous.md %v; want the error labelled as a failure, never shown as a handoff. Negative: after a clean turn it is the handoff, unlabelled — after a clean turn the next packet holds handoff-previous.md %v and failure-previous.md %v; want the handoff, unlabelled.

dashboard — an agent asks, the operator answers (TC-321…TC-330)

M15, in dashboard/questions_test.go, against the fake ai-manager, which now also serves POST /v1/questions/{id}/answer and records every answer it receives. A scripted asking turn replies with finish_reason: awaiting_input and a three-option question (D-064, BR-44). TC-321, positive (TestAQuestionTurnWaitsOnTheOperator): the task waits (a turn that ended on a question left the task %s; want AWAITING_INPUT), the run is not failed (an asking turn was recorded as failed (%s); a question is not a missing handoff), the inbox holds it (the inbox holds %+v; want the one question with its three options, the recommended first), a QuestionAsked carries it (no QuestionAsked carries the question; the inbox would not survive a restart), it is an artifact (the question was not kept as an artifact of the attempt that asked it) and a notice (a waiting question did not count toward the operator's notices). TC-322, positive (TestAnAnswerPutsTheTaskBackInTheQueue): an answer in the operator's own words requeues the task (an answered task is %s; want READY, back in the queue), toasts the outcome (the toast says %q; want the outcome, that the task resumes), empties the inbox (the inbox still holds %d question(s) after the answer), and a second answer is refused (a second answer returned %v; want ErrRejected, the question is closed). TC-323, negative (TestAnInvalidAnswerIsRefusedAndChangesNothing): choices 0 and 5 and a blank fourth answer — choice %d with text %q returned %v; want ErrRejected; another product's id — an answer through another product returned %v; want ErrNotFound; and none of them writes — a refused answer wrote an event or moved the task. TC-324, positive (TestTheNextTurnResumesThroughTheAnswerRoute): the next packet carries the answer (the next packet carries answer %+v; want the operator's choice 2 for q-%s) and its context/answer.md part (the answer part reads %q; want the chosen option and the operator's note); the turn goes once through the answer route (the answer route received %+v; want one answer under the attempt's request id, carrying the reply contract), never also through chat (the answered turn was also posted to /v1/chat; one turn was started twice), and ends in review (the resumed turn left the task %s; want REVIEW). TC-325, negative (TestARefusedAnswerRouteFallsBackToAnOrdinaryTurn): for each of 409, 410 and 503 — a %d from the answer route stranded the turn; want it sent once through /v1/chat and after a %d the fallback turn left the task %s; want REVIEW. TC-326, negative (TestAMalformedQuestionIsNotAQuestion): two options and no handoff — a two-option question with no handoff left the task %s; want FAILED (handoff-missing), and a malformed question reached the inbox. TC-327, negative (TestAWaitingCardMovesOnlyByAnAnswerOrACancel): dragging a waiting card to %s returned %v; want ErrRejected for ready, review and done; cancel is allowed (canceling a waiting task failed: %v) and takes the question with it (a canceled task's question is still in the inbox); and nothing may be dropped into the column (a card can be dropped into Needs you; only an agent may put it there). TC-328, positive (TestTheGatewayClientMapsTheAnswerRoute): a 202 from the answer route returned %v, and a %d from the answer route returned %v; want %v for 409→ErrQuestionAnswered, 410→ErrQuestionExpired, 404→ErrRequestUnknown. TC-329, negative (TestTheQuestionDDLWidensWhatTheCreateDeclares): an old database and a new one must accept the same statuses — 12-questions.sql widens Task.status to %q but 04-execution.sql creates %q; an old database and a new one would accept different statuses — and Artifact.kind does not admit 'question'; the asking attempt's artifact would be refused at commit. TC-330, positive and negative (TestTheInboxAndTheAnswerRouteSpeakJSON): GET questions answered %d %s; want 200 with the one waiting task, titled; then an answer without the back-office session answered %d; want 401, an empty own-words answer answered %d %s; want 422, a valid answer answered %d %s; want 200 with the QuestionAnswered event, a second answer answered %d; want 409, the task is no longer waiting and an answer for an unknown task answered %d; want 404.

dashboard — the live channel (TC-331…TC-333)

M15, in dashboard/broker_test.go (D-065, T-110). Run with -race as well as without. TC-331, negative (TestTheBrokerFansOutAndDropsASlowSubscriber): a subscriber that never reads must not stall the publisher — Publish blocked on a subscriber that does not read; one stalled tab would hold the store's lock — and is the one dropped (%d subscribers remain; want 1 -- the slow one is dropped, the reading one kept); ending a subscription twice is harmless (%d subscribers remain after both ended; want 0). TC-332, positive and negative (TestOnlyTheLiveStorePublishes): an emit reaches the broker (the broker delivered %s; want the TaskMoved just emitted, an emitted event never reached the live channel), and a bare projection has a broker; a replay or a fold would re-announce the past as live. TC-333, positive (TestTheStreamSendsAHintForAQuestion): without the cookie — the stream without the back-office session answered %v %v; want 401; with it — the stream answered Content-Type %q, X-Accel-Buffering %q; want text/event-stream and no; an asking turn produces a hint without the question's content — the question hint reads %s; want the type and the task, and not the question's content — or the stream ended without a question hint: %v.

dashboard — the inbox, the chip and the answer sheet (TC-334…TC-340)

M15, in dashboard/needs_test.go, rendering the real templates through the routes with planted questions. TC-334, positive (TestTheInboxListsEveryWaitingAgentOldestFirst): GET /ui/bo/inbox answered %d without the inbox view; buildBO has no inbox case; the inbox rows are missing or out of order (old at %d, new at %d); want both, oldest first; a row does not say how long it has waited, with the absolute time in its title; a row does not say when its question closes with its session; want expires in 29d and 21d; the waiting and expiry labels carry no datetime for live.js to re-tick; they would freeze at render time; %d expiry labels are urgent; want 1, the question with under three days left (since v0.32.0, replacing a stale tag after seven days — D-066); a row shows more than the question's first line; and the inbox filtered to one product still lists another product's agent. TC-335, negative (TestAnEmptyInboxSaysNoAgentIsWaiting): an empty inbox answered %d without its empty state. TC-336, positive and negative (TestTheChipCountsWaitingAgentsOnlyForASession): GET /ui/needs signed in = %q; want a visible chip naming 2 agents and the nav count; GET /ui/needs signed out = %q; want neither the chip nor the count; the back-office sheet's head has no slot for the chip; signed in, the sheet hides the topbar; an answer's response (%d) did not carry the chip down to 1. TC-337, positive and negative (TestTheAnswerSheetPreselectsTheRecommendation): GET the answer sheet answered %d without a modal dialog; option 1 is not preselected and labelled Recommended, alone; the sheet has no fourth answer in the operator's own words; the sheet does not post to the answer route with a relative URL; a sheet for a task that is not waiting answered %d; want 422 and a toast saying so; the answer sheet without a session answered %d; want 401. TC-338, positive and negative (TestAnAnswerReRendersTheViewItCameFrom): an answer from the inbox answered %d without the inbox and the outcome toast; an answer from the board answered %d without the board; the operator was moved off it; a second answer through the form answered %d; want 422 with the refusal as a toast. TC-339, positive (TestTheBoardBadgesAWaitingCard): the board has no Needs you column; a waiting card carries no Needs you badge that opens its answer sheet. TC-340, negative (TestTheLiveStreamIsNotGzipped): found by driving a real browser — every browser asks for gzip, and the gzip writer cannot flush, so the stream answered 501. the stream behind the gzip middleware answered %d, encoding %q; want 200 uncompressed; the stream's first line is %q; want the retry hint, readable as sent.

dashboard — a question lives as long as its session (TC-341, TC-342)

v0.32.0, in dashboard/questions_test.go (D-066, answering OQ-31). A question closes thirty days after it was asked, with the session that asked it. TC-341, positive and negative (TestAnUnansweredQuestionExpiresWithItsSession): one question past the lifetime, one a day old, one with no ask time. The old one blocks its task (a question unanswered past its session left the task %s; want BLOCKED) with one move that says why (the expiry wrote %+v; want one TaskMoved with rule question-expired and a block reason); the others stay (a question still inside its session's lifetime, or with no ask time, was expired, the inbox holds %d question(s) after the sweep; want the 2 still open); an open one reports its end (an open question expires at %d; want %d, thirty days after it was asked); and the sweep is idempotent (a second sweep wrote %d event(s); an expired question expires once). TC-342, positive (TestAnAnswerResumesTheAskingSessionPastTheRotationAge): with the asking run backdated 26 days, an unanswered task still rotates (an unanswered task's old session gave %q %q; want rotation, as before), and once answered the next turn keeps the asking session (the answer turn would run in session %q (%s); want the asking session %q, which still exists).

dashboard — a vendor policy for each product (TC-343…TC-356)

v0.33.0, in dashboard/vendors_test.go (D-067, BR-45), against the fake ai-manager, which keeps each vendor's copy of a workspace apart and lists an antigravity provider with three models. TC-343, positive (TestAProductRunsOnClaudeUntilItsPolicySaysOtherwise): the zero policy is Claude for every role (a product with no vendor policy sends its %s tasks to %q; want claude, what every product ran on before M16, a product with no vendor policy dispatches to %v; want only claude), and the turn's body is unchanged (a Claude turn was sent with provider %q and model %q; want no provider and GAOS_MODEL, the body it had before M16). TC-344, positive (TestMixedModeResolvesTheVendorByRole): in mixed mode the %s role resolves to %q; want %q (a role the map does not name runs on Claude); mixed mode with one role on Antigravity dispatches to %v; want [claude antigravity]; the board shows card %s (%s) on %q; want %q, where its next turn goes. TC-345, negative (TestAnUnknownModeRoleOrVendorIsRefused): a mode openai, a role janitor and a vendor minimax are each refused (the policy %+v was accepted (%v); want a rejection naming what is wrong) and none of them lands (a refused policy still changed the product to %+v). TC-346, negative (TestAnAntigravityModelTheGatewayDoesNotOfferIsRefused): a model the pool does not list was saved (%v); want the gateway's list to refuse it, and the positive half, a model the pool lists was refused: %v, the saved policy is %+v; want the model the operator picked. When the gateway cannot be asked, any name is accepted and ai-manager refuses an unknown one at the turn. TC-347, positive (TestAnAntigravityTurnNamesTheVendorAndItsModel): an Antigravity turn was sent as provider %q model %q new_session %v; want antigravity, the product's model, a new session; the run recorded provider %q; want antigravity, so the next attempt knows where its session lives; a resumed Antigravity turn was sent as provider %q session %q; want antigravity and the session — ai-manager defaults a session to claude, so a resume that did not name its vendor would land on the wrong one. TC-348, positive (TestAVendorChangeOpensANewSession): after the product moved to Antigravity the retry resumes %q (reason %q); want a new session, reason %q (BR-45). TC-349, negative (TestASessionResumesOnTheVendorThatOpenedIt): a run recorded before M16 under a Claude policy opens a new session (reason %q); want it resumed, it went to Claude; an Antigravity retry with no model chosen opens a new session (reason %q); want it resumed -- GAOS_MODEL is not Antigravity's to escalate from. TC-350, negative (TestTheBlueprintGateHoldsAProductWhoseAntigravityCopyIsStale): synced on Claude, then moved to mixed: dispatching with Antigravity's copy unsynced gave %v %v; want one DispatchRefused rule %s naming Antigravity (BR-39), the reason reading the workspace on Antigravity holds no Blueprint; after a sync, after a sync to both vendors the gate says %v (pin %d); want it open at version 1. TC-351, positive (TestASyncWritesEveryVendorThePolicyUses): a Claude-only product's sync named a vendor: %v; want the calls it made before M16; then after the sync the gateway holds Claude's copy %v and Antigravity's %v; want both, the sync said %q; want it to name the vendors it wrote, the record says Antigravity's copy holds version %d; want 1. TC-352, negative (TestAPoolThatFailsTheSyncLeavesTheProductHeldAndNeverFallsBack): a sync whose Antigravity pool failed gave %q %v; want Claude synced and the failure named; the record says Claude holds v%d and Antigravity v%d; want 1 and 0; the gate is open while Antigravity's copy holds nothing; a backend task would run on rules it never saw, or on Claude instead. TC-353, positive (TestTheVendorPolicyAndEachRunsVendorSurviveAReopen): on a live ArcadeDB, skipping like TC-125 when none is configured: the reopened product's vendor policy is %+v; want %+v; the reopened attempt is %+v; want provider antigravity, or its retry would resume a session on the wrong vendor. The provider is TaskRun.provider, declared by dashboard/schema/13-vendors.sql. TC-354, positive (TestAPoolWhoseCopiesDisagreeIsRepairedByTheSync): ai-manager answers 409 when the pool's accounts disagree; the sync provisions (idempotent, creating the missing copies) and writes once without if_match: a sync over a pool whose members disagree failed: %v; want it provisioned and rewritten on every member, the sync never wrote the pool unconditionally, so its members still disagree, the sync made the calls %v; want %v -- provisioning is idempotent and creates the missing copies before the write, after the repair the gate still says %v. TC-355, positive (TestTheVendorsTabRendersThePolicyAndTheCatalog): GET the vendors tab = %d without %q; want the policy, the roles and the pool's models; the vendors tab has no form that saves to PUT /products/p-1/vendors. TC-356, positive and negative (TestPuttingTheVendorsFormSavesItAndRefusesABadOne): PUT the vendors form = %d; want 200 and the saved policy in the toast: %s, the form saved %+v; want mixed, backend on Antigravity, gemini-3.8-flash-low; then PUT a mode outside the three = %d without the refusal: %s, a refused form changed the policy to %+v. The round trip through both stores is a case in the conformance table (SaveVendorPolicyRoundTripsAndABadOneIsRejected), covered by TC-124 and TC-125.

check-workspace.sh — the agent workspace's own invariants (TC-357, TC-358, TC-380, TC-381)

A running stack hides the drift in the agent workspace: an orphan skill that contradicts the agent that owns its job, a vendored skill nothing referenced, and four numbers that stopped matching their own registers. deploy/check-stacks.sh checks the stack and pustaka check checks the docs site's structure; neither looked at .claude/. This script does, in seven checks: every path named in .claude/CLAUDE.md exists; every skill is referenced; every count agrees with its register; no rule sentence appears in two rule files; no isolation canary was left behind; and the review report store carries no secret-shaped string. The sixth check also owns the skills: no framework vocabulary came back into one, every vendored skill kept its licence and its provenance, and the trimmed design-engineering skill still matches the SHA-256 its SOURCE.md records — it is an instruction file every frontend session loads, so an edit to it fails the run until the digest is updated in the same change. It runs on the host, where deploy/rebuild-restart.sh symlinks the host-side credentials into worktrees, so for a path matching *.env, *.aim-*, *.api-*, *.pem or *.key it prints the path and the rule and never the matched line. Positive (TC-357, TC-380): the files as committed print ok on all six checks and the run exits 0. Negative (TC-358, TC-381): a stale path, a drifted count, a skill carrying framework vocabulary, a vendored skill without its licence or its provenance, or a trimmed skill whose digest moved prints FAIL <what> and the run exits 1. Since v0.45.0 the README's figures are compared with what the script computes, not with fixed strings: ok README Go-test count matches (<n> Go tests), ok README case count matches (<n> registered test cases) and ok README version matches (Product version <semver>), or FAIL README Go-test count: README.md does not say "<n> Go tests" and the same shape for the other two. Since v0.78.0 (D-118) the register count allows the IDs another design has reserved: ok QA register: <n> cases (<r> reserved), highest TC-<max>, or FAIL QA register: <n> rows and <r> reserved but the highest id is TC-<max>. It is advisory — there is no CI, so the product owner runs it (D-025).

check-workspace.sh — no private instance in a tracked file (TC-510)

Section 7, since v0.45.0 (D-085). GAOS is open source, and one operator's instance — a sample product's name, its organisation, its domain — must not be named in the repository. The patterns are not in the script: they are read from the first non-empty list of $GAOS_FORBIDDEN_STRINGS, deploy/local/forbidden-strings and the same path in the main checkout (an agent worktree never receives ignored files), one extended regex per line, case-insensitive. git grep --untracked scans the tracked and untracked-not-ignored files; the path check covers the same set. A path that matches is printed by its index and a hash, never by name, and the matched text is never printed. Positive: ok no tracked file or path names a private instance (<N> pattern(s) from local|main|env). Negative: FAIL a tracked file names a private instance: <path> (line <n>), FAIL a tracked path names a private instance: path #<k> (<8 hex>), FAIL a file under deploy/local/ is tracked: <path>, FAIL the forbidden-strings list is tracked; it must stay git-ignored, FAIL the forbidden-strings list holds an invalid pattern, FAIL GAOS_FORBIDDEN_STRINGS names no readable, non-empty list and FAIL git grep could not scan the working tree. Without a list it prints skip private strings: no forbidden-strings list (deploy/local/README.md says where it goes) and does not fail. Every branch was run once at v0.45.0 and its output piped back through the list: nothing matched.

check-workspace.sh — no routable address, and ToC parts that parse (TC-751)

The repository is public (D-096). An address in a tracked file tells a stranger where the edge is, so the docs name it by role, and commands look it up with dig. Section 8 scans every tracked file and every untracked file that is not ignored, the same set section 7 scans. It skips deploy/local/, binary assets, *_test.go (resolver fixtures) and landing-page/ (inline SVG path data). Image references are blanked first, so a four-part version tag is not read as an address. Positive: ok no public IPv4 address in any tracked or new file and ok every ToC part is valid JavaScript (or info skip ToC syntax: node not installed). Negative: a routable address at the end of a sentence, one after --resolve host:443:, and one after a private address on the same line each fail as FAIL a public IPv4 address in a tracked or new file: <file>:<line>, which never prints the value. A ToC part that node --check rejects fails as FAIL a ToC part is not valid JavaScript: <file>. Two parts were invalid from v0.37.0 to v0.55.0, and every page in them was missing from the sidebar and search.

dashboard — the reviewer's own workspace (TC-382…TC-390)

M17.5, in dashboard/reviewer_workspace.go and dashboard/reviewer_workspace_test.go, against the fake ai-manager, which already keeps files per workspace and computes the worker's digest. TC-382, positive (TestTheReviewTurnRunsInTheProductOwnReviewerWorkspace): the review's packet names the product's reviewer workspace and the gateway receives it (the gateway received workspace %q; want the reviewer's own %q). TC-383, negative (TestTheReviewerWorkspaceIsNotTheProductWorkspace): no product's reviewer runs in the product's own workspace (the reviewer for %s runs in the product's own workspace %q). TC-384, positive (TestTheReviewerWorkspaceIdObeysTheGatewayIdGrammar): the id matches the gateway's grammar, and two long product ids do not collapse onto one (the reviewer workspace id %q for %q does not match the gateway's grammar). TC-385, positive (TestTheReviewerWorkspaceIsResetToThePublishedBlueprintBeforeEveryReviewTurn): the folder holds exactly the standing files — the author's file and an earlier review's leftover are both gone (the reviewer workspace holds %q, which the published Blueprint did not write; the folder must hold exactly the standing files). TC-386, negative (TestAReviewDispatchIsRefusedWhenTheReviewerWorkspaceCannotBePrepared): a workspace that cannot be prepared refuses the dispatch and sends no turn (the gateway received %d chat turn(s); a refused dispatch spends nothing). TC-387, negative (TestAReviewTurnDoesNotMarkTheProductWorkspaceDrifted): the product's workspace digest does not move after a reviewer's turn (the product's workspace digest moved from %q to %q after a reviewer's turn; the author's folder must not be marked drifted by the reviewer's behaviour). TC-388, negative (TestTheObservedDriftCheckStillFiresForAReviewTurn): a reviewer that rewrote its own standing files is caught (a reviewer that rewrote its standing files produced %d observed-drift refusal(s); want one). TC-389, positive (TestTheBlueprintSyncKeepsBothWorkspacesInStep): the sync leaves both workspaces holding exactly the published files, and the record names the reviewer's copy (the record does not say what the reviewer's copy holds). TC-390, positive (TestEachProductKeepsItsOwnWorkspaceRoot): three products give three workspace roots and three reviewer workspaces (two products share the workspace root %q).

dashboard — the design gate (TC-359…TC-375)

T-184…T-188, in dashboard/designgate_test.go. Since v0.35.0 a plan can carry a review task, and the reviewer's prompt holds 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 implementation waits on the review through the planner's own DEPENDS_ON edge, and the gate releases it only when the review clears. The gate is enforced twice over: a plan whose implementation has no review is refused before the first write, and the operator's dispatch route refuses a task whose prerequisite is not done.

TC-359, positive (TestTheDesignArtifactExistsWithKindDesignAndIsAttachedToItsTask): the design artifact is recorded and attached to the task that wrote it — no design artifact was recorded for the design task, the design artifact is of kind %q; it must be %q — and a design document that quotes a contract example is refused, because a nested block of a reserved tag would win the reply. TC-360, positive (TestTheImplementationTaskIsBlockedWhileTheReviewIsUnreviewed): the implementation is held from the moment the graph is written — the implementation is %q; a task waiting for a review is BLOCKED, the implementation's reason is %q; it must be %q. TC-361, negative (TestTheReviewPacketCarriesTheDesignAndTheRulesAndNothingElse): the reviewer's prompt carries the design and the rubric and nothing else — the reviewer's prompt carries %d parts (%v); it must carry the design and the rubric and nothing else (D-069 clause 3). TC-362, positive (TestAReviewWithAnOpenBlockerHoldsTheImplementation): an open Blocker holds the implementation — the review task is %q; an open Blocker leaves it BLOCKED, the implementation is %q; an open Blocker holds it. TC-363, positive (TestAReviewWithNoReviewBlockIsAFailureAndNotAVerdict): a failed review is not a verdict — the review task is %q; a review that produced no verdict is BLOCKED, the failed review consumed a retry (%d) or an escalation (%d); a failed review consumes none of the three attempt-scoped limits (D-068 clause 7). TC-364, positive (TestAReviewWithNoOpenBlockerClearsTheImplementationExactlyOnce): a cleared review releases the implementation — the review task is %q; a review with no open Blocker is DONE, the implementation is %q; a cleared review releases it to READY — and the implementer's next packet carries the design and the findings: the implement packet carries no findings (%v); the findings must travel back (D-069 clause 6). TC-365, positive (TestAReviewDispatchDoesNotTripTheDriftGate): the reviewer's workspace holds the published Blueprint whole — the reviewer's workspace already drifts: %s.

dashboard — the design gate's contracts, session, accounting and enforcement (TC-366…TC-379)

The rest of the milestone's own cases, in the same file. TC-366, positive (TestAnImplementPacketCarriesTheDesignAndTheFindings): the implementer is handed the design it is implementing and the findings made about it. TC-367, positive (TestThePlanGivesEveryStoryADesignTaskAndAReviewTask): every story is designed, reviewed and then built — the implementation %s depends on %v; it must depend on the review %s, because that edge is the gate (D-069 clause 7). TC-368, negative (TestAPlanWithAnImplementationAndNoReviewIsRefused): a plan that omits the gate is refused — a plan whose implementation has no review was accepted; BR-46 says every implementation is reviewed before it runs, and the plan is an input. TC-369, positive (TestTheDesignContractAndTheReviewContractParse): both new contracts parse their own example — the design contract's own example does not parse: %v, the review contract's own example does not parse: %v — and a malformed severity, a scope carrying prose and an empty findings list without no-findings are each refused. TC-370, positive (TestAReviewTaskRunsOnAFreshSessionWithTheReviewerReason): the reviewer opens a fresh session — the review task's session reason is %q; it must be %q. TC-371, positive (TestAReviewTurnIsMeteredLikeAnyOtherTurn): a review turn is metered like any other — the desk's cost is %v after a review turn that cost 0.25; a review turn is metered like any other. TC-372, positive (TestTheDesignDriftReportNamesADesignWrittenUnderAnOlderBlueprint): a design written under a superseded Blueprint is reported — the review record does not report the drift: %q. TC-373, positive (TestTheClosedVocabulariesMatchTheDDL): the three closed vocabularies M17 grows agree with the DDL that admits them — Task.kind's regexp %q does not admit %q. TC-374, negative (TestTheOperatorDispatchRouteRefusesAnUnmetDependency): the operator's route cannot bypass the gate — the board may unblock %s by hand while %s has not resolved. TC-375, positive (TestTheEventCatalogIsUnchanged): the gate adds no event name — the gate wrote an event of type %q, which is in neither the model document's catalog nor the UI-lifecycle block. TC-376, negative (TestTheGateHoldsThroughTheOperatorsOwnRoutes): the gate's second door holds — the board unblocked a task the design gate is holding; the gate has two doors and one of them was open, the dispatch route dispatched a task whose review has not resolved. TC-377, negative (TestTheGateDoesNotOpenOnAReviewThatHadNoDesign): a design the screening refused is recorded, not silently dropped, and the review that follows has nothing to attack — the design task is %q; a design the screening refused is BLOCKED, not finished-looking, the review task is %q; a review with no design is BLOCKED. TC-378, negative (TestAnUnknownTaskKindIsRefusedBeforeTheFirstWrite): a kind outside the vocabulary is refused — a plan with a task whose kind is outside the vocabulary was accepted; the fail-open direction is contamination. TC-379, negative (TestTheGateRecordsAReviewOnlyWhenItHasOne): the gate clears on its own record — the gate cleared on a review task that reached DONE with no recorded finding; an approval is not a verdict.

dashboard — the QA catalog (TC-391…TC-396)

M18 phase P1, in dashboard/qacatalog_test.go (D-072, D-073, D-076; BR-51). A QA case has two halves with one writer each: GAOS's planning half and the QA tools' automation half. These six tests pin the vocabulary, the derived status, the ownership split, idempotency, the run-record rules and the desk fix. TC-391, negative (TestQaCaseVocabularyIsClosed): sixteen deliberately broken cases — bad case id, epic, module, user story, feature, thirteen features, empty or over-long scenario, polarity, level, priority, decision, a reason on a planned case, a reason with no colon, an unknown category, an empty detail — each come back as exactly one rejection and nothing is created (%s: want one rejection %q and nothing created, got %+v); the well-formed cases, including a planned case with deferred:next phase, are all created (valid cases refused: %+v), and so is a case of level MOB (a mobile-app case, listed but never planned for a staging create), and the schema's last word on QaCase.level is exactly that set (QaCase.level regexp in the schema is %q; it must be exactly the levels of qaLevels %v); and a spec that is absolute, climbs with .. or uses a backslash is refused as bad-spec (spec %q was not refused as bad-spec: %+v). TC-392, positive (TestEffectiveStatusAndNeedsDecision): a planned and implemented case is automated, a blocked and implemented one stays blocked (planned+implemented must be automated and blocked+implemented must stay blocked, got %+v) and is listed (a script on a parked case must be listed as needs-decision, got %v); each case's own status agrees (%s: status %q, want %q). TC-393, negative (TestImportAndResultsOwnTheirOwnHalf): an import without seed creates a case without script facts (an import without seed wrote the automation half: %+v); a later import, even seeded, updates the planning half (a changed scenario must update the planning half: %+v) but never the automation half (an import overwrote the automation half: %+v); a results item that names a planning field is refused at decode (a results item naming a planning field must be a decode error, got none); and a seeded import does carry the script facts of a case not yet present (a seeded new case lost its script facts: %+v). TC-394, positive (TestAnIdenticalRepostChangesNothing): an identical re-post counts unchanged (an identical re-post must be unchanged, got %+v), moves no revision and emits no RecordUpdated (an identical re-post moved the revision (%d -> %d) or emitted an event); the same holds for results (an identical results post must be unchanged, got %+v, an unchanged results post emitted an event). TC-395, negative (TestResultsRejectUnknownStaleAndFuture): in one batch an unknown case is unknown-case, a result without runAt is run-incomplete, and the valid item still applies (unknown case and a run without runAt must be rejected while the valid item applies: %+v); an older run is stale (an older run must be stale, got %v); a millisecond timestamp is future (a timestamp in the future must be rejected, got %v); an equal run is unchanged (an equal run must be unchanged: %+v); force overrides stale (force must override stale: %+v); and bad-result, bad-spec and bad-run-ref are named (%s: got %v). TC-396, positive (TestACreatedProductGetsADeskAndCanBePlanned): the desk fix of D-076. ProductDraft.Priority is honoured (ProductDraft.Priority was ignored: %q); a product made in the back office is plannable (a product made in the back office must be plannable (D-076), got %v) and gets one desk (one desk must be seated for the new product: %d -> %d); its tasks start exactly as a seeded product's (a runtime product's tasks must start exactly as a seeded product's (PENDING, PENDING, gate-BLOCKED), got %v); a parked floor with the runtime desk answers (Replay with a runtime desk present: %v, Snapshot while parked: %v); an unknown product is still refused (CreateWorkflow for an unknown product must fail). The negative half: POST /workflows and the four task routes without the back-office cookie answer 401 (%s %s without the back-office cookie answered %d, want 401) while a signed-in caller passes (a signed-in caller must pass the gate, got %d), and the desk order after a restart sorts by id length then id (desk order = %v, want [p-1 p-2 p-9 p-10 p-11]).

dashboard — the QA sync API (TC-397…TC-401)

M18 phase P2, in dashboard/api_v1_test.go (D-072; BR-52, BR-53). The tokens in these tests are fixtures. The contract itself is published at The QA sync API. TC-397, negative (TestAPIFailsClosed): no header is 401, a wrong token 401, the QA token on the admin route 403, the admin token and the QA token on a QA route 200, a request carrying X-Forwarded-Prefix /app or /docs 404 while one carrying /api — the prefix Traefik strips and announces on every public call — is 200 with a token and 401 without, all as %s: answered %d, want %d (%s), and no token ever appears in a body (%s: a token appeared in the response body); the public /api/v1 path never reaches the mux (/api/v1/... answered 200: the mux must register the STRIPPED path (Traefik removes /api)); a nil config, no tokens, equal tokens and an outbound token equal to an API token all answer 503; one token configured leaves the other 401; a second concurrent write is 429 with Retry-After (a 429 carries no Retry-After) while a read still passes; and a token file that is empty, missing, without the gaos_ prefix or short is treated as unset (token file %q must be treated as unset, got a token), a good one with a trailing newline is read back (a good token file with a trailing newline was not read back), and the boot line names no token (the boot line names a token: %q). TC-398, negative (TestAPIQaTokenIsScopedToItsProducts): the QA token's product list holds only its products (the QA token's product list must hold only %s: %s), the admin token lists every one (the admin token must list every product), another product is 404 and not 403 (GET %s on an unscoped product answered %d, want 404 (a 403 would say it exists), results on an unscoped product answered %d, want 404), the admin token reaches them (the admin token must reach every product, got %d), an unknown id is 404 (an unknown product answered %d, want 404), an unset list or a product name in the list reaches nothing (QA scope %s: answered %d, want 404, QA scope %s: listed %d products, want none), and force with the QA token is 403 (force with the QA token answered %d, want 403). TC-399, negative (TestAPILimitsAndStrictDecoding): 201 items are 413 (%d items answered %d, want 413) and 200 are 200; a body over 1 MiB is 413 (a body over 1 MiB answered %d, want 413); a results item naming a planning field, trailing JSON, a non-JSON body and an unknown catalog field are 400 (a results item naming a planning field answered %d, want 400, trailing JSON answered %d, want 400, a non-JSON body answered %d, want 400, an unknown catalog field answered %d, want 400); 201 catalog items are 413; a catalog post is created then unchanged (catalog post %d: %d %s, want %s); a bad query (after=-1, after=x, limit=0, limit=201, epic=lower) is 400 (?%s answered %d, want 400); and the revision after one created case is 1 (CatHead = %d after one created case, want 1). TC-400, positive (TestAPICasesCursorCoversEveryCaseOnce): seven cases at three a page take three pages, a case touched mid-way moves to the end of the feed and still appears once, and the last short page has next: null (the feed returned %d distinct cases, want %d: %v, %s came back %d times, want once, 7 cases at 3 a page took %d pages, want 3 (the last, short page has next=null)); every case carries its derived status (%s: the derived status is missing from the API's case); an epic with no cases answers an empty list (an epic with no cases must answer an empty list, got %s). It also runs sixteen concurrent readers (the cases feed, the summary and the board) over a product that has no cases yet: run under go test -race it fails with DATA RACE if a read takes only the read lock and writes the catalog map, which crashed the process before it was fixed. TC-401, negative (TestQaWritesNeverTouchTheFloorInReplay): with the floor parked, a results post and a catalog post still answer 200 (a results post while parked answered %d (%s), want 200: a QA write carries no floor, a catalog post while parked answered %d, want 200), the write's Result carries no desks (a QA Result carried %d desks; persist would save the replayed past over the live floor), the live desks do not move (a QA write changed the live desks while the floor was parked), and the back office's own sync path is refused (the back office's QA write was allowed during replay, QaRecordSync was allowed during replay).

dashboard — GAOS calling the QA tools (TC-402…TC-405)

M18 phase P4, in dashboard/qaclient_test.go, against an httptest server standing in for the contract (D-075). The two back-office buttons are inert until GAOS_QA_URL and its token are set. TC-402, negative (TestQaClientURLValidation): twenty URLs, each usable or not as stated (%q: usable=%v (%s), want %v) — https passes, http passes only to an IP literal in loopback or 10.10.0.0/24; a hostname over http, another private range, userinfo, a query, a fragment, another scheme, an empty or unparsable URL, and GAOS's own gateway or database host are refused; a missing token leaves the client unconfigured (a missing token must leave the client unconfigured); a cursor over 128 bytes or with a control or non-ASCII character is refused (cursor %q: valid=%v, want %v). TC-403, positive (TestPullAppliesPagesAndKeepsTheCursor): two pages are applied, the cursor ends at the last next, items are counted, and the unknown case and the stale run are counted as rejected (pull = %+v, want ok, cursor c2, 4 items, note %q must say 2 applied and 2 rejected (one unknown, one stale)); the call carries the outbound bearer (the outbound call did not carry the outbound bearer); the totals land (after the pull: %+v, want 2 pass (001 and the older 003), 1 fail (002), 1 automated); a resumed pull asks for the stored cursor and makes one request (a resumed pull = %+v after %d more requests, want ok, cursor c2 and one request). Negative: a page for another product, a planning field, an unknown field, a hostile or over-long cursor and non-JSON each fail the sync and keep the cursor (%s: pull = %+v, want a failure that keeps the cursor), a page of more than 200 items is refused (a page of more than 200 items was accepted), and a 404 is a recorded failure that names the status (a 404 = %+v, want a failure naming the status). TC-404, positive (TestPushAdvancesPerBatchAndKeepsRejections): with 450 cases and a 500 on the second batch the cursor stops at the first accepted batch (push = %+v, want a failure after batch 1: cursor 200, 200 items), the note names the status (note %q must name the status), the QA tools' rejected ids are counted but only a well-formed one is kept (rejections: n=%d ids=%v, want 2 counted and only the well-formed id kept), the QA tools saw two batches (the QA tools saw %d batches, want 2 (the second refused)); a resumed push sends the remaining 250 once (resumed push = %+v over %d batches, want ok, cursor 450, 250 items, 2 batches, the resumed push began at %s, want TC-AUTH-201) and a push with nothing new sends nothing (a push with nothing new = %+v, %d batches; want ok and none sent). TC-405, negative (TestSyncRefusesRedirectsOverlapAndCooldown): an unconfigured client, no client and an out-of-scope product are each 409 and call nothing (an unconfigured pull answered %d, want 409, an out-of-scope product answered %d after %d calls to the QA tools, want 409 and none); no cookie is 401; a good click records the outcome and emits exactly one event (the pull was not recorded: %+v, a sync must emit exactly one RecordUpdated); a second click is 409 with Retry-After and so is the other direction (the other direction within the cooldown answered %d, want 409 (the cooldown is process-wide)); an overlapping sync is 409 and the sync after the release is 200; a redirect is never followed (a redirect: ok=%v followed=%v note=%q, want a refusal that never followed it); the tab says in visible text why it is disabled (the pane for an unconfigured client: enabled=%v why=%q, the pane during replay: enabled=%v why=%q); and a pull during replay is 409 (a pull during replay answered %d, want 409).

dashboard — creation by the QA tools and the board (TC-408…TC-410)

M18 phase P5, in dashboard/qacatalog_create_test.go (D-073; BR-51, BR-53, BR-54). The QA tools may create a case and, for a new epic, one blocked card; nothing they send changes a case that exists or moves a task. TC-408, negative (TestQaToolsMayCreateButNeverChangeACase): a new valid case is created as planned (create = %d %s, want 200, 1 created, 1 epic, the created case: %+v); an identical re-post is unchanged (an identical re-post: %+v, want unchanged); a differing one is exists-differs and is not changed (a differing existing case: %+v, want exists-differs, the QA token changed an existing case's planning half: %q); and decision-not-allowed, use-results, bad-case-epic, empty-scenario and bad-spec each refuse their case (%s: rejected %q, created %d); an epics entry for an existing code rewrites nothing (an epics entry rewrote an existing epic: %+v); the admin token also passes, another product is 404 and no token is 401 (the admin token answered %d, want 200, an unscoped product answered %d, want 404, no token answered %d, want 401); a secret anywhere refuses the whole request and writes nothing (a secret answered %d %s, want 400 secret-in-body, a refused request wrote cases: %d in the catalog, want 3); markup is stripped (markup survived in a scenario: %q); an unknown field is 400, 201 cases are 413, and past the case ceiling a case is case-limit (past the case ceiling: %+v, want case-limit). TC-409, positive (TestANewEpicGetsOneBlockedCardAndNothingElseMoves): a new epic with two cases adds one epic and one card (create = %d %s, want 1 epic, 1 card, 2 cases), the card is BLOCKED with the QA reason, kind implement, in the Plan lane, one dependency, ordinal 3 — even though the review has already cleared (the card = %+v, want BLOCKED with the QA reason, implement, Plan lane, one dep, ordinal 3); exactly one TaskPlanned and one TaskMoved are written (a new card must write exactly one TaskPlanned and one TaskMoved); no existing task, and none of another product, moves (task %s went from %q to %q, a QA write changed another product's tasks); the epic records its card (the epic's card id = %q, want %q); a second case adds no card (a second case in the epic: %+v, want no new card); the fold rebuilds the same card (the fold's card = %+v, want BLOCKED at ordinal %d); the board badge counts three cases and no other card carries one (the card's badge = %+v, want 3 cases of NEW, card %q carries a badge it should not). Negative: with no workflow the epic is recorded and no card is made (no workflow: %+v, want an epic, no card, no-workflow, the summary's noCard = %v, want [ZED]); with the floor parked the card is deferred and the live desks do not move (parked: %+v, want an epic, no card, replay, a QA write changed the live desks while the floor was parked); six new epics in one request add five and refuse one, and the hundred-epic ceiling refuses another (six new epics: %+v, want 5 added and 1 epic-limit, past the epic ceiling: %+v, want epic-limit); and planning another product leaves an in-flight task of a bystander alone (the bystander's task = %q after other products were planned, planning another product re-blocked the bystander's task: %q) — the fix to CreateWorkflow's gate loop. TC-410, positive (TestTheBoardCardCarriesLiveCaseCounts): after the seed every epic holds its card id (epic %s has no card id after the seed), each epic card has a badge with no cases yet and the design, review and release cards have none (%q shows %d cases before any case exists, epic card %q has no badge, %d badges, want %d (one per epic card, none on design, review or release)); two created cases and one failing result move the badge to 2 cases, 1 automated, 1 failing, 50% (the AUTH badge = %+v, want 2 cases, 1 automated, 1 failing, 50%%) without writing a task (a case or a result changed a task); and noCard is empty after a full seed (noCard = %v after a full seed, want none).

The product seed and seed.sh (TC-406, TC-407, TC-411)

M18 phase P3, in dashboard/seed_test.go and deploy/seed/seed.sh; since v0.45.0 (D-085) both tests run on the invented example in deploy/seed/example/, and a real product's seed is private, under the git-ignored deploy/local/ (D-074). The seed is generic; the sample product's content is data under deploy/seed/<sample>/, and the seed never clears the design gate. TC-406, positive (TestProductSeedIsIdempotentAndMeetsTheFloor): the example seed is accepted (the example seed answered %d: %s); the first run creates the product, one story per module, the epics, the policies and a Blueprint version 1, with 2 + epics + 1 tasks (first seed = %+v, want created, %d stories, %d epics, %d tasks, first seed = %+v, want a readiness of at least %d, Blueprint version 1 and %d policies); nothing is moved or run (%q is %s; the seed must not move or run a task); design and review start pending (design and review must start PENDING: %+v / %+v); every epic card is blocked by the gate (%q is %s, want BLOCKED by the design gate) and only the epic with no module sits in the Plan lane (%d of %d epic cards are in the Plan lane: only the epic with no module should be); the release task is gated and waits on every epic (the release task must be gated and wait on every epic: %+v); a second run changes nothing (a re-run must change nothing: %+v) and overwrites no operator edit (a re-run overwrote an operator's BRD: %q, a re-run overwrote an operator's policy: %+v); and story text carries no backtick or angle bracket (story %s carries unsafe text: %q). Negative: a QA token may not seed (a QA token seeded: %d); a secret in a feature line, a policy body or the BRD is 400 secret-in-seed and creates no product (secret %s: answered %d %s, want 400 secret-in-seed, a refused seed created a product); a malformed seed is 400 (%s: answered %d %s, want 400); a seed below the readiness floor is 422 not-ready and plans no workflow (a thin seed answered %d %s, want 422 not-ready, a below-the-floor seed planned a workflow anyway); a same-named product the seed did not make, or two of one name, is 409 (a same-named non-pristine product: answered %d %s, want 409 product-exists-unseeded, two products of one name: answered %d, want 409); and during replay the seed is 409 (a seed during replay answered %d %s, want 409 replay). TC-407, positive (TestTheExampleSeedIsWellFormed): the tracked example holds 3 modules, 8 features, 4 epics and 12 cases (example seed has %d modules, %d features, %d epics, %d cases; want 3, 8, 4, 12), 5 implemented and 9 planned (%d implemented and %d planned; want 5 and 9), exactly one epic with no module (%d epics have no module, want exactly 1 (the report pages)), and any knowledge source pinned to a 40-hex commit (knowledge source %s is pinned to %q, want a 40-hex commit); every case validates and resolves to a defined epic and module, no id is duplicated, an implemented case is planned with a valid spec, and no scenario carries unsafe text (%s: %s, duplicate case id %s, %s names epic %s, which the seed does not define, %s is implemented but is %s with spec %q, %s: unsafe scenario text); and the egress detector finds nothing in either file (%s trips the secret detector %s). A private seed is not read by a tracked test: the server checks it when it is seeded. TC-411, positive and negative (deploy/seed/seed.sh --dir <seed dir>; for a deployed instance, run on its VM with --base at the tunnel listener, not the public edge; the default base is the local stack, http://127.0.0.1:8083/api/v1): it prints seed: %d modules, %d epics, %d cases (%d automated), then ok product %s %s: ..., ok catalog: %d created, %d updated, %d unchanged and ends ok summary matches: %d cases, %d automated, %d epics (at least the seed's %d, %d, %d), coverage %d%%. Its failures are FAIL --dir is required: the seed directory holding product.json and cases.json, FAIL no product.json and cases.json in %s, FAIL python3 is required, FAIL cannot read the token file %s, FAIL the token file does not hold a gaos_ token (an empty file disables the admin token), FAIL cannot reach %s: %s, FAIL the product seed answered %d: %s %s, FAIL catalog slice at %d answered %d: %s %s, FAIL catalog slice at %d rejected %d case(s), first %s, FAIL the summary answered %d and FAIL summary is below the seed: cases/automated/epics = %s, want at least %s. The totals are checked at least the seed's, not equal to them: once the QA tools have created cases, added epics and reported scripts through the API the totals only grow, and a healthy re-run must not print FAIL. With --dry-run it only prints the seed's totals and ok dry run: nothing sent.

dashboard — the board scrolls (TC-412)

TC-412, negative (TestTheBoardHostHasABoundedHeight): the vendored board is height:100%; overflow:hidden with .sfb-body as its one scroller and overscroll-behavior:contain on it. In the back office's normal-flow block the host had no height, so the board grew to its content (13,000px for forty story lanes), .sfb-body could never scroll vertically, its horizontal scrollbar sat off screen, and contain stopped the wheel reaching the page: scrolling down over the board did nothing and nothing errored. The test reads static/app.css and fails with .sisflow-board-host has no bounded height (height:calc(100vh - Npx) with a min-height): the board grows to its content and .sfb-body can never scroll vertically when the host rule is gone, and with .sfb-body still has overscroll-behavior:contain: a wheel over the board never reaches the page when the second rule is. The behaviour itself was verified in a real browser (Chromium via Playwright: wheel down, wheel sideways and back up over the board at 1440×900, 1280×720 and 390×800), which this register does not run. Since v0.57.0 (D-095) the server board is held to the same: .board-ssr has no bounded height, or .board-col-cards does not scroll inside it: a long column would push the page, and the board's column width is not the one variable --board-col on both boards.

dashboard — the QA tool's inbox (TC-413 to TC-422)

D-078, docs/designs/qa-inbox-api.md. The QA tool asks the operator a question through the bearer API, the operator answers it in "Needs you", and the decision goes back by webhook. All ten are in dashboard/external_inbox_test.go; the third case of the conformance suite (TheQaToolsInboxItemsRoundTrip) is covered by TC-124 and TC-125.

TC-413, positive (TestAnInboxAskNeedsTheQAScopeAndTheProduct): each row of the table answers its status; a miss prints %s: answered %d, want %d (%s), for example out-of-scope product: answered 201, want 404. A refused call that wrote something prints %d items exist after the table; want 2, the refused calls wrote nothing; a second concurrent write prints a second concurrent ask answered %d, want 429.

TC-414, positive (TestAnInboxAskIsIdempotentOnTheExternalID): the first ask is 201 and the second 200; a duplicate prints the store holds %d item(s) %+v; want the one original, never a duplicate and a second event prints %d ExternalQuestionAsked events; want 1. The cap prints %d more open items were accepted; want a refusal at %d.

TC-415, negative (TestAnInboxAskIsValidatedAndSanitised): each bad body prints %s: answered %d %q, want 400 %q; a body that was refused but stored prints %d item(s) exist after only refused asks; a refusal writes nothing; the oversized body prints an oversized body answered %d, want 413; cleaning prints stored question %q context %q title %q; want them cleaned of control and bidi characters.

TC-416, positive (TestTheQAToolsQuestionIsAnsweredFromTheInbox): prints the chip after a QA tool question = %q; want it to count 1, the inbox lacks %q when the source tag or the sheet link is missing, refused answers changed the item to %q and GET after the answer = %d %+v; want answered, choice 3, Needs changes, the note and a time.

TC-417, positive (TestTheInboxStatusReadsOpenAnsweredAndExpired): prints GET %s = %d %+v; want %s, choice %d %q and an open item's JSON %s carries choice or answeredAt.

TC-418, negative (TestAnUnansweredInboxItemExpires): prints a second sweep wrote %d event(s); an item expires once, an external expiry carried a floor; it must not touch the desks (BR-20) and an expired item accepted an answer.

TC-419, positive (TestAnInboxItemSurvivesARestart): the stream is round-tripped through the same JSON the ArcadeDB store writes; prints %s reads %+v before the restart and %+v after and a delivered answer reads %q after the restart; want delivered, so it is not sent twice.

TC-420, positive (TestTheAnswerWebhookDeliversTheDecision): a fake QA tool records each call; prints call %d carried Authorization %q; want the outbound token, call %d was %q; want POST /api/v1/gaos/inbox-answer, a second pass made %d call(s); a delivered answer is sent once and an unconfigured worker made %d call(s) and wrote %d event(s); want none.

TC-421, negative (TestTheAnswerWebhookRetriesWithBackoffThenGivesUp): a fake clock walks the schedule; prints %s: the pass made %d call(s) (%d in all); want %d (%d in all) and the delivery events are %v; want four retries then gave-up.

TC-422, negative (TestAnAnswerNeverWaitsOnTheWebhook): prints the answer took %v and answered %d while the QA tool hangs; it must return at once and a refused connection left the delivery %+v; want one failed attempt, still pending.

dashboard — back-office sign-in (TC-423 to TC-434)

The sign-in is real (D-079, BR-55): a signed, expiring session cookie issued after a PBKDF2 password check, and a default-deny gate at the mux.

TC-423, negative (TestAForgedBackOfficeCookieIsSignedOut): prints GET %s with the forged cookie gaos_bo=1 answered %d, want 401 and the back-office sheet opened for the forged cookie gaos_bo=1; want the sign-in sheet.

TC-424, positive and negative (TestASignedInCookieOpensTheBackOffice): prints a correct login answered %d, want 200, the session cookie is %+v, want one that is HttpOnly with a Max-Age, GET /products with the issued cookie answered %d, want 200, wrong password %d, unknown email %d, want 422 and no cookie for both and a wrong password and an unknown email must both answer: That email and password do not match.

TC-425, negative (TestACookieThatWasTamperedWithIsRefused): prints a freshly signed cookie did not verify and a cookie with %s verified; want it refused, once for each of: edited email, edited expiry, edited fp, truncated MAC, no MAC, oversized, empty, wrong deployment, expired.

TC-426, negative (TestAPasswordChangeEndsOldSessions): prints a session survived a password change in the users file; want it refused and a session survived the removal of its account; want it refused.

TC-427, negative (TestWithNoAccountsNobodySignsIn): prints login with no accounts answered %d, want 422 with %q and no cookie, gaos_bo=1 with no accounts answered %d, want 401 and a once-valid cookie with no accounts answered %d, want 401.

TC-428, negative (TestFiveFailuresLockTheAccount): prints failure %d answered %d, want 422 with %q, the right password after five failures answered %d, want 422 "Too many attempts" and no cookie, a locked login sent no Retry-After, another account answered %d while this one was locked, want 200, the unknown-email table holds %d keys, want at most %d, a flood of unknown emails ended the lock on a real account and after the lockout the right password answered %d, want 200.

TC-429, negative (TestTheUsersFileParser): prints accepted accounts = %v, want [first@example.test second@example.test], two different hashes share one fingerprint, %d lines were reported as skipped, want 8: %v and a skipped-line report quotes line content: %q.

TC-430, positive and negative (TestHashPasswordRoundTrip): prints PBKDF2 vector = %x, %v; want 55ac046e…20dacbc, hash-password output %q did not round-trip (%v), a new hash is %q, want the 600000-iteration form and hash-password accepted an empty password.

TC-431, negative (TestEveryRouteIsClassified): prints routes() recorded %d patterns and %d bearer patterns; the table is not being filled, the public list names %q, which is not a registered pattern, %q is both bearer and back office/public; the classes must not overlap, GET pattern %q is not on the read-only list; a GET must not change state, %s %s signed out answered %d, want 401, %s %s signed out (not htmx) answered %d %q, want 401 JSON, an unknown path answered %d, want 404, GET /static answered 200 signed out, want a redirect or 401 and GET /replay answered %d, want 405. Since v0.56.0 (D-094) the JSON assertion covers every pattern outside the page routes, and the test also prints the page list names %q, which is not a registered pattern; %q is a page route and also public or bearer; a page route needs the session; %s %s sends Referrer-Policy %q, want same-origin: an address names a product; %s %s signed out (not htmx) answered %d, Cache-Control %q, and a body that %s the signed-out home page; want 401, no-store, the same page; signed-out requests reached a handler that read the product records %d time(s); the gate must answer before any handler runs.

TC-432, positive and negative (TestACrossOriginPostIsRefused): prints %s %s with a %s answered %d, want 403, a login with %s answered %d, want 200 and a /v1 route was refused by the origin check; bearer routes are exempt.

TC-433, positive and negative (TestTheSessionKeyFile): prints a 32-byte key file with whitespace around it loaded as %q, want the trimmed key, a good key file logged %v, a 31-byte key file was accepted; want a random per-process key and a log line, an unset or unreadable key file did not fall back to two different random keys and fallbacks logged %d lines, want 3.

TC-434, negative (TestTheEventStreamClosesAtSessionExpiry): prints the stream with a session two seconds from expiry answered %v %v; want 200 and the stream was still open four seconds after its session expired; want it closed at expiry.

TC-435 and TC-436, check-stacks.sh: for each deploy/stacks/*.bo-* prints ok <file> is untracked or FAIL <file> is tracked by git, and FAIL <file> is not a regular file (a missing bind-mount source is created by Docker as a root-owned directory); and ok prod passes the deployment label that binds a session to it or the same text as FAIL.

TC-437, check-workspace.sh: the secret scan's pattern now includes pbkdf2-sha256$<n>$; a report that quotes a hash line fails the existing no secret value in the review report store check.

TC-438, rebuild-restart.sh: a prod tag deploy whose compose mounts prod.bo-users prints FAIL deploy/stacks/prod.bo-users is missing (or is not a regular file) (or the same for prod.bo-session-key) and exits 1; with both present it prints ok the back office's accounts and session-key files exist.

TC-439, negative (TestAWebhookWhoseRecordFailsIsNotResentEveryTick; added with v0.38.1, registered here): prints the first pass made %d calls; want 1, at +%d s the pass re-sent (%d calls); the failed record must still back off and after the backoff the pass made %d calls; want 1.

dashboard — a new workflow starts, and its tasks are briefed as themselves (TC-440…TC-442)

v0.39.1, in dashboard/workflow_dispatch_test.go. CreateWorkflow seats the planner on the desk it activates; the scheduler's shell used to count that seat as busy against the desk's own planner task, so no new workflow could start without cancelling its desk. The seat now frees the agent for that desk only (AgentSlot.Desk); one live turn per product is still the graph lease's (BR-38). TC-440, positive (TestAFreshWorkflowsFirstPlannerTaskIsSchedulable): with every other desk idle, the plan's first task is ready on a-9; else the first task of a fresh workflow is blocked (%s: %s); the desk's own seated planner must be free for it or %s was dispatched to %s, want the planner seated at its own desk, a-9. TC-441, negative (TestASeatedAgentIsStillBusyForAnotherDesk): a planner seated at p-1 is not handed p-2's task — a planner seated at p-1 was dispatched to p-2's task: %+v, p-2's planner task reported %+v, want capability: every planner agent is busy — and an agent busy at no named desk is busy everywhere (an agent busy at no named desk was dispatched: %+v). TC-442, positive (TestTheTaskPacketBriefsTheDispatchedTask): the packet of a story's implementation task carries that task in .gaos/packet/task.md — title, Kind:, Role:, the story and every acceptance criterion — and names the task's role; else task.md for %s carries the desk's line %q; it must brief the dispatched task, task.md for %s does not say %q, the packet for %s names role %q, want the task's own, backend or two freezes of one attempt produced two digests; the brief must be a function of the record.

dashboard — the manual runner (TC-443 to TC-452)

GAOS_RUNNER=manual (D-080, BR-56): the scheduler moves work to READY and no further, and a turn is sent only when an operator moves a ready card to working. dashboard/runner_manual_test.go; the conformance case AManualRunnerReadiesAndNeverDispatches runs the same pass against both stores under TC-124/TC-125.

TC-443, negative (TestRunnerModeReadsGAOS_RUNNER): prints GAOS_RUNNER=%q reads as %q; want %q (anything unrecognised must be off) or GAOS_RUNNER=%q: runnerMaySpend() = %v; want %v.

TC-444, negative (TestAManualRunnerReadiesWorkAndNeverDispatchesIt): prints the first manual pass wrote %d schedule move(s); want exactly 1, one per product per pass, a pass with every eligible card already ready wrote %d event(s); want 0, %s is %s under a manual runner; the scheduler must never dispatch, %d TaskRun(s) exist under a manual runner; nothing was dispatched, so nothing ran, the gateway received %d turn(s) under a manual runner; want 0 or %s is %s; the scheduler judged it ready, so a manual pass must leave it READY.

TC-445, negative (TestTheManualReadyStepMovesOnlyAPendingTask): prints a stale decision moved a dispatched task to %s and wrote %d event(s); want it left DISPATCHED and nothing written; the positive half prints a pending task in the decision is %s; want READY.

TC-446, positive (TestAManualRunnerDispatchesTheCardTheOperatorMoves): prints ready -> working under a manual runner gave %v %v; want a dispatch or the gateway received %d turn(s) for one board dispatch; want 1.

TC-447, negative (TestTheBoardDispatchRefusesWithoutPermission, five subtests): a refusal that is not the expected one prints the board dispatch returned %v and wrote %d event(s); want a refusal saying %q and nothing written, where the expected reasons are the runner is off (GAOS_RUNNER); dispatching spends money and needs it on or manual, no model adapter is configured (GAOS_MODEL_MODE); nothing can be dispatched, is below the planning floor and, for a test planner whose bundle context the cache does not hold (a restart emptied it), 's context is not built yet — a started one prints a test planner started on an empty packet; a refusal that moved the card prints a refused dispatch left the card %s; want READY; the desk route prints the desk route sent %d turn(s) under a manual runner; only the board dispatch may spend.

TC-448, negative (TestTwoBoardDispatchesInOneProductStartOneTurn): prints %d of two concurrent dispatches in one product succeeded; want exactly 1 (BR-38), the losing dispatch returned %v; want the BR-38 refusal or the gateway received %d turn(s) from two concurrent dispatches in one product; want 1.

TC-449, positive (TestAnAnsweredTaskWaitsInReadyUnderAManualRunner): prints an answered task is %s after a manual pass; want READY, waiting for the operator, a manual pass sent the answered turn; only the operator's board move may, the answer route received %+v; want one answer under the next attempt's request id or the answered turn was also posted to /v1/chat; the board route must resume through the answer route.

TC-450, positive (TestHealthzSaysWhichRunnerModeIsOn): prints GAOS_RUNNER=%q: healthz says runner %v; want %q.

TC-451, check-stacks.sh: prints ok prod passes the runner switch from the deploy shell, empty (off) by default, or the same line after FAIL when the pass-through is missing.

TC-452, check-stacks.sh: prints ok prod sets GAOS_RUNNER in exactly one place, the pass-through; with a second GAOS_RUNNER: line it prints FAIL prod sets GAOS_RUNNER in more than one place; the runner must come only from the deploy shell.

dashboard — an agent is busy when it carries a live turn (TC-453, TC-454)

v0.40.1, in dashboard/workflow_dispatch_test.go. The scheduler's shell used to read an agent as busy from the desk seats, and an agent seated at two live desks as busy everywhere. The seeded floor seats a-1, the only architect, at two desks that stay active with nothing running them, and CreateWorkflow seats a-9, the only planner, on every desk it activates — so on prod under GAOS_RUNNER=manual every architect and planner task stayed in backlog with nothing anywhere to free it. Busy is now read from the graph: each DISPATCHED or RUNNING task holds one agent of its role (liveAgentSlots). TC-440 idles every other desk first, which is why it did not see this. TC-453, positive (TestASeatWithNoLiveTurnDoesNotHoldTheAgent): prints agent %s (%s) is busy with no task DISPATCHED or RUNNING anywhere; a seat on a desk is not a turn, %s is blocked (%s: %s) on a floor with no live turn; nothing would ever free it, %s was not readied with the planner a-9; ready = %+v, %s reported %+v in the same pass, want capability: every planner agent is busy or %s was not readied once %s was parked in READY: %+v. TC-454, negative (TestALiveTurnHoldsItsAgent): prints a-9 is %+v while %s is RUNNING on %s, want busy at %s, %s reported %+v while the only planner runs %s, want capability: every planner agent is busy or the planner was handed %s while it runs %s.

dashboard — a slow graph cannot hold the store lock (TC-455–TC-457)

v0.40.2, in dashboard/store_arcade_writes_test.go, against a fake ArcadeDB. On prod a board move hung for minutes: the scheduler's background write held the ArcadeStore lock while it rewrote every desk, task, run and context slice in the floor — with an existence probe per citation edge — against a slow database, and every handler and the question sweep queued behind it. A persist now writes only the records whose content moved since the graph last committed them; a background write is bounded by backgroundPersistBudget; and a manual pass publishes its readies as one write. TC-455, negative (TestAPersistWritesOnlyTheRecordsThatChanged): prints a persist with nothing changed sent %d upsert(s); want 0 -- every write rewrote the whole floor, which is what held the store lock for minutes on a slow database, a persist with one event inserted %d event(s); want 1, one changed task produced %d Task upsert(s); want exactly 1, a persist whose commit failed reported success or after a failed commit the next persist upserted %d Task(s); want 1 -- a write that never landed was forgotten as if it had. TC-456, negative (TestABackgroundWriteReleasesTheStoreLockWhenTheGraphStalls): prints a background write against a stalled database reported success, the background write held the store lock for %s against a stalled database; want it bounded by backgroundPersistBudget, or a board move waits behind it or the store lock is still held after the background write gave up. TC-457, positive (TestAManualPassPublishesItsReadiesAsOneWrite): prints a pass that readied two cards published %d write(s); want 1 carrying both moves -- one transaction per card multiplies the time the store lock is held or, for the negative half, a pass that moved nothing published %d write(s); want 0.

dashboard — a design with code samples reaches its reviewer whole (TC-458–TC-460)

v0.40.3, in dashboard/fence_test.go, replaying a real architect reply kept in dashboard/testdata/design-reply-nested-fences.txt. Its gaos-design block carried ```ts code samples, and the scanner closed the block at the first bare fence, so the design kept 3,785 of 10,480 bytes. The same reply's handoff wrote basis: unmeasured, which the parser refuses and the contract never stated. TC-458, negative (TestADesignWithCodeSamplesReachesItsReviewerWhole): prints the real design reply does not parse: %v, the design parsed to task %q run %q role %q, the design document (%d bytes) lacks %q; a code sample's closing fence closed the design, and the reviewer would be handed a truncated document, the design document ran on into the handoff block after it or the reply's handoff with basis unmeasured gave %v; the parser must keep refusing it. TC-459, positive and negative (TestAFencedBlockClosesOnlyAtItsOwnDepth): a table of replies — a plain block, an info-string fence, an indented fence in a list, a four-backtick block holding a bare triple, a longer nested fence, a tilde fence, an unclosed block and two blocks in order — prints %s: fenceBlocks gave %q, want %q; a design quoting a gaos-handoff block prints a design quoting a gaos-handoff block gave %v; it must still be refused as reserved. TC-460, negative (TestTheContractStatesTheAllowedUsageBasis): prints the contract never says %q; a model that writes basis: unmeasured fails an otherwise complete turn on a rule nobody stated or the contract does not name the basis %q the parser accepts.

dashboard — a review note's length limit is stated, and its refusal says why (TC-461–TC-463)

v0.40.4, in dashboard/review_note_test.go, replaying a real reviewer reply kept in dashboard/testdata/review-reply-long-note.txt. The review was correct — no blockers, one major, two nits — and was refused because a note ran to 473 characters: the parser caps a note at 300, the contract only said “one line”, and the refusal said only that a note is “one bounded line”. Both now read the limit from one constant, maxFindingNote; the parser is not loosened. TC-461, negative (TestTheReviewContractStatesTheNoteLimit): prints the review contract never says %q; a reviewer whose note runs long fails an otherwise complete review on a rule nobody stated or the review contract does not say what a longer note costs. TC-462, positive and negative (TestAFindingNoteIsHeldToTheStatedLimit): a note of exactly 300 two-byte characters passes, or the test prints a note of exactly %d characters was refused: %v; a note of 301 is refused, or it prints a note of %d characters was accepted; the limit is %d, and its refusal names both numbers, or it prints the refusal %q does not say %q; a retry must be told what to shorten, and by how much; a note carrying a control character is refused as one, or it prints a note carrying a control character gave %v; it must be refused as one. TC-463, negative (TestARealReviewWithALongNoteSaysWhyItWasRefused): prints the real reply with a note past %d characters was accepted; the parser must keep refusing it, the real reply was refused with %q; it must say %q, the review is %q (%q); a refused review is BLOCKED with %q or the run's line on the timeline is %q; it must carry %q, or the operator retries a review without knowing what the reviewer must change.

dashboard — a task is briefed with its own workflow's goal, across a restart (TC-464–TC-465)

v0.40.5, in dashboard/workflow_goal_test.go. Found on the sample product: a second workflow, created to automate two VSYS cases, had every packet's ## Objective carry the seeded workflow's goal, so the planner planned the whole product. The objective was read from the desk, which is one per product and holds the latest workflow's goal; and ArcadeStore.load seated one desk per Workflow vertex, so after a restart the product had two and the older one was found first. The objective now comes from the dispatched task's own workflow, and load seats one desk per product, on its latest workflow. TC-464, negative (TestEachTaskIsBriefedWithItsOwnWorkflowsGoal): a task of the first workflow and a task of the second each carry their own goal, or the test prints the packet for %s says the objective is %q, want its own workflow's goal %q; the desk holds the LATEST workflow's goal, not this task's; a second freeze of the same task must give the same digest, or it prints two freezes of %s produced two digests; the objective must be a function of the record. TC-465, negative (TestASecondWorkflowKeepsItsGoalAcrossARestart, ArcadeDB; skipped without GAOS_ARCADE_TEST_URL): after the reopen the product has one desk, or it prints p-1 has %d desks after the reopen, want 1; load seated one desk per Workflow vertex, and deskIdxByID then finds the oldest workflow's desk first; that desk is on the latest workflow, or it prints p-1 is seated on %s after the reopen, want the latest workflow %s; and each task still carries its own goal, or it prints after the reopen the packet for %s says the objective is %q, want its own workflow's goal %q.

dashboard — card timing: segments, the partition, attempts, the routes (TC-466–TC-477)

v0.41.0, in dashboard/timing_test.go (D-081, docs/designs/card-timing.md). A card's timing is a pure function of its TaskPlanned and TaskMoved events and its runs; every event now carries the app's wall-clock time, and older rows read the database's ts. TC-466, positive (TestCardTimingFollowsEveryMove): ten segments, or it prints the history gave %d segments %+v; want one per status the card stayed in, %d; each exact, or segment %d is %+v; want %s from %q by %q, %d→%d, %ds; and finished with its lead, or the card reads known=%v complete=%v finished=%v created=%d finished=%d lead=%d; want a finished card, lead 8000 s from 1000 to 9000. TC-467, positive (TestCardTimingBucketsPartitionTheLeadTime): under each runner mode, under %s the buckets sum to %d and the lead is %d; every second of the lead belongs to exactly one bucket, under %s AI is %d, idle %d, backlog %d; want AI = DISPATCHED+RUNNING = 2215, idle = lead - AI, backlog 600 or under %s waiting-on-operator is %d and queued %d; want %d and %d -- READY waits on the operator unless the runner is on. TC-468, positive (TestCardTimingAnOpenCardRunsToNow): an open card's last segment is %+v and its lead %d; want it open, measured to now (1000 s), and the lead now - created = 3410 or the chip text is %q; want relSpan of the lead, 56m. TC-469, negative (TestCardTimingWithoutTimesIsUnknownAndAClockStepCannotBreakThePartition): an event with no time gave known=%v lead=%d ai=%d text=%q reason=%q; want an unknown timing with every number 0 and its segments still listed, a clock that stepped back gave lead %d, bucket sum %d, idle %d; want the partition exact (259) and idle never negative or a clock step produced a negative segment %+v. TC-470, negative (TestCardTimingIgnoresOtherTasksAndProducts): another task's move, another product's events and a non-move event changed the timing:\n%s\nvs\n%s. TC-471, negative (TestCardTimingThatDisagreesWithTheCardIsIncomplete): a history ending in READY for a DONE card gave complete=%v status=%s reason=%q text=%q; want incomplete, the card's status, and a reason naming both or a history with no plan gave complete=%v reason=%q first=%+v; want incomplete, opened on the first move's FROM for no time. TC-472, positive and negative (TestCardTimingAttemptsCarryOnlyTheAllowedFields): the attempts are %+v; want this task's two, in order, 1200 s ended and 185 s running to now, the totals are attempts=%d tokens=%d/%d measured=%v estimated=%v; want 2, 17/8, and the cost kept per basis (BR-31) or the timing JSON carries %q: %s -- an attempt goes out through the AttemptTiming allowlist only. TC-473, positive (TestWorkflowTimingTotals): the workflow reads %+v; want started 500, finished 9000, lead 8500, AI the sum of its cards', idle lead - AI, a workflow with an open card reads %+v; want it unfinished and its lead running to now or a workflow with an unknown card reads %+v; want it unknown, with no numbers. TC-474, negative (TestTheTimingRoutesAnswer404ForAnUnknownCard): the JSON route for an unknown card answered %d %s; want 404 {"error":"no such card"} or the sheet for an unknown card answered %d; want 404 and the toast "That record is gone.". TC-475, positive and negative (TestTheBoardAndTheSheetCarryTheTiming): card %s carries timing %s; want a known, complete summary with a created time and a lead text, the card's timing route answered %d %s; want its segments from the plan, its attempt and its workflow, the timing sheet answered %d without the modal, one row per segment (%d), the idle total or the attempt, the server board's cards carry no timing chip or the %s carries a run's session, request, log or workspace id; only the AttemptTiming allowlist may leave the store. The sheet's keyboard is checked by hand, as the answer sheet's is: open a timing sheet from a chip, press Esc, and focus is back on the chip; then open and send an answer to a question, which must work as before. TC-476, positive and negative (TestTheDatabaseZoneOffsetRoundsToAQuarterHour): tzOffset(%d, %d) = %d; want %d -- a zone, never a seconds skew. TC-477, positive (TestEventTimeSurvivesTheGraphRoundTrip, ArcadeDB; skipped without GAOS_ARCADE_TEST_URL): event %d had At %d and reads back %d; the wall clock must survive a restart or a row with no "at" read back At %d at %d; want its ts, corrected to the app's clock.

dashboard — conversations: safe markdown, archive, prune (TC-478–TC-489)

v0.42.0, in dashboard/markdown_test.go, dashboard/conversation_test.go and dashboard/aimanager_admin_test.go (D-082, docs/designs/conversations.md). A card's conversation is every attempt's prompt and reply, rendered as escaped markdown, with its question and answer; a finished card's conversation can be archived, restored and pruned. TC-478, positive (TestMarkdownRendersNestedListsCodeAndInlineCode): the fixed example, or the fixed example rendered\n%s\nwant\n%s; a list starting at 3 rendered %s; want <ol start=\"3\">; a bullet then a number at the same depth rendered %s; want two lists. TC-479, negative (TestMarkdownEscapesEverythingTheModelWrote): %q rendered %s; it must not contain %q -- model text is text, an unclosed fence rendered %s; want it closed at the end, escaped, 500 KiB of %q took %v; the renderer must be linear or a 600 KiB body was parsed; want one escaped <pre>. TC-480, positive (TestTheConversationListsEveryAttemptWithItsQuestionAndAnswer): the conversation is %+v (%v); want two attempts in order, attempt 1 is %+v; want its prompt, its reply, the question and the operator's answer, attempt 2 carries a question it never asked: %+v or an unknown card answered %v; want ErrNotFound. TC-481, positive (TestArchiveHidesTheChipAndRestoreBringsItBack): archive wrote %+v; want ConversationArchived to archived by the signed-in account, after archive the board JSON says %+v; want archived: true, the server board still shows %s's conversation chip after archive, the Archive page does not list %s for prune, the archived sheet must show the attempts read-only with Restore and no Archive or after restore the board JSON says %+v; want active. TC-482, negative (TestArchiveIsRefusedForAnUnfinishedCardOrTwice): archiving a %s card answered %v; want the refusal naming its status, a canceled card with a RUNNING attempt was archived; a turn could still write into it, archiving twice answered %v; want a refusal, archiving a card with no attempt answered %v; want a refusal or the replay handle restored a conversation. TC-483, positive (TestPruneEmptiesDocumentsAndSessionsAndLeavesACertificate): %s still holds its body after the prune, prune touched a handoff or a run record; both survive, the gateway was asked %v; want the one session once, the bodies certificate is %+v; want five documents (2 prompts, 2 replies, 1 question) and the Kept list, %s is certified as %s/%d; want the original text's digest and length or a certificate or the toast carries a session id. TC-484, negative (TestPruneSkipsWhatChangedAndKeepsWhatIsShared): prune answered %q, %v; want one pruned, one skipped, prune emptied a card that was restored, or one that was not listed, a busy session's id reached the result, a shared session got calls %v and certificate %+v; want it kept, counted shared or a failed commit answered %v, wrote %d events and left the body %q; want nothing changed. TC-485, negative (TestPruneWithoutTheTypedConfirmationDeletesNothing): prune with %v answered %d; want 422 and %q or an unconfirmed prune wrote events or emptied a body. TC-486, negative (TestTheConversationRoutesAreBackOfficeAndSameOrigin): POST %s with %s: %s answered %d; want 403, an unknown card's sheet answered %d; want 404 and the toast, the sheet answered Cache-Control %q and CSP %q; want no-store and the back-office policy or the sheet emitted the model's HTML as HTML. TC-487, positive and negative (TestTheGatewayDeletesASessionAndSaysOnlyWhatFailed): the gateway saw %v; want %v -- the admin route, the vendor's worker, the admin bearer, a %d answered %v; want %v, with no session id in it or prune sent %v and counted %+v; want only the well-formed claude id sent, two failed. TC-488, positive (TestAPrunedConversationStaysPrunedAfterARestart, ArcadeDB; skipped without GAOS_ARCADE_TEST_URL): after a reopen the conversation is %+v (%v); want the reply read from the database, after the prune and a reopen the database holds %v (%v); want both bodies empty, the certificate for the reply read from the database is %+v; want the original text's digest or the actor column is %+v (%v); want the account. TC-489, negative (TestMarkdownOutputIsWellFormedForAnyInput): input %q rendered %s: %s. By hand, as for the answer and timing sheets: open a conversation from a card's chip, press Esc, and focus is back on the chip; then answer a question, which must work as before.

dashboard — where an answer came from (TC-490–TC-499)

v0.43.0, in dashboard/answer_source_test.go, dashboard/needs_test.go, dashboard/conversation_test.go and deploy/check-stacks.sh (D-083, BR-57, docs/designs/answer-source.md). A machine client answers the inbox items it asked through POST /v1/products/{id}/inbox/{externalId}/answer, and every answer — back office or machine — records its source. The store conformance case for the inbox (under TC-124 and TC-125) also round-trips the asker and the source on both stores. TC-490, positive (TestAPIInboxAnswerFromTheQATool): the QA tool's answer answered %d %s; want 200, the answer body is %+v; want answered, choice 1, Approve, source %+v, the answer event is %+v; want answeredBy, actor qa-tools/ardi and the phrase in its text, actor.display was stored or returned; it is accepted and dropped, ExternalPending = %+v; the QA tool's own answer is still owed to its webhook, GET reads source %+v; want %+v or the server log reads %q; want the answer line with the forwarded chain. TC-491, positive (TestAPIInboxAnswerFirstWins): an identical retry answered %d %s and wrote %d event(s); want 200 with the first answer and nothing written, a different second answer answered %d %s; want 409 already_answered carrying the first, the QA tool after the operator answered %d %s; want 409 naming the operator, never the account, GET of an operator's answer reads source %+v; want actor operator or the operator after the QA tool answered %d %s; want 409 naming the QA tool's answer. TC-492, negative (TestAPIInboxAnswerRefusals): a table of eighteen refusals, each %s: answered %d %s; want %d %s, the 410 bodies %s: the 410 body says status %q; want expired, then an unoffered option answered %d %s; want 422, an answer while the QA tool's write is in flight answered %d; want 429 and refused answers changed rf-1 to %q. TC-493, negative (TestAPIClientRegistry): the loaded clients are %v; want qa-tools and the three good lines, every bad line skipped, %d skips were logged; want one per bad line, 10, a registry client on %s %s answered %d; want 403, a registry client asking in a product not in its list answered %d; want 404, a client with products - asking answered %d; want 404, it reaches nothing, the registry client's item reads %+v; want it tagged hikaru-app, never QA tool, the inbox does not tag the registry client's item with its name, another client asking a taken id answered %d %s; want 409 id-taken, another client reading the item answered %d; want 404, another client answering the item answered %d; want 404, an answer with its own slot held answered %d; want 429, the registry client's answer (QA slot held) answered %d %s; want 200 with source %+v, ExternalPending holds %+v; a registry client's decision must never go to the QA tool's webhook, another client's full inbox refused this client's ask: %d %s, the 201st open item of one client was accepted, equal admin and QA tokens plus a registry line answered %d; want 503 or a registry client alone answered %d; want the API enabled for it. TC-494, positive (TestQAOriginResolution): qaOrigin(%q, %q) = %q; want %q or %d warnings were logged; want 1, for the invalid GAOS_QA_ORIGIN. TC-495, positive (TestBackOfficeAnswersRecordTheirSource): %s reads %+v %q actor %q; want source %+v and the text ending %q, the next packet's answer part carries the operator's email; the source never reaches a model or %d answer events; want 2. TC-496, positive (TestAnswerSourcePhrase): Phrase(%+v) = %q; want %q, answeredSentence(%+v) = %q; want %q, recentSentence(%+v) = %q; want %q, sheetSentence(%+v) = %q; want %q, textSuffix(nil) = %q; an answer without a source gains no suffix or apiSourceOf hands a machine %q; want operator. TC-497, positive (TestInboxShowsRecentAnswers): the inbox's Answered recently lacks %q, an item's title reached the page unescaped, the inbox filtered to another product still lists this product's answers, Answered recently lists %d rows; want at most %d or RecentAnswers is not newest first at %d. TC-498, positive (TestConversationSheetSaysWhoAnswered): the sheet of a recorded answer does not say in GAOS, the label and the account or the sheet of an answer given before D-083 does not say source not recorded. TC-499, positive and negative (deploy/check-stacks.sh): prints ok prod passes the QA tool's origin from the deploy shell when compose.prod.yaml carries GAOS_QA_ORIGIN: "${GAOS_QA_ORIGIN:-}", and FAIL prod passes the QA tool's origin from the deploy shell when it does not.

dashboard — the design gate's send-back: a blocked design goes back to its author (TC-500–TC-509)

v0.44.0, in dashboard/design_iterate_test.go, taskstate_test.go, timing_test.go and board_test.go (D-084, docs/designs/design-iterate.md). A review whose findings block its design is resolved by sending the design back: the design re-opens with its findings and the operator's triage, the review waits on it, and a fresh review judges the revision. At most three times. TC-500, positive (TestAnOperatorSendsABlockedDesignBackToItsAuthor): reviewVerdictOf read %q from a rendered review; want %q, reviewVerdictOf read %q from a body whose only verdict is inside a note; want none, a cleared review left the implementation %s; the anchored verdict must still release it, the design is %s after a send-back; it must be READY, the review is %s (%q) after a send-back; it must be PENDING with no reason, the implementation is %s (%s) after a send-back; it must be BLOCKED (design-unreviewed), the design's send-back carries the triage %+v; want %+v (sorted, trimmed, empty dropped) or a move that is not a send-back carries an actor in its caption: %q. TC-501, positive and negative (TestTheRevisionCarriesItsDesignTheFindingsAndTheTriage): a design never sent back carries findings.md; it must carry neither the findings nor the triage, the revision's design.md is %+v (present %v); it must be the design that was sent back, findings.md is\n%s\nwant the review artifact and then\n%s, the revision's part %s carries the operator's account; an email never enters a prompt or the revision opens session %q (%q); it must resume the designer's own session. TC-502, positive and negative (TestTheReviewReturnsToReadyWhenTheRevisionIsDelivered): the design task holds %d design artifacts after one revision; want 2, the revision's RunExited caption is %q; it must record how much of the design it changed, the review is %s after the revision was delivered; the scheduler must promote it to READY, the implementation is %s after the re-review cleared; it must be released or a re-review with no new design is %s (%s); it must be BLOCKED (design-missing). TC-503, positive and negative (TestTheReReviewOpensAFreshSessionAndSeesOnlyTheNewDesign): the re-review opens session %q (%q); it must open a fresh one with reason %q, after a requeue with no run the re-review opens %q (%q); it must still be fresh, the re-review's part %s carries the triage or the previous findings; a fresh reviewer sees neither, the re-review's record is\n%s\nit must name the revision's pin and the re-review run's pin or a retry of the re-review opens %q (%q); it must resume the re-review's own session. TC-504, negative (TestOnlyADesignLeavesDoneAndOnlyBySendBack): moveTask let a %q task go from DONE to READY; only a design is ever sent back, moveTaskLocked moved a DONE design to READY under rule %q; only send-back may, %s -> %s is permitted; the send-back row is the only exit from a finished task or moveTaskLocked sent a DONE implementation task back; only a design leaves DONE. TC-505, negative (TestSendingADesignBackIsRefusedUnlessItsReviewBlockedIt): %s: SendBackDesign answered %v; want a refusal containing %q, %s: a refused send-back wrote %d event(s) or another product's card answered %v; want ErrNotFound. TC-506, negative (TestADesignIsSentBackAtMostThreeTimes): the fourth send-back answered %v; want %q, the review card's sendBack is %+v; want sent 3 of 3, closed or the sheet at the cap is %+v (%v); want the cap sentence, no findings, sent 3. TC-507, positive and negative (TestTheSendBackRoutesAreBackOfficeAndSameOrigin): a send-back with no session answered %d %s; want 401, a send-back with %v answered %d; want 403, a send-back with content type %q answered %d; want 415, the sheet of another product's card answered %d; want 404, the sheet printed a finding's markup unescaped, the server board does not show the review's block reason and its Revise design button or the send-back event is %+v; its actor must be the session's account and its triage the posted one. TC-508, positive (TestALeftDoneSegmentIsBookedAsBlocked): the DONE segment the send-back left is %s for %ds; it must be blocked for 3000s or lead %d, buckets sum %d; both must be %d. TC-509, negative (TestTheGatesVerdictIsNeverRerolled): unblocking a design-blocked review answered %v; want %q, the board offers ready on a design-blocked review, approving a design that delivered nothing answered %v; it must be refused, the unblocked review is %s with reason %q; an unblock clears the reason or after a drift release %s is %s; want %s. The client board's elements (static/board.js) and the sheet's focus return are checked by node --check and by hand, not by a Go test.

dashboard — the back office's Integrations view (TC-511, TC-512)

v0.45.0, in dashboard/integrations_test.go (D-085). Every secret in the fixture is a random-hex sentinel made per run: four API tokens and their SHA-256 digests, the gateway's login, secret and admin key, the gateway base's path and query, the QA base's path and the failing QA server's response body. TC-511, positive and negative (TestTheIntegrationsViewShowsEachIntegrationAndNoSecret): signed in, both /ui/bo/integrations and /ui/bo?view=integrations answer 200 (the integrations view answered %d on %s) with Cache-Control: no-store, and so do both archive routes (the %s view on %s is not no-store: %q); inside the view's section it shows the gateway host, the runner, the providers, the QA host and origin, the registered client, the products, a real failed delivery and its reason (the integrations view does not show %q); the whole page carries none of the sentinels (the integrations view leaked %q); and urlHost refuses a userinfo-bearing URL whose password holds a /, and an ftp:// URL (urlHost(%q) = %q, want ""). TC-512, negative and positive (TestTheIntegrationsViewNeedsASessionAndSaysWhatIsMissing): unsigned, on the same fixture, /ui/bo/integrations with and without HX-Request answers 401 (an unsigned request to %s answered %d) and neither it nor /ui/bo?view=integrations renders the view or a client (an unsigned request to %s rendered the view); with nothing configured the view says what is missing (the unconfigured integrations view does not say %q).

dashboard — the Brain Town feed (TC-513 … TC-523)

v0.46.0, in dashboard/braintown_test.go and deploy/check-stacks.sh (D-086, Brain Town feed). The receiver is a recording httptest server; the clock is injected, so no test sleeps. TC-513, negative (TestBrainTownDisabledSendsNothing): BRAIN_TOWN_ENABLED=false gives a disabled feed (BRAIN_TOWN_ENABLED=false produced an enabled feed, state = %q, want disabled) and a store write makes no request (a disabled feed made %d request(s)). TC-514, negative and positive (TestBrainTownConfigIsValidated): thirteen settings, each refused with its reason or accepted (%s: why = %q, want it to contain %q, %s: want a usable feed, got why=%q, %s: the reason carries the token). TC-515, positive (TestBrainTownMapsEveryEventType): planned, created, moved, claimed, done, failed, cancelled, the review's requested and decided, the blocked design, a failed review and a released implementation task (seq %d (%s): mapped to %q, want %q), no body carries the actor (seq %d: a body carries the actor: %s), the failed reason is failed or canceled (seq %d: failed reason = %v, want failed or canceled), and a QA record update maps to nothing (a QA record update was mapped: %+v). TC-516, negative and positive (TestBrainTownRedactsHiddenProducts): a listed product sends its name and key (public product sent as %+v), titles of 200 runes (public title length = %d runes, want 200), a credential-looking title as the task id (a title with a credential left as %q, want the task id); an unlisted one is hidden (hidden product sent as %+v) and its real name and title never leave (a hidden product's real name or title left GAOS: %s). TC-517, positive (TestBrainTownLifecycleOrderAndFirstSight): a task planned and driven to done, sent back and done again arrives in order (lifecycle sent ... want ...); an unseen task's first move is preceded by a task.created in the move's from-column (first sight sent %s, want product.upserted,task.created,task.moved, synthetic task.created column = %q, want ready (the move's from-column)). TC-518, positive and negative (TestBrainTownRetriesKeepTheSameID): 503, 429, 202 is three calls with waits of 1 s and 5 s (5xx then 429 then 202: %d calls, waits %v; want 3 calls, waits [1s 5s]), every attempt with one id as Idempotency-Key (attempt %d: id %q key %q auth %q; want one id used as Idempotency-Key); 400 is one call and one log line (400: %d calls, logs %v; want one call, one log line); 409 is success (409: %d calls, logs %v; want success after one call); a persistent 500 is four calls and one log line (persistent 500: %d calls, waits %v, logs %v; want 4 calls, 1s 5s 30s, one log line); the id is 26 deterministic characters (btID = %q: want 26 deterministic characters that differ by index). TC-519, negative (TestBrainTownSlowReceiverNeverBlocksTheStore): with the receiver hung, CreateProduct took %v with the receiver hung; want under 100ms, the flood of taps is a non-blocking send (%d taps took %v with the receiver hung; want a non-blocking send) and overflow is counted (overflow dropped nothing; want a counted drop). TC-520, negative (TestBrainTownTokenNeverLeaks): after a 500 and a refused connection, the logs and status hold no token, id path or receiver address (log or status contains %q, a log line names the receiver's address, the token reason echoes the file content: %q). TC-521, positive (TestBrainTownIntegrationsRowHasNoSecret): row = %s; want state enabled and a scheme://host, row contains %q: %s, unusable state = %q. TC-522, negative and positive (TestBrainTownTapFiresOnlyAfterCommit): against a fake ArcadeDB whose commit fails, persist succeeded although the commit failed and tap saw %v after a failed commit; want nothing; after a good commit tap saw %v after a commit; want [1 2]; on the memory store MemStore tap saw %d event(s) (err %v); want emit to be the commit. TC-523, positive (deploy/check-stacks.sh): ok prod mounts the Brain Town token file read-only, ok prod passes the Brain Town switch from the deploy shell, empty (off) by default, ok prod passes the Brain Town token only as a file, never as an environment variable; negative: FAIL prod passes the Brain Town token only as a file, never as an environment variable when a BRAIN_TOWN_TOKEN: key appears, and FAIL deploy/stacks/prod.bt-token is tracked by git. The deploy script Since v0.60.1 it also prints ok prod mounts the Brain Town reader's cursor directory writable, ok prod no longer mounts the read-only cursor file (#56) and, when the directory exists on the host, ok prod.bt-state is a mode-700 directory; negative: FAIL deploy/stacks/prod.bt-state is not a directory (the reader's cursor lives in it) or FAIL deploy/stacks/prod.bt-state is mode %s, want 700. The deploy script rebuild-restart.sh also stops with deploy/stacks/prod.bt-token is missing (or is not a regular file) when the file is absent, because a missing mount source becomes a root-owned directory.

dashboard — the Brain Town reader (TC-524 … TC-533)

v0.46.0, in dashboard/braintown_consumer_test.go (D-087, Brain Town reader). The reader's own rules, its frame parser, its double filter and its cursor. TC-524, negative and positive (TestConsumerURLRules): eight URLs, each refused with its reason or accepted (%s: want a reason containing %q, got %q): empty, not a URL, plain http, a userinfo, a query, a path, an IP address and a loopback host; a good https URL is accepted. TC-525, negative and positive (TestConsumerTokenRules): a bt_c_ token is accepted (a reader token must be accepted: %q %q); a file others can read is refused, not warned about (a loose file must be refused, got %q); a bt_live_ token, a gaos_ token and a token with no prefix are each refused with their own reason (token %q: want a reason containing %q, got %q); a missing file is refused, not a panic. TC-526, negative and positive (TestConsumerScopeFilter): the product's own owner/repo matches (the product's own repository must match), case-insensitively (the match is case-insensitive); the same repository name under another owner does not (the same repository name under another owner must not match) and a bare name does not (a bare repository name must not match). TC-527, positive (TestConsumerFrameIsParsedAndBounded): a frame is read into its kind, type, event id, sequence number, owner, repository, pull request number and title (the frame was read wrong: %+v, the pull request was read wrong: %+v) and its key is the flow's (the key is %q). TC-528, negative (TestConsumerRejectsTheWrongKindAndType): a frame whose kind or whose type is outside the configured list is handed over only as a cursor marker (a frame outside the kinds or types must be handed over only as a cursor marker, got %d markers; a filtered frame was handed over as an event: %+v). TC-529, negative (TestConsumerRejectsAnUnownedRepository): a repository GAOS does not own is handed over only as a cursor marker (a repository GAOS does not own must be handed over only as a cursor marker, got %d markers). TC-530, negative and positive (TestConsumerTitleIsCappedAndScreened): a long title is capped at 200 characters (a long title must be capped, got %d), control characters are stripped (control characters must be stripped, got %q) and a title that looks like a credential is dropped (a title that looks like a credential must be dropped, got %q). TC-531, positive (TestConsumerCursorRoundTrip): a missing cursor is zero (a missing cursor is 0, got %d), a written cursor round-trips (the cursor must round-trip, got %d) and the file is mode 0600 (the cursor file must be mode 0600, got %o). TC-532, positive (TestConsumerReadsTheStream): a recording httptest server answers the reader's request with a frame, and the event arrives (the event was read wrong: %+v, no event within five seconds). TC-533, positive (TestConsumerStatusCarriesNoSecret): the Integrations row carries the host and the counts and no token (the row must carry no token: %+v); a reader that is off says disabled.

dashboard — the pull-request flows (TC-534 … TC-598)

In dashboard/labels_test.go, prflow_test.go, prreview_test.go, github_test.go, staging_test.go, wa_test.go, contacts_test.go, notify_test.go and qajobs_test.go (D-088). The label vocabulary, the routing from a pull-request event to its cards, the reviewer and its post, the GitHub client, the staging callback, the WhatsApp notifier, the contact registry and the QA-job client. The deploy half, TC-599, closes the list. TC-534, negative and positive (TestTheTaskRoleVocabularyMatchesTheDDL): the DDL's Task.role regexp and the Go role set must agree. An empty or missing file stops with 04-execution.sql is empty or missing; no regexp stops with Task.role declares no regexp; its vocabulary is unconstrained. Drift is reported as Task.role permits %q; Go declares %q - a role the DDL refuses is a row the store cannot write and Task.role permits %q; Go declares no such role - the DDL would accept a seat that has no model and no room; the order list is held to the map with roleOrder lists %q twice, roleOrder lists %q, which the roles map does not declare and the roles map declares %q, which roleOrder does not list. D-091 (v0.52.1): Agent.role in 05-capacity.sql must carry the same regexp (Agent.role regexp in 05-capacity.sql is %v; it must equal Task.role's %q), and 17-defects.sql must ALTER PROPERTY both (17-defects.sql does not ALTER %s to %q: an existing database would refuse a newer role at commit). Found live: a fresh tenant refused an agent of a newer role at seed, and an existing database keeps the regexp it first declared. TC-535, negative (TestThePullRequestAgentRolesAreDeclared): each role the pull-request flows use is declared, with a model, a room and a label: the role %q is not declared, the role %q has no model, the role %q has no room, the role %q has no label. TC-536, negative and positive (TestTheLabelVocabularyIsClosed): the card-label vocabulary is a closed set. the label vocabulary is empty; the vocabulary has %d labels and the order lists %d; labelOrder lists %q twice; labelOrder lists %q, which the vocabulary does not declare; the vocabulary declares %q, which labelOrder does not list. A known label is accepted (a known label must be accepted), an unknown one refused (an unknown label must be refused) and the refusal names the offender (the refusal must name the offender, got %q); the default review label is in the vocabulary (the default review label must be in the vocabulary). TC-537, positive (TestNormalizeLabelsKeepsTheVocabularyOrder): normalizeLabels returns labels in the vocabulary's order whatever order they came in: normalizeLabels = %v, want %v (asserted twice). TC-538, negative and positive (TestPRCardsForIsTheRoutingTable): pr.opened plans two cards (pr.opened plans %d cards, want 2): the reviewer, labelled auto (the first card is %+v, want the PR reviewer, labelled auto) and the QA-tool e2e card (the second card is %+v, want the QA-tool e2e automation card); pr.merged plans the unit test card alone (pr.merged plans %+v, want the unit test card alone); an event the flow does not use plans nothing (an event the flow does not use must plan nothing, got %+v). TC-539, negative and positive (TestPREventKeyCarriesTheOwner): acme/api#4 and other/api#4 must not share a key and the staging key is the agreed shape (the staging key is %q). TC-540, negative and positive (TestPlanPullRequestCardsPlansAndDeduplicates): a first call plans two cards (plan: %v, planned %v, existing %v; want two planned) and carries TaskPlanned and PullRequestOpened (the result must carry TaskPlanned and PullRequestOpened, got %d events); a replay plans nothing (replay: %v, a replay planned %v and found %v; want nothing planned); the board holds two cards (the board holds %d PR cards, want 2), each PENDING (card %s is %s, want PENDING) on the PR workflow (card %s is on %s, want the PR workflow). TC-541, positive (TestAMergeWithoutAnOpenStillPlansTheUnitTestCard): a merge alone plans one card (a merge alone planned %v, err %v; want one card) and it is the unit test card (card %+v is not the unit test card). TC-542, positive (TestAMergeCancelsAReviewThatHasNotStarted): after an open and a merge, %d cards were canceled, want the review and the e2e card. TC-543, negative (TestPlanPullRequestCardsRefusesARepositoryTheProductDoesNotOwn): a repository the product does not own must be refused. TC-544, negative (TestADraftOpensNothing): a draft answered %v, want a skip and a draft planned %d cards. TC-545, negative (TestTheCapRefusesABurst): once the cap is reached, the third and fourth cards answered %v, want the cap. TC-546, negative (TestAnEvictedKeyCannotMakeADuplicate): replaying after eviction plans nothing: replay %d planned %v. TC-547, negative and positive (TestPRFlowSkipsAForkAndAStranger): a fork and a stranger each open nothing (%s opened %d cards); a member's pull request opens two (a member's pull request opened %d cards, want 2). TC-548, negative (TestPRFlowSkipsAnEventNoProductOwns): an event no product owns must be acknowledged (flowDone), so the cursor passes it and an event no product owns planned %d cards. TC-549, negative and positive (TestTheSchedulerNeverDispatchesAManualOrQAToolCard): a card labelled %s must not be dispatched for the manual and QA-tool labels and a card labelled %s must be dispatchable for the others. TC-550, negative and positive (TestAnOperatorChangesALabelAndItIsAnEvent): set label: %v; the change is one TaskLabeled (the change must be one TaskLabeled, got %+v) that names no address (the event names an address: %q); one label per family (the labels are %v, want the manual label alone (one per family)); a label outside the vocabulary must be refused; setting the same label again must be a no-op, got %v %v; an unknown card answered %v, want not found. TC-551, negative and positive (TestParsePRReview): a block is read (got %+v, %v), also over several lines (multi-line: %+v %v); a |, > or |- block indicator is dropped and the block is dedented (block %q: body %q err %v, v0.75.1); and each malformed shape, a body that is only an indicator included, is refused (%s must be refused). TC-552, negative and positive (TestTheReviewerContractNamesTheBlockAndTheHandoff): the contract is missing a block: %q, another role must not owe a review block and the contract must ask for each finding's severity in parentheses (D-130); a setup failure stops with the underlying error. TC-553, positive (TestAReviewIsPostedAsACommentAndTheCardIsDone): posted %d reviews, want 1, the card is %s, want DONE and notified %v, want a medium review. TC-554, negative (TestALowFindingPostsButDoesNotNotify): a low finding must not reach a person. TC-555, negative (TestABodyCarryingASecretIsNeverPosted): a body with a secret was posted and labels %v, want needs-manual in place of auto. TC-556, positive (TestAHighFindingIsPostedAndHandedToAPerson): status %s labels %v; want REVIEW and needs-manual. TC-557, negative (TestAFailedPostFailsTheCardWithAClass): status %s reason %q; want FAILED github-token and, for the second case, status %s reason %q. TC-558, negative and positive (TestTheReviewerPacketCarriesThePullRequestAsData): a missing context must say so: %+v, the part is wrong: %+v, only a reviewer card gets the part. TC-559, negative (TestTheContextCacheIsBounded): the cache holds %d entries, want %d. TC-560, negative and positive (TestPRKeyParts): got %s %s %d %v and a staging key has no pull request. TC-561, negative and positive (TestGHConfigRefusesTheWrongKindOfToken): the token must be refused, got %+v and the reason %q must contain %q. TC-562, negative (TestGHConfigRefusesAReadableFile): a loose file must be refused, got %q. TC-563, positive (TestGHConfigAcceptsAGitHubToken): a GitHub token must be accepted, got %q and the token must be kept. TC-564, negative and positive (TestGHOwnerRepo): ghOwnerRepo = %q, %q, %v and %q must not split into an owner and a repository. TC-565, positive (TestGHClientReadsAndPosts): read the pull request: %v, the pull request was read wrong: %+v, read the files: %v %+v, the diff must name the file: %q, post the review: %v and the review must be a comment, never an approval: %s. TC-566, negative (TestGHPostReviewReportsTheStatus): a refused review must be reported, got %v. TC-567, positive (TestGHFilesArePaginatedAndCapped): got %d files over %d pages, err %v; want 207 over 3. TC-568, negative (TestGHErrorsAreClassifiedAndNeverCarryTheBody): status %d was not an error, status %d is class %q, want %q and the error leaks: %v. TC-569, negative and positive (TestGHRateLimitIsRetriedTwiceAndNoMore): class %q after %d calls; want rate after 3 and a 500 was tried %d times, want once. TC-570, positive (TestGHCommitAuthorsAreLastFirst): got %v, %v; want [last first]. TC-571, negative and positive (TestTheStagingCallbackPlansACardAndAReplayPlansNone): answered %d %s, want 202 with a task, %d cards, want 1, the card is labelled %v, want e2e:run; a replay: a replay answered %d %s, want 200 duplicate and a replay made %d cards; a new commit answered %d and the last callback was not recorded. TC-572, negative (TestTheStagingCallbackRefusesWithoutTheCredential): %s answered %d %q, want 401 with the Basic challenge, %s: the answer carries the credential and a refused call planned %d cards. TC-573, negative (TestAnotherProductsCredentialIsNotFound): product 2's credential on product 1 answered %d, want 404. TC-574, negative (TestTheStagingCallbackRefusesARepositoryTheProductDoesNotOwn): %s answered %d, want 422. TC-575, negative and positive (TestRepeatedFailuresAreThrottledWithRetryAfter): answered %d, want 429 with Retry-After even for the right credential and, after the lock, after the lock answered %d, want 202. TC-576, negative (TestTheStagingCredentialFileIsRefusedWhenReadableOrMalformed): a readable file was accepted: %+v, a short password was accepted, a malformed line was accepted, an unset file must be off, not an error and a callback with the feature off answered %d, want 503. TC-577, negative (TestAWA200ThatIsNotSUCCESSIsAFailure): a 200 with code FAILED was treated as a success and status %+v, want one failure. TC-578, positive (TestAnAcceptedMessageIsSentToThePinnedGroupWithBasicAuth): send: %v, phone %q auth %q and the status leaks or miscounts: %+v. TC-579, negative and positive (TestA429And400AreNeverRetriedAndATransportErrorIsRetriedOnce): %d was a success, a %d was tried %d times, want once, err %v after %d retry waits, want a failure after exactly one and the transport error leaks the host: %v. TC-580, negative and positive (TestTheWAConfigRefusesHTTPAndNeedsNoDefault): an unset URL must be off without an error: %+v, an http URL must be refused: %+v, a valid config was refused: %+v, a readable group file was accepted: %q and a name in place of a JID was accepted: %q. TC-581, negative (TestAPinnedGroupThatIsGoneDisablesTheNotifier): a group that is not in the list must disable sending (a same-named group must not rescue it): %v %q. TC-582, positive (TestAPinnedGroupThatExistsKeepsTheNotifierOn): send: %v. TC-583, negative and positive (TestTheContactResolutionOrder): got %q %q, want the product's own contact, another product must fall back to the every-product contact, got %q, %s: got %q %q, want the group and a wanted kind must reach the contact, got %q. TC-584, negative and positive (TestAReviewKindIncludesTheWorseSeverities): review:medium wants %s = %v, want %v and a contact with no list wants everything. TC-585, negative (TestADestinationIsMaskedWhenListedAndNeverInAnEvent): group mask = %q, number mask leaks: %q and List leaks the destination: %q. TC-586, negative (TestAContactIsValidated): %s was accepted; since D-130 a contact that opted into review:high before D-130 is refused: %v and review:high is still a Notify-on box on the Contacts page. TC-587, negative (TestTheRegistryNeverReachesAnEventTheBlueprintOrAPacket): upsert: %+v %v; a contact change carries a registry op and no event, event %d carries the destination: %q, a Master carries the destination, delete: %v, a second delete answered %v, want not found and %d contacts remain. TC-588, negative and positive (TestTheContactRoutesNeedASessionAndNeverRenderTheDestination): a contact was saved without a session, save answered %d: %s, the contact was not saved, the page renders the destination whole, the page does not show the masked destination, an invalid contact was saved (%d) and delete answered %d, %d left. TC-589, negative and positive (TestTheLabelRouteChangesALabelAndRefusesAnUnknownOne): a label changed without a session, answered %d: %s, the label did not change and a refused label wrote an event. TC-590, positive (TestAReviewFindingReachesThePullRequestAuthorsContact), a review:medium line since D-130: sent %v, want one message to the contact naming the card, the message carries the repository: %s and event %+v for the recorded event. TC-591, negative and positive (TestAFailureWithNoContactGoesToTheGroupAndAFailedSendIsRecordedNotFatal): sent %v, want the pinned group, a failed send was not recorded and a notification must not touch the card. TC-592, positive (TestANilNotifierIsSilent): a nil notifier is called and does nothing; the test has no failure message, so a panic is the failure. TC-593, positive (TestAnE2ECardStartsAJobAndIsDoneWhenTheJobSucceeds): started %v, want the case named in the description, the card is %s, want RUNNING, mid-job the card is %s, the card is %s, want DONE and the job was started %d times. TC-594, negative (TestAFailedJobFailsTheCardAndATimeoutDoes): the card is %s, want FAILED, after the timeout the card is %s, want FAILED and reason %q, want qa-job-timeout. TC-595, negative (TestMissingQARoutesFailTheCardWithAClass): status %s reason %q; want FAILED qa-routes-missing. TC-596, negative (TestACardWithNoCaseNamedWaitsForAPersonAndIsNeverGuessed): a job was started without a case: %v and status %s reason %q; want BLOCKED naming the QA-case line. TC-597, positive (TestAStagingRunAsksForEveryCase): started %v, want the run of every case. TC-598, positive (TestTheOutboundClientSpeaksTheAgreedRoutes): start: %q %d %v %q %q and status: %+v %v %q. TC-599, positive (deploy/check-stacks.sh): ok prod mounts the GitHub token file read-only, ok prod passes the GitHub token only as a file, never as an environment variable, ok prod mounts the staging callback's credential file read-only, ok prod passes the staging credential only as a file, never as an environment variable, ok prod mounts the WhatsApp login file read-only, ok prod mounts the WhatsApp pinned-group file read-only, ok prod passes the WhatsApp login only as a file, never as an environment variable, ok prod passes the WhatsApp gateway URL from the deploy shell, empty (off) by default, with no default host; negative: each of the four mount lines prints FAIL with the same message when the mount is missing, and each of the three environment-variable lines when a GAOS_GITHUB_TOKEN:, GAOS_STAGING_BASIC_AUTH: or GAOS_WA_BASIC_AUTH: key appears. Any file matching deploy/stacks/*.pr-* that git tracks fails with FAIL <file> is tracked by git.

TC-600, rebuild-restart.sh: a prod tag deploy whose compose mounts prod.pr-github-token prints FAIL deploy/stacks/prod.pr-github-token is missing (or is not a regular file) (or the same for prod.pr-staging-auth, prod.pr-wa-auth or prod.pr-wa-group) and exits 1; with all four present it prints ok the pull-request flow's credential files exist and the files are linked into the worktree beside the others (D-088, v0.48.1). Since v0.60.1 the same block refuses a missing reader cursor directory: FAIL deploy/stacks/prod.bt-state is missing, not owned by <user>, or not mode 700, the hint create it: mkdir -m 700 deploy/stacks/prod.bt-state -- then re-run. and exit 1; otherwise ok the Brain Town reader's cursor directory exists.

dashboard — the pull-request flows' follow-ups (TC-601 … TC-621)

In prflow_test.go, qajobs_test.go, wa_test.go and notify_test.go (D-089, v0.49.0): the card id, the approval wait, the restart recovery, the runner's allowed moves and the WhatsApp gateway's switches; TC-616 is the deploy half; TC-617 to TC-621 (D-090, v0.50.0) are the token trim and the cancel at the QA tool. TC-601, positive and negative (TestTwoCommitsSharingAPrefixGetTwoCards): two commits sharing their first 12 characters get two cards: first: %v %v, second commit planned %v, found %v, err %v; want its own card, both commits got the id %q and, for a replay, a replay planned %v, found %v. TC-602, positive (TestAnApprovalWaitStopsTheClockAndPutsTheCardInNeedsYou): the card is %s while the spec waits for a person, want AWAITING_INPUT, after six hours of waiting the card is %s, want it still waiting for the person, after the approval the card is %s, want RUNNING and the card is %s, want DONE. TC-603, negative (TestAnApprovalNobodyAnswersFailsTheCardWithItsOwnReasonAndNotifiesOnce): inside the wait the card is %s, status %s reason %q; want FAILED qa-approval-timeout and %d approval notices, want exactly one. TC-604, positive (TestTheApprovalWaitIsConfigurable): got %v, want 3h and default %v, want 24h. TC-605, negative and positive (TestAnHTTPGatewayNeedsTheExplicitSwitchAndIsSaidToBeUnencrypted): http was accepted without GAOS_WA_ALLOW_HTTP=1, http with the switch was refused or mis-read: %+v, the status %q does not say the link is unencrypted and an ftp URL was accepted; D-131: the findings-over-http switch must mean nothing on a private http gateway (D-131), GAOS_WA_ALERT_FINDINGS_OVER_HTTP=1 with =any was not read: %+v, the findings-over-http switch is on by default (D-131); D-132: the confirmation-link-over-http switch is on by default (D-132), GAOS_WA_CONFIRM_LINK_OVER_HTTP=1 with =any was not read (D-132), the confirmation-link switch must mean nothing on a private http gateway (D-132). TC-606, positive and negative (TestTheGroupIsLinkedOnlyToTheProductsListed): covers p-1=%v p-2=%v, want true and false and an empty list must link no product: %q. TC-607, negative (TestAProductTheGroupIsNotLinkedToIsNeverNotified): a message went out for a product the group is not linked to: %v and an unlinked product left a ContactNotified event. TC-608, positive and negative (TestARestartPicksTheJobUpFromTheCardAndNeverStartsASecond): a second job was started: %v, the adopted job's card is %s, want DONE, the adopted waiting card is %s, want AWAITING_INPUT and jobIDFromReason reads the wrong id. TC-609, negative (TestAJobThatFlapsBetweenWaitingAndRunningIsFailedAndNotifiesOnce): status %s reason %q; want FAILED qa-job-flapping and %d approval notices over %d waits, want one per job. TC-610, positive (TestAnApprovalGivenInTheLastIntervalBeforeTheCapIsSeen): the card is %s; the finished job must be seen before the cap is applied. TC-611, negative (TestTheApprovalWaitHasAnUpperBound): got %v, want the 720 h bound. TC-612, negative (TestTheQAToolsReportCannotOverrideAnOperatorsMove): a running report moved a card an operator blocked, the card is %s, want BLOCKED, a FAILED card was brought back to RUNNING and the walk passes through %s. TC-613, negative and positive (TestAnHTTPLinkIsOnlyToAPrivateAddressUnlessAnyIsSaid): privateAddr(%s) = %v, want %v, a public http gateway was dialled with GAOS_WA_ALLOW_HTTP=1: %v and a loopback http gateway was refused: %v. TC-614, negative (TestTheStatusAlwaysSaysUnencryptedAndSaysNoProductAndSkipsTheBootSend): status %q must say both facts, a disabled http notifier hides the clear link: %q and the group check sent the credential %d time(s) with no product linked. TC-615, positive (TestAnApprovalNoticeGoesToTheGroupNotToTheCommitter): sent %v, want the pinned group and not the committer's contact. TC-616, positive (deploy/check-stacks.sh): ok prod passes the WhatsApp http switch from the deploy shell, empty (https only) by default, ok prod passes the products the WhatsApp notifier serves from the deploy shell, empty (none) by default, ok prod passes the QA approval wait from the deploy shell, ok prod never hard-codes the WhatsApp http switch, ok prod never hard-codes the WhatsApp public-http switch, and since D-131 ok prod passes the review-alert findings-over-http switch from the deploy shell, empty (line only) by default and ok prod never hard-codes the review-alert findings-over-http switch; negative: each prints FAIL with the same message when the line is missing, or, for the never-hard-codes lines, present. TC-617, negative and positive (TestAGitHubTokenFileEndingInBlankLinesIsAccepted): a token with surrounding whitespace was refused or kept it: why=%q, len=%d and the token still carries whitespace and would make the Authorization header invalid. TC-618, positive (TestEveryWayGAOSGivesUpOnAJobCancelsItAtTheQATool): %s: the QA tool was asked to cancel %d times, want once, %s: the card is %s, want FAILED and flapping: canceled %d times, want once. TC-619, positive and negative (TestAnOperatorCancelingTheCardCancelsTheQAJob): canceled %v, want the card's job once and a canceled job was canceled again (%d). TC-620, negative (TestAFailedCancelNeverKeepsTheCardFromEnding): the card is %s; a failed cancel must not keep it open. TC-621, positive and negative (TestTheCancelCallSpeaksTheAgreedRoute): cancel: %v %q, a job the QA tool no longer knows is not an error: %v and a 500 was taken for a cancel.

check-stacks.sh — the landing page (TC-622, TC-623)

The landing page (v0.51.0) is written in English with an Indonesian dictionary beside it, and it prints five figures about the code. Both can go stale without anything failing: a string added in one language only, or a figure typed by hand and never recounted. The page said 71 graph types and 49 event types long after both had moved. These two cases are the recount.

TC-622, positive (deploy/check-stacks.sh): ok every translatable string on the landing page has an Indonesian entry, ok the landing page's Indonesian dictionary has no unused entry, ok the landing page's Indonesian dictionary declares no key twice and ok the landing page declares at least 100 translatable keys; negative: each of the first three prints FAIL with the same message and lists the keys beneath it, when a data-i18n key in landing-page/index.html has no line in landing-page/js/i18n.js, when the dictionary keeps a key the page no longer uses, or when a key is declared twice; the fourth prints FAIL the landing page declares n translatable keys, want at least 100, which is what a broken extraction looks like.

TC-623, positive (deploy/check-stacks.sh): ok the landing page says 31 vertex types, and the schema declares 31, ok the landing page says 39 edge types, and the schema declares 39, ok the landing page says 3 document types, and the schema declares 3, ok the landing page says 73 graph types, and the schema declares 73 and ok the landing page says 59 event types, and the catalog declares 59 — the numbers are the ones true at v0.51.0, and the script prints whatever it counts; negative: a figure that disagrees prints, for example, FAIL the landing page says 40 edge types, and the schema declares 39, and a figure missing from the page prints FAIL the landing page says nothing for edge types, and the schema declares 39.

dashboard — the Auto-fix view (TC-624 … TC-630)

The back office's Auto-fix view (D-091, design §9.2): tiles, a table of fix pull requests, filters kept in the URL, a detail drawer, the off, empty and unreachable states, and the one thing it must never print — a token, a failure excerpt or HTML from a defect's text. Each case below is one func Test… in dashboard/autofix_view_test.go.

TC-624, positive (TestAutoFixViewTiles): the Auto-fix view answered %d on %s, the Auto-fix view on %s is not no-store: %q, tile %q = %v, want %q, the Auto-fix view on %s does not show %q.

TC-625, positive and negative (TestAutoFixViewFilters): state=merged shows the wrong rows, difficulty=easy shows the wrong rows, the poll URL does not carry the filters, an empty filter does not say so, a junk filter changed the view, the poll is not one #afLive oob fragment, the poll signed out answered %d, want 401.

TC-626, positive and negative (TestAutoFixViewDrawer): no drawer for open=%s, the drawer does not show %q, the drawer's line counts are not 4 / 40 and 5 / 120, the drawer printed code from the reply: %q, the bare drawer does not show %q.

TC-627, negative (TestAutoFixViewOffState): the off state does not show %q, the no-token state does not show %q, a spent cap is not shown as 1/1 until 00:00 UTC, a dead GitHub client is not announced, a failing poll is not announced with its age.

TC-628, negative (TestAutoFixViewNoExcerptOrSecret): %s printed %q raw, a hostile title is not shown as escaped text, a token-shaped string in the after is not withheld.

TC-629, positive and negative (TestAutoFixViewTokenKindShown): the view does not show the token kind %q with tone %q, the Integrations view does not show the token kind %q, a token leaked.

TC-630, negative (TestAutoFixViewWorstCase): %d rows rendered of 502, want one page of %d (D-097), the 500-row view does not show %q, a right-to-left override reached the page, a title longer than the schema's 200 reached the page whole, the empty view does not show %q, the no-pull-request state is not shown.

dashboard — defect intake, triage and auto-fix (TC-631 … TC-688)

The defect auto-fix path (D-091, design docs/designs/gaos-defect-autofix.md): the closed vocabularies, the QA tool's defect route, the triager, the automatic dispatch and its caps, the draft pull request GAOS opens with a separate write token, the poller that follows it, and the two deploy-script cases that close the list (TC-687, TC-688). Each case is one func Test… in dashboard/ unless it names a script. The TestAutoFixView cases, TC-624 to TC-630, are in the section above.

TC-631, negative (TestDefectLabelFamilyIsPlannerOnly): The defect:triage, defect:easy, defect:medium and defect:complex labels are in the closed vocabulary, the scheduler never dispatches a card carrying one, SetTaskLabel and the label route refuse them with 422, and a planner can still plant them while a pr-review label is accepted. It fails with %s is not in the closed vocabulary, the scheduler may dispatch a card labelled %s, SetTaskLabel(%s) = %v, want ErrRejected (422), plan: %v %v, a pr-review label was refused: %v, the label route answered %d for defect:easy, want 422.

TC-632, positive (TestDefectEventsAreInTheCatalogAndCarryNoText): DefectReported, DefectTriaged, DefectStateChanged, FixPROpened, FixPRStateChanged and AutoFixConfigured are in the closed event catalog, are written by the store paths that own them, and carry no defect text or address. It fails with no %s event, %s is not in the closed catalog, AutoFixConfigured: %+v, the stored configuration: %+v, want enabled with the default caps.

TC-633, positive (TestAutoFixGlobSemantics): matchGlob answers the table of pattern and path pairs: a single star stops at a slash, a double star crosses it, and a literal matches only itself. It fails with matchGlob(%q, %q) = %v, want %v.

TC-634, negative (TestPathForbiddenCoversTheBuiltinsAndTopLevelFiles): The built-in forbidden paths (CI workflows, dependency manifests and lockfiles, dotfiles, top-level files) are refused, an ordinary source file is not, and a product's own forbidden glob applies. It fails with %q must be forbidden, an ordinary source file must not be forbidden, a product's own forbidden glob must apply.

TC-635, negative (TestDefectRouteRejectsABadItem): POST /api/v1/products/{id}/qa/defects applies the good items and lists the rejected ones with a reason, refuses an unknown field and a source of pull with 400, and answers 404 for another product. It fails with answered %d (%s), want 200: a bad item is rejected, the rest apply, no item was rejected %q; rejected = %+v, applied = %d, want 1 (the good item), %d records stored, want 1, an unknown field answered %d %s, want 400 bad-json, source pull answered %d %s, want 400 bad-source, another product answered %d, want 404.

TC-636, negative (TestDefectLimit413): A body over 256 KiB and a request over 50 items are both refused with 413 and the limit named. It fails with a 300 KiB body answered %d %s, want 413 too-large naming 256 KiB, 51 items answered %d %s, want 413 naming 50 items.

TC-637, positive (TestDefectRepeatPlansNoCard): Reporting the same defect again answers 200 with the item unchanged, plans no second card, writes no second DefectReported and only moves lastSeen. It fails with the first report answered %d and planned %d cards, want 200 and 1, a repeat answered %d %s, want 200 with unchanged 1, a repeat left %d cards, want 1, %d DefectReported events, want 1, after a repeat: runRef %q lastSeen %d firstSeen %d gen %d.

TC-638, negative (TestDefectNewKeyLimit): Fifty new keys per product per UTC day are accepted, the fifty-first is rejected defect-limit, a repeat past the limit is unchanged, and the next day starts again. It fails with applied %d of %d new keys, the 51st key of the day: %+v, want rejected defect-limit, a repeat past the limit: %+v, want unchanged 1, the next day: %+v %v, want applied 1.

TC-639, positive (TestDefectXpassCancelsCards): An xpass report marks the defect fixed, cancels its open triage card with a TaskMoved naming the rule, writes one DefectStateChanged and does nothing the second time. It fails with no triage card was planned, xpass: %+v, want applied 1, state %q, want fixed, the triage card is %s, want CANCELED, an xpass planned a card, no TaskMoved named the rule %s, %d DefectStateChanged events, want 1, a second xpass: %+v, want unchanged.

TC-640, positive (TestDefectRegressionLooksUpByCase): A fail after a fix finds the old record by its case id, reopens it as generation 2 flagged as a regression, plans a new triage card, and the regression's fix card is born blocked not-easy. It fails with %d records before the regression, regression: %+v with %d records, want applied 1 and still 1 record (found by case id), record: state %q gen %d regression %v, want open 2 true, no generation-2 triage card, ResolveTriage: %v, the regression's fix card is %+v, want BLOCKED %s, %d regression state events, want 1, the day's new keys = %d, want 1.

TC-641, positive (TestDefectFailSupersededByXfail): An xfail report for a case supersedes the open fail record: that record is closed with supersededBy set, its card is CANCELED, and a later fail leaves the xfail record unchanged. It fails with the fail record has no triage card, the fail record: supersededBy %q state %q, want the xfail key and closed, the fail record's card is %s, want CANCELED, no move named %s, the xfail record: %+v %v, want open, a fail after the takeover: %+v, want unchanged.

TC-642, negative (TestDefectExcerptNeverInEventOrTitle): The failure excerpt is kept on the record and nowhere else: no event and no card title carries it or the defect title. It fails with the record dropped the excerpt: %q, event %d (%s) carries the excerpt, event %d (%s) carries the defect title, card %s carries the excerpt in its title.

TC-643, negative (TestDefectBR53Stripping): Untrusted fields lose bidirectional, zero-width and control characters but keep their words, and an excerpt that matches a secret detector is withheld and replaced in the packet by a sentence saying so. It fails with an untrusted field kept a stripped character: %q, stripping must keep the words: title %q excerpt %q, an item with a secret in its excerpt: %+v, want it kept, excerpt %q withheld %v, want empty and withheld, the packet text for a withheld excerpt: %q.

TC-644, positive (TestDefectCardsExcludedFromPRCap): Open defect cards are not counted against the pull-request cap: a pr.opened beside five open defect cards plans its two cards. It fails with %d defect cards, want 5, pr.opened beside 5 open defect cards: planned %v, err %v; want 2 cards and no cap refusal, the PR cap counts %d open cards, want 2 (defect cards are not counted).

TC-645, negative (TestDefectCardsAreReadiedAndNeverScheduled): A defect triage card is moved to READY by the pass and is never offered to the scheduler for dispatch. It fails with the triage card is %s after a pass, want READY, the triage card: role %q labels %v, the scheduler offered a defect card for dispatch.

TC-646, positive (TestDefectCloseRouteStoreMethod): The store's close method closes a defect by id or case id, refuses a record of another product as not found, and never lets an address reach an event. It fails with a record of another product must be not found, an address reached an event: %q, state %q, want closed, close by case id: %v.

TC-647, negative (TestDefectSearchErrorIsNotEmpty): A failing code search is an error, retried, and blocks the triage card as search-failed; an empty search is a built context with no files, not an error. It fails with a 503 search gave %v, want errSearchFailed, %d search attempts, want %d (the retries), an empty search gave %+v %v, want a built context with no files, a failed search must return its error, the triage card is %s %q, want BLOCKED %s, an empty search stored no context.

TC-648, negative (TestDefectContextKeepsPathsAndLimits): The triage context never fetches a path the rules refuse, stays within the file, byte and search limits, and lists the best-ranked file first with its blob sha. It fails with a path the rules refuse was fetched: %s, %d files and %d bytes, past the limits, files = %+v, want the best-ranked file first with its blob sha, %d searches, want at most %d.

TC-649, positive (TestDefectContextBuiltOutsideTheLock): The triage context is built without the store lock: GitHub is called for the head, a search and a file while the lock is free. It fails with the source was called %d times, want the head, a search and a file, the store lock was held during %d of %d GitHub calls, stored context: %+v.

TC-650, negative (TestDefectTriageParseErrors): A reply with a missing, malformed or out-of-vocabulary gaos-triage block is a triageError with its code, the last of two blocks wins, and a missing verdict fails the card triage-missing and leaves the record open. It fails with a good block gave %+v %v, %s: got %v, want a triageError, %s: code %q, want %q, two blocks gave %q, want the last (medium), the card is %s %q, want FAILED triage-missing, the record is %q, want open.

TC-651, negative (TestDefectEasyIsRecheckedAndDowngraded): An easy verdict is re-checked against the rules; a clean one plans a PENDING defect:easy fix card, each failing case is downgraded to medium with its code and a BLOCKED not-easy card, the triage card ends DONE, and a second verdict is refused. It fails with %s: %v, %s: no fix card was planned, %s: difficulty %q, fix card %s %v; want easy, PENDING, defect:easy, %s: difficulty %q reason %q; want medium naming %s, %s: fix card %s %q %v; want BLOCKED %s defect:medium, %s: DefectTriaged does not carry the downgrade code %s, the triage card is %s %v, want DONE and still defect:triage, state %q, want triaged, no TaskMoved to DONE named %s, a second verdict was accepted.

TC-652, positive (TestDefectKindsOfFixCardsAreBornBlockedOrReady): Fix cards are born blocked or ready by kind: an e2e defect, a defect with no repository and a verdict naming a repository the product does not own each get their own state, and the card key round-trips through parseDefectCardKey. It fails with an e2e fix card: %s %q %v, a repository the product does not own was kept: %v, no-repo fix card: %+v, parseDefectCardKey = %q %d %q %v.

TC-653, negative (TestDefectTriagePacketIsDataAndComplexSendsANotice): The triager's packet is one fenced data part, its contract asks for a gaos-triage block, and a complex verdict plans a blocked card and sends a notice. It fails with parts = %+v, want one context part, the packet part is not fenced data: %q, the triager's contract does not ask for a gaos-triage block, notice kinds %v texts %v, the complex fix card: %+v.

TC-654, negative (TestAutoFixConfigRefusedWithoutPreconditions): POST /products/{id}/autofix is refused with 422 without the write token or the preconditions, stores nothing when refused, accepts a valid configuration and switching off, and its AutoFixConfigured event names the alias and the token kind only. It fails with %s: answered %d, want 422, a refused configuration was stored, without the write token: answered %d, want 422, switching it off answered %d, want 200, a valid configuration answered %d, want 200, the stored configuration is %+v, AutoFixConfigured names actor %q and %q; want the alias and the token kind, an AutoFixConfigured event carries the template text or the address.

TC-655, negative (TestAutoFixConfigAdminsOnly): The configuration route answers 403 with no admin list, a missing file, a world-readable file or an unlisted account, and 200 for a listed one; the close route answers 404 for another product's record and needs a signed-in operator. It fails with with no admin list: %d, want 403, with a missing admin file: %d, want 403, with a world-readable admin file: %d, want 403, for an account that is not listed: %d, want 403, an anonymous request changed the configuration, a refused request changed the configuration, for a listed account: %d, want 200, closing a record of another product answered %d, want 404, closing a defect answered %d, want 200, the defect is %s, want closed, an anonymous request closed a defect.

TC-656, negative (TestAutoFixSchedulerNeverDispatchesDefectCardsInAnyMode): Under every GAOS_RUNNER mode, including on, the scheduler only readies a defect card and starts no run for it. It fails with GAOS_RUNNER=%s: the triage card is %s; the scheduler must only ready it, GAOS_RUNNER=%s: %d run(s) started, the scheduler may dispatch %s.

TC-657, positive (TestAutoFixAutoDispatchPersistsUnderArcade): AutoDispatch writes the TaskMoved and the stamped task through the ArcadeDB path, and a read-only store rejects it. It fails with AutoDispatch: %v, the TaskMoved of the automatic dispatch was not written to the graph, the stamped task was not written to the graph, a read-only store gave %v, want a rejection.

TC-658, negative (TestAutoFixCapCountsDispatches): The fix cap counts dispatches: one card goes, the pass over the cap dispatches none and leaves the second card READY unstamped, and the next UTC day dispatches one. It fails with the first pass dispatched %d card(s), want 1, the dispatched card was not stamped, a pass over the cap dispatched %d card(s), want 0, the second card is %s (autoAt %d), want READY and unstamped, the next day's pass dispatched %d card(s), want 1.

TC-659, negative (TestAutoFixEachGateIsApplied): Each gate AutoDispatch shares with dispatchNow (the runner off, BR-56; readiness below the floor, BR-07; one live turn per product, BR-38; an unfinished prerequisite; the egress pass, BR-32) rejects the automatic dispatch, leaves the card READY (BLOCKED for the egress pass) unstamped and sends no turn; a published Blueprint the workspace does not hold is a BR-39 rejection. It fails with %s: AutoDispatch gave %v, want a rejection, %s: the card is %s %q (autoAt %d), want %s %q unstamped, %s: %d turn(s) reached the gateway, a published Blueprint the workspace does not hold: AutoDispatch gave %v, want a BR-39 rejection.

TC-660, negative (TestAutoFixSwitchOffLeavesReady): With the product's auto-fix switch off a pass dispatches nothing and writes no move; once it is on, the same pass dispatches one. It fails with a pass with the switch off dispatched %d card(s), an automatic move was written with the switch off, after the switch went on, the pass dispatched %d card(s), want 1.

TC-661, negative (TestAutoFixMediumNeverAutoDispatches): A medium or complex fix card is BLOCKED not-easy and no pass ever dispatches it. It fails with a %s fix card is %s %q, want BLOCKED %s, %s: a pass dispatched %d card(s).

TC-662, negative (TestAutoFixHandMovedMediumEndsInReviewWithoutPR): A medium card a person moved by hand ends in REVIEW with no GitHub request, no pull-request record and no notification, and a card under a switched-off product ends the same way. It fails with a medium card ended %s %q, want REVIEW, GitHub saw %d request(s) for a medium card, %d pull-request record(s) and %d notification(s) for a medium card, with the switch off the card is %s with %d GitHub request(s), want REVIEW and none.

TC-663, negative (TestAutoFixRelabelledCardNeverOpensAPR): Relabelling a defect card is rejected, the card ends in REVIEW, and nothing reaches GitHub or the group. It fails with relabelling a defect card gave %v, want a rejection, the relabelled card is %s, want REVIEW, a relabelled card reached GitHub (%d requests) or the group (%d).

TC-664, positive (TestAutoFixBaseBranchIsUsedAndValidated): The fix branch is cut from the repository's default branch unless the product names a base branch, which is read first and validated; a malformed one is refused. It fails with default: %q %q %v, override: %q %v, the refs read were %v, want develop then staging, a valid base branch was refused: %v, the base branch %q was accepted.

TC-665, negative (TestFixPRPathRules): A fix whose path is absolute, climbs out, is forbidden or is otherwise bad is refused as fix-bad-path, and a good fix parses into a plan. It fails with path %q: parse gave %v, want fix-bad-path, a good fix gave %+v %v.

TC-666, negative (TestFixPREditFindMustOccurOnce): An edit whose find text is missing or occurs more than once, or two edits of one file, are refused. It fails with two edits of one file: %v.

TC-667, negative (TestFixPRNewFileMustNotExist): A new file that already exists blocks the card with BlockLimits and makes no GitHub write. It fails with the card is %s %q, want BLOCKED %s, %d GitHub write(s) were made for a refused fix.

TC-668, positive (TestFixPRLineCountIsMyers): Changed lines are counted by a Myers diff over the table of before and after texts. It fails with %s: %d changed lines, want %d.

TC-669, negative (TestFixPRNonTestAndTestCaps): 40 non-test and 120 test changed lines are allowed and one over either cap is refused. It fails with 40 and 120 changed lines: %v.

TC-670, negative (TestFixPRBlobShaMovedBlocks): If a file's blob sha moved since the triage the card is BLOCKED base-moved and no GitHub write is made. It fails with the card is %s %q, want BLOCKED %s, %d GitHub write(s) after the base moved.

TC-671, negative (TestFixPRModeIs100644): Every tree entry the write client sends has mode 100644, and createTree refuses a symlink entry. It fails with the tree request: %v %+v, %s has mode %s, want %s, createTree accepted a symlink entry.

TC-672, negative (TestFixPRBidiRefused): The pull-request body holds no bidirectional or zero-width character. It fails with the pull-request body holds a bidirectional or zero-width character.

TC-673, negative (TestFixPRCIWorkflowSecretsRefuse): A repository whose CI runs secrets on a pull request (including pull_request filters against the base branch) blocks the card ci-secrets with no GitHub write, and a harmless workflow lets the card finish. It fails with %s: risk=%v, want %v, the card is %s %q, want BLOCKED %s, %d GitHub write(s) behind a CI that runs secrets, a harmless workflow left the card %s %q, want DONE.

TC-674, negative (TestFixPRBranchExistsBlocks): A branch that already exists and is not ours blocks the card branch-exists and is never used, moved or deleted, while a stale branch of ours is adopted. It fails with the card is %s %q, want BLOCKED %s, a branch that is not ours was used or deleted, the existing branch was moved, a stale branch of ours was adopted (%s %q).

TC-675, positive (TestFixPRCrashAdoptsByTrailer): After a crash the resumed run adopts the existing ref and pull request by the commit trailer, creates no second ref or pull request and deletes only the first run's failed branch. It fails with the first run left the card %s, want FAILED, the resumed run left the card %s %q, want DONE, the resumed run created %d ref(s); it must adopt the one that is there, %d pull request(s) exist, want 1, %d delete(s); only the first run's failed branch is deleted, the defect is %s with pull request %q, want fixing.

TC-676, negative (TestFixPRDeleteRefOnlyOurs): deleteRef deletes only a branch this run created under gaos/fix-, never an adopted one, and never reaches GitHub for any other name. It fails with %d delete(s) of the branch this run created, want 1, the branch is still there, an adopted branch was deleted when the pull request failed, deleteRef(%q) was allowed, a delete reached GitHub for a branch outside gaos/fix-.

TC-677, negative (TestFixPRNeverReadyOrMerge): The pull request is a draft from the fix branch into the base, GitHub sees no merge, update or ready call, the default branch never moves, one comment and the labels are written, and a GitHub that refuses drafts blocks the card with no fallback. It fails with the card is %s %q, want DONE, the pull request was %+v (%v), want a draft from %s into main, GitHub saw %q; nothing may merge, update or ready a pull request, the pull request did not get exactly one comment and one label call, label %s was not created, refs are %v; the default branch must not move, defect %s, %d FixPROpened event(s); want fixing and one, the card is %s %q, want BLOCKED %s, %d pull request attempt(s), want 1 (no fallback), the branch of a refused draft was left behind.

TC-678, negative (TestFixPRBodySlotsAndFence): The body fills the template slots, fences agent text with a fence longer than any run of backticks in it, does not expand text that looks like a slot, and renders the default template. It fails with the body lacks %q, the body holds an unstripped fence: %q, text that looks like a slot was expanded (it must stay as the agent wrote it), a backtick reached the body outside a fence: %q, the fence for a run of five backticks is %q, want six, the default template did not render, templateHasSlots disagrees with the slots.

TC-679, negative (TestFixPRSummaryOneLine): The summary is one safe line of at most 72 characters with @ rendered as (at) and a default when empty; the commit subject, the branch and the generation-3 branch follow from it, and a long slug is cut. It fails with the summary %q is not one safe line of at most 72 characters, @ was not rendered as (at), an empty summary has no default, the commit subject is %q, the branch is %q, the branch of generation 3 is %q, a long slug was not cut: %q.

TC-680, negative (TestFixPRWhatsAppText): The WhatsApp line for an opened pull request is exactly the expected text and carries no code or defect text; the complex notice is its own text. It fails with notifications %q, want exactly %q, the line carries a code or defect text, complex notifications %q.

TC-681, positive (TestFixPRPollerStates): The poller moves a record through ready, back to draft, merged (defect fixed) and closed unmerged (a new person-only blocked card, generation plus one), writes one event per change and none for an unchanged pull request, and never polls or re-plans a final record. It fails with the defect is %s, want fixing, an unchanged pull request must change nothing, ready: %s, %d events, defect %s, a toggle back to draft: %s, merged: %s, defect %s, events: %d, last %q, a merged pull request was polled again, status %+v, closed: %s, defect %s gen %d, the re-planned card: %+v, a closed record is final: nothing is planned twice.

TC-682, negative (TestFixPRPollerBackoff): A failing read backs off without a hot loop, bounded, and recovers; the read schedule is nothing before 5 minutes, then regular, hourly after a week and none after 30 days. It fails with hits %d status %+v, a hot loop: %d reads, want %d, the record was never retried, the back-off is not bounded, no recovery: %s %+v, age %v: %v %v, want %v %v, read before 5 minutes, no read after 5 minutes, after a week the poll is hourly, no hourly read, polled after 30 days.

TC-683, positive (TestFixPRPollerExcerptRetention): Excerpts older than 30 days are cleared and younger ones kept, with an event, once per UTC day. It fails with excerpts: 31 days %q, 29 days %q, the retention is silent: no event, the retention ran twice in one UTC day, the next day's retention did not run.

TC-684, positive (TestFixPRPollerWritesThroughArcade): A poller state change and its events are written to ArcadeDB together, and a cleared excerpt is persisted. It fails with the change was not written together: %d statements, the cleared excerpt was not persisted.

TC-685, positive (TestDefectRecordsAndAutoAtArePersisted): The ArcadeDB store writes a defect with its planned card in one batch, carries autoAt on the Task upsert, upserts the FixPR, writes a stored context once and the configuration on the Product record. It fails with ReportDefects: %+v %v, %d Defect upserts, want 1 (statements: %d), the planned triage card was not written with the record, the Task upsert does not carry autoAt, UpsertFixPR: %v, %d FixPR upserts, want 1, a stored context wrote %d Defect upserts, want 1, the configuration was not written on the Product record.

TC-686, positive (TestDefectRecordsBehaveTheSameInBothStores): The in-memory store and the ArcadeDB store give the same answer to the same defect operations. It fails with the stores disagree: memory %v, arcade %v.

TC-687, positive (deploy/check-stacks.sh): ok prod mounts the auto-fix write token file read-only, ok prod mounts the auto-fix admin list read-only, ok prod passes the auto-fix write token only as a file, never as an environment variable, ok prod passes the classic-token switch from the deploy shell, empty (refused) by default, ok prod never hard-codes the classic-token switch; negative: each prints FAIL with the same message when the compose file lacks the mount, passes GAOS_GITHUB_WRITE_TOKEN: as an environment variable, drops the GAOS_AUTOFIX_ALLOW_CLASSIC: "${GAOS_AUTOFIX_ALLOW_CLASSIC:-}" line, or hard-codes GAOS_AUTOFIX_ALLOW_CLASSIC: "1".

TC-688, negative (deploy/rebuild-restart.sh): ok the pull-request flow's credential files exist when all seven files are regular files; negative: FAIL deploy/stacks/prod.pr-github-write-token is missing (or is not a regular file) (or the same for prod.pr-autofix-admins, prod.pr-unit-results-auth (D-106), or any of the four older files), followed by the create it, mode 600 (empty is fine: that part stays off) hint, and the deploy exits 1.

TC-689, positive (TestTheAnswerSheetExplainsADisabledSend): the sheet carries hx-request='{"timeout":20000}' and, before any pick, the hint Send answer stays off until you pick one of the answers above.; it never says the recommendation for the QA tool, which recommends nothing (the QA sheet lacks %q, the QA tool recommends nothing; its sheet must not say it sends the recommendation). static/app.js must keep the sending text, the option-4 text, the htmx:timeout and htmx:sendError handlers and The server did not answer (app.js lacks %q: a disabled Send answer would not say why or how to recover). Found live: a request that never completed left the button off for good under a hint that still said Sends option 2..

TC-690, negative (TestStaticAssetsAreVersionedByTheirContent, amended in v0.85.1): page.html carries a hand-written ?v=; use {{asset "…"}}; the assets render as %q; want %q (all three carry the 12-digit fingerprint); the same files gave two fingerprints; a changed static file kept the fingerprint; browsers would keep the old one. The static files are cached for a week. A hand-kept version had stayed at 0.36.2 for sixteen releases, and after that docs-only releases left it behind twice (v0.84.2, v0.84.4), so the number is no longer kept by hand.

TC-691, positive (TestAutoFixLogsWhyAReadyCardIsNotDispatched): autofix: card-1 is ready but not dispatched: … is logged once for a repeated reason and again for a new one (logged %d lines for one repeated and one new reason, want 2: %q) and carries the gate's sentence (the gate's own sentence is missing: %q). Found live: a ready card waited twenty minutes with no trace.

TC-692, positive (TestContextClassPutsSourceBeforeSamplesAndDocuments): contextClass(%q) = %d, want %d: hand-written .go source is 0, _test.go 1, and generated files, .http samples, legacy resources and documents 2. Found live: samples and a markdown page ranked ahead of the resolver and spent the six-file budget.

TC-693, negative (TestARefusedDispatchDoesNotFreezeTheArcadeStore): a refused AutoDispatch did not return: the store is deadlocked on its own write lock (10 s); a refused AutoDispatch gave %v, want a rejection; a mutation after the refusal gave %v. Found live: a goroutine dump showed mutate → dispatch → refuseDispatch → persistBackground waiting on the lock mutate held; every later mutation, an inbox answer included, hung.

TC-694, negative (TestARefusedBoardMoveDoesNotFreezeTheArcadeStore): a refused board move did not return: the store is deadlocked on its own write lock; the refused move gave %v; a mutation after the refused move gave %v. The operator's move to Working took the same path.

TC-695, negative (TestDefectContextLeavesOutAFileTheEgressPassWouldRefuse): files = %+v; want only validate.go, the fixture holding a token left out; a token reached the slice of %s. Found live: a JWT in an unrelated source file made the egress pass refuse DEF-922's whole triage dispatch.

TC-696, positive (TestDefectContextOrdersFilesByTheOperationThatFoundThem): files = %v; want the first operation's hits in search order, then the second's. Found live: files were ordered by search position then alphabetically, and the resolver of the defect's own operation lost its place to files found for a later one.

TC-697, positive (TestDefectContextPrefersTheFileThatImplementsTheOperation): the test files fit together (%d bytes); they must compete; files = %v; want the implementing resolver, which only fits instead of the interface. Found live: the 44 KB resolver of editMedicationDispense lost the 64 KiB budget to a 33 KB interface file and a storage file, so the triager answered medium.

TC-698, positive (TestFixPRCIPathFilters): %s: risk=%v, want %v for eight cases: a paths filter with no changed file in it is not a risk; with one in it, it is; unknown files (nil) and a negated pattern stay a risk; paths-ignore covering every changed file is not a risk. Found live: his-backend's only secret-using workflow runs for one service's directory, the fix never touched it, and the fix was blocked autofix-ci-secrets.

TC-699, negative and positive (TestAProductIdIsNeverReusedAfterADelete): with p-1 removed from a floor of p-1..p-5, the next two products must be p-6 and p-7: new product id = %s, want %s: an id must be one past the highest in use, not the count plus one; new product id %s is already held by another product; and for ids of another shape, nextProductID = %s, want p-10 and nextProductID(empty) = %s, want p-1. Found live: after the five demo products were deleted from a database that still held p-6 and p-7, the fourth product created would have been given p-6 a second time.

dashboard — the Pull requests page (TC-700 … TC-711)

The page that lists every open pull request tied to a task (D-092, design docs/designs/gaos-pr-overview.md): review and QA-tool rows, the extended poller, the view. The repositories, products and tasks are invented.

TC-700, negative (TestPullRequestRowsAreOwnedAndKeepTheirKind): the row is %+v; want the first title and task kept; an unowned repository gave %v, want a rejection; a QA row with no automation repository gave %v, want a rejection; a review write for a repository only the QA tool uses gave %v; the kind became %q; branches %q -> %q; want the invalid head dropped.

TC-701, negative (TestAReviewEventDoesNotShadowAFixPR): an opened event wrote %d rows (%v), want 1; a repeated event wrote %d rows (%v), want the missing row back; a merge event wrote %d rows; an event for a fix pull request wrote %d review rows; a review row shadows a fix pull request.

TC-702, positive (TestReviewRowsAreBackfilledFromExistingCards): the back-fill wrote %d rows (%v), want 2; a second back-fill wrote %d rows, want none.

TC-703, negative (TestAQAPullRequestOfAnUnlistedRepoMakesNoRowAndNoCall): a pull request of an unlisted repository made %d QA rows; the refused row was tried %d times; once is the rule.

TC-704, negative (TestQAJobLinkIsKeptOnlyOnTheQAHost): %s: qaLinkOK(%q, %q) = %q, want %q for twelve cases (another host, no origin, an empty host, a different port, http, user info, a query, a fragment, a javascript url) and %s: parseGitHubPRURL(%q) ok=%v, want %v for seven.

TC-705, positive (TestQAPullRequestIsRecordedOnceOnTheFinalPoll): no QA row after the job ended; the row is %+v; the row was written %d times, want once; an adopted job's row is %+v (found %v); want it with no case and no link.

TC-706, positive (TestThePollerFillsRowsAndBackfillsTheBase): the record is %s with base %q; want draft and develop; the base back-fill emitted %d events, want none; the review row is %+v; the row is %s after a merge, want merged; an invalid base was stored: %q.

TC-707, negative (TestThePollerSkipsAnUnownedRepository): %d GitHub reads for a repository the product no longer follows; the row was read (%d); a row past 90 days was read: %s.

TC-708, negative (TestAReplacedFixPRNeverMovesTheDefect): (a) record %s, defect %s gen %d; want the record closed and the defect untouched; (b) a close while pending moved the defect: …; (c) defect %s override %q, card %s %q; want fixed, cleared, blocked autofix-superseded; (d) defect %s gen %d override %q; want triaged, generation 2, override cleared. Added with the design's round-1 Blocker: closing the old pull request after a retarget must not strand the defect.

TC-709, positive (TestPullRequestsPersistThroughArcade): %d PullRequest upserts, want 1; the PullRequest upsert does not carry %q; an unchanged row wrote %d statements; the poller's write made %d upserts, want 1; the prune made %d deletes, want 1; the FixPR upsert does not carry %q (baseName, retargetedFrom, retargetedTo); the Defect upsert does not carry baseOverride.

TC-710, positive (TestPRViewRowsAndFilters): the view answered %d with Cache-Control %q; the view lacks %q; a merged pull request is listed under Open; the Merged tab does not show exactly the merged pull requests; the QA filter does not narrow the list to QA pull requests; an unknown product must be ignored, not narrow the list to nothing; the poll is not the list alone, out of band; the drawer lacks %q; the empty states and the list is not one page of %d with its count announced: %q, not followed since, no longer followed.

TC-711, negative (TestPRViewEscapesGitHubText): %s: the page carries %q for a script tag, an image tag, a javascript: link, a stored foreign URL, markup in a branch name, bidirectional and zero-width characters and a secret-shaped title; %s: the fix pull request's link is not built from its owner, repository and number; the hostile title is neither escaped nor the secret withheld.

dashboard — change the base branch (TC-712 … TC-720)

The retarget of an open fix pull request (D-092, design docs/designs/gaos-pr-overview.md §6): a new generation of the same fix against another base. The repositories, products and tasks are invented.

TC-712, negative (TestTheDrawerExplainsEachDisabledRetarget): %s: the hint is %q; want it to say %q; %s: the button disabled = %v, want %v; %s: the disabled control is not tied to its hint; %s: the form has no time limit; %s: the allowed base is not offered; %s: the current base is offered; %s: opening the drawer made %d GitHub call(s); a review pull request offers a retarget.

TC-713, negative (TestRetargetRefusals): %s: answered %d, want %d for 20 cases, %s: the answer does not say %q, %s: a refusal changed something (tasks %d -> %d, generation %d -> %d), a cross-site post answered %d and the defect is at generation %d.

TC-714, positive (TestRetargetPlansOneCardOnTheNextGeneration): the defect is generation %d, override %q, %s, context built %v; want 2, staging, triaged, reset; the verdict was lost; the next-generation fix card is %+v; %d TaskPlanned events name the retarget, want exactly one; %d DefectStateChanged events name the retarget, want exactly one; the old record carries RetargetedTo %q before the new pull request exists; %d branch checks, want one (at post time); a repeated post answered %d, want 409.

TC-715, negative (TestRetargetIsRecheckedUnderTheLock): %d succeeded and %d conflicted; want one and seven; the defect is at generation %d, want 2: one retarget only.

TC-716, positive (TestTheRetargetFixerUsesTheNewBase): the new record is %+v; want base staging, retargeted from the old, branch gaos/fix-def-101-2, draft; the new base's head was never read; the pull request was not opened against staging; the next-generation branch was not created; the last comment is %q; want the superseded notice saying GAOS closed it (D-108); the notice is %v; want it to say retarget; closing the old pull request moved the defect to %s generation %d.

TC-717, negative (TestTheRetargetPacketKeepsThePreviousFixAsData): the previous fix is not under an untrusted-data heading before the instruction; the section carries %q; the summary was not cut: %d characters; the instruction is not outside the data section; a first fix card carries a previous-fix section.

TC-718, negative (TestRetargetCIChecksTheNewBase): the card is %s %q; want BLOCKED autofix-ci-secrets; %d pull requests were created; the blocked retarget must add none.

TC-719, negative (TestRetargetSearchFailureBlocksTheFixCard): a failed search gave no error; the fix card is %s %q; want BLOCKED autofix-search-failed; the triage card changed.

TC-720, negative (TestARevokedRetargetBaseOpensNothing): a revoked base still opened %d pull request(s); the loop dispatched %d card(s) for a revoked base; the card is %s %q; want BLOCKED autofix-base-not-allowed; the override %q survived the defect being closed; the override %q survived a regression.

dashboard — the static scripts parse (TC-722)

TC-722, negative and positive (TestStaticScriptsHaveBalancedBrackets): for each of static/app.js, static/board.js and static/live.js, %s does not pair its brackets (%s): the browser refuses the whole file, and for board.js that is a silent fall back to the server board; the guard is first turned on itself, the bracket guard accepted a function with no closing brace: it would not have caught the board.js bug and the bracket guard refused valid JavaScript %q: %s; and checked %d scripts under static/, want at least app.js, board.js and live.js. It is a guard, not a parser — it skips comments, strings, template literals and regular expressions and counts brackets, because this repository has no JavaScript runtime. Found by reading: a function in board.js lost its closing brace in v0.44.0, the module stopped parsing, and app.js’s import().catch kept the server-rendered board on screen without a word for ten releases.

dashboard — real URLs for the back office (TC-723 … TC-734)

The back office's page routes and the address header (D-094, design docs/designs/urls-and-board.md §3): a product's slug, the twelve page routes, the gate's signed-out page, sign-in on a deep URL, HX-Push-Url and HX-Replace-Url, the one door to the sheet, links that carry a page address, and the browser's history. Each case is one func Test… in dashboard/urls_test.go, except TC-733, which is a check in a deploy script. TC-734 runs only against ArcadeDB.

TC-723, negative and positive (TestASlugIsAssignedOnceAndIsUnique): fixture product %s has the slug %q, which is not a valid slug; products %s and %s share the slug %q; two products named alike have the slugs %q and %q, want route-planner and route-planner-2; a name with nothing a URL can carry has the slug %q, want the product's id %s; a product named "P 1" has the slug %q; it must not take the id of product p-1; after the back-fill %s has the slug %q, want %q; the back-fill is not deterministic: %s got %q, then %q; a second back-fill changed %d product(s); it must leave valid slugs alone; and for the mutation, AssignSlug left the slug %q, %d new event(s), and a result that does not name the product's record; want laundry-membership, one RecordUpdated, the record.

TC-724, negative and positive (TestTheProductIdRedirectsToTheSlug): GET %s (prefix %q) answered %d with Location %q, want 302 to %q: the id form redirects to the slug, and nothing of the query it does not know rides along; negative: GET /p/p-1/nope answered %d with Location %q, want 404 and no redirect.

TC-725, positive (TestADeepURLRendersThePage): GET %s answered %d and a body that does not start a document; want 200 and the whole page; GET %s sends Cache-Control %q, want no-store; GET %s does not carry the title %q; GET %s: the back-office pane is %q, want it to carry %s; there are %d page patterns, want twelve: ten views, a product section and the redirect; GET /inbox?product=p-1 does not render the inbox narrowed to p-1.

TC-726, negative (TestASignedOutDeepURLShowsOnlyTheLogin): a signed-out deep URL answered %d (existing product) and %d (missing product), want 401 for both (BR-55); the signed-out page differs between an existing product and a missing one: it says which products exist; the signed-out page of a deep URL is not the signed-out home page; the signed-out page names the product; an htmx request to a deep URL signed out answered %d without the sign-in sheet, want 401 with it.

TC-727, negative and positive (TestSignInOnADeepURLRefreshesInPlace): signing in on a deep URL answered %d, HX-Refresh %q, session cookie set: %v; want 204, true, set; signing in on a deep URL wrote an address into a response header; the reload is the browser's own URL; signing in %s answered %d, HX-Refresh %q; want 200, no refresh, and the back-office sheet; a wrong password on a deep URL answered %d with HX-Refresh %q; it must be refused.

TC-728, negative and positive (TestNavigationPushesReplacesOrLeavesTheAddress): thirteen cases, each with and without the /app prefix, print prefix %q, %s: %s %s from %s set HX-Push-Url %q and HX-Replace-Url %q, want %q and %q; then prefix %q: a background refresh set HX-Push-Url %q and HX-Replace-Url %q; it must set neither; a request that is not htmx's was given HX-Push-Url %q; the response to %s does not start with a non-empty <title>; it starts %q; the Board tab's response does not carry its title first; GET %s sends Cache-Control %q, want no-store.

TC-729, negative (TestOnlyTheAllowedFunctionsCallBuildBO): reads the package's source: %s: %s calls buildBO directly; a handler that renders the sheet must call sheet(), which sets the address, and the allowed list names %v, which no longer call buildBO; shorten the list.

TC-730, negative (TestEveryHtmxLinkHasAPageHref): on %s the link %s has hx-get and no href; a new tab has nowhere to go; on %s a link's href is %q, a fragment route or an absolute path; it must be the page address of what hx-get loads; found %d <a hx-get> links across the views; the navigation should be made of them; the product menu is not made of links that carry the page address and the fragment address.

TC-731, negative (TestAnUnknownProductOrSectionIsNotFound): GET %s answered %d; want 404, the whole page with the product list, and the toast %q; a path with no route answered %d, want 404: there is no catch-all.

TC-732, negative (TestTheBrowserKeepsNoHistoryCache): templates/page.html has %d htmx-config elements, want exactly one: htmx reads only the first; the htmx-config element lacks %s: without it htmx keeps back-office HTML in localStorage, or Back shows a stale snapshot.

TC-733, negative and positive (deploy/rebuild-restart.sh, under == a deep page keeps the base and is refused signed out ==): ok /app/p/x/board -> 401 with <base href="/app/">; negative: FAIL /app/p/x/board -> $DEEP_CODE with '$DEEP_BASE', want 401 with '<base href="/app/">', where the two variables are the status and the base element the tunnel answered with.

TC-734, negative and positive (TestTheSlugBackfillIsWrittenOnce, in dashboard/urls_test.go; skips without GAOS_ARCADE_TEST_URL): after the boot the slugs are p-1 %q, p-2 %q, p-3 %q and %s %q; want laundry-membership, invoice-engine, ledger-rewrite (kept: the lower id) and ledger-rewrite-2; the back-fill wrote %d event(s), %d of them "slug assigned"; want three RecordUpdated, one per product it changed (BR-02); after another boot %s has the slug %q, want %q: the back-fill did not reach the graph; a boot with nothing to back-fill wrote %d event(s); it must write none.

dashboard — the Board, a page at a time (TC-735 … TC-750)

The paged board (D-095, design docs/designs/urls-and-board.md §4 and §5): thirty cards a column until asked for more, the filter bar, the table, the Board's own route that answers with the columns that changed, the client board's paged document, and what a product tab no longer loads. Each case is one func Test… in dashboard/board_page_test.go, over a synthetic product of several hundred to three thousand cards. The five benchmarks in dashboard/board_bench_test.go are measurements and have no row.

TC-735, negative and positive (TestBoardPageCapsEachColumnAndCountsTheRest): the page has %d columns, All %d and Matched %d; want %d columns and %d for both, unfiltered; column %s: Matched %d, Shown %d, %d card(s); want Matched %d (the column's full count) and %d shown; the default page holds %d cards; it must hold at most %d; shown=%s (%s): Done shows %d card(s), want %d; more=done at 290 gives %d, want the cap %d; a full rev of %d columns was read as %d; it must be accepted whole; a rev with a malformed hash kept %d pair(s), want only the well-formed one; BoardPage of an unknown product: %v, want ErrNotFound.

TC-736, negative (TestBoardPageDeeperWindowsContainShallowerOnes): Done at depth 60 does not start with the 30 cards it shows at depth 30: "Show more" would reshuffle the column; deepening Done changed another column; card %s is in Done twice.

TC-737, negative and positive (TestBoardFiltersNarrowCardsAndCounts): filter %s (%s): Matched %d, the columns add up to %d; want %d, a real narrowing of %d; searching an id found %d card(s) and hands back %q; want one card and the text for the search box; a q= in the URL narrowed the board to %d of %d: the search text is read from its header only; the state header was read as role %q, story %q; want qa and US-01; with role in the URL and in the header the page has role %q, story %q; the URL wins, the rest comes from the header; an empty role= and view= in the URL left role %q and view %q; an empty value in the URL clears what the header says; a form body was read as the filter %+v; the Board's parameters come from the URL and its header only; values the product does not offer left the query %+v and %d of %d cards; all of them must be cleared.

TC-738, negative and positive (TestDoneIsNewestFirst): Done opens on %q; want bt-00001, the card that changed last; Done is not newest first: %s (last change %d) is above %s (%d); labelling a card reordered Done (%s moved to where %s was); only a state change does; column %s is not in rank order: %s (rank %d) is above %s (rank %d).

TC-739, negative (TestBoardPageDecoratesOnlyThePage): with %d tasks, card %s was returned without its timing; with %d tasks the page returned %d card(s) and computed %d timing(s); it must compute one per card returned and none for the rest; with %d tasks the table returned %d row(s) and computed %d timing(s); want at most %d rows and one timing each.

TC-740, negative and positive (TestBoardCardIsTheSameCardTheBoardHolds): BoardCard(%s) is not the card Board holds: got %+v want %+v; BoardCard of an unknown card: %v, want ErrNotFound; BoardCard of another product's card: %v, want ErrNotFound.

TC-741, negative and positive (TestTheBoardQueryRoundTrips): parsing %q gives %+v, want %+v; parsing %q produced a window %+v; the view carries none; the default view encodes to %q, want an empty string; sort=status parsed to %+v; it is the default and is written as nothing; the encoded view %q carries %q; the window and the search text are never written into an address; a role of %d bytes was kept; a value longer than %d is dropped.

TC-742, negative and positive (TestTheBoardTabRendersNoMoreThanItsLimit): the Board tab has %d columns, want all %d; the Board tab of a 500-card product renders %d cards; it must render at most %d; Done shows %s card(s); want 30, the header "30 of 450" and a "Show more" that asks for more=done; the Board tab still renders the side panel, or is not the wide layout; the Stories tab lost the side panel; only the Board gives it up; a product with no task renders %d column(s); want all nine, the "No tasks yet." line and no client-board host.

TC-743, negative and positive (TestShowMoreDeepensOneColumn): more=done answered with %d column(s), Done at %s; want Done alone, 60 cards, out of band; the deepened column does not say "60 of 450"; at the cap Done shows %s card(s); want 300, no "Show more", and the line that says it is the first 300 of 450.

TC-744, negative and positive (TestBoardLiveSendsOnlyTheColumnsThatChanged): with what the browser already shows, board/live sent %d column(s); it must send none; a running card's clock (AsOf, the seconds, the lead-time text) changed its column's hash: every column with an open card would be re-sent on every hint; a finished card's lead time is not in its column's hash; without a rev, board/live sent %d column(s), want all %d; after one move board/live sent %d column(s) (%v); want exactly Backlog and Canceled; the live response lacks the Timeline count or the count line, out of band; turning "Hide empty columns" on sent no column; an empty column's hash must change with it; a label added to one card re-sent %d column(s), want its column alone; with surface=sisflow board/live sent %d column(s); want none, and the count line with its "Show more".

TC-745, negative (TestBoardLiveNeverPushesTheAddress): %s: board/live set HX-Push-Url %q and HX-Replace-Url %q; want no push and replace %q; %s: board/live sends Cache-Control %q, want no-store; the address after a request with a window and a search is %q; want only the view, /p/%s/board?role=qa; board/live of an unknown product answered %d, want 404.

TC-746, negative and positive (TestABoardMutationKeepsTheView): a move answered %d with %d column(s) (%v); want 200 and exactly Backlog and Canceled; a move was answered with the whole sheet; the Board answers a move with its changed columns; the move's answer shows a card of another role, or carries no toast: the filter the browser holds must apply, and the chrome must ride along; a move set an address header (%q, %q); a mutation never rewrites the address; a move made from page 2 of the table was not answered with page 2 of the table (D-097); the sheet after a label does not keep the role filter, or took the body's label for the label filter; the sheet after a label does not show the search text the board is narrowed by; the Board link, sent with a state that says view=table, did not show the board: an empty view= in the URL must win; "Clear filters" left the role filter on, left the table, or kept page 2: it clears the filters, keeps the view, and starts on page 1.

TC-747, negative and positive (TestTheTableSortsAndPages, renamed from TestTheTableSortsAndCaps by D-097): the table shows %d row(s); want %d, "Showing 1–10 of N" and a pager; the table view also renders a board; sort=id is not ascending by id, or its header does not say so; sort=id&dir=desc is not descending; page 2 of sort=id shows %d row(s) starting %v; want %d rows after page 1's last; the state header's page=2 did not open page 2; the ID header is not a link with a page address in href, its own sort in hx-get, and an empty page=.

TC-748, negative (TestTheSearchTextNeverTravelsInAURL): the filter form has a control named q; htmx and the browser would both write it into a URL; the search box is %q; it must be in the form and have no name, so that nothing can serialise it; the filter form can be submitted natively; Enter in the search box must not navigate; GET %s narrowed the board (column %s); the search text is read from its header only; the search header did not narrow the board to one card; %s names a q parameter; the search text has no parameter; static/live.js does not set the X-Board-Search header.

TC-749, negative and positive (TestTheBoardJSONPagesOnlyWhenAsked): the unpaged document has %d card(s) (%d under a filter) and %d lane(s); want all %d both times, with their lanes; the unpaged document gained a field (counts, story or updated); it must not change; a card of the paged document has the lane %q; it has no lanes; the paged document has %d Done card(s), counts.done %d, matched %d, all %d; want %d, 360, and both totals %d; the paged document must carry rows: [], workflows: [] and no row on any card; with role=qa and shown=done:60 in %s: %d Done card(s), matched %d of %d; want 60 and a real narrowing; the search header matched %d card(s) in the paged document, want 1.

TC-750, negative and positive (TestTheBoardTabSkipsTheEventCopyAndTheDiagrams): the %s tab read the whole event stream %d time(s) and holds %d timeline event(s); only the Timeline tab loads it; the %s tab's Timeline count is %d; the number is shown on every tab; the %s tab drew the sequence diagram %s; it is drawn for the Diagrams tab only; the Timeline tab read the stream %d time(s) and holds %d of %d event(s) (pager total %d); want one read, one page of them, and the pager counting all; the Board tab's menu does not carry the Timeline count.

dashboard — every list a page at a time (TC-753 … TC-762)

The pager (D-097, design docs/designs/board-and-list-ux.md): data tables show ten rows a page, the tenant-wide list pages five items; the page is in the address, read through one parser and written back only after it is clamped. The Board gains New task and a panel on how the AI picks up a task; the wizard opened from a product is locked to it; Sync record to graph is on the record tabs only. Each case is one func Test… in dashboard/.

TC-753, negative and positive (TestPaginateClampsAndWindows, pager_test.go): pageParam(%q) = %d, want %d; an empty list: %+v, want one page, From/To 0/0 and no Prev/Next; page %d of 25 items: page %d, %d–%d; want page %d, %d–%d; sliceFor page 2 of 12 = %v, want [11 12]; %d pages on page %d: window %q, want %q; Prev/Next: first %+v / %+v, last %+v / %+v; want no Prev on page 1, no Next on the last, links through at.

TC-754, negative and positive (TestTheBoardTablePagesByTen, board_page_test.go): page 1 shows %d row(s); want 10, "Showing 1–10 of 23" and page 1 current; page 3 shows %d row(s); want 3 and "Showing 21–23 of 23"; page 9 of 3 shows %d row(s); want it clamped to page 3; page 9 of 3 wrote the address %q; want the clamped page=3; the pager on page 1 of 3 has %d link(s); want the numbers and Next; pager link href=%q hx-get=%q; want a page address and the Board's own route; pager link %q has no hx-sync with the filter bar; a sort link does not carry an empty page=.

TC-755, negative (TestTheBoardPageClampsAfterAMove, board_page_test.go): a move with page=2 over 10 rows answered %d with %d row(s); want page 1 (data-page="0") with all 10; one page of rows renders a pager; it should only say how many. The other half — a filter or a search the operator changes drops the page in static/live.js, a refresh keeps it — runs in the browser and is checked by hand: on page 2 of the table, change the Role filter (page 1), type a search (page 1), go back to page 2 and move a card from a second tab (still page 2).

TC-756, negative and positive (TestTheListPagesPageByFive, urls_test.go): /stories page 1: %d card(s) of %d; the seed must hold more than 5 stories, and a page shows 5; /stories?page=99 shows %d card(s); want the last page's %d; /stories?page=99 wrote the address %q; want the clamped page %d; a product heading is shown with no story of it on the page; pager link href=%q hx-get=%q; want a page address and a fragment; /stories?page=2&q=secret wrote the address %q; want stories?page=2 and nothing else; /agents?page=3 shows %d agent(s); want %d of %d.

TC-757, negative and positive (TestTheArchivePagesEachTableAndListsWhatPruneTakes, conversation_test.go): Archived page 1 shows %d row(s), want 5; Pruned ppage=2 of 6 shows %d row(s), want 1; the prune form carries %d card(s); want all 7, "Prune 7 conversations" and "Prune all archived…"; the prune confirmation does not name T-%03d, which it would prune; the Archived pager's page 2 does not keep the Pruned table's ppage=2; with 101 archived the form carries %d card(s); want the %d oldest (T-001…T-100, not the newest T-000), and the button saying so.

TC-758, negative and positive (TestThePRAndAutoFixTablesPageByTen, prview_test.go): %s page 1: %d row(s) of %d; want %d of 11–20, and "Showing 1–10 of N"; %s page 2: %d row(s), want %d; %s page 2: the row link %q does not keep page=2; %s page 2: the poll does not keep page=2; %s page 2: a state tab carries the page; a change of state starts on page 1; %s: the drawer opened from page 2 does not close back to page 2; %s ?page=%s: %d row(s), want page 1; %s ?page=99: the row link %q does not carry the clamped page=2.

TC-759, negative and positive (TestTheWizardLocksTheProduct, main_test.go): the wizard opened locked answered %d; want no picker, a cw-locked block, "New tasks for" and the lock carried; step 2 lost the lock; going back to step 1 shows the picker again; the lock must round-trip; step 3 of the locked wizard does not submit with "Create tasks"; %s answered %d without the picker; an unlocked or unknown product shows every product.

TC-760, positive (TestTheBoardExplainsTheRunnerAndOffersNewTask, board_page_test.go): GAOS_RUNNER=%s: the Board has no help panel; GAOS_RUNNER=%s, adapter %v: the help panel does not say %q; the Board has no New task button opening the wizard locked to its product.

TC-761, negative and positive (TestSyncRecordShowsOnlyOnRecordTabs, main_test.go): tab %s has no title row; tab %s: Sync record to graph shown = %v, want %v; the Board's title row repeats Create workflow beside New task; Create workflow on a product tab does not open the wizard locked to the product.

TC-762, positive (TestTheTimelineAndQAPanesPageByTen, main_test.go): Timeline page 1: %d row(s) of %d; want 10 of at least 14; Timeline page %d: %d row(s), want %d; Timeline page %d wrote the address %q; want p/%s/timeline?page=%d; QaImport: %v, rejected %+v; QA by epic: %d then %d row(s); want 10 then 4, with the heading counting all 14.

dashboard — the Integrations view’s chips and popovers (TC-763 … TC-766)

The Integrations view (D-098, design docs/designs/integrations-status-chips.md): each integration’s state is a green, amber or red chip derived by one pure function, integChips, from fields the page already had; each is marked Mandatory or Optional; each has an info popover; the reason behind a red chip stays in a State row.

TC-763, negative and positive (TestIntegChipsFollowTheState, integrations_test.go): %s: the chip is %s · %s, want %s · %s; %s: the chip took the tone %q, which this state must never show; %s: the label %q is not in the closed set. The table covers every rule, including WhatsApp “enabled, over http … (unencrypted)” and “linked to no product” (never green), a give-up older than 24 hours (green again), the Machine API without the QA token or QA products (amber), and the pull-request flow with GitHub off (red), with the reader off or a broken part (amber), and with staging and WhatsApp merely not configured (green).

TC-764, negative and positive (TestTheIntegrationsViewColoursEveryHeading, integrations_test.go): the integrations view has no block headed %q; the %s heading carries %d status chips, want 1; the pull-request block has no %s row; the pull-request %s row carries %d status chips, want 1; the integrations view does not show the state cell %q; the Brain Town heading does not show %q for an unusable feed; a status chip reads %q, which is not in the closed set of labels; a heading still carries its state after a middle dot: %s.

TC-765, negative and positive (TestTheIntegrationsViewMarksMandatoryIntegrations, integrations_test.go): the %s heading is not marked Mandatory (and only Mandatory); the %s heading is not marked Optional (and only Optional); the %s list carries a requirement chip; only integrations do.

TC-766, negative and positive (TestEveryIntegrationInfoButtonOpensItsPopover, integrations_test.go): the integrations view has %d info buttons, want 6; the popover id %q is used by two buttons; the button for %q points to %d popovers, want exactly 1; the popover %q does not hold the three headings in order; the Machine API popover does not name the staging callback's own credential.

dashboard — a merge finishes its review, and the reader’s cursor (TC-767 … TC-772)

Two defects fixed in v0.60.1 (design docs/designs/gaos-external-tasks-and-pr-bundles.md §3, issue #56): a review card that waited in Review after its pull request merged, and moot moves lost when the cap refused a merge’s unit-test card; and a Brain Town reader cursor that was written on hand-over to a read-only file and so never saved. Each case is one func Test… in dashboard/mergefinish_test.go.

TC-767, negative and positive (TestMergedPRFinishesItsReviewCard): a review in REVIEW whose pull request merged is %s, want DONE; a RUNNING review must be left to its run, got %s; a secret-held review must never be finished by a merge, got %s; a PENDING e2e card must still be canceled by the merge, got %+v.

TC-768, negative and positive (TestMergeMovesSurviveTheCap): a capped merge with moves to commit answered %v, want no error; a capped merge must report Capped and plan nothing, got capped=%v planned=%v; the moot moves must ride the Result so the store commits them; the review card is %s after a capped merge, want DONE; a capped merge with nothing to move answered %v, want ErrPRSkipped.

TC-769, negative and positive (TestFinishMergedReviewsSweep): a review that reached REVIEW after its pull request merged is %s after a poll, want DONE; the sweep finished a secret-held review (%s).

TC-770, negative and positive (TestConsumerCursorSingleWriter): the cursor reached %d before seq 10 was committed; after the event and the marker the cursor is %d, want 11; the cursor moved back to %d; after a retry Drain handled %v, want only seq 12 (13 belongs to the ended session); a retried event moved the cursor to %d; a full channel must end the session (a new generation), not drop the frame silently; a full channel must not discard what is already queued.

TC-771, negative and positive (TestFlowOutcomeClassesAndRetryBound): a lookup failing with %v answered %v, want %v; a failed products read answered %v, want flowRetry; the event was tried %d times, want %d; after the retry bound the cursor is %d, want 40 (skipped); giving up must be logged as `brain town reader: gave up seq <n>`; the Integrations row must show the skipped seq, got %q; a skipped event must leave no retry count behind.

TC-772, positive (TestArcadeMergeMovesPersist): the capped merge answered capped=%v err=%v; a capped merge wrote %d events, want the finish (two hops at least) and the cancel.

dashboard and pustaka — the external-tasks API (TC-773 … TC-786)

The external-tasks API (D-099, design docs/designs/gaos-external-tasks-and-pr-bundles.md §4–§6): the tasks capability of a clients-file line, the four routes under /v1/products/{id}/tasks, adoption of a Brain Town card, the per-client caps, the unattended start under manual (BR-56 amended) and the tutorial with its download. Each case is one func Test… in dashboard/api_tasks_test.go, except TC-784, in pustaka/tutorial_pair_test.go.

TC-773, negative and positive (TestClientsFileCapabilities): a line without the sixth field must mean inbox only, got %+v; a tasks line must hold tasks only, got %+v; an unknown capability must skip the line, not be ignored; a tasks-only client may share a product with the QA token (it can take no inbox id); a client holding inbox must still be dropped on a product the QA token reaches; the QA tools' client must hold inbox and never tasks, got %+v; a clients file readable by group or others must be refused, got %d clients.

TC-774, negative and positive (TestTaskRoutesCapabilityMatrix): %s answered %d, want %d; the admin token reading an unknown task answered %d, want 404 (not refused); the QA token must still reach the inbox routes; a tasks client on its own product answered %d, want 201.

TC-775, positive (TestPlanAPICardMatchesBrainTown): %s: planned %v, err %v; %s: the API card %+v is not Brain Town's %+v; %s: an API card emitted %s, a pull-request event that did not happen; %s: an API card must write the Pull requests page row; %s: the card does not record who asked: %+v; the automation run card is %+v; a QA-tool card must never be marked for the unattended start.

TC-776, negative and positive (TestAPICardAdoption): a Brain Town card must be adopted, got created=%v err=%v; adoption must change no owner, no dispatch flag and no label: %+v; the dispatch answer must come from the card as it stands, got %q; an adopter must be able to read the card: %v; one ref per client, got %v; adoption %d refused: %v; the ninth client must be refused too-many-refs, got %v; the owner's ref was evicted or moved: %+v.

TC-777, negative and positive (TestAPICardIdempotency): the first request answered %d %s; the same request again answered %d %s, want 200 created:false; a replay called GitHub %d more time(s); the lookup comes first; the same externalId for another request answered %d %s, want 409 externalId-reused; the fixture already has #7; a card planned during prepare must be adopted, got created=%v err=%v refs=%v.

TC-778, negative (TestAPICardRefusals): %s answered %d %s, want %d %s.

TC-779, negative and positive (TestAPICapsKeepThePRFlow): a client at GAOS_API_MAX_OPEN must be refused cap, got %v; a client at its cap made Brain Town skip: planned %v, err %v; a second open run must be refused run-in-flight, got %v; a canceled card must count toward GAOS_API_DAILY, got %v.

TC-780, negative and positive (TestAPIGetAndCancelScope): the run answered %d %s; another client reading the card answered %d, want 404; plat-2 canceling plat's card answered %d, want 404 (the name is compared whole); the owner reading by externalId answered %d; a secret hold must read held, got %v; a QA job id must not leave GAOS, got %q; the owner canceling its run answered %d %s; canceling a natural-key card answered %d %s, want 409 not-cancelable.

TC-781, positive (TestAPIDispatchAnswer): runner %s, autorun %q, labels %v, autoDispatch %v: dispatch is %q, want %q.

TC-782, negative and positive (TestAPIAutoDispatchClaim): a product not listed in GAOS_API_AUTORUN_PRODUCTS must wait for an operator; a listed product's autoDispatch card must be claimed, got %v; under GAOS_RUNNER=on the unattended pass must do nothing: the scheduler dispatches; a defect card's stamp must not count toward GAOS_API_AUTORUN_DAILY, got %v; a second unattended start in one UTC day must be refused at GAOS_API_AUTORUN_DAILY=1; a card an operator relabelled manual must not start unattended; a card the egress pass refused must not be retried by the pass; APIAutoDispatch must go through dispatch's gates, got %v.

TC-783, positive (TestQARunKeys): a specific run must run its code, not every case, got %q; ALL must mean every automated case, got %q; prKeyParts read %q as a pull request; a run's notice must go to the group.

TC-784, negative (TestExternalTasksTutorialPair): %s cannot be read: %v; %s does not name the route %q; %s does not name the field %q; %s names a host other than the placeholders: %q; %s names a product id other than p-2: %q; %s carries a token literal; %s names a container secret path.

TC-785, positive (TestTestPlannerRoleIsSeated): the test-planner card was not planned; the test-planner role is missing from roles; a test-planner card was not readied: no agent holds the role? decision %+v.

TC-786, positive (TestArcadeTaskAPIFieldsRoundTrip): the Task upsert does not carry %q.

dashboard — pull-request bundles and the test planner (TC-787 … TC-796)

Pull-request bundles (D-100, design docs/designs/gaos-external-tasks-and-pr-bundles.md §7): the team’s PR template read for a listed product, the key rules that group a product’s rows, the one test-planner card of a merged bundle and its proposals to the QA tool, the missing-code alert, and NotifyPR. Each case is one func Test… in dashboard/bundles_test.go; the fixtures are dashboard/testdata/prtemplate/.

TC-787, negative and positive (TestParsePRTemplateGolden): full.md: the source and code were read as %+v; full.md: links %v, want %v (https://todo and the hints dropped); full.md: the notes are %q; a pull request's own link must be dropped, got %v; empty-code.md: a template left as shipped must carry no value, got %+v; self-initiated.md: [X] Inisiasi sendiri must count as another source, got %+v; no-template.md: got %+v, want not present and the QA-case line read; secret-notes.md: a code with a path in it must be refused, got %q; secret-notes.md: notes that carry a credential must be held, got %q; many-links.md: %d links, want the cap of %d; many-links.md: %s twice.

TC-788, negative and positive (TestApplyBundleLinks): a row with links and no code takes its own key, got %q; a linked row with no code adopts the linker's key, got %q; bundledAt is stamped when the key changes, got %d; %s: a code supersedes the pr: key before planning, got %q; a late pull request must join through the linker's stored links, got %q; a planned bundle is final, got %q; a row nothing links joins no bundle, got %q.

TC-789, negative and positive (TestBundleCompleteness): every member merged or closed, one merged, after the grace: complete; a bundle with nothing merged is never complete; an open member keeps the bundle waiting; a member that joined a minute ago keeps the bundle in its grace; planner %d: created %v err %v; a third open test planner must wait (two per product); a bundle is planned once; the prune removed a member of a bundle not yet planned.

TC-790, negative and positive (TestBundleScope): a product not in GAOS_PR_TEMPLATE_PRODUCTS got a bundle %q; GAOS read a pull request it does not follow: %s; an unfollowed link must be listed as a ref only; a stranger's linked pull request must never become a row; a linked pull request in a followed repository becomes a member, got %q.

TC-791, negative and positive (TestMissingTaskCodeAlertOnce): alert (a) fired inside its 10-minute grace; alert (a): %d comment(s) %v and %d line(s), want one of each, once; the row must record the alert, got %q; the WhatsApp line names the repository: %s; another source ticked, or (b) inside its 60 minutes, must not alert: %v; alert (b) after 60 minutes: %v; a row polled before the release was marked seen or alerted: %v; a bundle member or a pre-release row was alerted: %v.

TC-851, negative and positive (TestThePollerReadsTheTemplateOfARowItNeverPolled, fixprpoll_test.go): a row the poll reads first was not marked seen with its code: seen %v, code %q, checked %d; a row polled before the release was marked seen; a capped row with no code was not alerted after the grace: seen %v, alerted %q; want exactly one missing-code comment (the pre-release row is never alerted), got %v. It drives the real poll (a fake GitHub that serves the PR body), not ApplyBundleLinks alone: TC-791 called the store directly and so missed the order bug of v0.66.2.

TC-852, negative (TestArcadeDropsIdleConnectionsBeforeTheServer, arcade_test.go): the %s keeps idle connections for %v; want a positive timeout under ArcadeDB's 30 seconds; the two Arcade clients must share one connection pool. ArcadeDB closes a keep-alive connection after about 30 seconds idle (measured on prod); Go’s default pool keeps one for 90, and a POST on a just-closed connection failed with EOF and was never retried (v0.66.3 and earlier).

TC-792, negative and positive (TestBundleContextBuiltOutsideTheLock): an empty cache must give the context-unavailable part, got %+v; the claim must refuse a test-planner card whose context is not built; the claim must admit the card once its context is cached; the packet hook must serve the cached context; only a test-planner card carries the bundle part; the untrusted parts must sit between a fresh nonce's DATA fences.

TC-793, negative and positive (TestTestPlannerContract): the contract must carry the DATA clause; the plan was read as %v, %v; an unknown epic, a bad enum and an invented case code must each be dropped; kept %d, want 2; more than 20 cases must be refused; a reply with no gaos-test-plan block must be refused; contractsFor must give a test-planner card the test-plan contract.

TC-794, negative and positive (TestTestPlannerAfterRun): a plan the QA tool took must end DONE with the counts, got %s %q; the proposal must carry the bundle's code and its merged pull requests: %+v; a retry created %d new draft code(s); positional codes must be updated; a QA-tool error must fail the card and send one bundle:failure line, got %s %v.

TC-795, positive (TestNotifyPRRecipients): a pr: line must reach the author's contact and name only the number: %v; the line names the repository: %s; a bundle: line must go to the group: %v; NotifyPR must record a ContactNotified.

TC-796, positive (TestArcadeBundleFieldsRoundTrip): the PullRequest upsert does not carry %q.

dashboard — the manual-review notices (TC-797 … TC-799)

The notices for the manual-review labels (D-101, design docs/designs/gaos-external-tasks-and-pr-bundles.md §8): an operator’s relabel, a held review, a high review, a client’s manual review, and the contact kinds. Each case is one func Test… in dashboard/notices_test.go.

TC-797, negative and positive (TestManualLabelSendsOneNotice): the label route answered %d; an operator's manual label must send one line to the author's contact, got %v; the same label again, or a return to auto, must send nothing; %d lines; needs-manual set by an operator must send one line, got %d; the manual review answered %d %s; an API manual review must reach the group, naming the client, got %v; adopting a card must send no notice, got %d lines.

TC-798, positive (TestHeldAndHighReviewsSendOneLine): a held review must send one review:needs-manual line whatever its severity, got %v alert %v; a held review must carry the secret-held reason, got %q; a high review must call the review alert only (D-130), got notify %v alert %v.

TC-799, negative and positive (TestNotifyOnWantsManualKindsExactly): a contact must be able to opt into %s: %v; a review:medium contact must not get the manual-review kinds through the severity rank; a review:medium contact must still get review:high (the rank match; since D-130 no high review is routed through it); an empty list or an exact entry must get review:manual.

dashboard — agent assignment, review severity and review fixes (TC-800 … TC-818)

Agent assignment per product, the reviewer’s severity on the card, the review event and the low-finding review fix (D-102, design docs/designs/agent-seats-and-pr-agents.md). A product that never saved its assignments behaves as before; a configured one runs a PR-flow role only when an agent of it is assigned (BR-61, §9.6). TC-801, TC-806 and TC-813 need GAOS_ARCADE_TEST_URL (deploy/schema/scratch.sh up) and skip without it.

TC-800, negative and positive (TestSetAssignedRefusesAndRecordsTheActor, assign_test.go): an unknown product answered %v, want ErrNotFound; an unknown agent answered %v, want a rejection naming it; a reset with agents answered %v, want a rejection; assigned %v set=%t, want a-10,a-11 and set; events %v, want one RecordUpdated; event %q actor %q: want the alias, the list and the first-save notice, never the address; second save said %q; after reset: %v set=%t, want empty and unset.

TC-801, negative and positive (TestAssignmentsSurviveARestart, assign_test.go): after a reopen: %v set=%t, want a-10,a-11 set; an untouched product reopened as %v set=%t.

TC-802, negative and positive (TestNotConfiguredIsTodaysBehaviour, assign_test.go): a seeded product starts configured; role %s does not run on an unconfigured product; planned %v skipped %q err %v, want both cards and no skip.

TC-803, negative and positive (TestAgentsPageFiltersByProductAndPagesKeepTheFilter, assign_test.go): the unfiltered page shows no assignment chip; the p-1 filter lists %d agents, want Juno and Kite; the address is %q, want agents?product=p-1; an unconfigured product does not say so; an unknown product reached the page or the address; page 2 address %q, want product then page; the pager link drops the product filter; the Agents page has no i link to its docs page.

TC-804, negative and positive (TestAssignRouteIsAdminOnly, assign_test.go): no session answered %d; a non-admin answered %d, want 403; an admin answered %d; assigned %v set=%t; reset answered %d %s; after reset %v set=%t; an unknown action answered %d, want 400.

TC-805, negative and positive (TestUnassignedRoleGetsNoCard, assign_test.go): before: %v %v; planned %v, want only the e2e card; skipped %q, want unassigned:pr-reviewer; planned %v skipped %q err %v; the earlier card %s is %+v, want it left pending; staging answered %d %s, want 422 unassigned naming no agent.

TC-806, negative and positive (TestGatedOpenStillWritesThePullRequestRow, assign_test.go): planned %v skipped %q err %v; the gated open's row did not survive a reopen (%d rows).

TC-807, negative and positive (TestMergeStillCancelsWhenUnitTestIsUnassigned, assign_test.go): merge planned %v skipped %q err %v; %s is %s after the merge, want canceled; a gated open carried %d rows, err %v; want its row.

TC-808, negative and positive (TestReviewSetsTheSeverityLabelBeforePosting, reviewseverity_test.go): labels %v, want severity:%s; the pr-review label was lost: %v; after a correction %v, want exactly severity:low.

TC-809, negative and positive (TestBoardSeverityFilterSortAndMediumPlus, reviewseverity_test.go): severity facet %v; the label facet lists %s; medium+ listed %s (%s); a chip repeats the severity: %v; medium+ rows %v; the board's low filter shows %s; the board's low filter shows %d cards; an unknown severity stayed: %q; encoded %q; severity desc: %s; severity asc: %s.

TC-810, negative and positive (TestBoardRendersTheSeverity, reviewseverity_test.go): the kanban does not show the severity chip once; the Severity select is missing; the table lacks %q; card %+v err %v; the Severity filter has no i link to its docs section.

TC-811, negative and positive (TestReviewEventBySeverityAndAuthor, reviewseverity_test.go): posted %d reviews; unconfigured %s sent %s; %s: event %s status %s reason %q; want %s %s %q; %s: the body lacks the dismissal line; %s: a comment carries the dismissal line; %s: event %s reason %q, want a comment only; with no reader the event is %s; APPROVE answered %v.

TC-812, negative and positive (TestLowReviewPlansAReviewDefectOnlyWhenBounded, reviewdefect_test.go): plan: skipped %q err %v; record %+v; fix card %+v; events %v; a second plan for the same pull request planned again; %s: skipped %q err %v; burst %d: %q; a burst of 10 planned %d, want the cap of 3; reviewFixHeadOK(%q) = %t; validateAutoFix accepted the pattern *; the QA intake accepted kind review.

TC-813, negative and positive (TestReviewDefectSurvivesARestart, reviewdefect_test.go): plan: %q %v; after a reopen %+v err %v.

TC-814, negative and positive (TestReviewDefectPinsTheReviewedHead, reviewdefect_test.go): a non-target repository: %q; the good case answered %q; want %q, got %q; files %v.

TC-815, negative and positive (TestReviewFixRefusals, reviewdefect_test.go): the good case refused %q; want %s, got %q; the default branch: %q; autoFixPass dispatched %d; card %s %q, want BLOCKED %s; the record is %s, want closed; a pass inside the throttle window made %d GitHub call(s).

TC-816, negative and positive (TestReviewFixOpensADraftIntoTheReviewedBranch, reviewdefect_test.go): %d pull request(s) opened; calls %v; the draft goes %s → %s, want into %s; the fix commit's parents %v, want the reviewed head; draft-fix line %v; packet %q; an outside edit left the card %s %q; a refused fix created %d branch(es); a test beside the file refused: %s; a test elsewhere allowed: %q; a moved head left the card %s %q; a moved head created %d branch(es); a moved head left the record %s.

TC-817, negative and positive (TestReviewFixLifecycle, reviewdefect_test.go): an unconfirmed merge moved the record to %s; confirmed merge: %v %d; a confirmed merge left the record %s; the fix card is %s after the merge; a base change left the record %s; own fix merge planned %v skipped %q err %v; a closed review fix left %s gen %d; a retarget answered %v; a D-091 fix merge planned %v skipped %q err %v, want its unit-test card.

TC-818, negative and positive (TestCardSourceLabels, assign_test.go): an API card has labels %v (err %v), want source:api; a test-planner card has labels %v (created %t, err %v), want source:bundle; a Brain Town card carries %v; an operator set a source label; the label filter source:api kept %q and matched %d, err %v; want the one API card.

dashboard — e2e repository kinds, staging creates and merged specs (TC-819 … TC-838)

Release B (D-103, BR-62, design docs/designs/release-b-e2e-kinds-merge-unit-tests.md). B1: a product repository may be backend only or frontend and backend, and a staging run tells the QA tool which, only when the tool lists the capability. B2: on a product that turned it on, a staging deploy also plans create cards for uncovered cases, capped and never twice. B3: GAOS never merges; the QA tool may auto-merge an approved spec, and GAOS runs the case once the merged head is the approved commit and the catalog shows it implemented. The ArcadeDB cases skip without GAOS_ARCADE_TEST_URL.

TC-819, negative and positive (TestRepoKindsAreSavedAndValidated, repokinds_test.go): %s was accepted; saved %v staging=%t merge=%t; the event reads %+v; after a replace %v staging=%t; kinds changed the assignment: %v %t; the kinds form answered %d; the route saved %v merge=%t assignedSet=%t.

TC-820, positive (TestRepoKindsSurviveARestart, repokinds_test.go): after a reopen %v staging=%t merge=%t; an untouched product reopened with %v %t %t.

TC-821, negative and positive (TestRunCardsCarryTheRepositoryKind, repokinds_test.go): planned %v err %v; the staging run is labelled %v, want e2e-kind:be; an unconfigured repository's run is labelled %v; a pr.opened card %s is labelled %v; an operator set a repository-kind label.

TC-822, negative and positive (TestKindAndAutoMergeAreSentOnlyWithTheCapability, repokinds_test.go): capabilities %v; %d calls inside the cache window, want 1; an error dropped the last known set: %v; a 404 answered %v; an empty request reads %s; a full request reads %s; caps %v sent %+v, want kind %q and no auto_merge on a run.

TC-823, positive (TestNoKindIsTodaysBehaviour, repokinds_test.go): planned %v creates %d err %v; sent %+v, want today's run of every case; the run ended %s %q.

TC-824, negative and positive (TestEveryReasonCarriesTheCase, repokinds_test.go): the waiting reason %q lost the job or the case; an adopted job was started again: %v; the adopted job's row does not name its case: %+v.

TC-825, negative and positive (TestStagingPlansCreatesForUncoveredCases, stagingcreate_test.go): with the switch off %d creates were planned; a be deploy planned %d: %v (err %v); the create is %q %q; a replay planned %d creates; a fullstack deploy planned %d: %v; a fullstack-only product planned %d: %v; caseCodeOK does not refuse a key delimiter; caseCodeFor read %q.

TC-826, negative and positive (TestCreateBlockingRules, stagingcreate_test.go): an open create did not block; a create that failed today was retried; a create that failed eight days ago was not retried; the retry's key is %q, want #2; a pull request's automation of the case did not block; a %s row %d days old: blocked=%t, want %t.

TC-827, negative and positive (TestCreatesHaveTheirOwnCap, stagingcreate_test.go): creates per deploy %v, want [2 2 0]; the pull-request cap counts %d open cards, want the 3 runs only; a create key read as a pull request; GAOS_E2E_CREATE_MAX=1 planned %d.

TC-828, negative and positive (TestStagingAnswersCarryCreates, stagingcreate_test.go): answered %d %s, want 202 with one create; a replay answered %d %s; a capped run answered %d %s, want 409 with one create; an unassigned product answered %d.

TC-829, positive (TestCreatesPersistWhenTheRunIsCapped, stagingcreate_test.go): capped=%t creates=%d err=%v; %d cards after a reopen, want the review, the automation and the create; the create planned beside a capped run did not survive a reopen.

TC-830, negative and positive (TestCreateDoneReasons, stagingcreate_test.go): auto_merge %q ended %s %q, want …%s; a long refusal is not bounded: %d; an unknown auto_merge read %q.

TC-831, positive (TestAMergedApprovedSpecRunsItsCaseOnce, mergedrun_test.go): %d runs, want 1; the run is %q %q %v; the row is note=%q finalAt=%d; %d runs after a repeat, want 1; started %v; a merged-run key read as a pull request.

TC-832, negative and positive (TestAMergedUnapprovedHeadIsReportedAndDoesNotRun, mergedrun_test.go): an unapproved head planned %d runs; the row note is %q; no event records the unapproved head; a row with no approved commit planned %d runs.

TC-833, negative and positive (TestAMergedSpecWaitsForTheCatalog, mergedrun_test.go): before the catalog: %d runs, note %q; after the catalog: %d runs, note %q; a catalog 15 days late planned %d runs.

TC-834, negative and positive (TestAMergedSpecWithoutQARoleDoesNotRun, mergedrun_test.go): %d runs, note %q.

TC-835, negative and positive (TestAutoMergeFollowsSwitchAndBand, mergedrun_test.go): the fixture p-1 is in band %s; this test needs Working or Complete; allowed with the switch off; refused with the switch on in a Working band; p-5 in band %s answered %t; caps %v switch %t sent auto_merge %s, want %s.

TC-836, negative and positive (TestQaShaIsRecordedEvenWhenTheURLComesFirst, mergedrun_test.go): a sha appeared before the tool sent one: %q; a malformed sha was stored: %q; the sha is %q, want the approved commit, lower-cased.

TC-837, negative and positive (TestSpecAutoMergeRoute, mergedrun_test.go): no token answered %d; the outbound token reached the route; an unscoped product answered %d, want 404; with the switch off: %s; with the switch on in a Working band: %s.

TC-838, positive (TestPullRequestReleaseBFieldsSurviveARestart, mergedrun_test.go): reopened as sha=%q note=%q finalAt=%d; the row did not survive a reopen.

dashboard — the task tracker as a third-party platform (TC-839 … TC-849, TC-1004 … TC-1024)

A product bound to the tracker, the team’s task manager (D-104, design docs/designs/gaos-third-party-tracker.md): the stdlib gRPC client over TLS and its circuit breaker, the people directory, the binding, task-code validation, routing by GitHub login, the QA line and the write-back, and the Integrations block. TC-839 to TC-848 are each one func Test… in dashboard/; TC-849 is deploy/check-stacks.sh.

TC-839, negative and positive (TestProtowireRoundTrip, tasktracker_test.go): a message with unknown fields of every wire type did not parse: %v; the known fields read back wrong: %d %t %q %q; the nested message read back as %v %v; a fixed-width field or a group was returned instead of skipped; an absent field must read as its zero value; %s parsed without an error; groups nested past the depth cap parsed without an error

TC-840, negative and positive (TestTrackerClientCalls, tasktracker_test.go): GetTask answered %+v %v, want the task with its product and QA; the call went to %s with headers %v; want the contract's path, application/grpc, te: trailers and the Basic credential; ListPeople answered %+v total %d %v; AddComment sent %v %v; an unknown task answered %v, want errTrackerNotFound; status %q mode %q answered %v, want %v; an error carries the tracker's grpc-message: %v; a call past its deadline answered %v, want errTrackerUnavailable; the log carries the tracker's message or the credential: %s

TC-841, negative and positive (TestTrackerConfig, tasktracker_test.go): the profile did not load; ca.pem must give a TLS client: %+v; the call over TLS to the pinned certificate answered %+v %v; a private address with ca.pem must be on over TLS: %q; the transport dialled an address other than the configured one; the transport dialled another port

TC-842, negative and positive (TestTrackerBreaker, tasktracker_test.go): a refused credential answered %v; after an auth failure the next call answered %v after %d call(s), breaker %q; want paused with no call; a changed credential file must close the latch: %v after %d call(s); the call after the change did not use the new credential: %s; the auth latch opened before an hour passed; the auth latch is still closed after an hour; the stale credential answered %v; a credential file rewritten before the failure must clear the latch, breaker %q; the call after the rotation did not go through: %v; the call after the rotation did not use the rotated credential: %s; three unavailable answers must pause the calls: %v, %d call(s); after a minute one call must go through: %v; after a fourth failure the wait did not double to two minutes; the doubled wait did not end after two minutes; the backoff grew to %s, want the 30-minute cap; an answer must close the breaker: %v, breaker %q

TC-843, negative and positive (TestTrackerPeopleDirectory, tasktracker_test.go): 150 people took %d ListPeople call(s), want 2 pages of 100; the counts are %+v (capped %t), want 149 people, 4 GitHub-linked, 2 usable numbers, 1 login conflict; a checked login, matched without case, must find its person and number: %+v %t; a person with WhatsApp switched off must be found but not usable; a login two checked people hold must route to nobody; an unchecked GitHub login must not route; a person must be found by id; a failed page did not fail the refresh; a failed refresh must keep the directory with its error class: %+v; a failed refresh dropped the directory; with no binding the directory must be empty and nothing called: %d people, %d call(s)

TC-844, negative and positive (TestThirdPartyBinding, thirdparty_test.go): fixture: %d products, want two; an unknown kind gave %v, want a rejection; the product code %q gave %v, want a rejection; an unknown product gave %v, want ErrNotFound; binding %s answered %+v %v; the event is %s %+v; want ThirdPartyConfigured naming the values and the actor's alias; a second enabled binding of the same pair gave %v, want ErrConflict naming %s; a disabled binding of the same pair on a second product must be allowed: %v; disabling must keep the entry with enabled=false, got %+v; once the first is disabled the second may enable the pair: %v; a read-only store gave %v, want a rejection; no session answered %d, want it refused; a signed-in account that is not an auto-fix admin answered %d, want 403; an admin's binding answered %d %s; the route did not save the binding: %+v; the validation cache kept %d entr(ies) across a binding change; a second enabled binding of the pair through the route answered %d, want 409; a bad code through the route answered %d, want 422; SetThirdParty under ArcadeDB: %v; the graph write carries no thirdParty property or no event: %.600s; the Product load does not select thirdParty

TC-845, negative and positive (TestTaskCodeValidationAlert, tasktracker_flow_test.go): a row inside its 10-minute grace was checked or alerted: %v, %d call(s); an unknown code: %d comment(s) %v and %d line(s), want one of each, once; the row must record the alert, got %q; a row with an unknown code must keep its bundle; %s gave %d comment(s), want one; every failing case must get the one text, which names no owner: %v; a row alerted no-task-code with a wrong code: %d comment(s), %d new call(s); want one comment from the cache; a valid code was alerted: %v; with the breaker open: %d comment(s) and %d call(s); want none and one; a product outside the template list was checked

TC-846, negative and positive (TestNotifyLoginThroughTracker, tasktracker_flow_test.go): a login with no contact must reach its tracker person: %v; NotifyPR must take the same step: %v; the notice is not recorded under the ext: alias: %s; a tracker number reached the event stream; an approval must stay with the group: %v; a bundle kind must stay with the group: %v; a contact that filters the kind out must send it to the group: %v; a contact must win over the tracker: %v; with the binding disabled the line must go to the group: %v

TC-847, negative and positive (TestTestPlanReadyAndWriteBack, tasktracker_flow_test.go): the planner card is %s, want DONE; the QA notice is %v; want one bundle:planned line to the task's QA; the write-back wrote %d comment(s), want one; the write-back on %s reads %q; another product's task, an unknown task or a pr: bundle got %v and %v; an empty plan: %d comment(s), %d line(s); want one and none; a long write-back is %d runes or lost its marker; the write-back must list ten URLs, say how many more, and keep only valid case codes: %s

TC-848, negative and positive (TestIntegrationsShowTracker, integrations_test.go): the integrations view has no Task tracker block; with no profile the block must read Off and carry the Third-party mark: %s; a bound, refreshed product must read Connected with its profile and the counts: %s; an account that is not an admin sees %q; an admin must see the people, masked, and the binding form with its profile: %s; the block renders a whole number or the credential

TC-849, retired (deploy/check-stacks.sh): the old tracker mounts and address are gone (D-118); see TC-1020 and TC-1021.

Since D-118 (v0.78.0, design docs/designs/task-tracker-contract.md) the tracker speaks the published contract, connections are deployer-installed profiles, and bindings name a profile: TC-1004 to TC-1012 and TC-1014 to TC-1019 are each one func Test… in dashboard/; TC-1013 is a manual guard; TC-1020 to TC-1024 are deploy checks.

TC-1004, positive (TestTheTrackerCodecMatchesTheContract, tasktracker_test.go): the contract cannot be read: %v; the codec's service is %s, the contract names another; the codec's %s is %s, the contract says rpc %s; the contract has no %s %s; the codec's %s.%s is %s = %d, the contract says %s = %d; the codec's %s.%s is not in the contract; the codec's %s is %d, the contract says otherwise; the contract's TaskState has values the codec does not know; since D-132 the same messages cover the RecordMerge path, the new Task fields and the RecordMergeRequest and RecordMergeResponse fields, and MergeOutcome adds the contract's MergeOutcome has values the codec does not know

TC-1005, positive (TestTrackerProfilesLoad, tasktracker_test.go): two valid profiles gave %d (%s); profile %s is %q, want on; the products lines read as %v; allows must follow the products lines, the code without regard to case

TC-1006, negative (TestTrackerProfileSkips, tasktracker_test.go): an unset GAOS_TRACKERS_DIR gave %d profile(s), %q; a missing GAOS_TRACKERS_DIR gave %d profile(s), %q, %d log line(s); a linked folder, a bad name and a plain file gave %d profile(s) and %d log line(s): %v

TC-1007, negative (TestTrackerProfileRefusals, tasktracker_test.go): the profile was not loaded at all; %s gave %q, want unusable naming %q; %s: the reason carries a file's content: %q; an empty credentials must be off, not unusable: %q; the reload followed a link to another file

TC-1008, negative (TestTrackerUncheckedState, tasktracker_test.go): %s answered %+v %v, want unchecked; unchecked answers opened the breaker: %q; OK without a task answered %+v %v, want unchecked; an unchecked result must stand from the cache inside 5 minutes; after 5 minutes an unchecked code must be asked again: %+v; the window holds %d unchecked (all %t), want 9 of 10; after one more the window holds %d unchecked, want 9; ten unchecked lookups in a row must mark the window all-unchecked

TC-1009, negative (TestDestForRefusesAnInvalidDestination, notify_links_test.go): destFor(%q) = %q, want the group; a contact holding an unknown word sent %v, want one line to the group

TC-1010, negative (TestSetThirdPartyPairConflict, thirdparty_test.go): the same pair in another case gave %v, want 409 naming %s; the same profile with another code must be accepted: %v; another profile with the same code must be accepted: %v

TC-1011, negative (TestSaveThirdPartyNeedsAnAllowedConnection, thirdparty_test.go): %v answered %d %s, want 422 %q; a disabled save with no connection answered %d %s; an allowed binding answered %d %s; the save kept an unknown kind: %+v %v; an entry with no connection was ready

TC-1012, positive (TestTrackerTwoConnectionsIsolated, tasktracker_flow_test.go): each product must reach its own tracker's person: %q %q; p-1 is ready although its profile's breaker is open; one profile's open breaker made the other product not ready

TC-1013, negative (manual, at release): the git grep -i -E of the private name’s pattern (kept in deploy/local/forbidden-strings, never in a tracked file) prints nothing, and deploy/check-workspace.sh prints ok no tracked file or path names a private instance (…); a hit prints FAIL a tracked file names a private instance: ….

TC-1014, positive and negative (TestMigrateBundleKeys, bundles_test.go): the migration moved %d row(s) (%v), want 3; %s is %q (bundled %d), want task:M-1 with BundledAt kept; a planned legacy bundle moved to %q; a legacy key whose task: target is planned moved to %q (skipped %v); a pr: key moved to %q; a second run moved %d row(s), want 0

TC-1015, positive and negative (TestTaskCodeComesFromTheKey, tasktracker_flow_test.go): the write-back went to %v, want %s from the key; a legacy-prefix bundle wrote %v, want its suffix's task; a pr: bundle wrote back: %v; bundleTaskCode does not follow the key rule

TC-1016, positive and negative (TestTrackerChip, integrations_test.go): %s reads %q, want %q

TC-1017, negative (TestTrackerEndpointIsAdminOnly, integrations_test.go): an admin's rows lack the endpoint, the reason or the products: %s; a non-admin's rows carry an endpoint, a reason or a products line: %s; a row carries the credential

TC-1018, positive (TestContactsDatalistUnion, contacts_page_test.go): with only acme bound the list must be acme's people: %s; with both bound the list must be one de-duplicated union, acme first: %s

TC-1019, negative (TestTrackerAliasIsSanitised, tasktracker_flow_test.go): the alias is %q, want ext: and the sanitised username

TC-1020, positive (deploy/check-stacks.sh): ok prod.pr-trackers is a mode-700 directory of mode-600 files, ok prod mounts the task-tracker profiles read-only, ok prod passes GAOS_TRACKERS_DIR.

TC-1021, negative (deploy/check-stacks.sh): FAIL deploy/stacks/prod.pr-trackers is mode 755, want 700; FAIL deploy/stacks/prod.pr-trackers holds 1 file(s) that are not mode 600; FAIL deploy/stacks/prod.pr-trackers is not a directory (the task-tracker profiles live in it); another *.pr-* directory still prints FAIL deploy/stacks/prod.pr-other is not a regular file (a missing bind-mount source is created by Docker as a root-owned directory).

TC-1022, positive (d=$(mktemp -d); deploy/ensure-trackers-dir.sh "$d/prod.pr-trackers"): ok created <path> (mode 700, empty: no tracker), exit 0, stat -c %a is 700; a second run prints ok <path> is a directory. No deploy runs.

TC-1023, negative (touch "$d/x"; deploy/ensure-trackers-dir.sh "$d/x"): FAIL <path> must be a directory, exit 1.

TC-1024, positive and negative (deploy/check-workspace.sh): ok the deny-list covers deploy/stacks/prod.*; with GAOS_SETTINGS_FILE pointing at a copy without the two entries, FAIL the deny-list does not cover deploy/stacks/prod.*.

dashboard — an unconfigured QA tool is never called (TC-850)

qaOutboundFromEnv returns a client even when GAOS_QA_URL is unset, with the reason in why and no base URL. The QA-job runner, the test planner and the external-tasks API now ask usable() instead of comparing with nil, and do refuses an unusable client instead of dereferencing it (v0.66.1).

TC-850, negative (TestAnUnconfiguredQAToolIsNeverCalled, qajobs_test.go): newQaOutbound returned nil; the guard below is what main.go relies on; an unconfigured client reads as usable (why %q); an unconfigured client answered a request; an unconfigured client lists capabilities %v; a nil client reads as usable.

dashboard — unit tests from the repository’s CI check (TC-853 … TC-883)

A fix-target repository’s own GitHub Actions workflow runs its unit tests on each merge commit; GAOS reads that one workflow’s check and runs nothing itself (D-105, BR-65, design docs/designs/release-b4-unit-tests.md). These cases cover the product setting and its page, the watch (the persisted record that one merge commit’s check is awaited), the unit defect, the unit pass and its notices, the admin-only hold and the guarded fix. Since v0.68.0 the result can also come from the organisation’s Jenkins, which posts it to POST /api/v1/products/{id}/unit-results (D-106): TC-871 … TC-882 cover the source, the route and its gate, the poller under Jenkins and the page’s checklist. Each case is one func Test… in dashboard/, except TC-883, which is a deploy/check-stacks.sh case; the repositories and branches are invented.

TC-853, negative and positive (TestUnitChecksAreSavedAndRefused, unitchecks_test.go): %+v answered %v; want %q for each refusal (The daily cap is 1 to 20., A unit-test base is a branch name., The check name is 1 to 100 letters, digits, spaces, dots, dashes or underscores., The workflow is a file under .github/workflows/.); %s: answered %v for turning it on without auto-fix (Turn auto-fix on first.), a fixer and a triager (Assign a fixer and a triager first.) or a fix-target repository (List a fix-target repository first.), and %s: saving it off answered %v; positive: saved %+v (workflow %s, check %s, cap %d), the event reads %+v; want %q by ardi for unit checks on (.github/workflows/unit-tests.yml, unit-tests, bases release/next, cap 5), after a second save %+v; want the no-ci day %q kept; and readOnly.%s answered %v, want ErrRejected, readOnly.UnitWatches answered %v %v, want nil.

TC-854, positive and negative (TestUnitWatchIsPlantedOnceAndPersists, unitchecks_test.go): plant: %+v %v; want one watch and no event, the watch is %+v, a replayed merge planted again: %+v %v; negative: %s was planted: %v for a short sha, no repository, no base, a bad outcome and a 64-hex commit, a watch of no product answered %v, the 201st pending watch answered %v (Too many pending unit checks.), a done watch past the pending cap answered %v; delay: %+v %v, listed %d watches, want %d, prune deleted %v %v; want only the done watch. On ArcadeDB (skipped without GAOS_ARCADE_TEST_URL): after a reopen %d watches (%+v); want the pending and the skipped one, the pending watch came back as %+v, the skipped watch came back as %+v, the setting came back as %+v, an untouched product reopened with %+v.

TC-855, positive and negative (TestAMergeIntoAUnitBasePlantsAWatchNotAnAgentCard, unitchecks_test.go, reading testdata/unit/pr-merged.json): the recorded body decoded as sha %q merged_at %v base %q, the merge answered %v, want done, %d watches after the merge (%v); want 1, the watch is %+v, an agent unit-test card was planned beside the watch: %+v, a replay left %d watches and %d default reads; want 1 and 1; negative: a transient re-read answered %v with %d watches; want a retry and none, %s: answered %v, %s: the watches are %+v and %s: an agent unit-test card was planned for skipped:read, skipped:merged-at and skipped:sha; a merge into a feature branch left %d watches or a card, a merge into a listed base left %+v after %d default reads, an unreadable default left %d watches; logs %v (the log says unit-watch-skipped default-token), with a base branch set: %d watches after %d default reads; want 1 and 0.

TC-856, positive (amended by D-121: the automation repository now asserts %s: a unit-test card or a watch was planned) (TestOtherMergesKeepTodaysUnitCard, unitchecks_test.go): with unit checks off: card %t, %d watches; want the card and none; %s: card %t, %d watches; want the card and none for an automation repository and an unlisted one; another product: err %v, skipped %q, card %t; a watched repository: err %v, skipped %q, card %t; want unit-checks and no card.

TC-857, positive (TestUnitDefectRecordDedupAndUpdate, unitdefect_test.go): the first failure: new %t, %d defects, watch %+v, the hash %q depends on the order, the record is %+v, the failing tests read %q / %q / %v, the triage card is %+v; want it held, the events are %v (DefectReported, TaskPlanned, TaskMoved); a repeat: outcome %s, events %d, record %+v, an older repeat moved the record to %s (outcome %s); a new set: outcome %s, new %t, %d events, the updated record is %+v, the update moved the held card: %+v, %d defect cards; want the one held card; a build failure: new %t outcome %s, the build record is %+v, a build repeat: outcome %s, excerpt %q; another base: new %t, %+v; negative: %s was filed for no test, a bad name, a bad or credential-shaped file and eleven failures.

TC-858, negative (TestUnitDefectGateAndCaps, unitdefect_test.go): %s: outcome %q, %d defects, %d events for off, no-fixer, no-triager, autofix-off, not-target and defect-cap; the first defect: %s, past the cap: %s, want refused:unit-cap, an update past the cap: %s, want updated; a done watch finished again: %+v %v, an unknown watch was finished.

TC-859, positive and negative (TestAPassClosesOrMarksUnitDefects, unitdefect_test.go): a pass on another base touched %+v, an older pass touched %+v; the first pass: marked %t closed %t, record %+v (the head line checks passed at <sha12>), a pass moved the held card: %+v, a second pass: marked %t, excerpt %q, a newer failure kept the mark: %+v; a released defect's pass: closed %t, record %+v, the released card is %+v; want it canceled; a reopen: reopened %t, outcome %s, record %+v, the reopened card is %+v; want it held; the build defect after a pass: %s, a defect with no tests left was pass-closed: %s.

TC-860, negative (TestAnOlderFailureNeverFilesWhatAPassCovered, unitdefect_test.go): an older failure: outcome %s, %d defects, a newer failure: outcome %s, a failure older than the record's pass: %s, the closed record moved: %+v.

TC-861, positive (TestUnitDefectFieldsSurviveARestart, unitdefect_test.go; ArcadeDB, skipped without GAOS_ARCADE_TEST_URL): finish: %+v %v, after a reopen %+v\nwant %+v, the held triage card did not come back held: %+v, the watches came back as %v.

TC-862, negative (TestOnlyTheWorkflowsCheckIsRead, unitpoll_test.go, a fake GitHub): the workflow's latest attempt passed; the watch is %+v, a passing check read %d annotation pages, the run listing was read %d times as %s, commit statuses were read %d times; a forged check of another suite moved the watch: %+v, two runs of the workflow: the watch is %+v; want inconclusive; the configured workflow's check: the watch is %+v, the check name was not escaped in the query (%d reads), the workflow path is not matched exactly.

TC-863, negative and positive (TestUnitOutcomes, unitpoll_test.go): %s: the watch is %+v; want %s and %s: %d defects filed, want %d for success, failure, build, all withheld, a job that was not started and a failure with no report (both without the unit-tests-total notice, so inconclusive), and the conclusions cancelled, skipped, neutral, timed_out, action_required, stale and an unknown one; %s: the daily notice was not sent: %q for the unit-tests workflow did not report (job not started?); build: the defect is %+v, failure: the defect is %+v; no run %s after the merge: %+v; want the next read in %s (2, 10 and 30 minutes), no run 7 hours after the merge: %+v; want no-ci; in progress %s after the merge: %+v; want %s; %s: %+v; want one failed read and a doubled wait for an error and a rate limit, a rate limit was read %d times; want the two retries and no more, the 20th failed read: %+v; want inconclusive, never answered in 7 hours: %+v; want inconclusive, never no-ci; a repository no longer a fix target: %+v after %d reads; one pass read %d watches; want %d, after poller pass %d the runs were read %d times; want %d, the first pass reached the second product past its budget, the second pass did not start with the product after the one served last.

TC-864, negative and positive (TestAnnotationsAreScreened, unitpoll_test.go): kept %v (total %d, build %t, withheld %t); want %s and 25, the protected files are %v; an empty path protects nothing, total notice %q: total %d, want %d, twelve failures with no total notice kept %d with total %d, or read as reported; want 10, 10 and not reported, all withheld: kept %v, withheld %t, a build failure: build %t, summary %q, a secret in the summary: %q. GitHub reports an annotation that named no file with the path .github; it reads as an empty path.

TC-869, positive (TestUnitNoticesAreSentOnceAndResent, unitpoll_test.go): the held notice: %q; want %q for unit tests failed on a merge; defect <h8> waits for an auto-fix admin, the held notice was not recorded, a second pass sent %d notices; want the one, the re-send: %q; the passed notice: %q; want %q for defect <h8>: its failing tests passed at <sha12>; an admin closes it by cancelling the held card; the closed notice: %q; want %q for defect <h8> closed: its tests passed; the withheld notice: %q for unit-test annotations on a merge were all withheld; nothing filed; the no-ci notices: %q for no unit-tests run on a merge; is the workflow installed?, once a UTC day, and the no-ci day is %q.

TC-870, positive (TestUnitRetentionAndContext, unitpoll_test.go): the context is %v at %s (built %t); want the failing test file, then its directory's source, the directory was listed %d times at the merge commit, the QA context ran for a unit defect: %v, %d searches; a failed context build stored a context, the context was retried %d times within 30 minutes; want once in all, the context was not rebuilt after 30 minutes: %+v; after the retention: excerpt %q, tests %q, files %v, after the prune %+v; want only the pending watch.

TC-865, negative (TestTheHeldCardIsAdminOnly, unitdefect_test.go): a non-admin's move to %s answered %v; want ErrUnitHeld for ready and canceled, the refusal reads %q (Only an auto-fix admin releases a held unit-test defect.), a non-admin's close answered %v, ResolvePRCard moved a held card, a drift release would free a held unit card; a non-admin is offered %q on the held card, a non-admin's release answered %d; want 409, an admin is offered %q on the held card, an admin's release answered %d, the release event reads %q; want unit-release by ardi; a non-admin cancelled a unit card: %v, an admin's cancel of a released card closed the defect: %s, an admin's cancel of the held card: %+v %v; want the defect closed; a non-admin's close answered %d; want 409, an admin's close answered %v.

TC-866, negative (TestAUnitFixMayNotWeakenTheFailingTests, unitdefect_test.go): %s: answered %v; want %q for an edit of a protected file and of another packet test file (a unit-test fix may not change the failing tests' files), a new test beside a protected one (a unit-test fix may not add tests beside the failing ones), a new TestMain and a new init (a unit-test fix may not add TestMain or init), and a build fix of a test file its summary does not name (a build fix may change only the test file its summary names); positive: a source fix with a test elsewhere was refused: %v, a build fix of the named test file was refused: %v, the zero guard refused: %v, the body lists no added test file:\n%s.

TC-867, negative and positive (TestTheUnitBaseIsRecheckedAndNeverRetargeted, unitdefect_test.go): a reopened unit defect on its base: %q; want eligible, a unit defect on a listed base: %q; want eligible, a unit base no longer allowed: %q (the unit-test base is no longer allowed), a QA regression: %q; want refused; the branch is %q (gaos/fix-unit-<h8>-<repo/base slug>-<gen>), two unit defects share a branch; a reopened unit defect's fix card is %+v; want it not blocked, the loop may not claim a released reopened unit defect: %v; a unit fix's retarget answered %v and the drawer offers a retarget: %q (A unit-test fix opens against the branch whose tests failed; it cannot be retargeted.); the packets read:\n%s\n---\n%s.

TC-868, negative and positive (TestUnitChecksRouteAndSection, unitchecks_test.go): no session answered %d; want 401, an account that is not an admin answered %d; want 403; %q: answered %d %s (422) for No forge token is configured for this repository. (D-114; was "GitHub is not configured; unit checks need it."), Brain Town is not connected; no merge would reach GAOS., The daily cap is 1 to 20. and Turn auto-fix on first.; the save answered %d without the open section (“Unit tests (CI) for” and Saved. The next merge uses these settings.), the route saved %+v; the section does not show the last watch and the warning (%d) (No unit-tests run on recent merges: is the workflow installed? after three no-ci watches), a plain read shows the Saved line.

TC-871, negative and positive (TestUnitSourceIsSavedAndValidated, unitchecks_test.go, D-106): the source %q answered %v; want The source is GitHub Actions, Jenkins or a GitLab pipeline. for gitlab, Jenkins and github; an empty source saved %q and reads %q; want github-actions, the github-actions event reads %v; want %q (unit checks on (.github/workflows/go.yml, go test, bases -, cap 5)); the jenkins save is %+v; want the source and the workflow and check kept, the jenkins event reads %v; want %q (unit checks on (jenkins, bases staging, cap 5), naming no workflow); switching back reads %+v (workflow %s, check %s), a bad workflow under jenkins answered %v; the run ref of a posted result is %q (<sha12>@jenkins), the run ref of a workflow run is %q.

TC-872, positive (TestAJenkinsResultSurvivesARestart, unitchecks_test.go; ArcadeDB, skipped without GAOS_ARCADE_TEST_URL): finish from jenkins: %+v %v, the event %s carries the actor %q; want jenkins:%s, mark conflict: %+v %v, a second conflict mark changed the watch: %+v %v, the next event's actor is %+v %v; want ardi; after a reopen: the source came back as %q, the watch did not come back: %v %v, the posted watch came back as %+v (runUrl, postedFrom, postedResult, conflictNoticeSent), the defect's run ref came back as %q; want %s@jenkins, an unknown watch was found.

TC-873, negative and positive (TestUnitResultsAreAuthenticatedLikeStaging, unitresults_test.go): through /app answered %d, want 404; %s answered %d %q, want 401 with the Basic challenge for none and a wrong password, %s: the answer carries the credential; product 2's credential on product 1 answered %d %s, want 404 not-found, the wrong-product failure counted %d against the credential's product; want 1; a staging credential on unit results answered %d, want 401, a unit-results credential on staging answered %d, want 401; positive: the right credential answered %d %s, want 202, a unit result was recorded as the last staging callback; with no credential file answered %d %s, want 503 jenkins-off, a 31-character password was accepted or named: %q (the reason names at least 32 characters, never the content), has does not answer the product's line.

TC-874, negative and positive (TestUnitResultsBodyIsStrict, unitresults_test.go): %s answered %d %s, want 422 rejected for an unknown field, trailing data, a body that is not JSON, one over 64 KiB, a bad repo, commit, 64-hex commit, branch, result, total and negative total, failing tests with a pass and with a build failure, a failure with none, a summary with a failure and with a pass, and fifty-one failing tests; a refused body changed the watch: %+v, an empty failed list reads %s (a failed result names at least one test; use build-failed); an http runUrl was kept: %q, a runUrl with %s was kept: %q for one over 512 bytes, userinfo, no host, an unparsable one and a control character; positive: an http runUrl and a 600-byte test answered %d %s, watch %+v; want 202, stored empty, the 600-byte test was not dropped: %q, a 3 KiB summary became %d bytes, valid %t.

TC-875, positive and negative (TestAPostedResultFinishesTheWatch, unitresults_test.go): a failed result answered %d %s, watch %+v, the defect is %+v (run <sha12>@jenkins), the failed result's triage card is not held: %+v, %d events carry the actor jenkins:%s; want the report and the card; a passed result answered %d %s, a pass over a held defect: %+v; want it marked, not closed, a pass over a released defect left it %s; build-failed answered %d %s, the build defect is %s %q (one paragraph); all withheld answered %d %s, the withheld notice: %q (unit-test annotations on a merge were all withheld; nothing filed); 53 sent: kept %d, total %d, first %v; want 10, 50, TestCase00; negative: another branch answered %d %s (409 branch-mismatch), a repository that is not a target answered %d %s (422 not-target), a watch no longer a target answered %d %s (202 inconclusive), a result that lost the race answered %d %s (409 already-finished after the re-read).

TC-876, negative (TestUnitResultsRefusedWithoutAJenkinsWatch, unitresults_test.go): attempt %d with no watch answered %d %s Retry-After %q; want 409 no-watch, 60, no-watch answers counted %d failure keys; want none, after six no-watch answers the right post answered %d; %s: answered %d %s and %s: the watch changed: %+v for unit-checks-off and not-jenkins.

TC-877, negative (TestTheJenkinsLockIgnoresTheCallersForwardedFor, staging_test.go, both Basic routes): X-Real-IP %q, X-Forwarded-For %q, peer %q keyed as %q; want %q for X-Real-IP first, the rightmost public hop, the peer, an IPv6 /64 and an IPv4-mapped address; per route: %s: a fresh first hop escaped the lock (%d), %s: without X-Real-IP a fresh first hop escaped the lock (%d), %s: a caller naming Jenkins in its first hop locked Jenkins out (%d), %s: the sixth bad attempt with a rotated id answered %d; want 429, %s: the valid post between the guesses answered %d, %s: 4 guesses, a valid post and 4 more guesses, then the next answered %d; want 429, %s: another address in the /64 escaped the lock (%d), %s: another /64 was locked; then a wrong-product credential rotating the path id answered %d; want 429, product 2's lock blocked product 1 from the same source (%d), the staging lock did not hold (%d), a staging lock blocked unit results, source %d past the cap answered %d; want 429, the failure map holds %d keys; want at most %d, the unit-results file accepted a 31-character password. The staging callback’s own cases (TC-571 … TC-576) keep passing: only the lock key changed.

TC-878, negative (TestEveryMachineRouteAuthenticates, auth_test.go): registerAPI recorded %d routes, the Basic route %q is not registered with the machine API; %s with its auth unconfigured answered %d, want 503, %s without Authorization answered %d, want 401, the Basic route %s challenges %q, %s challenges %q; a Basic route must be listed in basicRoutes. The Basic routes are the explicit list basicRoutes, so a third one is an edit there (BR-52).

TC-879, negative and positive (TestALateOrConflictingUnitResult, unitresults_test.go): a late result answered %d %s, watch %+v; want it filed; the same result answered %d %s; want 200 duplicate, conflict %d answered %d %s (409 already-finished, the stored outcome), 20 conflicting posts sent %q; want one conflict notice (conflicting unit result on a merge; the first result stands, see the log), after the conflicts the watch is %+v (conflictNoticeSent set); a pass over a GitHub pass answered %d; a result 25 hours after no-ci answered %d %s; want 409, a refused late result changed the watch: %+v.

TC-880, positive and negative (TestAJenkinsWatchEndsNoCIWithoutReadingGitHub, unitpoll_test.go, a fake GitHub, D-106 §5.5): the raced watch is %+v; want the route's pass, a watch the route finished first sent %q; with twelve due GitHub watches on the earlier product: the pass read %d watches; want the budget %d, the Jenkins ones not counted, the round-robin points at %q after the pass; want %s, never the Jenkins product, a Jenkins watch 7 hours after its merge is %+v; want no-ci in the same pass, a Jenkins watch 1 hour after its merge is %+v; want one wake-up at merged+6h, a Jenkins watch read GitHub %d times, the Jenkins no-ci notices: %q; want %q once (no unit-test result from Jenkins on a merge; is the Jenkins stage installed?); a switch of source: a watch read after a switch to github-actions read GitHub %d times, a watch read after a switch to jenkins is %+v after %d GitHub reads; want no-ci and none.

TC-881, positive and negative (TestTheUnitSectionShowsTheChecklistAndTheSource, unitchecks_test.go): off, GitHub Actions: the section lacks %q for the note (Before you switch this on), its docs link, the unit bases (the repository's default branch), the go test -short item and its testing.Short() example, the GitHub Actions workflow link, the shown GitHub block and the hidden Jenkins block, and the missing credential line; the checklist lacks its three items or the missing credential is not in a kind-row; base %q, bases %v: the list reads %q %+v; want %q for develop, develop, staging, main and the repository's default branch, staging; enabling Jenkins without a credential answered %d %s (No Jenkins credential for this product; add it to GAOS_UNIT_RESULTS_BASIC_AUTH_FILE.), enabling Jenkins with a credential answered %d %s, a save without the source field answered %d and left the source %q; on, Jenkins: the section lacks %q (the summary on · Jenkins · cap 4 a day, the one-line rule, the shown Jenkins block, the route, the configured credential, no result from Jenkins; nothing filed, the Jenkins help line), on, Jenkins: the full checklist or the missing-credential line is still shown, the no-ci wording is GitHub's under Jenkins; with no origin configured the build is a link, or not shown as text, with its origin configured the build is not a link, a build of another origin is a link, the origin %q reads %q; want %q; switching back answered %d, after switching back the checklist links or the no-ci words are Jenkins'.

TC-882, positive (TestTheDocumentedJenkinsBodyIsAccepted, unitresults_test.go, reading ../pustaka/docs/integrations/agents.html): the agents page has no #release-b-unit-jenkins section, the #release-b-unit-jenkins section has no <pre id="unit-results-sample">, the sample is not closed; the documented body answered %d %s; want 202\n%s, the documented body finished the watch as %+v. The fixture: unit checks on with the Jenkins source, a unit-results credential, and a pending watch of acme/route-api at the sample’s commit on develop.

TC-883, positive (deploy/check-stacks.sh): ok prod mounts the unit-results credential file read-only, ok prod passes the unit-results credential only as a file, never as an environment variable, ok prod passes the Jenkins origin from the deploy shell, empty (no build links) by default, ok traefik trusts forwarded headers from the edge (10.10.0.1/32) only, ok traefik does not trust the whole tunnel, ok traefik does not trust the first GAOS VM, ok traefik does not trust the second GAOS VM; negative: each prints FAIL with the same message when the compose file lacks the mount, passes GAOS_UNIT_RESULTS_BASIC_AUTH: as an environment variable or hard-codes the origin, or when traefik.yml lists any other or any further trustedIPs entry.

dashboard — the traffic monitor (TC-884 … TC-903)

GAOS records its outbound calls to external platforms and the calls made to it into capped Redis streams that only the back office’s Traffic page reads (D-107, BR-66, design docs/designs/traffic-monitor.md). These cases cover the stdlib RESP2 client, the settings, the recording transport and its path template, the error classes and the tracker’s outcome, the never-blocking queue and the writer, then the wiring: the seven wrapped clients, the gate’s inbound record, the principals, the flood separation and the deny-lists, then the back office’s Traffic page. Each case is one func Test… in dashboard/, except TC-902 (deploy/check-stacks.sh) and TC-903 (deploy/rebuild-restart.sh); the fake store is a loopback server in resp_test.go that parses RESP2 and answers from a script, and every address and token is invented.

TC-884, positive (TestRESPRoundTripsTheTrafficCommands, resp_test.go): %v encodes as %q, want %q for AUTH, XADD, XTRIM, XREVRANGE and an empty value; %q parses as %+v %v, want %+v for a simple string, an error, two integers, a bulk string holding CRLF, an empty and a null bulk, a null array; an error reply's Err is %v, want NOPERM no; an XREVRANGE reply parses as %+v %v, want two entries with their fields; over a socket, a pipeline of 128 answered %d replies, %v, reply %d is %d; the replies are out of order, the store saw %d commands starting %v; want AUTH gaos then the 128 in order.

TC-885, negative (TestRESPRefusesMalformedOrOversizedReplies, resp_test.go): %s was accepted for a line over 1 KiB, a bulk over 64 KiB, an array over 50 000, nesting over 3, a negative or non-numeric length, a truncated bulk or array, a bulk without its CRLF, an unknown type byte, a line without CR and an empty line; %q allocated %d bytes before failing; nothing may be allocated from a declared length; an error reply became a %d-byte error, want 80; an over-bound reply was accepted, the connection is still open after a malformed reply; it must be closed; a refused AUTH answered %v %v, want errRESPAuth, the AUTH error %q carries the password. Positive half: TC-884.

TC-886, negative and positive (TestTrafficSettings, traffic_test.go): a valid address and a mode-600 file answered %q %q, want on with the trimmed password; GAOS_REDIS_ADDR=%q turned recording on; want off with the reason for an empty value, a name, no port, two addresses outside the subnet, a non-numeric port and the subnet’s broadcast address, the reason %q carries the password; a password file that is %s turned recording on for unset, missing, empty, mode 644 and a directory; the boot lines are %q; want the address and 48 h, the off reason, and never the password; stream %s has cap %d, want %d, %d streams holding %d records, a %v window and a %d queue; want 13, 28000, 48h, 4096 (D-114 added out:gitlab, cap 3000).

TC-887, positive and negative (TestOutboundPathIsTemplated, traffic_test.go): base %q path %q templated as %q, want %q for the design’s examples ({base}/send/message, pulls/{n}/files, branches/{ref}, contents/{path}, a 40-hex commit as {id}), {other}, %2F, an e-mail, a phone number with and without +, a product id, a 41-byte segment and an empty path; 13 segments templated as %q, want the first 12; a 300-byte path templated to %d bytes, want at most 160; a URL with a query and a fragment templated as %q.

TC-888, negative (TestRecordingTransportKeepsNoSecret, traffic_test.go): the caller got %d %q %q; the response must reach it unchanged; the call made %d records (%v), want one on out:whatsapp; the record's fields are %q, want exactly t m s d qb rb h u e; a stored field %q holds %q for each of the six secrets, the user name and the base path; the record is %v; want {base}/send/message, POST, 201, qb 16, no error class.

TC-889, positive and negative (TestRecordingTransportClassifiesErrors, traffic_test.go, an h2c fake the tracker): %s made %d records, want one, %s recorded class %q status %s, want %q and 0, %s stored %q; no error text may be stored for a timeout, a cancel, a refused connection, an unknown CA and a reset; an unknown error is class %q, want other, a DNS error is class %q, want dns; through trackerClient.do: mode %s made %d records, want exactly one on out:task-tracker, mode %s recorded s=%s g=%s x=%s u=%s, want s=%s g=%s x=%s, mode %s: failed is %v, want %v, a tracker record holds the credential for trailer 16 (auth, failed), trailers-only 5 (notfound) and 3 (invalid), an over-limit body (-1, unavailable, failed); a transport error recorded %v, want one record s=0 x=unavailable e=refused.

TC-890, negative (TestTrafficRecordingNeverBlocks, traffic_test.go): recording blocked: 5096 records did not enqueue within 5 s; dropped is %d after 4096 + 1000 records, want exactly 1000; call %d failed with the store down: %v; records were written to a store that refuses connections.

TC-891, positive (TestTrafficWriterTrimsByLengthAndAge, traffic_test.go): the trim sent %d commands starting %v, want AUTH gaos then thirteen XTRIM, a trim is %v, want XTRIM <key> MINID ~ %s, the trim covered %d streams, want 13, firstWriteAt is %v after the first write, want %v; the batch sent %v; want one XADD per record to its stream with its cap, written %d dropped %d, want 2 and 2 (OOM and NOPERM drop their record); after a lost connection %d connections after the loss, want a redial, AUTH was sent at %v; want it first on each connection, firstWriteAt is %v, want the first write after the redial (%v); after a refused dial the backoff is %v until %v, want 2s and +1s, after a second refused dial the backoff is %v, want 4s, the backoff grew to %v, want it capped at 30s, the writer did not reconnect and reset its backoff (%v); logged %d outage and %d recovery lines over two outages, want 2 and 2: %q; the running writer wrote %d records, want 1.

TC-892, positive (TestEveryExternalClientIsRecorded, traffic_test.go): %s is wrapped with recording off, with recording off the QA, AI-manager and Brain Town clients have %T %T %T, want the default (nil), with recording off the GitHub client has %T, want *http.Transport; %s is not recorded, %s records as %q with base %q, want %q and %q, %s wraps %T, want today's %T; an injected AI-manager client was not returned as is; the tracker's transport is %T, want the plain *http.Transport (it records in do); the Arcade client's transport is %T; ArcadeDB is not recorded, the Arcade statement client's transport is %T; ArcadeDB is not recorded; an unknown platform label did not panic.

TC-893, positive and negative (TestInboundRecordsRouteSourceAndClient, traffic_test.go, through routes()): %s made %d records %v, want one on %s, %s stored %q (the token, the Basic password, the query, the unmatched path); a QA call through the edge recorded %v; want the pattern, qa-tools, the product, edge, two X-Forwarded-For lines recorded %v, want the same as one, a direct QA call recorded %v, want direct from 10.10.0.9, a call with no X-Forwarded-For recorded %v, want direct from the peer, a wrong token answered %d and recorded %v, want 401 with no principal, a Basic unit-results call recorded %v, want basic:unit-results, /v1/nope answered %d and recorded %v, want (no route) 404, DELETE /v1/products answered %d and recorded %v, want (no route) 405; a direct signed-out GET /inbox (%d) recorded %v; want a reduced record, backoffice, 401, a direct signed-out htmx request answered %d and recorded %v, want the requireBO status, a direct cross-origin POST answered %d and recorded %v, want 403, a direct GET /healthz recorded %v, want healthz 200, a direct static file recorded %v, want static; GET %s through the edge made %d records, want none; the summary holds %v; want 10.10.0.9 and 172.30.12.5, both with a principal, every direct request counted, an edge caller is in the direct-source summary.

TC-894, positive (TestInboundRecorderKeepsTheResponseController, traffic_test.go, a real server): a small body answered %v %v; SetReadDeadline through the wrapper: %v; an over-limit body answered %v %v, want 413, an over-limit body recorded %s, want 413; Flush through the wrapper: %v %v; a handler that writes nothing answered %v %v, a handler that writes nothing recorded %s, want 200; a panicking handler's panic did not reach net/http (the connection was answered), a panic recorded %s, want 500; %s made %d records, want one.

TC-895, negative (TestAnAnonymousFloodEvictsNoDirectOrAuthenticatedRecord, traffic_test.go, a fake store with stream semantics): in:direct:auth holds %d records after the flood, want its one, in:auth holds %d records after the flood, want its one, in:anon holds %d records after 10 000 anonymous calls, want its cap 1000; with the writer unstarted 4000 anonymous records left %d queued and %d dropped, want %d and %d, an outbound record after the flood: %d queued, %d dropped; it must still enqueue.

TC-896, negative (TestAnAuthenticatedDirectBurstEvictsNoOtherDirectRecord, traffic_test.go): in:direct:other holds %v after the burst, want the one unauthenticated record, in:direct:auth holds %d after 10 000 authenticated calls, want its cap 2000, the summary holds %d sources, want both, the summary counts %d unknown direct sources, want 1.

TC-897, negative (TestOutboundURLsRefuseTheTrafficStore, traffic_test.go): a QA URL on the traffic store's host answered %q, want refused: %s, a Brain Town URL on the traffic store's host answered %q, want refused: %s; the control, fixture: the QA URL is refused without the store set: %s and fixture: the Brain Town URL is refused without the store set: %s.

TC-898, positive (TestTrafficSummaries, traffic_view_test.go): the page is %q, want normal; the platforms are %v, want the nine in order; GitHub is %+v; want 13 calls, 1 4xx, 2 failed, p50 40 ms, p95 100 ms over answered calls (nearest rank), last 1m ago, GitHub is kept since %s (cap %v), want the oldest record's time and no cap; the task tracker is %+v; want 2 calls, 1 failed (gRPC 16), the not-found an answer; QA tool is %+v; a record older than 48 h must not be counted; WhatsApp is %+v; at its cap it must be marked cap, Brain Town is %+v; one under its cap it is not cap, and kept since its oldest; the inbound table has %d rows, %d more, first %q; want 50, 11 more, newest first; the kept records are %v (direct deadline %q), want each inbound stream with its count; the tiles are %+v; first write %v after start: the emptied note is %v, want %v; the summary shows %d sources since %q, first %q; want 512 since boot, newest first, the notes are %q; want the untracked note at 513 sources, the unknown-sources tile is %+v, want 511 in tone ask.

TC-899, positive and negative (TestTrafficFiltersAndPages, traffic_view_test.go): %q shows %d calls in direction %q, want %d in %q and %q: the tab on is %q, want the forced %q for each filter, the forced directions and invalid values; with both set the source %q was kept; it must be dropped; a non-admin's src=203.0.113.9 is %q (%d calls, poll %q); want the /24, one call, no full address; an invalid value was echoed in %q; page 3 of 25 GitHub calls shows %d rows, page %d of %d; want 5, 3 of 3, the poll URL is %q, want the filters and the page, the first page shows %d rows, want 10, page 99 was clamped to %d, want 3.

TC-900, positive and negative (TestTrafficPageStates, traffic_view_test.go, through routes()): the Off page (%d) lacks its reason, its docs line or the summary, GET /traffic sends Cache-Control %q, want no-store; the Unavailable page lacks its alert or the summary, a failed read was tried %d times within 15 s, want once; the Empty page lacks its text, the Filtered empty page lacks its text, the Normal page lacks the call, the poll answered %d (%q); want the live block out of band, no-store; signed out, signed out, %s answered %d, want 401 for /traffic, /ui/bo/traffic and /ui/bo/traffic/live, a signed-out request touched the store, a signed-out request read the store.

TC-901, negative (TestTrafficPageEscapesAndMasksAddresses, traffic_view_test.go): %s renders %q unescaped, %s renders a 2 KiB value unclipped; a non-admin's %s carries the full public address %s (text, title, href, hx-get, the poll URL: the whole HTML is searched) and a non-admin's %s lacks %s for 203.0.113.0/24, 2001:db8:1::/48, 10.10.0.9 and 100.64.1.2; for a non-admin the unknown-sources tile is %s, want 4 (two public sources in one /24 count once), for an admin the unknown-sources tile is %s, want 5; an admin's page lacks the full address %s.

TC-902, positive and negative (deploy/check-stacks.sh, “the traffic store”, and its secret loop in “no secret is committed”): ok prod pins the Redis image by version and digest, ok prod's Redis persists nothing, ok prod's Redis has a memory limit and refuses writes rather than evicting a stream, ok prod's Redis turns the default user off and admits the gaos user to the traffic keys and three commands, ok prod's Redis publishes no port, ok prod's Redis is on the internal traffic network only, at its pinned address outside the dynamic range, ok prod's Redis has an authenticated healthcheck, ok prod's dashboard joins the traffic network and reaches Redis by address, with the shared password file, ok the dashboard's edge hop is the one address Traefik trusts, ok nothing in prod has a start-order dependency, and, when the file exists, ok the traffic store's password file is untracked, a regular file, mode 600. Negative half, run by hand on 2026-11-27 in a scratch copy (D-025), one condition broken at a time and restored: each of the thirty conditions (C1 the digest; C2–C4 --save, a data volume, the tmpfs; C5, C6 the memory limit and allkeys-lru; C7–C11 the default user, +flushall, the ACL file, the entrypoint, requirepass; C12 ports and expose; C13–C20 the address, a second network, network_mode, the network’s name, internal, the subnet, the range, a third service on the network; C21 the healthcheck; C22–C25 the dashboard’s network, address, setting and mount; C26–C28 a tracked, directory and mode-644 password file; C29 the edge hop; C30 depends_on) printed its line’s FAIL with the same message, thirty of thirty; a comment holding depends_on: still printed ok; the restored tree printed all checks passed.

TC-903, positive and negative (deploy/rebuild-restart.sh, prod): with no deploy/stacks/prod.traffic-redis-auth the pre-flight prints ok created deploy/stacks/prod.traffic-redis-auth (mode 600) and the file is mode 600 holding 64 hex characters, never printed; with one present it is unchanged and nothing is printed; deploy/stacks/*.traffic-* is linked into the tag worktree with the other host-side files; after the containers listing, a redis line that is not (healthy) — unhealthy, restarting or missing — prints WARN redis is not healthy: the Traffic page will say Unavailable, which is not counted, so the run still ends verification passed. A failed openssl prints FAIL could not create deploy/stacks/prod.traffic-redis-auth (is openssl installed?) and stops. The two blocks were run on 2026-11-27 in a harness with a stubbed dc; the whole path runs at the v0.69.0 deploy.

dashboard — the back-office bar’s groups (TC-904, TC-905)

The bar groups its menu into sub-menus: a group is a popovertarget button, and its panel holds the existing links, moved byte for byte so every view keeps its URL (D-094; design docs/designs/top-bar-menu.md). The trigger of the current view’s group carries is-current. Both cases render through routes() with a signed-in session; the arrows, the wheel and the panels’ position and keyboard are browser behaviour and are checked by hand (design §6.3).

TC-904, positive and negative (TestBoMenuGroupsGlobal, bo_menu_test.go): on /ui/bo/stories each of Library, Automation and System has exactly one trigger and one panel, and only Library is current — the bar has %d triggers for %s, want 1, the bar has no %s panel, on %s the %s trigger is current=%v, want %v; the Library panel holds the current Stories link — the Library panel does not hold the current Stories link; each of the eleven views’ href … hx-get pairs appears once — the bar carries %q %d times, want once. On /ui/bo/inbox no group is current (the same message). A signed-out /stories, whatever it answers, carries no group — a signed-out page carries the bar's groups. A non-200 for a signed-in page stops the case: GET %s answered %d.

TC-905, positive and negative (TestBoMenuGroupsProduct, bo_menu_test.go): on /products/p-1?tab=blueprint Setup has one trigger and one panel and is current (TC-904’s messages); the panel holds the current Blueprint link and the AI vendors link — the Setup panel does not hold the current Blueprint link, the Setup panel does not hold the AI vendors link; each of the seven flat tabs appears once and outside the panel — the bar carries %q %d times, want once, the flat tab %q is inside the Setup panel; the global groups are absent — a product's bar carries the global groups. On ?tab=board Setup is not current.

dashboard — the replaced pull request, duplicates, triggers and sections (TC-906 … TC-913)

TC-906, positive (TestARetargetClosesThePullRequestItReplaced, autofix_dedup_test.go): after a retarget’s fix card finishes, the fake GitHub gets one PATCH …/pulls/<old> — the replaced pull request was closed %d times, want once, the close sent %s; want state closed; the old record is closed — the replaced record is %s; want closed; the event carries the retarget rule — the close event is %+v; want rule %s to closed; the defect stays on the new record — the defect is %s on %q gen %d; want fixing on the new record, generation 2; no card is planned — the close planned a card %s; want none; and the old pull request says so — the replaced pull request's comment is %q; want the closed sentence.

TC-907, negative (TestARetargetCloseFailureIsFlaggedAndSwept): GitHub answers 500 to the close — a failed close left the record %s; want draft, after a failed close the comment is %q; want the left-open sentence, the duplicate check gave %+v; want one superseded finding for %s; once GitHub answers again, resumeFixPRs closes it — the boot sweep left the record %s; want closed.

TC-908, positive and negative (TestAfDuplicatesRules): an open replaced record gave %+v; want one superseded finding closing a, a record replaced by a merged one gave %+v; want it superseded, a record whose successor closed unmerged gave %+v; want none, the chain gave %+v; want a then b superseded, two open records of one defect gave %+v; want y closed, the defect's x kept, with no live record the check gave %+v; want the newest kept, a closed and an open record gave %+v; want none, the order is %+v; want superseded first.

TC-909, positive and negative (TestTheCloseRoute): no session answered %d; want 401, a non-admin answered %d; want 403, an unknown record answered %d; want 404, a record that is no duplicate answered %d; want 409, a GitHub failure answered %d; want 502, a failed close left the record %s; want draft, a branch that is not gaos/fix- answered %d; want 422; then the close answered %d: %s, GitHub was not asked to close #12, the record is %s after the close; want closed, the close event's rule is %q; want %s, the close moved the defect to %s on %q; want it untouched, the answer is not the Auto-fix view with the toast. Already merged on GitHub: an already merged pull request was closed again, the already merged record is %s; want merged. In replay: a replay answered %d; want 409, a replay called GitHub: %v.

TC-910, positive and negative (TestAClosedNonLiveRecordLeavesTheDefect): closing a record the defect does not wait on moved it to %s generation %d; closing the defect's own record left it %s generation %d; want triaged, 2.

TC-911, positive (TestTheAutoFixRowShowsBranchAndTrigger): each of the six trigger cases — the trigger of %+v is %q (%q); want %q (%q) (a bidirectional control in a case id is stripped); the table — the Fix pull requests table does not show %q, a record with no base does not show the dash.

TC-912, positive (TestCardsWaitingPagesByFive): Cards waiting shows %d of %d over %d pages; want 5 a page, wpage=99 shows page %d with %d cards; want the last page, the next-page link is %+v; want wpage=2 with the product and the section, and no open.

TC-913, positive and negative (TestTheAutoFixSectionsCarryTheQuery): the default section is not Fix pull requests alone, the active section is not marked aria-current=true, section=waiting does not render only Cards waiting with the section kept in the form, the poll does not carry the section, the filter form is missing from the Cards waiting section, section=products does not render only Auto-fix by product, an open drawer does not force Fix pull requests, an unknown section is not ignored, a state link %q drops the section.

dashboard — the busy guard and the saved check mark (TC-914, TC-915)

Every request an operator starts marks its button busy until the answer lands, and a second press meanwhile is cancelled; a form that saved confirms on its own button. They read static/app.js and static/app.css, the same way the answer sheet’s recovery text is checked. The prod log that prompted them held two PUTs of the same vendors form: the first had saved, and nothing on screen said so.

TC-914, positive and negative (TestEverySubmittingButtonIsBusyUntilItsAnswerLands): fails with app.js lacks %q: a pressed button would not be busy until its answer lands, and a second press would send again when the guard, the cancel of a second press, the skip of a live refresh, or the release on afterRequest, sendError, timeout and abort is missing; and with app.css lacks %q: a busy button would not show it, or would spin under prefers-reduced-motion when the spinner or its reduced-motion form is.

TC-915, positive and negative (TestASavedFormConfirmsOnItsOwnButton): fails with app.js lacks %q: a save whose redrawn pane looks the same would again say nothing at the button when the check mark is not limited to a 2xx answer to a non-GET request, or is not looked up again by id after the swap; and with app.css has no .btn.is-done check mark: a saved form would not confirm on its button.

The task code is read from the shapes authors actually write, the two missing-code alerts get their own texts, a notification line carries its links, the card link redirects to the card’s action, and a needs-a-person line names the fix card and reaches the person behind it, or the product’s default recipient when nobody is (D-109, D-110, BR-68; design docs/designs/notify-links-contacts-automation-planner.md §3–§6). TC-916 and TC-917 are in bundles_test.go, the rest in notify_links_test.go. The examples use the invented loop/laundry-api, RP-FEATURE-00319 and gaos.example.

TC-916, positive and negative (TestTaskCodeFromValueShapes, bundles_test.go): a bare code, a bold code, **(RP-SUBTASK-00403)**, a code followed by its link in brackets, a markdown link, a code after a word, a bare …/tasks/<code> link and the first of two codes are each read; a link whose path is not tasks/<code>, a placeholder, ..., an empty value, a plain word, ../etc/passwd and RP_FEATURE read as no code. Each wrong answer fails with extractTaskCode(%q) = %q, want %q.

TC-917, positive (TestTheTemplateReadsACodeWithATrailingLink, bundles_test.go): the golden files testdata/prtemplate/code-with-url.md and code-in-parens.md are read as a present template from the task manager with the codes RP-FEATURE-00319 and RP-SUBTASK-00403; otherwise %s: code %q (present %v, task manager %v), want %q.

TC-918, positive (TestTheTwoMissingCodeAlertsHaveTheirOwnText): a template with no code an hour old sends “A pull request names no task-manager code”, no template two hours old sends “A pull request does not use the PR template” — template %+v: sent %v, want one line saying %q; both record the one kind — both alerts record the kind %q, got %q.

TC-919, positive and negative (TestAPublicURLIsHTTPSWithNoQuery): https://gaos.example/app, the same with a trailing slash (trimmed), https://gaos.example and http://localhost:8080/app are accepted; plain http on another host, a query, a fragment, userinfo, ftp, a URL with no scheme and the empty value are refused. A wrong answer fails with parsePublicURL(%q) = %q, %v; want %q.

TC-920, positive and negative (TestALineCarriesItsLinks): a card line about a pull request ends · card <id>, then the pull request’s URL, then the card link — a card line about a pull request must end with both links, got %v; a pull-request line names <owner>/<repo>#<n> and carries both links — a pull-request line must name the repository and carry both links, got %v; a unit notice with no repository keeps · card and gains only the card link — a unit notice keeps · card and gains only the card link, got %v. Negative: with no public URL and no pull request — with no public URL and no pull request a line has no link line, got %v; and trimLines drops a control character but keeps the line breaks — trimLines must keep line breaks and drop other controls, got %q.

TC-921, positive and negative (TestTheCardLinkRedirectsToTheAction): the target table — a card awaiting input goes to inbox?product=, a blocked or pending card with a defect: label to autofix?product=…&section=waiting, any other to the product’s board with its workflow — %s %v: target %q, want %q; a product with no slug — a product with no slug goes to the inbox, got %q. Through routes(): GET /c/%s answered %d Location %q; want 303 under /app/, the redirect %q names neither the product's board, the inbox nor the auto-fix page; a forged X-Forwarded-Prefix: //evil.example — a forged prefix must never make a protocol-relative redirect, got %q; an unknown card — an unknown card answered %d, want 404; signed out — signed out, the card link answered %d without the sign-in page; want 401 and a page. A card that cannot be planned stops the case: no card was planned: %v.

TC-922, positive and negative (TestNeedsAPersonNamesTheFixCard): the triage hook finds the defect’s fix card — the fix card %s was not found, got %+v; a defect with no fix card finds none — a defect with no fix card must not find one.

TC-923, positive and negative (TestWhoForFindsThePersonBehindALine): a review defect and a unit defect with its commit answer the person; a unit defect with no commit answers the group; a QA run’s fail and xpass answer personless — defect %+v: whoFor = %q, %v; want %q, %v; a defect that cannot be read — a failed lookup must answer the group, got %q, %v; a planner card about a pull request — a planner's line goes to the pull request's author, got %q; no GitHub client — with no GitHub client every line goes to the group. Since v0.74.4 an API QA run’s line (qa-run/…) is personless — a QA test run's line has nobody behind it and may reach the default recipient, got %q, %v.

TC-924, positive and negative (TestRouteGivesTheDefaultRecipientOnlyPersonlessLines, renamed from TestTheDefaultRecipientTakesOnlyPersonlessLines by D-130, which leaves route unchanged): a QA run’s defect reaches the product’s * contact — a QA run's defect must reach the default recipient, got %v; a review defect whose author filtered defect:complex out goes to the group, never to the default — a person who filtered the kind out stays on the group, never the default, got %v; a unit notice — NotifyPR never reaches the default recipient, got %v.

TC-925, positive and negative (TestATrackerDestinationResolvesAtSendTime): a plain destination is kept, got %q; with no tracker link — with no tracker link a tracker destination is the group, got %q; the default recipient has no tracker number: tracker must be refused on it; tracker is a valid destination for a person: %v. The number itself is never stored, logged or shown (BR-63).

TC-926, positive and negative (TestContactDestinationsAreNormalised): spaces, dashes, brackets and a leading + are removed from an international number; a group id (…@g.us, including the <number>-<number> form), a …@s.whatsapp.net jid and tracker are kept; a number starting 0, a five-digit number, abc@g.us, a two-digit jid and an email address are refused. A wrong answer fails with normalizeDestination(%q) = %q, %v; want %q.

dashboard — the Contacts page (TC-927, TC-928)

Contacts is a top-level back-office page with guided fields; only an auto-fix admin (GAOS_AUTOFIX_ADMINS) may change a contact, and the tracker people list reaches only an admin, logins and names only (D-110, BR-68). Both cases are in contacts_page_test.go and render through routes(); a page that does not answer 200 stops the case with GET /ui/bo/contacts answered %d.

TC-927, positive and negative (TestOnlyAnAdminChangesContacts): with no admins, a save — a non-admin save answered %d, want 403 with the refusal: %s (the refusal is “only an auto-fix admin may change contacts”), a non-admin save was stored; a delete — a non-admin delete answered %d, want 403, a non-admin delete removed the contact; the page — a non-admin's page does not say who can change contacts, a non-admin's page carries %q (the form, the datalist, a person, Remove, the tracker number masked or not), a non-admin's page must list the contact, its destination masked. As an admin: an admin's page lacks %q (the form, the people datalist, Remove, the Default recipient and Everything boxes), an admin's page carries the tracker number %q, an admin delete answered %d, an admin delete left the contact.

TC-928, positive and negative (TestTheContactsPageSavesItsChoices): three ticked boxes — repeated notifyOn stored %v, a save does not answer with the Contacts page and the contact's kinds; the legacy single value review:high, unit:failure — the legacy comma value stored %v; Everything ticked with a kind — Everything stored %v, want the empty list; nothing ticked — no notifyOn stored %v, want the empty list; the Default recipient box with an account typed — the Default recipient box did not store the login *, the Default recipient box stored the account field too; the page — the Contacts page lacks %q (“Default recipient”, “From the tracker”, “All products”), a tracker destination is shown masked instead of in words. Negative: a default recipient with a tracker destination — a default recipient with a tracker destination was accepted, a refused default recipient was stored. A save that does not answer 200 stops the case: save %v answered %d: %s; a missing contact: no contact %s|%s.

dashboard — the automation planner (TC-929 … TC-931)

An e2e-automation card with no case, and a test planner that hands its bundle over, plan an automation-planner card; its plan is validated, its catalog write is guarded, and no outcome starts a spec until a person releases the card (D-111, BR-67; design §7). All three are in automationplanner_test.go; the catalog write runs on a fake writer against the invented acme/route-automation.

TC-929, positive and negative (TestAnE2ECardWithNoCaseHandsOverToThePlanner): a tick plans the planner card for pr:loop/laundry-api#50 — no planner card was planned for the pull request, got %+v; the e2e card waits on it — the e2e card is %s %q; want BLOCKED waiting on the planner, no job may start without a case: %v; a release while the planner is open — a release while the planner is open must wait on it, got %q %v; the planned reason — the planned reason reads back as %q %q, an update's note must survive in the reason, got %q %q %q, a planned case is read only from the reason's start. Refusals: an unassigned role must refuse the planner, got created=%v skipped=%q; with GAOS_PR_MAX_OPEN=1 the open-card cap refuses nothing (v0.74.2) — a full open-card cap must not refuse the planner, got skipped=%q; with GAOS_PLANNER_DAILY=1, the first planner of the day must be planned, then GAOS_PLANNER_DAILY=1 must refuse a second planner the same day, got created=%v skipped=%q.

TC-930, positive and negative (TestTheAutomationPlanIsValidated): a valid catalog, automate create, automate update with a note and none pass — %s: refused: %v; each broken plan is refused naming its rule — %s: got %v, want an error naming %q — for an existing epic code (“not a new code”), a path with .. or outside the catalog (“docs/test-catalog”), empty content (“empty or too long”), a token in the content (“credential”), create on an automated case (“already automated”), update with no note (“note”), an unknown case (“unknown case”), automate from a bundle’s planner (“pull request's planner”), none with an epic (“no epic”), no summary (“summary”) and an unknown decision (“catalog, automate or none”); a reply with no block — a reply with no plan block must be unreadable.

TC-931, positive and negative (TestTheAutomationPlannerAfterRun): the catalog write’s refusals in order, catalog-no-repo, catalog-public, catalog-file-exists, ci-secrets — want %s, got %v, %s: a refused write created a branch %v; the ci-secrets case is a pull_request_target workflow, while a secret-using workflow on push and pull_request only refuses nothing (v0.74.3); a write opens gaos/catalog-pkgppo and one draft — the catalog write: %q %v refs %v prs %v, and its commit carries the marker — the catalog commit must carry [skip ci], got %v; a second write for the same epic — a second write for the same epic must reuse the open pull request, refs %v err %v. The guards never cross: createRef must refuse a gaos/catalog- branch, createCatalogRef must refuse a gaos/fix- branch, createCatalogRef must refuse a repository that is not an automation repository. afterRun for none, automate, a catalog whose pull request cannot be opened (the planner ends FAILED, v0.74.3), and an unreadable reply — reply %.40q: the planner is %s %q; want %s %q, reply %.40q: the e2e card is %s %q; want BLOCKED with %q, reply %.40q: want one %s line, got %v (since v0.83.0 none and automate send automation:routine, a catalog failure automation:planned, D-123). The handoff — a handoff must end the test planner DONE naming the planner, got %s %q, the handoff must plan the bundle's planner with the note, got %+v. The model pin — the planner runs on claude-opus-5-5 and no other role changes, got %q and %q, GAOS_MODEL_AUTOMATION_PLANNER overrides the planner's model, a malformed override is ignored.

dashboard — the revision loop (TC-932 … TC-953)

D-112: a review on an agent’s pull request becomes a revision round that fast-forwards the pull request’s own branch, then GAOS reviews again. All in dashboard/prrevision_test.go; the names are invented (D-085). Run them with cd dashboard && go test -run 'TestRevision|TestReview(er|ed)|TestRenderFindings|TestAgentAuthored|TestUpdateRef|TestResumeRe|TestReReview' .; TC-945 needs the scratch database (deploy/schema/scratch.sh up, then GAOS_ARCADE_TEST_URL).

TC-932, positive and negative (TestRevisionKeysAndMarkers): the case id parses — case id %q: revision %v round %d number %d, revisionPR %q %d, a review defect read as a revision, or a revision key not recognised; the marker — the marker names the card: %q, the last marker must win: %q %q %v, a planted marker survived: %q, the revision marker does not match its own id only.

TC-933, positive and negative (TestReviewerMarksAndPinsItsReview): pins %v, the body carries no marker: %q; a 422 on the pinned commit — a stale pin left %s %q.

TC-934, negative (TestReviewerSkipsAPostItsMarkerShows): %s: %d post(s), want %d for the own marker (0) and a stranger’s copy (1); the severity branch, whose alert is the D-130 review alert — %s: needs-manual %v notes %v.

TC-935, positive (TestReviewerOnAnAgentPullRequestCommentsOnly): an agent pull request got %v %q, a low finding on an agent pull request planned %d draft fix(es).

TC-936, negative (TestReviewerLeavesAClosedPullRequestAndClaimsTheCard): closed: %d post(s), card %s %q, a claimed card was posted.

TC-937, positive and negative (TestResumeReviewsPostsAStoredReplyOnce): %d post(s) after the first boot, %d post(s) after the second boot.

TC-938, positive and negative (TestReviewedEventPlansARound): outcome %v logs %v, round %+v err %v; an open round — an open round let another plan: %v; pr.reviewed is not a default type.

TC-939, negative (TestReviewedEventRefusals): off, human author, draft, fork, no association, closed and a 429 log their revise: <class> and answer done, a 502 retries — %s: outcome %v logs %v; off reads nothing — %s: %d GitHub read(s) before the store refusal.

TC-940, positive and negative (TestRevisionCandidates): candidates %v held %v, round 2 candidates %+v, a high GAOS review did not hold.

TC-941, positive and negative (TestReviewedEventActionability): a read-only reviewer, a body-only comment and a GAOS none log nothing-actionable, a GAOS low planned r1, a GAOS critical revise: held, a secret findings-withheld — %s: logs %v.

TC-942, positive (TestRenderFindingsNewestFirst): text %q ids %v withheld %d.

TC-943, positive and negative (TestAgentAuthored): a plain pull request read as an agent's, GAOS's own fix pull request not recognised, a revision record made the pull request an agent's, a different branch matched.

TC-944, positive and negative (TestRevisionRefusalsAndPlan): refused %q, plan %q %v, an open round answered %q, handled %v, after one pushed round of cap 1: %q, a closed round refused %q, the next round %+v, want %s, got %q, a revision cap of 11 was accepted, the store kept a cap of %d.

TC-945, positive (TestRevisionSurvivesARestart): after a reopen %+v err %v, reviseDone did not survive the reopen.

TC-946, positive (TestRevisionFastForwardsThePullRequestBranch): calls %v, the push was sent with force %v, the pushed commit %+v, record %+v, card %s %q, defect %s %q, comments %v, a revision added labels, re-review card %+v, own-fix %v closable %v.

TC-947, positive (TestRevisionAdoptsAPushACrashLeftBehind): an adopted push was sent again (%d), record %+v comments %d.

TC-948, negative (TestRevisionRefusesAMovedBranch): card %s %q, round %s, a moved branch was pushed, refused push: card %s %q, CI secrets: card %s %q.

TC-949, negative (TestUpdateRefGuards): %s: moved, a refused move reached GitHub, own gaos branch: %v, a 422 answered %v.

TC-950, positive and negative (TestRevisionCapEndsTheLoopOnce): a re-review was planned at the cap, comments %v, notes %v, a second finish posted again: %d.

TC-951, positive (TestResumeRevisionsPlansAMissingReReview): record %+v, after the boot job: %+v, comments %d.

TC-952, positive and negative (TestReReviewCardsAndTheMerge): plan %q %v, a second plan answered %q, want %q, round 1 is pr.opened's, not a re-review, key parts %s %s %d %v, the re-review is %s after the merge, the revision round is %s after the merge.

TC-953, positive and negative (TestReviewerAutoStartAndTheContextGate): an unlisted product starts reviews unattended, the listed product's reviewer does not start, or another role does, a cold reviewer card may start, warm filled %d; ready %v, context head %q.

dashboard — the forge seam (TC-954 … TC-962)

D-113 and D-115 (docs/designs/gitlab-forge.md, PR 1): a repository entry may name a GitLab path on one configured host, every holder of a forge client reaches it through a per-repository router, and the fix and catalog writes go through commitFiles. In this release no GitLab host is configured, so nothing a GitHub product does changes. All in dashboard/forge_test.go; the names are invented (D-085). Run them with cd dashboard && go test -run 'TestGhOwnerRepoUnchangedForGitHub|TestParseRepo|TestKeysRoundTripNestedRepo|TestPRURLRoundTrip|TestNoTokenPathsStillSkip|TestForgeHasTypedNil|TestNoNewConcreteForgeHolder|TestPrimitivesOnlyInRevision|TestDefectFixerFallsBackToGh' .

TC-954, positive and negative (TestGhOwnerRepoUnchangedForGitHub): thirty GitHub entries compared with the old split — ghOwnerRepo(%q) = %q %q %v, was %q %q %v; the narrowed entry — ghOwnerRepo("a b/c") must now be refused (repo-refused), as repoOK refuses it.

TC-955, positive and negative (TestParseRepo): acme/api parsed as %+v %v, a GitLab entry must not parse while no GitLab host is configured; then, with a host, a one-segment path, .., ., a leading -, a space, a port, another host, more than twenty segments, more than two hundred characters and the narrowed GitHub entry — %q must be refused, parsed as %+v, and the valid ones — %q parsed as %+v %v, want forge %s.

TC-956, positive (TestKeysRoundTripNestedRepo): ghOwnerRepo(%q) = %q %q %v, prKeyParts(%q) = %q %q %d %v, parsePRRef = %q %q %d %v, pullRequestKey = %q, reviewDefectKey = %q, a GitLab entry on the configured host must be a valid target repository.

TC-957, positive and negative (TestPRURLRoundTrip): prWebURL GitHub = %q, parsePRURL GitHub = %q %d %v, a GitLab page must not parse while no GitLab host is configured, prPageURL must keep today's GitHub address for any non-GitLab entry, got %q; with a host, prWebURL GitLab = %q, parsePRURL GitLab = %q %d %v, prURLsIn found %v, want both links, and plain http, user info, a query, an issue, a one-segment path, zero and another host — %q must be refused.

TC-958, negative (TestNoTokenPathsStillSkip): newForges with no client must be a literal nil; per holder — %s: forgeHas = %v, want %v, %s: forgeHasWrite = %v, want %v; a GitLab entry must be skipped while GitLab has no client, a GitLab call on a GitHub-only router answered %v, want errNoForge; the flow’s gates — prepare with no client answered %v, want errGitHubOff, the review context with no reader answered %q, want the no-reader skip, the review context with a nil router answered %q, want the no-reader skip.

TC-959, positive and negative (TestForgeHasTypedNil): a nil *forges in an interface must be absent, a fake passed by value must read as present, a fake passed by pointer must read as present, a nil interface must be absent.

TC-960, negative (TestNoNewConcreteForgeHolder): a source scan of the package’s non-test files — %s: field %s is a concrete *%s; hold a forge interface instead (D-113); the two exceptions are defectFixer.gh (the revision write) and fixPRPoller.fg (the unit checks’ GitHub reads).

TC-961, negative (TestPrimitivesOnlyInRevision): a source scan — %s calls %s: write through commitFiles (D-115) for createBlob, createTree, createCommit, createRef or createCatalogRef outside githubwrite.go and prrevision.go.

TC-962, positive and negative (TestDefectFixerFallsBackToGh): a fixer with no client must have no writer and no reader, the writer falls back to gh, got %T, the reader falls back to gh's reads, got %#v, set fw and rd must win over the fallback.

dashboard — GitLab reads and advisory reviews (TC-963 … TC-975)

D-114 (docs/designs/gitlab-forge.md, PR 2): one self-hosted GitLab host per instance, its review token, the pinned project ids, advisory reviews, the neutraliser and the Brain Town edge. All in dashboard/gitlab_test.go against an httptest GitLab; the names are invented (D-085). Run them with cd dashboard && go test -run 'TestGitLab|TestTokenLoaderGitLab|TestEgressGitLabFamily|TestTrafficPathGitLab' .

TC-963, positive and negative (TestGitLabRefusesOldVersion): glVersionOK(%q) = %v, want %v, a 15.6 server answered %v, want GitLab older than 15.7, a 16.11 server answered %v, want nil.

TC-964, positive and negative (TestGitLabProjectPin): the first pin answered %d %v, want 77, the product pins %d, want 77, the same id again answered %d %v, a different id after a restart answered %v, want project-id-changed, a frame naming another id answered %v, want project-id-mismatch, a 502 answered %v, want a transient error, a transient error pinned %v, a 404 answered %v, want token-cannot-read.

TC-965, positive and negative (TestGitLabPullRequestMapping): pullRequest answered %v, the merge request mapped wrong: %+v, author or refs mapped wrong: %+v, a same-project MR names %q / %q, want the entry twice, labels, merge sha or count mapped wrong: %+v, the page is %q, want %q, a merged MR mapped to %+v, a fork answered %v, want the fork refusal whatever GAOS_PR_ALLOW_FORKS says, an MR of another project answered %v, want project-id-mismatch, selfLogin answered %q %v.

TC-966, positive and negative (TestGitLabAssociation): level %d %s is %q, want %q, a 404 member answered %q %v, want NONE, no author answered %q %v; never empty.

TC-967, positive and negative (TestGitLabTooManyFiles): two files answered %d %v (%+v), 301 files answered %v, want too-many-files, not transient.

TC-968, negative (TestGitLabHostileNames): glRefOK(%q) accepted a hostile name, glRefOK(%q) refused a valid name, a hostile branch reached a call, a hostile branch made %d calls.

TC-969, positive and negative (TestGitLabReviewEvents): APPROVE was not refused: GAOS never approves, a moved head answered %v, want a 422 (the stale-review path), the posts are %q, want %q.

TC-970, negative (TestGitLabBodiesNoQuickActions): a line still starts with a quick action: %q, %q survived the neutraliser: %q, the text changed more than it should: %q, a posted body was not neutralised: %q.

TC-971, negative (TestGitLabReviewedRefused): a GitLab pr.reviewed answered %v, want flowDone, the refusal logged %q.

TC-972, positive and negative (TestGitLabFrameMatch): an owned GitLab frame was not handed over, the frame was read wrong: %+v, %d markers, want 5 (incomplete, no host, other host, sibling subgroup, too long), an unknown ownership must be handed over for the flow to retry, the flow answered %v with unreadable products, want flowRetry, a frame naming another project answered %v, want flowDone (skipped).

TC-973, positive and negative (TestTokenLoaderGitLab): %s: answered token=%v why=%q for a good token, mode 644, empty, short, deploy, trigger, runner, GitHub, Brain Town, GAOS and an unknown kind; %s: the reason carries the token; GAOS_GITLAB_HOST=%q answered %q %q; one token in two files answered %q; a good configuration answered %q.

TC-974, positive and negative (TestEgressGitLabFamily): no detector %q, the GitLab detectors must be credentials, gl%s- is not detected, a runner registration token is not detected, the detector matches what is not a token.

TC-975, positive (TestTrafficPathGitLab): %s templated as %q, want %q for a project, a file, the tree, a branch, a commit, a compare, a merge request, its notes and discussions, a pipeline and its jobs.

dashboard — the pull-request card cap (TC-1026 … TC-1032)

D-120: the card cap is shown, a refused pull request waits instead of being dropped, a merge is never refused, and a merged pull request’s blocked e2e card frees its slot. All in dashboard/prcap_test.go; TC-1032 needs the scratch database.

TC-1026, positive and negative (TestPRCapRemembersAndOrders): open cards %d, want the cap's own count 2, a capped pull request: planned %v capped %v mark %d, a replay moved the mark %d -> %d, a new pull request overtook the queue: planned %v capped %v, the oldest waiting pull request was not planned: %v mark %d, a reopened pull request: %s mark %d.

TC-1027, positive (TestPRCapNeverRefusesAMerge): a merge at the cap: planned %v capped %v err %v, a merged pull request still waits for room, a waiting row counted as a reviewed one.

TC-1028, positive and negative (TestPRCapReplanOutcomes): for cap still full, room, merged meantime, now a draft, a stranger, gone and GitHub down — %s: planned %v (want %v) waits %v (want %v); logs %v.

TC-1029, positive and negative (TestPRCapFreesAMergedBlockedE2E): through the merge and through the sweep — %s via %s: the e2e card is %s.

TC-1030, positive (TestPRCapIsShownOnThePullRequestsPage): the page lacks %q.

TC-1031, positive and negative (TestResumeRevisionsHonoursTheClaim): the sweep ran under a held claim: %+v, the sweep did not finish once the claim was free: %+v.

TC-1032, positive (TestPRCapSurvivesARestart): capSkippedAt did not survive a reopen: %+v.

dashboard — no unit-test card for an automation repository (TC-1033)

TC-1033, negative and positive (TestAnAutomationRepoMergePlansNoUnitCard, D-121): an automation repository's merge planned %v (skipped %q, err %v), want no unit-test card; an application repository's merge planned %v err %v, want its unit-test card; a monorepo's merge planned %v err %v, want its unit-test card.

dashboard — the no-task-code chip follows the row (TC-1034)

TC-1034, positive and negative (TestTheNoTaskCodeChipClearsOnceTheRowNamesACode, D-100): the alert flag is sticky, so the chip is weighed on the row as it stands. an alerted row that still names no code lacks the no-task-code chip; a row that names a task code still shows the no-task-code chip; the Task column does not show the task code the pull request names; the drawer does not list the task code among its facts; a row adopted into a bundle still shows the no-task-code chip.

dashboard — no news is good news (TC-1035, TC-1036)

D-123: WhatsApp carries an error, a need-you or an important warning, nothing else. Both cases are in dashboard/notify_test.go; run them with cd dashboard && go test -run 'TestARoutineNoticeIsNeverSent|TestNoContactCanOptIntoAQuietNotice' ..

TC-1035, negative and positive (TestARoutineNoticeIsNeverSent): an automation:routine line through Notify, NotifyPR and notifyTo, with a contact that wants everything — a routine notice went out (D-123): %v, a routine notice left a ContactNotified event: %s; an automation:planned catalog line and an e2e:failure still go out — sent %v, want the catalog line and the failure.

TC-1036, negative and positive (TestNoContactCanOptIntoAQuietNotice): a quiet kind is not on the Notify-on list — quiet kind %s is on the Contacts page's Notify-on list; a contact naming one is refused — a contact with notifyOn %s was accepted; a quiet notice is never sent; the error, need-you and warning kinds stay loud — %s is quiet; it is an error, a need-you or a warning and must be sent.

The instance guards (TC-1037 … TC-1040)

D-122 rev 3: every GAOS instance on a shared ai-manager names its own namespace, and never writes into a workspace it did not provision.

TC-1037, negative and positive (TestTheGatewayTenantMustBeExplicit): %s: aimTenantOK answered %v, want ok=%v, %s: the refusal does not name D-122: %v, an aimanager adapter without an explicit tenant answered %v, GAOS_AIM_TENANT=office read as %q set=%v.

TC-1038, negative and positive (TestASyncNeverWritesIntoAnotherInstancesWorkspace): the sync into another instance's workspace was not refused with %s: %+v, the other instance's workspace was written: %+v, the reviewer copy was provisioned after the refusal: %+v, the reviewer copy of a product this instance never provisioned answered %+v, the provisioned workspace was not recorded: %q, a sync into this instance's own workspace failed: %v, this instance's own workspace was not written: %+v; an adopted folder (GAOS_AIM_ADOPT_WORKSPACES) — an adopted workspace was refused: %v %+v.

TC-1040, negative (TestAForeignPoolThatDisagreesIsNotOverwritten): a disagreeing pool this instance never provisioned answered %v %+v; want foreign-workspace, the foreign pool was written over.

TC-1039, negative and positive (rebuild-restart.sh, the pre-flight): with no value it prints FAIL GAOS_AIM_TENANT is not set in deploy/stacks/prod.dashboard.env -- refusing to deploy (D-122) and the command that adds it, and stops; with an unusable value (or a quoted, exported or commented one) FAIL GAOS_AIM_TENANT in deploy/stacks/prod.dashboard.env is not usable (lower-case letters, digits and dashes, at most 32; the plain form GAOS_AIM_TENANT=name, no quotes or comment) -- refusing to deploy (D-122); with a usable one ok GAOS_AIM_TENANT is set (<name>) and the deploy continues. Run against a sandbox copy of the block on 2026-12-04, and live on both prods.

The missing-Blueprint flag (TC-1041)

TC-1041, positive and negative (TestAProductWithNoBlueprintIsFlagged, D-122): the Board tab of a product with no Blueprint does not flag it with a link to the Blueprint, the Blueprint tab does not say what to do, the product card does not flag a missing Blueprint, the flag stays after a Blueprint was published.

dashboard — the Pull requests drawer alone (TC-1042)

D-124: opening or closing a row’s details swaps only #prsDrawerSlot. The five cases of this release are in dashboard/prview_test.go and dashboard/handlers_prs_test.go; run them with cd dashboard && go test -run 'TestThePRDrawerRoute|TestTheResyncButton|TestResync' .

TC-1042, positive and negative (TestThePRDrawerRouteAnswersOnlyTheDrawer): the drawer route answered %d: %s; the drawer route lacks %q: %s; the drawer route answered the list or the sheet, not the drawer alone; the drawer route did not move the address to the open row: HX-Replace-Url %q; the refresh header must sit on the drawer’s one childless refresher, found %d hx-headers; the quiet refresh re-animated, took focus or moved the address: HX-Replace-Url %q; with no open row the drawer route does not answer an empty slot: %s; signed out, the drawer route answered %d, want 401; the page’s row link does not open the drawer through the drawer route.

dashboard — who sees Re-sync (TC-1043)

TC-1043, positive and negative (TestTheResyncButtonOnlyForAdminsOnRowsWithNoTaskCode): an admin does not see Re-sync in the row and in the drawer of an alerted row with no code; a row that names a code offers Re-sync; an account off the auto-fix admin list sees Re-sync.

dashboard — a re-sync of a merged row (TC-1044)

TC-1044, positive (TestResyncOfAMergedRowRecordsOnlyItsCode): a re-sync of a merged row answered %d with HX-Trigger %q, want 200 and prs-changed: %s; the toast does not name the code found: %s; the merged row was not keyed to its task: code %q, bundle %q; a merged row’s state or check time moved: state %q, checked %d (was %d); a merged row’s re-sync pulled in the row its body links: %q; the re-sync made %d forge read(s) and posted %d comment(s), want one and none; after the re-sync the row still shows the chip or the Re-sync button.

dashboard — a re-sync of an open row (TC-1045)

TC-1045, positive and negative (TestResyncOfAnOpenRowIsAPollRead): a re-sync of an open row answered %d: %s; an open row was not recorded as a poll would: checked %d, state %q, code %q; an open row naming an unknown code got %d comment(s), want the one unknown-code comment: %v; a re-sync of a row a poll holds answered %d and read %d time(s): %s; a re-sync of a 100-day-old open row answered %d: %s; a row past 90 days was recorded as a poll: code %q, checked %d, %d new comment(s).

dashboard — a re-sync refused (TC-1046)

TC-1046, negative (TestResyncRefusesWithoutAReason): every refusal is a 4xx toast, because htmx swaps only 2xx–4xx. %s: answered %d, want %d with %q: %s; %s: a 5xx toast is never shown (htmx swaps only 2xx-4xx); no session: answered %d, want 401; an unknown key: answered %d: %s; a forge error’s text reached the page: %s; a re-sync over the rate read the forge; a re-sync in replay read the forge.

The QA tool's refusal reason (TC-1047)

TC-1047, negative and positive (TestTheQAToolsRefusalReasonReachesTheCard): a fake QA tool answers the case-proposals route with 400 {"error":"…"}, and the card must end FAILED with qa-tool-error: the QA tools answered HTTP 400: <reason> — else a refused plan must fail the card with the QA tool's reason, got %s %q, want %q, and the bundle:failure line must carry the QA tool's reason, got %v. A plain-text body, an empty reason and a reason holding a token leave only the status, and an over-long reason is cut to 160 bytes: qaRefusal(400, %.40q) = %q, want %.80q.

The case-proposals deadline (TC-1048)

TC-1048, positive and negative (TestTheCaseProposalsCallOutlivesTheShortDeadline): the QA tool writes every proposed case before it answers, about a second each, so the call has its own deadline (qaProposalCall, 120 s) in place of the 15 s of every other QA call. A fake QA tool answers after the shortened short deadline: a plain call must time out (the short deadline did not cut a slow answer (HTTP %d); the case is not testing anything) and the proposals call must still read the answer (a plan the QA tool answers after qaOutCall must still be read, got %+v, %v), without changing the client (the case-proposals call changed the client's own deadline to %v). Past its own deadline it fails: an answer later than qaProposalCall must fail as unreachable, got %v.

TC-1049, positive and negative (TestSetRepoLinkedLinks), D-127: on the in-memory store, a link of acme/route-api to p-1 appends the trimmed entry, emits one RecordUpdated with rule repo-link whose text names the alias and never an email, and answers the toast Linked acme/route-api. — else a link must emit RecordUpdated with rule repo-link: %+v. The same entry in another case is 409 Already linked; on p-2 it is 409 naming p-1 — else another product's repository: %v; ../x, a/.., a b, loop/x, an empty and a one-segment entry are 422, while acme/.github links — else a leading dot is a real repository: %v; the 65th repository of a product is 422. A GitLab entry whose kept pin differs from the id read now is 409 with Unlink it, then link it again — else a re-pointed GitLab path: %v; a new GitLab entry stores the id — else the GitLab project id read at link time was not pinned. Creation: a non-admin naming a repository is 403 — else a non-admin naming a repository: %v; an admin naming another product's repository is 409; an empty field keeps the placeholder.

TC-1050, positive and negative (TestSetRepoLinkedUnlinks): unlinking ACME/Kinded removes acme/kinded and its kind — else the entry or its kind survived: %v %v; a GitLab entry no list names loses its pin — else the pin of an entry no list names must go; one still named in AutoFix.TargetRepos keeps pin and place — else an auto-fix target keeps its pin and its place in the auto-fix list. A stored entry that does not parse and the placeholder are removed — else a stored entry that does not parse must be unlinkable: %v; unlinking index 0 names the new primary — else unlinking index 0 must name the new primary: %q; an unknown entry is Not linked: x/y.. A product scoring 50 (minimum) whose last repository is unlinked falls to 42 and the mutation emits ReadinessDropped (BR-10) — else unlinking the last repository from the minimum band must emit ReadinessDropped: %+v.

TC-1051, negative (TestRepoLinkRouteRefuses): against a fake GitHub, POST /products/p-1/repos answers, each with the toast quoted: 403 Only an auto-fix admin can change the linked repositories. to a non-admin; 400 The form could not be read. to a 5 KiB body; 400 Unknown action.; 404 No such product.; with no forge call before the read check — else a refusal before the read check made %d forge call(s). The read check: a 404 is 422 The token GAOS reads with cannot read acme/route-api. Give its account access first.; a 301 is 422 acme/route-api has moved; a 500 and an elapsed deadline are 424 The forge did not answer; try again in a minute.; a wrong full_name or no permissions is 422 The forge's answer for acme/route-api was not that repository.; the placeholder is 422. The 11th attempt in a minute is 429 Too many link attempts in the last minute.; with a write client and no review client, 422 No review token for GitHub on this instance: GAOS could not review its pull requests.; a replay is 409 This view is a replay; nothing is written. with no forge call — else a replay made a forge call; a cross-site POST is 403 from the gate. A failure prints %s: answered %d, want %d with %q: %s; the list never changes — else a refusal changed the list: %d → %d.

TC-1052, positive (TestRepoLinkRouteLinks): an admin's link answers 200 with Linked acme/route-api. The write token's account can push to it. — else a link answered %d: %s — and clears the Brain Town reader's cache — else a link must clear the Brain Town reader's ownership cache. With the review token able to push and the write token not, the note says The write token's account cannot push to it — else the note must follow the write router: %s; a public repository of another owner adds It is a public repository. and None of this product's other repositories shares its owner (other).; another product's automation repository adds lists it as an auto-fix target or automation repository.; with no write client, No write token for GitHub on this instance: reviews only.. An unlink answers Unlinked acme/route-api. with no forge call. The product page shows an admin the block, the primary, the placeholder note, both forms and the row-0 confirm text — else the admin's block lacks %q; a non-admin sees the list and no form — else a non-admin sees the list and no form.

TC-1053, positive and negative (TestLinkedRepoGatesTheFlow): after acme/route-api is linked to p-1, a pr.opened for #7 plans cards — else a pull request in a linked repository planned nothing; a pr.merged for #5, opened before the link, plans the review at merge (D-116) — else the merge of a pull request opened before the link must plan the review at merge: %v. After the unlink, a pr.opened for #8 plans nothing — else after an unlink a new pull request must plan nothing; the repository is no defect target — else an unlinked repository that no auto-fix list names is no defect target — until AutoFix.TargetRepos names it — else an auto-fix target stays a defect target after the unlink.

TC-1054, positive (TestRepoLinksSurviveARestart), the pattern of TC-820: on ArcadeDB (GAOS_ARCADE_TEST_URL; skipped without it), link acme/keep and acme/drop, unlink acme/drop, reopen with NewArcadeStoreFor — else after a reopen the list is %v.

The GitHub read of a link (TC-1055)

TC-1055, positive and negative (TestRepoFactsGitHub): against an httptest GitHub, the read asks /repos/acme/route-api and reports it private — else a matching repository: %+v %v (path %s); a different full_name or no permissions is errNotThatRepo — else %s: %v, want errNotThatRepo; 404 and 301 surface as ghError with their status; the write client's push is writeYes — else the write client's push: %v %v — and a token without it writeNo; with no write client, errNoForge.

The GitLab read of a link (TC-1056)

TC-1056, positive and negative (TestProjectFactsGitLab): against an httptest GitLab, the read asks /api/v4/projects/acme%2Froute-api, returns id 42 and internal — else read: %+v %v %v — and caches nothing — else projectFacts must not cache an id; another path is errNotThatRepo; access levels 40, 20 and none map to writeYes, writeNo, writeUnknown — else %s: %v %v, want %v; forgetGitLab evicts a cached id — else forgetGitLab must evict the cached id.

The bell's store and index (TC-1057, TC-1058)

TC-1057, positive (TestNoticesAfterAndNewestFirst), D-128: three notices raised on p-1 with a ContactNotified between them; NoticesAfter(0) must count 3 — else NoticesAfter(0) = %d, %d, %q, %v; want 3 notices; Notices(2) must be the third then the second — else Notices(2) = %+v, want three then two; after the second notice's seq the count is 1 — else NoticesAfter(the second notice) = %d, want 1; after the highest it is 0. TC-1058, positive (TestNoticeIndexIsRebuiltAtBoot): a store rebuilt by restartFrom must answer the same count and the same notices — else after a reload NoticesAfter(0) = %d, %d; want %d, %d or notice %d after a reload is %+v, want %+v. The store contract (TC-124, TC-125) gains NoticesRoundTrip, and the read-only refusal map gains RaiseNotice.

The notifier records every line (TC-1059…TC-1066)

TC-1059, positive (TestBellRaisesWithWhatsAppOff): a notifier with no WhatsApp; NotifyPR of no unit-test result from Jenkins on a merge; is the Jenkins stage installed? on PR 5040 must leave one notice — else %d notices with WhatsApp off, want 1 — reading … · PR #5040, rule unit:failure, reason #5040 — else the notice is %q rule=%q reason=%q task=%q desk=%q; Event.Kind info — else a notice's Event.Kind is %q, want info: it must not move the floor's counter; and no ContactNotified. TC-1060, negative (TestBellRaisesBeforeAFailedSend): a gateway answering 429; the notice e2e run failed · card c1 must exist — else notices %+v, want one for the card — and the failure is recorded — else the failed send was not recorded as ContactNotified failed. TC-1061, negative (TestBellSkipsQuietKinds): automation:routine must leave nothing — else a quiet kind left %d notices, want none (D-123).

TC-1062, positive (TestBellTextIsOneLineWithNoURL): no stored text may hold http or a line break — else a stored notice holds a URL or a line break: %q; the auto-fix line becomes auto-fix draft PR loop/api#12 · card c1 with ref loop/api#12 — else the auto-fix line is %q with ref %q, want its link kept as the ref and no dangling colon; a 1 000-rune line is exactly 300 runes ending … · PR #5040. TC-1063, negative (TestBellWithholdsASecret): a line with a GitHub token is stored as notice withheld: its text matched a secret detector · loop/api#7 — else notices %+v, want the withheld sentence with its kind and reference kept — and the log never holds it — else the log repeats the secret. TC-1064, positive (TestBellLeavesWhatsAppUnchanged): three sends must carry their pre-change messages byte for byte — else WhatsApp message %d is %s, want it to carry %s byte for byte; a planner card's notice has ref loop/laundry-api#9 — else the planner card's notice has ref %q, want loop/laundry-api#9.

TC-1065, negative (TestBellGuardDropsRepeatsAndCapsPerKind): a repeat within 10 minutes — else a repeat within 10 minutes was stored: %d notices, want 1; 101 manual notices store 100 and one cap notice — else %d manual notices and %d cap notices, want %d and 1; another kind still lands — else one kind's cap silenced another kind; drops — else drops %v, want repeat=1, cap=1. TC-1066, negative (TestBellDoesNotWaitOnTheStore): a queue of one and a blocked store; four NotifyPR must return within 3 s — else NotifyPR waited on a blocked store — and send four messages; a full queue counts a queue drop and the cap counts only what was queued — else the cap counted %d and the queue dropped %d; a dropped notice must not use the cap; a failing store — else drops %v, want store=1.

The bell, the read mark and the page (TC-1067…TC-1071)

TC-1067, positive (TestNoticeHintAndLiveListener): sseName(NoticeRaised) = %q, want notice; live.js does not listen for the notice hint; live.js's open handler does not re-read the bell; a rebuilt stream sends no Last-Event-ID. TC-1068, negative (TestSeenMarkRules): a seen POST above the highest is clamped and the cookie is Secure, HttpOnly, Path=/ — else the mark set is %+v, want %s.%d, Secure, HttpOnly, Path=/; the name is __Host-gaos_notice_seen; the answer carries the bell with no badge; a POST below the mark keeps it — else a POST below the mark moved it back: %+v; a bad mark gets the last-day default — else cookie %q gave mark %d; want the default, below the three new notices; sign-out — else sign-out's mark cookie is %+v, want an expiring Secure cookie; on plain HTTP the name is gaos_notice_seen.

TC-1069, negative (TestNotificationRoutesNeedTheSession): %s %s signed out answered %d, want 401 for /notifications, /ui/bo/notifications, /ui/notices/bell and the seen POST; a cross-site POST — else a cross-site seen POST answered %d, want 403 and no mark. TC-1070, positive (TestNotificationsPageRendersLinks): the page holds the card link, the GitHub link, rel="noopener noreferrer", the escaped text, the deleted product's id and the seen POST — else the page lacks %s; a notice's text was not escaped; want exactly one pull-request link, got %d. TC-1071, negative (TestUnreadIsZeroSignedOut): signed-out %s carries the bell; signed in, the bar's bell does not show one unread notice.

A GAOS-only notice is kept, not sent (TC-1072)

TC-1072, negative (TestBellOnlyNoticeIsKeptNotSent), D-129: with a working WhatsApp fixture, three bundle:planned lines — to the task’s QA, to the group and through Notify — must send nothing — else a bell-only notice reached WhatsApp: %v — and be kept as three notices, the first reading A test plan is ready: 16 draft case(s), 0 link(s) · card wf-pr-p-1-bundle-e5de3ceb — else notices %+v, want the three test-plan lines kept in GAOS; no ContactNotified — else a bell-only notice left %d ContactNotified; nothing was sent; the Contacts vocabulary drops it — else bundle:planned is still a Notify-on box on the Contacts page; an old opt-in validates — else a contact that opted into bundle:planned before D-129 is refused: %v.

A high or critical review reaches the default recipient, findings included (TC-1073 … TC-1080)

D-130. The alert goes to the product’s default recipient (*) whatever its Notify on; a single number gets the line, its links, a caveat and the review’s high and critical findings, defanged and quoted, within 3500 runes. Fixtures use the invented repository acme/route-api and decode the whole gateway request.

TC-1073, negative and positive (TestReviewAlertFindings): seven rows — high and critical only, the tag before Reason:, a capital tag, an indented sub-list, (major), no items, a marker — else %s: got %q, want %q.

TC-1074, negative (TestAlertSafeText): HTTPS://WWW.Evil.example/x becomes hxxps[:]//WWW[.]Evil[.]example/x, wa.me and charge.go:88 are defanged, 1.5 is not, zero-width and bidi runes are dropped, U+2028 and U+2029 start new quoted lines, @ becomes @ — else alertSafeText(%q) = %q, want %q; an alert line is not quoted: %q.

TC-1075, negative and positive (TestFitAlertKeepsWholeFindingsAndCountsTheRest): %s: got %q, want %q; %s: %d runes, over the budget %d; with 150 findings with k >= 100 the result must stay within budget and count the rest: %d runes, %q; want at least 100 left out, got %d.

TC-1076, positive (TestAHighReviewAlertCarriesItsFindingsToTheDefaultRecipient): sent %+v, want one message to the default recipient; the alert lacks %q:\n%s for the line, both links, the caveat and the two findings; the alert carries a medium finding or the preamble:\n%s; ContactNotified %+v, want one with alias default and kind review:critical; a 6000-byte body — sent %d, want one; a long alert: %d runes, links and the count must survive:\n%s.

TC-1077, positive (TestAHighReviewAlertIgnoresTheDefaultRecipientsOptIn): a * contact that opted into e2e:failure only — an opt-in must not filter the review alert, sent %+v.

TC-1078, negative (TestAHighReviewAlertWithheldGoesWithoutFindings): no default recipient (to the group, alias group), a group id, the pinned group, a public-http gateway, a credential URL and a token split by a zero-width rune — %s: sent %+v, want today's line alone to %s; %s: ContactNotified %+v, want alias %s; D-131 — a public-http gateway with GAOS_WA_ALERT_FINDINGS_OVER_HTTP=1 must carry the findings, sent %+v; an unlinked product — a product the group is not linked to: sent %+v, notices %d; want nothing sent and one notice.

TC-1079, negative (TestAHighReviewNoLongerTellsTheAuthor): %s: notify %v alert %v, want %d and %d for critical (0, 1) and medium (1, 0); %s: the alert got %q, want the severity and the body.

TC-1080, negative (TestTheBellKeepsOnlyTheAlertsHeadline): notices %+v, want the headline alone; the notice carries a finding: %q.

A merged pull request moves its task to merged (TC-1081 … TC-1110)

D-132 (v0.89.0, design docs/designs/merged-pr-task-status.md). The contract gains RecordMerge; the open→merged step marks a review row and freezes its task code; a sweep at the end of each poll pass makes one call per wait and tells the author; a one-time link asks the author to confirm development-done. TC-1081 to TC-1109 are each one func Test… in dashboard/; TC-1110 is deploy/check-stacks.sh. The sweep and page tests run against the fake tracker of tasktracker_test.go and a fake gateway, with the invented task code DEMO-FEATURE-00001 and the invented public address https://gaos.example/app. The store conformance table gains TheMergeWriteBackStateRoundTrips, run under TC-124/TC-125.

TC-1081, negative and positive (TestTrackerRecordMergeCodec, tasktracker_test.go): GetTask answered %+v %v, want the url, the title and both assignees; RecordMerge answered %+v %v, want NEEDS_DEV_DONE with the nonce and the task; the tracker received %+v, want the code, the product code, the PR URL and the person, no nonce; the accept answered %v; the accept sent %+v, want mark_dev_done with the nonce; an outcome of 9 — an outcome GAOS does not know answered %v, want errTrackerUnchecked.

TC-1082, negative (TestTrackerRecordMergeNeverTripsTheBreaker, tasktracker_test.go): ten rows — gRPC 12, gRPC 7, HTTP 404 and HTTP 501 pause as nomerge; 8 as asked to stop; 16 as credential refused; 14 and a timeout as unavailable; 7 on an accept turns confirmations off with no pause; 5 sets nothing — else %s: RecordMerge answered %v, want %v; %s: RecordMerge moved the shared breaker to %q; %s: the merge pause is %v %q, want %q; %s: confirmations off is %v, want %v. Positive: the shared mapping is unchanged — else PERMISSION_DENIED from GetTask answered %v with breaker %q, want the auth latch.

TC-1083, negative and positive (TestTrackerWebBase, tasktracker_test.go): fixture: %d profiles loaded; a valid web file was refused: %q; an http base with no trailing / — a malformed web file gave web %v, webWhy %q, why %q; want the fixed reason and a usable profile; webWhy echoes the file: %q; six links — the base’s own path is kept; a look-alike host, another path, http, a space and a link over 300 bytes are dropped — else taskLink(%q) = %q, want %q; a profile without a web base showed a task link: %q.

TC-1084, negative and positive (TestMergeMarkOnTransition, pullrequests_test.go): a merged review row with a code is %q/%q, want pending with the code frozen; a code that changed at the merge read is %q, want codechanged; %s was marked %q, want nothing for a row with no code, a row closed unmerged and a row already merged at load; a GitLab row was marked %q, want nothing; after ApplyBundleLinks re-reads another code — after a re-read the row is %q/%q, want the frozen code and pending.

TC-1085, positive (TestMergeConfirmSurvivesARestart, store_arcade_pullrequests_test.go): the row is marked, then patched with every confirmation field, and read by hash from a second store on the same tenant — else after a reopen the confirmation reads %+v (%v). It skips without GAOS_ARCADE_TEST_URL, as TC-1032 does.

TC-1086, positive (TestMergeSweepRecorded): the tracker received %+v, want one plain RecordMerge for u-dev; the carrier is %q, want recorded; the author got %+v, want one T1 on their own number (the line begins PR loop/laundry-api#7, linked to task and says its deployment status is now MERGED); negative: a second pass called again (%d) or sent again (%d).

TC-1087, negative and positive (TestMergeSweepWaitsForSiblings): thirty hours with an open sibling — else an open sibling did not hold the wait: %d call(s), %d line(s), %q; after it merges — %d call(s), want one for the whole wait; the wait's rows are %q and %q, want one recorded and one grouped; the notice must name both pull requests: %+v.

TC-1088, negative (TestMergeSweepUnknownCode): another product’s task — another product's task: %d call(s), %q, %+v (the T3 says does not know task); a code alerted while open — an already-alerted code was told again: %+v.

TC-1089, negative and positive (TestMergeSweepAuthorChecks): an author with no tracker account was written for; the bell holds %+v, want the no-account notice; a non-assignee: %d call(s), %+v (the T3 says not assigned to the task); positive: a tracker that reports no assignees must leave the check to the tracker: %d call(s); an unloaded directory must keep the wait pending: %q.

TC-1090, negative (TestMergeSweepNeverToAGroup): a Contact with a group id, a Contact tracker whose person has no number, and a product WhatsApp does not cover — else %s: the gateway received %+v; %s: no bell entry; an author with no Contact and no tracker person — an author nobody can reach: %+v.

TC-1091, negative and positive (TestMergeSweepNeedsDevDone): the carrier is %+v, want confirm with the hash, the person and the nonce; the link went to %+v, want the person's own number; the link is not line 2: %q; the stored hash is not the token's, or the token is stored; the bell holds the link or a parenthesis: %q; a log line holds the token; a 440-character task title — a long title cut the link: %q (line 2 is the public address, /m# and 43 characters).

TC-1092, negative and positive (TestMergeSweepLinkPreconditions): an http public URL (no public https address), a public-http gateway (not private enough), no number (no WhatsApp number), no nonce (issued no confirmation) and confirmations off (does not accept confirmations) — else %s: the carrier is %q with hash %q, want refused and no token; %s: no notice says %q; with the opt-in — with the opt-in the link must be sent: %+v; a gateway that answers 500 — after a failed send the carrier is %q with hash %q, want refused and no token.

TC-1093, negative and positive (TestMergeSweepOneLiveLinkPerTaskAndPerson): a second merge by the same person: %q, %d call(s), %d line(s); want grouped under the live link; another person's merge got %q for %q, want their own link.

TC-1094, negative (TestMergeSweepMaintenance): an interrupted mint is %q with hash %q, want pending and cleared; an accept younger than 30 s was expired: %q; an expired link is %+v; want expired, no person, no nonce and one T3 (the T3 says nobody confirmed within 24 hours).

TC-1095, negative (TestMergeSweepPendingAndGiveUp): an unavailable tracker left %q, want pending; a started wait was tried again before 5 minutes; an unimplemented RecordMerge must pause and stay pending: %v %q %q; after 24 hours the wait is %q, want skipped; a nomerge give-up reached WhatsApp: %q; six ready waits — one pass made %d calls, want 4 (two waits of two calls; the fifth call would start a third).

TC-1096, negative (TestMergeSweepCodeChanged): a changed code: %q, %d call(s), %+v (the T3 says task code changed when the pull request merged).

TC-1097, negative (TestMergeSweepCASConflict): a write from a stale read went through; the row is %q, want the newer write kept.

TC-1098, negative (TestMergeTrackerTextDefanged): a REFUSED reason over two lines naming evil.example/x and https://evil.example — else %d line(s); the tracker's reason stayed a link: %q; the reason was not defanged: %q (it must read evil[.]example and hxxps[:]//).

TC-1099, negative (TestPRMergedNotOnContactsPage, mergewriteback_test.go): pr:merged is on the Contacts page; a contact can opt into pr:merged.

TC-1100, positive (TestIntegrationsShowsMergeState, integrations_test.go): a profile with an ftp web file and a nomerge pause — else the row is %+v, want the merge state and the web reason; the Integrations view does not show the merge state and the web reason (the row reads merge write-back: nomerge).

TC-1101, positive (TestMergeConfirmLookChangesNothing, mergeconfirm_test.go): a look answered %d: %s; a look changed the row (%+v) or called the tracker (%d).

TC-1102, negative and positive (TestMergeConfirmAcceptOnce): an accept answered %d: %s (the page says development-done and its deployment status is MERGED); the accept sent %+v, want mark_dev_done with the stored code, product, person and nonce; after the accept the row is %+v; want recorded, no person, no nonce; T1 after the accept is %+v, want the person's own number with the undo hint (If this was not you); a second act answered %s with %d new call(s).

TC-1103, positive (TestMergeConfirmAcceptAlready): an ALREADY answer left %q/%q; T1′ is %q (it must say is already Deployed Staging).

TC-1104, negative (TestMergeConfirmReject): a reject answered %s; after a reject the row is %+v; a reject did not void the nonce: %+v; after a reject a look answered %s.

TC-1105, negative (TestMergeConfirmBindingAssigneeOrGrantChanged): the binding moved to another tracker code (binding changed), the task reassigned (no longer assigned), and confirmations off (does not accept confirmations) — else %s: the page says %s; %s: mark_dev_done was sent; %s: the row is %q, person %q.

TC-1106, negative (TestMergeConfirmExpiredUnknownMalformed): an expired link answered %d %s (want 410); an unknown token answered %d (want 404); a short token and the action approve — %v answered %d, want 400; a malformed request consumed the token.

TC-1107, negative and positive (TestMergeConfirmReleasedAndCooldown): an unavailable tracker answered %s; a released token is %+v; want confirm with the person and the nonce kept; an act inside the cooldown answered %s with %d call(s); after the cooldown — after the cooldown the accept answered %s; the outcome is %q (want accepted:recorded).

TC-1108, negative and positive (TestMergeConfirmAcceptRacesExpiry): an accept that raced the expiry left %q/%q, want the tracker's write recorded; the person was not told of the write: %+v; an act during an accept answered %s (want being sent); an interrupted accept does not offer the buttons again: %s.

TC-1109, negative (TestMergeConfirmHeadersLimitsEscaping): an answer's headers are %v; the shell answered %d or holds the token; a cross-origin act answered %d, want 403; a body over 1 KiB answered %d; a hostile title rendered as markup: %s; request %d was refused; the per-source limit is not 30 a minute, or it is shared between sources.

TC-1110, positive (deploy/check-stacks.sh): ok prod passes the merge confirmation link's over-http switch from the deploy shell, empty (line only) by default and ok prod never hard-codes the merge confirmation link's over-http switch; negative: each prints FAIL with the same message when the line is missing, or, for the never-hard-codes line, present.

Test scenarios — not yet implemented

BRD §4.1 names three tests as the only honest proof the system works. Two are still forward specifications — Given / When / Then, so the target exists in writing before the code that would satisfy it — and neither can run today. Domain E (review, scoring & retry) is entirely Designed, not Built, per BRD §2.1; C (planning) and D (execution) have each had one requirement close since — the task graph is persisted (C-2, partly) and the scheduler is a pure function of it (D-1) — but nothing dispatches from either yet, and an acceptance test needs the whole loop rather than the first link of it.

Since 2026-11-02 this section also holds the thirty-six forward specifications for M14, below; they are ordinary register rows rather than BRD acceptance tests, and each section moves up when its code lands.

The third has moved. The fold test ran for the first time on 2026-08-17 and now lives with the implemented scenarios, which is what closing M0.3 and M8.1 was for.

The gateway forward specifications (all running as of v0.30.0)

Thirty-six cases were written on 2026-11-02, before any of the code they test, for M14: the move to ai-manager as the one gateway, the Blueprint, and a board per product (D-055…D-062). There is no script or test to quote yet, so what is fixed here is the asserted value — the failure signature, the event, the status code — in code. Each h3 moves to the implemented scenarios in the commit that makes its cases run, and from then on quotes the test's exact t.Fatalf or the script's exact ok/FAIL line, like every other section. The Go tests run against an httptest fake ai-manager that scripts a reply per request id and counts the POSTs it receives; none spawns a binary and none spends money. Only live-aim-run.sh calls a real model. TC-275…TC-290 run as of v0.24.0, TC-291…TC-295 as of v0.25.0, TC-296…TC-303 as of v0.27.0, TC-304…TC-307 and TC-309 as of v0.28.0, and TC-308 and TC-310 as of v0.30.0, all moved up to the implemented scenarios (the task fold, the vendored board). None of the thirty-six is still waiting.

dashboard — the monorepo automation directory (TC-976 … TC-980)

D-116 (docs/designs/gitlab-forge.md §4.6, PR 3): a repository that is both a fix target and an automation repository, with the directory that holds its automation suite. All in dashboard/monorepo_test.go, against the in-memory store and a fake pull-request source.

TC-976, positive and negative (TestAutomationDirValidation): %s: validateAutoFix answered %q; want %q for one and four segments (accepted), five segments, .., a leading slash, capitals, a glob metacharacter, a 33-character segment and a repository that is no automation repository (The automation directory of loop/mono is invalid.), and an allowed glob that reaches in (An allowed glob reaches into the automation directory automation/ of loop/mono.); a line without a directory answered %v, the form line read %v, %v; want loop/mono -> automation, Clone shares the AutomationDirs map, the auto-fix event reason does not name the directory: %v %+v.

TC-977, positive and negative (TestAutomationOnly): an automation repository without a directory must be automation-only, a repository with an automation directory is not automation-only, a repository that is no automation repository is not automation-only, a fix target with an automation directory must be a unit fix target, a fix target that is a whole automation repository is no unit fix target.

TC-978, negative (TestFixRefusesAutomationDir): a fix path under the automation directory is not forbidden, a fix path outside the automation directory is forbidden, another repository's fix path is forbidden by this repository's directory, forRepo changed the product's own forbidden globs: %v, checkFix on a path under the automation directory answered %v; want a path is forbidden.

TC-979, positive and negative (TestQAMRClassification): %s: qaMR answered %v; want %v for all inside, one outside, a rename in from outside, a rename inside, a CI file inside and no files; a repository without a directory has no QA merge request, a file in the resolved CI set must not be QA; through the flow: a QA merge request at open answered %v; want flowDone, a QA merge request at open planned %v; want nothing, a QA merge request at open got a review row, a merge that is no longer QA planned %v; want the review at merge and the unit test, a QA merge request at merge answered %v and planned %v; want flowDone and nothing, an application merge request at open planned %v; want the review and the e2e card, a transient file read answered %v; want flowRetry, a file list that is too large planned %v; want an ordinary merge request's cards.

TC-980, positive and negative (TestCatalogPathWithDir): a path under the directory answered %v; want accepted, %s answered %v; want the epic path is not under automation/docs/test-catalog/ for the root path, a .. path and another directory, without a directory the root path answered %v; want accepted, the planner's layout does not name the directory: %q, without a directory the layout changed.

dashboard — GitLab writes (TC-981 … TC-988, TC-1025)

D-115 (docs/designs/gitlab-forge.md §4.5, PR 4): the fix and catalog commits on GitLab, the draft merge request, the GitLab CI guard and the per-forge preconditions. TC-981 to TC-988 are in dashboard/gitlabwrite_test.go, against a small GitLab repository served by httptest; TC-1025 is a deploy check.

TC-981, positive and negative (TestGitLabCommitFilesCreate): a new fix branch answered %q %v %v; want a commit, created, the commit POST is %v; want branch gaos/fix-d1 from p0 with two actions, the actions are %v and %v; want update (base64) then create (executable), the commit message %q lost its trailer; %s was written; want a refusal for a branch outside gaos/fix-, a CI file, the automation directory, an unlisted catalog repository and two catalog paths outside the catalog; a fix into an included CI file answered %v; want the refusal ci-file, a refused write reached the Commits API; the catalog write answered %v %v; want created, the catalog commit message is %q; want [skip ci] and %q.

TC-982, negative (TestGitLabCreateRace): a 400 with a branch that appeared answered %v; want the branch-exists block, a 400 with no branch answered %v; want the 400 itself.

TC-983, positive and negative (TestGitLabAdoption): our own branch answered %q %v %v; want it adopted (h1, not created), the compare query is %v; want a merge-base compare from the parent, adoption wrote a commit, a moved base answered %q %v; want the branch adopted, %s answered %v; want the branch-exists block for an extra file, changed content and a missing trailer.

TC-984, positive and negative (TestGitLabCreatePR): createPR answered %d %q %v, the merge request POST is %v; want a draft title, remove_source_branch, and a neutralised description, addLabels sent %v (%v); want add_labels ai-assisted,gaos, addComment posted %v (%v); want one neutralised note, closePR sent %v (%v); want state_event close, prState of %s is %q %v; want %q, a private project reads private=%v %v, an internal project reads private (BR-67: only private is private).

TC-985, negative (TestGitLabDeleteRefPrefix): deleteRef %q was accepted; only a gaos/fix- branch is deleted, deleteRef gaos/fix-d1 answered %v and deleted %v.

TC-986, positive and negative (TestGitLabCIForbiddenGlobs): %s is not built-in forbidden, the allowed glob %q answered %v; want the GitLab CI refusal, a broad allowed glob ** is refused (%v); the built-in list keeps it off CI files instead.

TC-987, positive and negative (TestGitLabCIIncludes): the local includes are %v, the refusals %v miss %s, the string form reads %v %v, the custom CI path resolved %v %d files %v %v; want gitlab-ci, three files, no refusal, a foreign ci_config_path answered %v; want ci-config-path, a chain of more than %d files answered %v; want ci-too-many-files.

TC-988, positive and negative (TestPreconditionsPerForge): %s: refused with %v and %s: answered %v; want %q for ten cases across both forges, both tokens and both statements; the token reason is %q, the empty token reason is %q, want none, the same token in two files configured the writer (%q); want it refused, a distinct write token was refused: %s.

TC-1025, positive and negative (deploy/rebuild-restart.sh, the inner pass): a tag whose compose mounts prod.pr-gitlab-token, prod.pr-gitlab-ca.pem or prod.pr-gitlab-write-token that is missing prints ok created <checkout>/deploy/stacks/<file> empty (mode 600) and ok linked deploy/stacks/<file> from the checkout; with an empty directory in its place it prints FAIL deploy/stacks/<file> in the worktree is a directory with the sudo rmdir to run, and exits 1. The outer pass likewise refuses to link over such a directory.

dashboard — GitLab pipeline unit source (TC-989 … TC-994)

D-117 (docs/designs/gitlab-forge.md §4.8, PR 5): the unit source gitlab-pipeline. TC-989 to TC-994 are in dashboard/gitlabunit_test.go, against a small GitLab project served by httptest with merge request !5, its pipelines, their jobs and test reports.

TC-989, positive and negative (TestUnitSourceName): the source %q reads %q; want %q, gitlab-pipeline with job server answered %v; want nil, the source gitlab answered %v; want the source refusal (The source is GitHub Actions, Jenkins or a GitLab pipeline.).

TC-990, positive and negative (TestSetUnitChecksForge): github-actions over a GitLab target answered %v; want %q (GitHub Actions reads GitHub repositories only; every fix-target repository must be on GitHub.), gitlab-pipeline over a GitLab target answered %v; want nil, jenkins over a GitLab target answered %v; want nil, gitlab-pipeline over a mixed target list answered %v; want %q (A GitLab pipeline reads GitLab repositories only; every fix-target repository must be on GitLab.), jenkins over a mixed target list answered %v; want nil.

TC-991, positive and negative (TestGitLabUnitPicksNewestBranchPipeline): the kept pipelines are %+v; want 12 (MR pipeline) then 10 (branch pipeline), the watch is %s/%s; want done/passed, the notices are %q; want one naming %s (superseded-after-failure, then retried-after-failure), a pass after a retry is %s; want passed, a watch with no pipeline is %s (reads %d); want pending after one answered read.

TC-992, positive and negative (TestGitLabUnitJobStates): the job status %q maps to %q; want %q, a %s job left the watch %s; want %s, a pipeline without the job left the watch %s; want inconclusive.

TC-993, positive and negative (TestGitLabUnitTestReport): a failed job with a report left the watch %s; want failed, no unit defect names TestExport; defects %+v, a failed job without a report left the watch %s; want inconclusive, the notices are %q; want the JUnit daily line.

TC-994, negative (TestUnitSystemOutputEgress): a 9000-byte output was kept at %d bytes; want at most %d, an output with a credential was kept as %q; want it withheld, an output with a GitLab token was kept as %q; want it withheld, the annotations are %+v; want the total notice then a withheld failure.

The unsatisfiable task (TC-048, TC-049)

Given a task whose acceptance criterion contradicts a domain rule (the shape BR-07 and BR-14 describe), when it is dispatched through the scheduler and runner, then (TC-048, positive) the system stops within the six guard limits (BR-17: 3 retries, 2 escalations, 2 identical failure signatures, budget cap) and leaves a human-queue item carrying a recorded reason code (BR-18). TC-049, negative: if it instead loops past the guard limits, or stops without a reason code, the test has failed — in the design's own words, "looping or failing silently means the retry loop is not finished." Blocked by: domains C, D, E — none built.

The second run, a week apart (TC-052, TC-053)

Given the same objective run twice on the same product a week apart, when the second run completes, then (TC-052, positive) it needs fewer retries and less human intervention than the first (§1.4). TC-053, negative: if it needs the same or more, then "the extraction step is decorative and everything above it is expensive theatre" — a product-viability signal that should trigger review of domain G (memory & learning), not an automatic block. Blocked by: the entire control loop, domains C–H, and by the fact that this run is also how the numeric baseline gets set for the first time — the one thing D-039 defers until it exists.