Skip to content

P1: Harden Codex agent harness and governed continuous learning #20

Description

@jusso-dev

Goal

Make subscription-backed Codex agents reliable for long-running security work while supporting Hermes-style continuous improvement safely.

Scope

  • Durable agent-run records in PostgreSQL instead of gateway memory only.
  • Queue-backed invocation, progress events, cancellation, timeout, token/cost ceilings and restart recovery.
  • Typed output validation with useful failure diagnostics.
  • Trusted policy/human request/untrusted evidence/tool result/approval separation.
  • Tool registry with capabilities, schemas, read/write classification and approval policy.
  • Post-run self-improvement notes: lesson, failure, preference and procedure hint.
  • Versioned skill proposals with evidence references, evaluation suite, diff, human approval, rollback and kill switch.
  • No self-authorised permission/tool/policy changes.

Acceptance criteria

  • Gateway restart does not lose durable run state or silently duplicate work.
  • Every tool call, source, output, token/cost record and cancellation is auditable.
  • Prompt injection from telemetry/web/connector output cannot alter trusted policy or tool permissions.
  • Agent may propose a note/skill; publication requires evaluation plus human approval.
  • Published skill version can be retired/rolled back.
  • Subscription credential remains in private Docker volume and never becomes an API key/environment secret.

Verification

  • Restart/duplicate/cancel/timeout integration tests.
  • Prompt-injection and tool-escalation security tests.
  • Structured-output compatibility tests against real Codex.
  • Learning proposal/evaluate/approve/rollback E2E.

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