medlab / family
Invariants
Cases in the observatory's Invariants family.
cases21
-
2026-11-02
A review verdict belongs to the commit you are looking at
now fails loudly A posted verdict names the head it read, so the server binds it to that commit, and a standing refusal names the commit it was given at rather than the commit under merge.
InvariantsHuman ComprehensionContract TestsDecision Provenance
-
2026-11-02
A review on your own pull request is assumed to be invalid
now fails loudly The refusal covers verdicts only: an author may post a comment review on their own pull request, and a test requires that path to exist, so the handback has a channel.
InvariantsHuman ComprehensionIndependent ReviewContract Tests
-
2026-11-02
A list read at its page size is the oldest page, not the record
now fails loudly Both readers page until a page comes back short, bounded at twenty pages of fifty and failing closed at the bound; tests assert that an approval on a later page is found and a refusal on a later page still blocks.
Human ComprehensionInvariantsContract TestsExample-Based Tests
-
2026-11-02
A record that fills its last page has not been shown to continue
now fails loudly Both readers ask one page past the bound: an empty page means the record ended there and a non-empty one means it did not, so a record of exactly a thousand reviews is read rather than refused.
-
2026-11-02
A model's quotation of a sentence is the sentence
now fails loudly The fidelity check compares words after folding characters that carry no meaning, stores the source's own characters when a sentence matches that way, and reports a validator refusal as a refusal rather than as malformed output.
InvariantsHuman ComprehensionSchema ValidatorProperty-Based Testing
-
2026-11-02
A word is the first substring that matches it
now fails loudly Cloze construction selects a whole source word by position, and a test requires that a target which is a substring of a longer word is refused rather than cut.
Human ComprehensionInvariantsExample-Based TestsMetamorphic Testing
-
2026-11-02
A commit's CI result is assumed to be reachable through a pull request
now fails loudly `forge checks` answers for a pull request number, a revision, or the branch's head, and refuses an argument it cannot read as either rather than guessing.
Human ComprehensionInvariantsContract TestsExample-Based Tests
-
2026-10-26
A fixture that clones a bare repository is assumed to be deterministic
now fails loudly The test job runs with init.defaultBranch set to a branch name no developer uses, so a fixture that reads the machine's git default fails at the push; and the fixture that caused this names main explicitly.
Test EffectivenessInvariantsExample-Based TestsDifferential Testing
-
2026-10-24
Cutting between words preserves a sentence's meaning
now fails loudly Regression tests require the full selected context and its governing modal to survive cloze construction.
InvariantsTest EffectivenessRuntime InvariantsMutation Testing
-
2026-10-16
An OAuth session renews itself before its refresh token lapses
now fails loudly The harness renews its model-provider refresh token before it lapses (or lengthens the token's TTL), and a probe alerts when the token nears expiry, so the daily expiry boundary no longer emits an ERROR span.
-
2026-10-14
A recurring failure warrants a new task in each delivery window
now fails loudly identical failure shapes coalesce into one task per six-hour horizon instead of one per fifteen-minute window, with a running occurrence count, and a shape that reappears after a quiet horizon is flagged as a recurrence
RuntimeInvariantsObservability EventsIncident CorrelationRuntime Invariants
-
2026-10-11
Every exported error occurrence warrants a separate incident task
now fails loudly regression tests reject historical exports and consumer tool errors, group repeated failures, and enforce a persisted rolling delivery budget
-
2026-10-11
A queued notification can run with another channel's tools
now fails loudly a queue regression requires different channel origins to remain queued for their own turns while same-origin follow-ups still fold
-
2026-10-11
A CI runner carries the same tools as a developer's machine
now fails loudly make test preflights the suite's declared Python dependencies and fails before the demos when one is missing
-
2026-10-10
An Ubuntu host label was safe on a macOS runner
now fails loudly runner-label-check reads active runner config and pages when a Darwin host runner lacks a matching macOS :host label
-
2026-10-10
A restarted worker is assumed to have recovered its queue
now fails loudly a stalled queue alarms while the worker's message log is still advancing, and a recovery nudge must not report complete while older pending work remains
RuntimeInvariantsSynthetic MonitoringResource TelemetryRuntime Invariants
-
2026-10-10
The token file was assumed to update the running service
now fails loudly switchboard-watch restarts on /metrics 401, retries authentication, pages if the retry fails, and clears blind-alert state after a successful scrape
-
2026-10-10
A busy worker is assumed to be making progress
now fails loudly a liveness check declares a worker wedged when its message store stops advancing while it is running and busy, then restarts it and pages the operator
RuntimeInvariantsResource TelemetryRuntime InvariantsSynthetic Monitoring
-
2026-10-07
A running worker is assumed to be listening to its queue
now fails loudly a scheduled liveness check alarms within minutes when a queue's oldest pending item has gone unclaimed by its owning worker past a short limit
RuntimeInvariantsSynthetic MonitoringResource TelemetryRuntime Invariants
-
2026-09-24
A restart policy that fires on exit restarts a hung worker
now fails loudly a per-harness run timeout now bounds a persistent worker's lifetime, killing and respawning a wedged process and re-arming the timeout every lifetime
-
2026-09-12
Renaming a repo and updating its topology entry is one operation
now fails loudly The deploy gate refuses when the topology file and the filesystem disagree about which repos exist; a worker with a schedule attached is not a worker — it is skipped by collect and never rendered as down.
ChangeInvariantsPre-Promotion Invariant GatesStatically Checked Invariants