Skip to content

PRD persistence consistently skipped during Algorithm execution #700

Description

@wojteksbt

PRD persistence consistently skipped during Algorithm execution

Problem

The Algorithm mandates PRD creation during OBSERVE and dual-tracking (working memory + persistent memory) throughout all phases. In practice, the persistent memory track (PRD file in MEMORY/WORK/) is consistently skipped while the working memory track (TaskCreate) is followed.

This is a recurring failure mode across sessions — not a one-off miss.

Root Cause Analysis

  1. TaskCreate is frictionless — it's a tool call inline with the Algorithm flow
  2. PRD write is a separate step — requires constructing a full markdown file, choosing a path, and writing to disk
  3. No enforcement mechanism — nothing blocks BUILD if no PRD exists
  4. Implementation gravity — once OBSERVE creates ISC via TaskCreate, the pull toward BUILD is strong and the PRD step gets deprioritized
  5. Template weight — the full PRD template is heavyweight, which raises friction for simple/standard tasks

Impact

  • Session work is not persisted to disk
  • Cross-session continuity breaks (no PRD to resume from)
  • MEMORY/WORK/ directories are empty or incomplete
  • Violates the Algorithm's dual-tracking sync rules

Possible Solutions

1. Pre-BUILD hook (enforcement)

A hook that checks for PRD file existence after OBSERVE/PLAN and blocks BUILD if none exists. Similar to how the Quality Gate blocks THINK if ISC are insufficient.

2. Lighter PRD creation path

A simplified PRD creation mechanism for Standard and below effort levels — perhaps auto-generated from TaskCreate entries rather than manually written.

3. TaskCreate → PRD auto-sync

When TaskCreate is called with ISC prefix, automatically append to a PRD file. This would eliminate the dual-write requirement entirely.

4. Algorithm reflection reinforcement

The LEARN phase reflection already captures this, but the signal doesn't persist strongly enough across sessions. A dedicated "PRD compliance" check in the Phase Discipline Checklist with explicit self-correction might help.

Reproduction

  1. Start any Standard+ effort level task
  2. Observe that TaskCreate ISC criteria are created in OBSERVE
  3. Note that no PRD file is written to MEMORY/WORK/{session}/
  4. Work completes, LEARN phase runs, but no persistent artifact exists

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