Skip to content

Persist structured lifecycle and verification state for OMX-style continuation #100

Description

@majiayu000

Problem Description

VibeGuard already pushes agents to verify before saying “done”, but the current runtime evidence is mostly hook feedback and dirty-tree checks rather than structured task state.

Examples in the repo:

  • hooks/stop-guard.sh gates on dirty source files and logs feedback, but does not emit a durable completion artifact
  • hooks/learn-evaluator.sh records signals, but not a task lifecycle verdict
  • scripts/codex/app_server_wrapper.py forwards hook feedback, but not a reusable verification ledger
  • docs/how/memory-files.md documents .omx/ runtime memory, yet the repo does not define a concrete lifecycle schema for active/cancelled/completed/resumable work

That makes continuation and completion more heuristic than they need to be.

Proposed Solution

Persist structured lifecycle and verification state in repo-local runtime artifacts.

Suggested scope:

  • add a completion artifact such as .omx/state/<scope>/completion.json
  • add a verification ledger such as .omx/state/<scope>/verification-log.jsonl
  • add a canonical current-plan pointer / resume hint for continuation flows
  • distinguish cancelled, failed, incomplete, and completed instead of inferring state from chat text or dirty trees
  • require completion claims to reference structured verification evidence rather than prose alone

Example fields to capture:

  • mode
  • scope
  • status
  • started_at
  • updated_at
  • completed_at
  • cancelled_at
  • current_step
  • verification_status
  • verification_commands
  • known_failures
  • next_required_action

Alternatives Considered

  1. Keep using hook messages + dirty-tree heuristics
    Lower implementation cost, but not durable enough for continuation, auditing, or machine-checkable “done” semantics.

  2. Keep lifecycle state only outside the repo
    Simpler for install/runtime management, but weak for repo-local continuation and shared execution artifacts.

Additional Context

Relevant repo evidence:

  • hooks/stop-guard.sh
  • hooks/learn-evaluator.sh
  • scripts/codex/app_server_wrapper.py
  • docs/how/memory-files.md
  • docs/command-schemas.md
  • workflows/plan-mode/SKILL.md
  • workflows/plan-flow/references/execplan-template.md

This would let VibeGuard move from “remind the agent to verify” toward “persist a reusable verification contract that continuation and orchestration can trust.”

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium priority - one monthdxDeveloper experienceenhancementNew feature or requestguardGuard/hook system

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions