Skip to content

A process-visible, owner-scoped damage report #295

Closed as not planned
Closed as not planned

Description

@PierreZ

Downstream: PierreZ/paros#176 (run every paros role on moonpool-journal stores under at least the in-memory world's chaos) and PierreZ/paros#202. References: moonpool 9ed1360, paros 29b23e3.

Downstream evidence. paros judges storage with a 1:1 ledger: "every injected fault surfaces as exactly one
typed crash decision", "every corruption injection is detected, resolved, or genuinely unread"
(crates/paros-sim/src/world/mod.rs:1363-1500).

To keep those oracles once moonpool, rather than the paros world, does the damaging, the harness needs to know
what moonpool damaged on this process's disk. Today:

  • take_storage_fault_records / take_storage_crash_reports exist only on SimWorld (sim/storage_ops.rs:460-471);
  • SimContext (runner/context.rs:38) exposes no such report;
  • the trace channel (SIM_FAULT_EVENT_NAME) is off-limits by paros doctrine, because checks must not read the trace.

The rolling pattern already tracks which sectors are damaged, per disk (storage/sim/state.rs:245-290).

Smallest API. SimStorageProvider::damaged() -> Vec<(String /*path*/, Range<u64> /*sectors*/, DamageKind)>:
this process's sectors that are currently damaged by a random fault or by a crash outcome. It could alternatively
be a drain of owner-scoped StorageFaultRecords plus crash reports.

Determinism. It is read-only, consumes no randomness, and returns a deterministic order (sorted by path, then
sector).

Acceptance. A test in crates/moonpool-sim/tests/storage: plant a crash with crash_lost_probability = 1 on
process A and a write corruption on process B. A's provider reports exactly A's damaged sectors, and B's only B's.
A rewrite clears the entry.

Activity

  1. added a commit that references this issue on Oct 6, 2026
    9e9452f
  2. PierreZ commented on Oct 6, 2026

    @PierreZ
    OwnerAuthor

    Closing without a change.

    • It breaks the model the network side follows. Nothing tells a process "this packet of yours was dropped." Environmental faults stay invisible, and a run is judged by its outcomes. Storage should be judged the same way.
    • It's on the wrong object. SimStorageProvider::damaged() sits on the provider the system under test holds, so node code could read where its disk was damaged. A real disk never offers that.
    • "Damaged" isn't "should have been detected." Damage to an unsynced, torn batch is legitimate, and rot that is later overwritten is never read. A 1:1 fault ledger needs the second meaning; this report gives the first.
    • The legitimate part is covered elsewhere. Whether the journal detects the damage it can is tested inside moonpool: the JournalAtlas verdict tests and the journal crash loops. Downstream consequences are caught by the system's own outcome oracles. If a harness ever needs fault ground truth, SimWorld::take_storage_fault_records() and the crash reports are on the harness side already.

    paros#176's ledger-based checks give way to outcome checks plus the journal's verdict gates when paros moves to moonpool's storage chaos.


    Generated by Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions