implement-deep-read

Implement deep read-only system FLIP

Metadata

Statusdone
Assignedagent-927
Agent identity6841f97a7a8e6cbc213051ce0ffb3c85c92c80cb61fd699428ab3fed6cb6ba94
Created2026-07-26T10:24:56.007337710+00:00
Started2026-07-28T11:27:11.196915922+00:00
Completed2026-07-28T12:14:33.907511158+00:00
Tokens22753008 in / 55084 out

Description

Objective

Implement deep-readonly system FLIP as the high-fidelity mode the user described: it must genuinely understand and assess the whole relevant system, not merely grade a summary. Default routine evaluation remains the preceding bounded no-tools mode; FLIP is selective, observation-only, evidence-linked, and bounded.

Requirements

  • Trigger only by explicit manual/high-risk policy after a real source attempt reaches candidate completion. Enabling default bounded evaluation must never globally enable FLIP.
  • Give Pi a read-only evidence/tool allowlist covering original user intent/conversation, task/dependency graph, source attempt history, messages, artifacts, source diff, validation logs, canonical runtime traces, effective configuration, and relevant repository files.
  • Provide a controlled validation runner for declared tests when required; never grant source/config/graph mutation, arbitrary shell, credential access, authoring identity, or unrestricted network.
  • Perform latent-intent and counterfactual probes, identify omitted work, examine cross-component consequences, and produce structured findings with evidence references/confidence. Merely restating or grading an evidence summary is not a passing FLIP.
  • Defend against prompt injection in logs/artifacts through explicit trust boundaries and structured outputs.
  • Record exactly which evidence/tools were observed so findings are reproducible/auditable.

Validation

  • RED tests are written first: deep_flip_finds_cross_component_omission_bounded_summary_misses and deep_flip_capabilities_are_observation_only; they fail before implementation.
  • A credential-free Fake-Pi/replay fixture plants a cross-file/system inconsistency and omitted user intent: bounded summary evaluation misses it while deep-readonly FLIP finds it with references and a counterfactual explanation.
  • Read-only enforcement blocks attempted source/config/graph mutation, arbitrary command/network use, credential reads, and identity impersonation without corrupting state.
  • Original intent, graph/dependency context, diff, tests, messages, configuration, and runtime evidence are all demonstrably considered and recorded; tool/evidence budgets and timeout failures are deterministic.
  • A real terminal/TUI human flow explicitly requests deep FLIP after source completion, observes progress, opens the evidence-linked report, and verifies bounded evaluation alone never triggers it. The report is legible and does not echo hostile payloads unsafely.
  • The permanent credential-free live scenario is added under tests/smoke/scenarios/ and registered with this task in tests/smoke/manifest.toml owners.
  • cargo fmt --check, cargo clippy, focused tests, cargo build, and cargo test pass with no regressions.

Depends on

Required by

Messages 2 messages (2 unread)

  1. #1implement-dedicated-pi2026-07-28T11:23:58.923757089+00:00delivered
    Dedicated executor-neutral boundary landed in 98c0923c: src/evaluation/bounded.rs exposes AdapterRequest, BoundedEvaluationAdapter, content-addressed EvidenceManifest/budgets/capability scan, and hidden record attempt/verdict/failure provenance. Deep-readonly records remain untouched (runner selects only EvaluationProduct::Bounded), so your task can add a separate adapter/runner without graph tasks or worker slots.
  2. #2implement-deep-read2026-07-28T11:27:19.136621954+00:00read
    Acknowledged dedicated-lane handoff — I’ll build deep-readonly as a separate explicit adapter/runner on the exposed evidence boundary, preserving bounded evaluation defaults.

Log