Repository navigation
Description
Goal
Add bounded runtime evidence collection only after ownership and side-effect policies are enforced.
Candidate providers
LLDB, Frida, fs_usage, log stream, lsof, process-tree tracing, network and protocol capture, Electron or Node inspector, and PTY session capture.
Requirements
Every capability declares whether it is read-only, launches a target, may show UI, may contact a network, may change permissions, writes files or targets, or requires elevated privileges.
Dynamic operations must use explicit approval gates, owned process lineage, contained temporary roots, time and output limits, cancellation, sanitized diagnostics, and cleanup verification.
Acceptance criteria
- No dynamic provider can run without a matching policy decision.
- Unrelated processes cannot be observed or terminated.
- Results identify observed versus inferred evidence and include timestamps and artifact/process identity.
- Tests cover denial, cancellation, timeout, child cleanup, output truncation, and partial failure.
Roadmap expansion
First dynamic provider: deterministic process capture
- Define reusable deterministic process-capture scenario contracts #57
- Implement a bounded macOS and Linux PTY capture adapter #58
- Capture owned process trees and filesystem effects #59
- Add deterministic loopback HTTP and WebSocket replay #60
- Add normalized differential comparison for process captures #61
- Build process-fidelity conformance fixtures #62
Later providers and controlled environments
- Create a resettable macOS clean-room environment #69
- Define controlled external-service test environments #70
- Add approval-gated Objective-C runtime observation #71
The first adapter requires an absolute executable and explicit approval, runs inside an isolated HOME/root/process group, denies external network by default, redacts secrets, bounds output, and proves cleanup. Windows PTY capture remains explicitly unavailable until a ConPTY adapter exists.
Managed-runtime characterization workstream
Dynamic observation must include a provider-neutral managed-runtime characterization family, not only native debuggers and whole-process capture.
Required policy distinctions
Model separate grants for:
- static runtime/package inspection;
- creation of a temporary instrumented copy;
- execution of selected managed-runtime code;
- Node Inspector attachment to a provider-owned process;
- declared filesystem/process/network/native effects;
- persistence/export of evidence or instrumented artifacts.
Approval for one does not imply the others.
Ownership and integrity
Every operation binds to exact source and runtime digests. Instrumentation occurs only in an owned temporary root, records a transformation manifest, never changes the authority in place, and proves source rehash plus cleanup. Instrumented observations are controlled replay, not shipped-artifact authority.
Boundary enforcement
Managed-runtime plans declare allowed modules, globals, environment keys, roots, loopback endpoints, children, native/Wasm bridges, timers, calls, bytes, handles, duration, and object-graph depth. Undeclared effects fail closed. Inspector operations attach only to provider-launched owned processes.
Evidence and failures
Record inputs, outputs, throws, asynchronous settlement, ordered effects, static-to-runtime correlations, completeness, truncation, and cleanup. Distinguish artifact mismatch, ambiguous target, policy denial, undeclared effect, inspector disconnect, crash, cancellation, resource leak, and cleanup failure.
Acceptance fixture
Hash a minified JavaScript fixture, create a deterministic temporary export instrumentation, invoke one selected function twice under controlled clock/randomness, observe declared file/child/loopback effects, reject an undeclared effect, cancel an Inspector run, and prove all descendants/handles/temp files are removed while the authoritative artifact remains byte-identical.
Track the detailed capability in #267.
Activity
morluto commentedon Jul 17, 2026
Approval policy, process capture, passive browser/Electron observation, and controlled JavaScript replay now deliver the first dynamic-observation architecture slices. Keep this open for later provider expansion, managed characterization, Windows ConPTY/strong ownership, and provider-specific real-runtime proof rather than describing all dynamic observation as absent.
morluto commentedon Jul 20, 2026
Split into focused child issues:
These replace the broad remaining scope in this issue. Closing this parent can happen once all children are closed.
morluto commentedon Jul 20, 2026
Closing as out of scope / premature for the current local CLI/MCP reverse-engineering focus. No concrete implementation exists yet, and the work overlaps with existing passive browser/Electron observation, process capture, and skill machinery. Can be reopened when a specific runtime observation use case is ready.