# v0.3.6-alpha.0 Release Notes

## Version

`v0.3.6-alpha.0`

## Dist Tag

`alpha`

During the alpha pilot, `latest` may be synchronized to the current alpha build to avoid stale default installs. This is not a stable support claim.

## Install

```bash
npm install -D persona-harness@alpha
```

## Summary

This alpha adds an idea-first requirements drafting gate.

Before this release, Persona Harness could split an existing `README.md` or a pasted prompt requirement into workflow tickets. It still assumed the requirement source already existed.

Now, when the user starts with a vague product idea such as `TODO 웹 서비스 만들래`, Persona Harness should route the AI to draft requirements first and stop for user review. Implementation starts only after the user approves the draft with a phrase such as `진행하자`.

## Added

- `ph workflow draft --stdin`
  - Creates `.persona/workflow/requirements/backlog.md`.
  - Creates `.persona/workflow/requirements/questions.md`.
  - Creates `.persona/workflow/requirements/assumptions.md`.
  - Stores the original idea in `.persona/workflow/requirements/latest.md`.
  - Refuses to overwrite an existing draft.
- `ph workflow approve requirements`
  - Marks draft artifacts as `Status: accepted`.
  - Keeps implementation separate from approval.
- Runtime intent routing:
  - `TODO 웹 서비스 만들래` -> `requirement-drafting`;
  - `진행하자` -> `requirement-approval` only when a draft backlog exists.
- Workflow skill documentation for draft/approval behavior.

## Usage

Idea-only start:

```text
TODO 웹 서비스 만들래
```

Expected AI rail:

```bash
npx ph workflow draft --stdin
```

After review:

```text
진행하자
```

Expected AI rail:

```bash
npx ph workflow approve requirements
npx ph workflow split .persona/workflow/requirements/backlog.md
npx ph workflow next
npx ph workflow implement
```

## Verification

- `npm test -- tests/persona-harness-workflow-ticket.test.ts tests/phase0-hooks.test.ts`: pass, 35 tests.
- `npm run typecheck`: pass.
- `npm run build`: pass.
- `npm test`: pass, 37 files, 260 tests.
- `npm run report:rules`: pass, diagnostics PASS 0.
- `npm run check:scope:strict`: pass.
- `npm run check:injection-value`: pass.
- `npm pack --dry-run`: pass.
- dist CLI smoke: `draft -> approve -> split -> next` pass.
- dist runtime transform smoke: draft/approval routing pass.

## Known Gaps

- OpenCode TUI external smoke is still needed for the full idea-first flow.
- The draft backlog is intentionally generic; it is a reviewable starting point, not a domain-perfect specification.
- This release does not certify generated application quality.
- Full TDD workflow remains future scope.
