@deftai/directive-content 0.65.0 → 0.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/.githooks/pre-commit +3 -1
  2. package/QUICK-START.md +8 -4
  3. package/Taskfile.yml +31 -14
  4. package/UPGRADING.md +19 -5
  5. package/commands.md +46 -41
  6. package/conventions/rule-ownership.json +1 -1
  7. package/docs/BROWNFIELD.md +37 -33
  8. package/docs/directive-lifecycle.md +2 -2
  9. package/docs/getting-started.md +8 -8
  10. package/package.json +1 -1
  11. package/packs/skills/skills-pack-0.1.json +28 -28
  12. package/skills/deft-directive-article-review/SKILL.md +4 -4
  13. package/skills/deft-directive-build/SKILL.md +37 -37
  14. package/skills/deft-directive-cost/SKILL.md +6 -6
  15. package/skills/deft-directive-debug/SKILL.md +4 -4
  16. package/skills/deft-directive-decompose/SKILL.md +15 -15
  17. package/skills/deft-directive-gh-arch/SKILL.md +3 -3
  18. package/skills/deft-directive-gh-slice/SKILL.md +2 -2
  19. package/skills/deft-directive-interview/SKILL.md +12 -12
  20. package/skills/deft-directive-pre-pr/SKILL.md +3 -3
  21. package/skills/deft-directive-probe/SKILL.md +9 -9
  22. package/skills/deft-directive-refinement/SKILL.md +65 -65
  23. package/skills/deft-directive-release/SKILL.md +3 -3
  24. package/skills/deft-directive-review-cycle/SKILL.md +4 -4
  25. package/skills/deft-directive-setup/SKILL.md +71 -71
  26. package/skills/deft-directive-swarm/SKILL.md +94 -94
  27. package/skills/deft-directive-sync/SKILL.md +55 -55
  28. package/skills/deft-directive-triage/SKILL.md +15 -15
  29. package/tasks/architecture.yml +3 -1
  30. package/tasks/cache.yml +20 -10
  31. package/tasks/capacity.yml +8 -4
  32. package/tasks/change.yml +8 -10
  33. package/tasks/changelog.yml +3 -1
  34. package/tasks/codebase.yml +20 -10
  35. package/tasks/commit.yml +4 -8
  36. package/tasks/engine.yml +18 -4
  37. package/tasks/install.yml +4 -8
  38. package/tasks/issue.yml +8 -10
  39. package/tasks/migrate.yml +24 -8
  40. package/tasks/packs.yml +32 -16
  41. package/tasks/policy.yml +24 -12
  42. package/tasks/pr.yml +16 -8
  43. package/tasks/prd.yml +9 -12
  44. package/tasks/project.yml +14 -14
  45. package/tasks/reconcile.yml +4 -8
  46. package/tasks/roadmap.yml +9 -5
  47. package/tasks/scm.yml +36 -18
  48. package/tasks/scope-undo.yml +3 -1
  49. package/tasks/scope.yml +40 -26
  50. package/tasks/session.yml +4 -2
  51. package/tasks/slice.yml +8 -10
  52. package/tasks/spec.yml +10 -12
  53. package/tasks/swarm.yml +20 -10
  54. package/tasks/triage-actions.yml +32 -16
  55. package/tasks/triage-bootstrap.yml +4 -2
  56. package/tasks/triage-bulk.yml +20 -10
  57. package/tasks/triage-classify.yml +4 -2
  58. package/tasks/triage-queue.yml +12 -6
  59. package/tasks/triage-reconcile.yml +4 -2
  60. package/tasks/triage-scope-drift.yml +4 -2
  61. package/tasks/triage-scope.yml +4 -2
  62. package/tasks/triage-smoketest.yml +4 -2
  63. package/tasks/triage-subscribe.yml +8 -4
  64. package/tasks/triage-summary.yml +4 -2
  65. package/tasks/triage-welcome.yml +4 -2
  66. package/tasks/ts.yml +3 -1
  67. package/tasks/umbrella.yml +1 -7
  68. package/tasks/vbrief.yml +25 -17
  69. package/tasks/verify.yml +102 -50
  70. package/templates/agent-prompt-preamble.md +26 -23
  71. package/templates/agents-entry.md +33 -19
  72. package/vbrief/conformance/extensions/valid/extension-at-root.vbrief.json +31 -0
  73. package/vbrief/conformance/extensions/valid/nested-extension-value.vbrief.json +19 -0
  74. package/vbrief/schemas/xbrief-core-0.8.schema.json +786 -0
@@ -1,6 +1,6 @@
1
1
  # Getting Started with Deft Directive
2
2
 
3
- Deft Directive is a Taskfile-first framework for AI-assisted software work. It combines agent guidance, deterministic gates, vBRIEF lifecycle metadata, installer/doctor handoff, and cache-backed backlog workflows. This guide walks through installation, preferences, project setup, and the first scope workflow.
3
+ Deft Directive is a Taskfile-first framework for AI-assisted software work. It combines agent guidance, deterministic gates, xBRIEF lifecycle metadata, installer/doctor handoff, and cache-backed backlog workflows. This guide walks through installation, preferences, project setup, and the first scope workflow.
4
4
 
5
5
  > **Note**: This guide is an orientation layer. For a single-picture mental model of how Directive turns an idea into shipped work, see [the Directive lifecycle](./directive-lifecycle.md); for command behavior, see [commands.md](../commands.md); for current architecture details, see [ARCHITECTURE.md](../../docs/ARCHITECTURE.md).
6
6
 
@@ -62,7 +62,7 @@ deft-install --yes --upgrade --repo-root . --json
62
62
  ```
63
63
 
64
64
  Those consumer flows intentionally project Deft-managed files into your project
65
- root (`AGENTS.md`, skills pointers, gitignore entries, vbrief scaffolding, and
65
+ root (`AGENTS.md`, skills pointers, gitignore entries, xbrief scaffolding, and
66
66
  related guard configuration). Framework maintainers working inside a
67
67
  `deftai/directive` checkout should instead follow
68
68
  [`CONTRIBUTING.md`](../../CONTRIBUTING.md) and use `--maintainer`; maintainer setup
@@ -78,7 +78,7 @@ checks tools without rewriting consumer-managed files.
78
78
 
79
79
  ## Working an existing backlog
80
80
 
81
- If you are adopting Deft on a project that already has an issue tracker (existing repo, brownfield migration, an upstream bug list that has been accumulating), you do not have to start from an empty `vbrief/proposed/`. The refinement skill's **Phase 0 triage workflow** lets you walk an existing backlog locally, decide what to keep, and let only the **accepted** items land in `vbrief/proposed/`. Trigger words: **"triage"**, **"work the cache"**, **"pre-ingest"**, **"action menu"**.
81
+ If you are adopting Deft on a project that already has an issue tracker (existing repo, brownfield migration, an upstream bug list that has been accumulating), you do not have to start from an empty `xbrief/proposed/`. The refinement skill's **Phase 0 triage workflow** lets you walk an existing backlog locally, decide what to keep, and let only the **accepted** items land in `xbrief/proposed/`. Trigger words: **"triage"**, **"work the cache"**, **"pre-ingest"**, **"action menu"**.
82
82
 
83
83
  ### Step 1 — Scoped first populate
84
84
 
@@ -103,7 +103,7 @@ The unbounded no-flag form remains the default for small backlogs. For real-size
103
103
  After the cache is populated, ask your agent to triage. For each cached candidate the agent presents a numbered action menu and waits for your decision:
104
104
 
105
105
  ```
106
- 1. Accept -- task triage:accept <issue> (writes proposed/ vBRIEF + audit-log entry)
106
+ 1. Accept -- task triage:accept <issue> (writes proposed/ xBRIEF + audit-log entry)
107
107
  2. Reject -- task triage:reject <issue> (audit-log entry only; closes the upstream issue)
108
108
  3. Defer -- task triage:defer <issue> (non-terminal; resurfaces on the next pass)
109
109
  4. Needs-AC -- task triage:needs-ac <issue> (non-terminal; flags missing acceptance criteria)
@@ -112,19 +112,19 @@ After the cache is populated, ask your agent to triage. For each cached candidat
112
112
  7. Back
113
113
  ```
114
114
 
115
- Only **accepted** items become scope vBRIEFs in `vbrief/proposed/`. Rejected, deferred, and duplicate decisions are recorded in the audit log so the backlog stays focused. Bulk verbs (`task triage:bulk-accept` / `bulk-reject` / `bulk-defer` / `bulk-needs-ac`) handle predictable patterns (e.g. "reject every `wontfix`-labelled candidate") without walking the menu N times.
115
+ Only **accepted** items become scope xBRIEFs in `xbrief/proposed/`. Rejected, deferred, and duplicate decisions are recorded in the audit log so the backlog stays focused. Bulk verbs (`task triage:bulk-accept` / `bulk-reject` / `bulk-defer` / `bulk-needs-ac`) handle predictable patterns (e.g. "reject every `wontfix`-labelled candidate") without walking the menu N times.
116
116
 
117
117
  ### Step 3 — Understand the three-tier model
118
118
 
119
119
  Phase 0 reads and writes three distinct stores; they never collapse into one:
120
120
 
121
121
  - **Cache** — `.deft-cache/github-issue/<owner>/<repo>/<N>/` is the local mirror of fetched issue bodies, labels, and state. Populated by `task cache:fetch-all`; read via `task cache:get -- github-issue OWNER/NAME/<N>`. The directory is gitignored — your local mirror is private to your machine. The cache is the **read** surface for triage so decisions are reproducible across re-runs (no live `gh issue view` per decision).
122
- - **Audit log** — `vbrief/.eval/candidates.jsonl` is an append-only JSONL recording every candidate you have ever seen plus the action taken (`accept | reject | defer | needs-ac | mark-duplicate`) and a timestamp. Re-running triage against the same cache short-circuits items that already have a terminal entry, so deferred / Needs-AC items resurface and rejected ones do not.
123
- - **Accepted backlog** — `vbrief/proposed/` is the standard scope-vBRIEF lifecycle folder. **Writes flow only through `task triage:accept`**, which delegates the actual vBRIEF authoring to `task issue:ingest` so slug, reference, and schema rules stay in one place. Hand-authored proposed/ vBRIEFs are still allowed; what changed is that triage no longer writes there silently.
122
+ - **Audit log** — `xbrief/.eval/candidates.jsonl` is an append-only JSONL recording every candidate you have ever seen plus the action taken (`accept | reject | defer | needs-ac | mark-duplicate`) and a timestamp. Re-running triage against the same cache short-circuits items that already have a terminal entry, so deferred / Needs-AC items resurface and rejected ones do not.
123
+ - **Accepted backlog** — `xbrief/proposed/` is the standard scope-xBRIEF lifecycle folder. **Writes flow only through `task triage:accept`**, which delegates the actual xBRIEF authoring to `task issue:ingest` so slug, reference, and schema rules stay in one place. Hand-authored proposed/ xBRIEFs are still allowed; what changed is that triage no longer writes there silently.
124
124
 
125
125
  ### Step 4 — Why this avoids the GraphQL drain
126
126
 
127
- The shared GitHub GraphQL bucket (5000 points/hour per identity) is the operational bottleneck under multi-agent / shared-identity workflows, not the REST `core` bucket. The triage cache is **REST-backed** (`gh api` reads, not `gh issue view --json`), and the populate uses **batched delays** plus automatic 429 retries with the upstream `Retry-After` header. There is no live `gh issue view` per accept / reject / defer decision — every decision reads from the local cache. This is why the scoped flags exist: they let you keep the populate inside the REST budget and well clear of the GraphQL bottleneck (see [#976](https://github.com/deftai/directive/issues/976) for the recurrence pattern). Refresh the cache on demand with `task cache:fetch-all` (idempotent — fresh entries are skipped) or audit drift against `vbrief/active/*.vbrief.json` with `task triage:refresh-active`.
127
+ The shared GitHub GraphQL bucket (5000 points/hour per identity) is the operational bottleneck under multi-agent / shared-identity workflows, not the REST `core` bucket. The triage cache is **REST-backed** (`gh api` reads, not `gh issue view --json`), and the populate uses **batched delays** plus automatic 429 retries with the upstream `Retry-After` header. There is no live `gh issue view` per accept / reject / defer decision — every decision reads from the local cache. This is why the scoped flags exist: they let you keep the populate inside the REST budget and well clear of the GraphQL bottleneck (see [#976](https://github.com/deftai/directive/issues/976) for the recurrence pattern). Refresh the cache on demand with `task cache:fetch-all` (idempotent — fresh entries are skipped) or audit drift against `xbrief/active/*.xbrief.json` with `task triage:refresh-active`.
128
128
 
129
129
  Full command reference for every triage and cache verb lives in [`commands.md` § Backlog triage & cache tasks](../commands.md#backlog-triage--cache-tasks); the canonical agent-facing description of the workflow lives in `skills/deft-directive-refinement/SKILL.md` Phase 0.
130
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deftai/directive-content",
3
- "version": "0.65.0",
3
+ "version": "0.66.1",
4
4
  "description": "Shippable Directive framework content in the consumer .deft/core/ layout (C1 flatten), plus the engine surfaces (.githooks/, Taskfile.yml, tasks/) the deposit wires. Python-free per #2022 Phase 3. Refs #11, #1669, #1967.",
5
5
  "type": "module",
6
6
  "files": [