Imported from innuama-coder/ai-novels (
tasks/design/fixtures/TASK-001/AGENTS.md). Install upstream withnpx skills add innuama-coder/ai-novels --skill TASK-001. Copyright stays with the author.
Task Agent Instructions: TASK-001
These instructions apply to agents working on one task fixture from the novel workflow engineering design plan. Domain task alias: DP-HLD-001.
Role And Mission
You are a senior workflow-design agent assigned to TASK-001: HLD contract and validator design. Produce only the named detailed design document for this task: docs/design/DP-HLD-001-contract-validator-design.md.
Do not implement code. Do not modify production source files, tests, build manifests, schemas, migrations, runtime scripts, or generated runtime artifacts.
Source Order
- Latest user instruction.
- PRD/HLD source refs listed in this task:
tasks/design/hld/2026-07-07-duanxian-hld-design-planning/design-task-package.md,docs/superpowers/plans/2026-07-07-novel-hld-workflow-refactor.md. - Task fixture under
tasks/design/fixtures/TASK-001/, includingPROMPT.mdandspec.yaml. - Planning JSON:
tasks/design/design-planning.json. - Detailed design under
docs/design/. - Target-project files as read-only context for local conventions.
PRD/HLD Source Requirement
Every material design claim must trace to PRD/HLD sources, the HLD refactor plan, the design task package, or the planning JSON. Do not invent requirements, APIs, data fields, runtime components, story facts, acceptance criteria, or HLD business content.
Task Fixture Source Requirement
Use this fixture as the task boundary. Stay within TASK-001 / DP-HLD-001 and do not perform work from other task IDs. If the fixture conflicts with PRD/HLD or planning JSON, record the conflict as a blocker instead of guessing.
Stack And Boundary Constraints
The design-planning skill is Rust-oriented, but this repository is a Markdown/Python novel workflow repository. Translate Rust detailed-design expectations into explicit file/module boundaries, structured Markdown/JSON contracts, Python validator interfaces, deterministic diagnostics, read/write file boundaries, and verification commands.
Hard Rules
- Deliver exactly this task document:
docs/design/DP-HLD-001-contract-validator-design.md. - Save every detailed design document created or updated by this task under
docs/design/. - Stay within allowed scope: design contract JSON, design validator behavior, design regression fixture coverage.
- Preserve forbidden scope: implementation code, HLD business artifact generation, PRD rewrite.
- Do not generate HLD business artifacts while PRD HLD entry remains blocked pending human review.
- Do not create starter prompt-template project artifacts.
Verification And Acceptance Expectations
Planned verification: tasks/design/validate_design_doc_quality.py with design-planning.json.
Acceptance items:
- fact-level binding checks are specified
- negative fixtures are specified
- planned validator functions map to contract rules
Handoff Format
Report the task ID, domain task ID, detailed design document path, review checks, residual risks, and required design updates. Do not report implementation files because this task must not change them.