medlab

what got hurt, and what now fails loudly

↑ sublayer

medlab / family

Invariants

Cases in the observatory's Invariants family.

cases21

  1. 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

  2. 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

  3. 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

  4. 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.

    InvariantsTest EffectivenessBoundary SensorsContract Tests

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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.

    RuntimeInvariantsSynthetic MonitoringObservability Events

  11. 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

  12. 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

    RuntimeInvariantsObservability EventsRuntime Invariants

  13. 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

    RuntimeInvariantsIntegration TestsRuntime Invariants

  14. 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

    RuntimeInvariantsSmoke TestsDependency Graph

  15. 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

    RuntimeInvariantsSynthetic MonitoringRuntime Invariants

  16. 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

  17. 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

    RuntimeInvariantsSynthetic MonitoringRuntime Invariants

  18. 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

  19. 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

  20. 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

    RuntimeInvariantsRuntime InvariantsResource Telemetry

  21. 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