Skip to content

[P1] Reliability and observability proof for the onboarding vertical slice #66

Description

@Aparnap2

Context

Follow-up to #65. Once the ACME golden slice is green, prove it is reliable and observable under failure, not just on the happy path. Rationale: per hygiene ruling, reliability/observability concerns enter as scoped follow-up criteria rather than separate runtimes (see #48/#51 closures); this issue carries them.

Scope

  • Replay equivalence: same event log replays to the same outcome.
  • Idempotent duplicates/retries: duplicate events and retried executions do not double-execute (domain idempotency keys).
  • Temporal restart survival: worker restart mid-mission resumes via replay with no lost or duplicated side effects.
  • Graceful degradation: connector timeout/failure degrades cleanly with audit record (no silent skip).
  • Malformed-output rejection: malformed LLM output rejected by contract validation with no partial write.
  • Full trace chain on the golden slice: event → evidence → context → mission → reasoning → intent → authorization → execution → verification → outcome, each link recorded and queryable.

Monitoring

  • OTel traces across the chain; Langfuse LLM-call visibility.
  • Temporal state visibility; Redpanda consumer-lag monitoring.
  • Metrics: success/failure rates, policy rejections, HITL latency, context size, tool calls per mission, evidence freshness.

Acceptance

Verification

  • uv run pytest apps/ai/tests/ -k "reliability or observability or replay or idempotency or restart or degrade" -v (from apps/ai)

Follow-up

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions