feat(state): specify supplied inputs vs observed access and review scope (#174) - #176
Open
Adityakk9031 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary & Motivation
Resolves #174
In multi-cycle agent delegation and evidence observatory runs, coordinators delegate investigations, audits, and synthesis tasks to subagents. As documented in #174, a recurring audit friction is reconstructing what a worker was actually handed, what the host environment observed it access, and what review scope the worker attested to performing. Bound input tuples (
input_fingerprints) were often conflated with semantic inspection, and auxiliary follow-up handoffs were vulnerable to omission or retroactive backfilling.This PR introduces an optional, host-agnostic execution-provenance profile that defines the boundaries between three non-interchangeable planes of evidence without imposing cryptographic signatures, live messaging sockets, or domain-specific schemas.
Key Changes
New Specification: Execution Provenance (
skills/open-prose/state/execution-provenance.md)workspace/{node}/__delegate/{delegate}/handoffs/{seq}.json) tracking exact paths, content hashes, task identity, and instructions.observed_access.jsonl) captured by host adapters. Absent telemetry remainsunknown.{id}-response.mdwith structured modes:full,partial(with section/line scope),integrity_check_only(hash verified),reused_prior, ornot_read(with reason).001.json,002.json) ensures incremental inputs (e.g. adding inputunknown.Filesystem & State Layout (
skills/open-prose/state/filesystem.md,README.md)handoffs/{seq}.jsonandobserved_access.jsonlto the delegation directory layout.execution-provenance.mdin the state documentation table of contents.VM Execution Guidance (
skills/open-prose/prose.md)Inspector Provenance Auditing (
packages/std/evals/inspector.prose.md)extractorto pullhandoff_provenanceandobserved_telemetry.evaluatorto detectunrecorded-handoffgaps (when worker outputs reference unrecorded inputs), flagsupplied-unreviewedtransparency, and maintainunknownstatus for missing host telemetry.Conformance & Fixture Tests (
tests/open-prose/state/execution-provenance.test.ts)unrecorded-handoffgap rather than retroactively backfilling it from the worker's summary.unknownrather than manufactured.Verification
pnpm vitest run tests/open-prose/state/execution-provenance.test.ts(8/8 tests passed).pnpm vitest run tests/open-prose/state/prose-state.test.ts(18/18 tests passed).