Skip to content

feat(substrate): prove a live evidence-to-context loop under an agent #2384

Description

@Sinity

Outcome

A work-generating agent emits structured evidence into Polylogue while it runs, can query that evidence immediately, and later consumes an evidence-backed context/resume artifact that materially improves continuation of the same work.

That repeated bidirectional use, not the existence of more archive machinery, is the closure condition for moving Polylogue from a downstream evidence archive toward an in-loop substrate.

Current reality

Polylogue already has substantial archive, query, lineage, assertion, recovery, context-pack, MCP, and evidence-ref machinery. It can continuously ingest and reconstruct work from several providers.

The missing outcome is narrower and more important:

  • no production first-class provider-neutral work-event write leg is established;
  • Hermes work topology is not yet reconstructed from the strongest available state/runtime evidence;
  • hook-event materialization has advanced, but complete query projection and coverage are not proven;
  • inbound OTLP remains primarily disposable runtime telemetry rather than durable work evidence;
  • context/recovery surfaces exist, but repeated in-loop use that changes real work has not been demonstrated.

Do not interpret this issue as permission to build a new general event architecture before testing a terminal loop.

Minimum proving loop

Use one real agent/runtime and one real project task:

  1. Emit: the runtime records a bounded typed set of work events through Polylogue's current source/admission authority.
  2. Query: events, lineage, tool outcomes, decisions/caveats, and raw support are immediately queryable with truthful coverage.
  3. Compile: Polylogue produces a compact evidence-backed resume/context artifact.
  4. Consume: a fresh agent invocation receives that artifact before acting.
  5. Measure: compare the resulting continuation against a raw-transcript or ordinary-handoff baseline.

The first implementation may be intentionally narrow. Generalization follows observed failures, not the other way around.

Acceptance criteria

  • A non-synthetic agent run emits provider-neutral typed work evidence during execution through the current canonical source/write authority, with deterministic idempotency and no parallel source of truth.
  • The emitted run is queryable before the original runtime session ends, including evidence refs and explicit unsupported/missing coverage.
  • A compact context/resume artifact is generated from that evidence and consumed by a fresh continuation invocation.
  • The trial records whether the artifact recovered non-obvious state, changed the next action, prevented duplicated work, or introduced misleading context.
  • At least three real resumptions use the loop; one must include a failure, retry, delegation, or context boundary.
  • A baseline comparison shows the marginal value or honestly records that the current loop has little value.
  • All public claims distinguish operational archive/forensics capabilities from still-experimental in-loop exocortex behavior.

Tracker authority

Sequencing rule

Before admitting a broad new abstraction, record the specific failure from a real proving-loop trial that requires it. Parser-only vocabulary, projection-only tables, or a generalized orchestration layer are not closure by themselves.

Non-goals

  • No claim that Polylogue already functions as a meaningful personal exocortex.
  • No mutable runtime task authority inside Polylogue.
  • No requirement to store every projection as a durable table.
  • No large cross-provider framework before one narrow loop has repeated terminal value.
  • No closure based only on fixtures, unit tests, or a synthetic demo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:daemonDaemon and live service runtimearea:parserParserarea:pipelinePipelinetheme:agent-workflowAgentic engineering workflow and wallclock minimizationtheme:evidence-trustEvidence trust, reproducibility, privacy, and witness metadatatype:featNew feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions