Skip to content

safety contract corollary menu: type-level tokens, one-owner duals and narrow rules left in place by #2869, with no cell evidence to move them #2870

Closed

Description

@squid-protocol

Deferred from the safety contract audit (#2869, the #2859 shape): forms measured adjacent to the contract with no open-defect cell to move and no evidence to act on now. Each is either a narrower-than-contract rule left narrow, a wider-than-contract token left in a language whose morphology defensibly claims it, or a one-owner question parked with the family that owns the other half.

  • cpp std::atomic sits in safety's smart-pointer group — an atomic is concurrency's primitive (C3); the RAII pointers (unique_ptr/shared_ptr/optional/expected) stay as cpp's declared defensive morphology (C5) but the group deserves its own screen when concurrency gets its plant-or-absence.
  • dart late/required/@immutable/@mustCallSuper are declaration modifiers counted as guards (C1's shape; late arguably defers a null check). Dart's plant is assert, so no cell moves; flip these when dart's strict pins are next open.
  • csharp required/nameof — declaration modifier and compile-time introspection in the safety list; cell in band, crucible sane.
  • javascript/typescript ===/!== — every strict comparison counts as safety under the declared "type-safe equality" morphology; a C4 question (ordinary-form dominance) with no cell evidence.
  • swift Sendable — a type-level marker (C1) beside genuinely value-level guards.
  • objective-c __weak/__strong/__auto_type kept under C5 (zeroing weak references are a runtime crash-prevention mechanism), but they are declaration-position qualifiers; the boundary deserves restating if objective-c ever gets a red cell here.
  • rust ? operator — propagation, not handling; absent from the rule by C2 and noted so the absence is a decision, not an oversight. Likewise rust's if let keeps its pre-existing dual with branch (also structural_boundaries, ungated).
  • scala Try fires immutability_locks too — the one-owner call belongs to immutability_locks has no contract: rust's let is invisible while swift's let scores 11 — and it is subtracted from the corpus's worst gated metric #2772's rule half.
  • go errors.Is fires encapsulation too — the one-owner call belongs to encapsulation has no stated contract: rust counts pub (the public modifier) and agc_assembly's rule matches every column-0 token #2766.
  • fortran counts declaration-time strictness (IMPLICIT NONE/INTENT) as its declared morphology (C5); the language's runtime handled-failure forms (IOSTAT=, STAT= on ALLOCATE) count nowhere — a widening with golden-master movement and no cell to move.
  • makefile reads 0 crucible hits (.POSIX/command -v absent from the wild corpus) — narrow but honest; the plant fires.
  • python Field was dropped with the type-level group while BaseModel stays — pydantic's call-form surface (Field() could rejoin under C4 if evidence appears.

None of these move a corpus cell today. Parent: #2812 Phase 3.

Activity

  1. added
    metrics
    core-engine
    on Sep 8, 2026
  2. squid-protocol commented on Sep 9, 2026

    @squid-protocol
    OwnerAuthor

    Already fully recorded — no rule change needed. The safety contract doc (docs/safety_rule_contract.md), written with the #2869 contract PR, already transcribes this entire corollary menu in its "Deferred by design" and "Deliberate duals kept" sections (cpp std::atomic, dart declaration-modifier guards, csharp required/nameof, js/ts ===/!==, swift Sendable, objective-c ARC qualifiers, rust ?/if let, scala Try, go errors.Is, fortran IOSTAT/STAT, makefile, python Field(). None move a corpus cell. Closing as already-documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-enginemetrics

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions