@jaybeeuu/agent-cortex 2.9.0 → 2.10.0

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.
@@ -0,0 +1,89 @@
1
+ # One recommendation
2
+
3
+ The queue is a list; a session that has to decide says one item and stops. `recommend.mjs` prints
4
+ that one row — the same total, components and multipliers the queue computed, plus the line of the
5
+ strategy that justifies it — and states a condition instead of choosing whenever it cannot justify
6
+ a row.
7
+
8
+ Every run ends in one of five answers: the block, or one of the four conditions that replace it.
9
+
10
+ It ranks nothing. The bead is `rows[0]` of the queue, or the bead the human named, and every number
11
+ on the block is the row's own.
12
+
13
+ ## The three commands
14
+
15
+ ```bash
16
+ node <skill-scripts>/../../prioritise-work/scripts/strategy.mjs validate # prints the rubric
17
+ node <skill-scripts>/recommend.mjs recommend --json # the top row, structured
18
+ node <skill-scripts>/recommend.mjs recommend --why "<one line of the rubric>"
19
+ ```
20
+
21
+ `validate` first, because the printed rubric is the only text a justification may be quoted from.
22
+ `--json` second, to read the row's id and totals. `--why` last, once the line that justifies that
23
+ bead has been chosen from the rubric.
24
+
25
+ ## The quote rule
26
+
27
+ `--why` names a line, or part of one, from the strategy file. The script finds that line in the
28
+ file, prints it verbatim with the section it sits under, and refuses the run (exit `2`) when no line
29
+ contains it. Guidance comments in the file are not quotable: they are instructions for whoever
30
+ writes the rubric, not the owner's own words.
31
+
32
+ ```text
33
+ why: "shorter review turnaround for human-gated work." · Current themes
34
+ ```
35
+
36
+ A quote the file does not hold is a refused run rather than a weaker reason, so an invented
37
+ justification cannot reach the human.
38
+
39
+ ## The block
40
+
41
+ ```text
42
+ Recommendation · tst-a · total 10.0 · strategy v2
43
+ Ship the decision queue
44
+ rice 4.2 = R4 · I3 · C0.7 · E2 ×2.39 dependents(3) ×1.0
45
+ unblocks tst-c, tst-d, tst-e
46
+ why: "shorter review turnaround for human-gated work." · Current themes
47
+ ```
48
+
49
+ Five lines: the bead and its total, its title, the four components with the unblocking multiplier
50
+ and the work-in-progress multiplier, the beads the answer releases, and the strategy line. One
51
+ recommendation, never the list the row came from.
52
+
53
+ ## When the human names a bead
54
+
55
+ `--bead <id>` recommends the bead the human named instead of the top row. The block is the same,
56
+ and one line is added when the queue put a different bead first:
57
+
58
+ ```text
59
+ queue top: tst-a · total 10.0 · Ship the decision queue
60
+ ```
61
+
62
+ That line is the whole of the disagreement. The human's choice stands, and a wish to see it first
63
+ is a strategy change through `prioritise-work`, never a silent override.
64
+
65
+ ## The stated conditions
66
+
67
+ Each one leads with `No recommendation`, names the condition, and offers the one step that clears
68
+ it. None of them guesses a bead, and none of them is a failure of the run: exit `0` means an answer
69
+ was printed, whichever answer it was.
70
+
71
+ | First line | What it means | The step it offers |
72
+ |---|---|---|
73
+ | `No recommendation · no usable strategy` | The file is absent, or `validate` rejected it; every defect is listed | Write or fix it with `prioritise-work` |
74
+ | `No recommendation · nothing is scored` | The queue holds beads, and not one carries a `rice` record | Score one bead with `score-bead` |
75
+ | `No recommendation · the queue is empty` | No open `execution:hitl` bead exists; the excluded idea and deferred counts are printed | File the decision as an `execution:hitl` bead, or lift a deferral |
76
+ | `No recommendation · <id> is not in the queue` | The bead the human named is not an open `execution:hitl` bead | Check it with `bd show`, then name one from the queue |
77
+
78
+ | Option | Effect |
79
+ |---|---|
80
+ | `--why "<line>"` | The strategy line that justifies the choice; required before a block is printed |
81
+ | `--bead <id>` | Recommend the bead the human named, noting the queue's own top choice |
82
+ | `--file <path>` | Strategy file (default `.agent-cortex/working-docs/strategy.md`, relative to the repository root) |
83
+ | `--include-ideas` | Rank `kind:idea` beads too, as the queue does |
84
+ | `--cwd <dir>` | Directory the strategy path and `bd` resolve from |
85
+ | `--json` | Print the answer as JSON, including the state name |
86
+
87
+ Exit `1` means a `bd` call failed, and exit `2` means a malformed call — an unknown option, or a
88
+ `--why` the strategy does not contain. `BD_PATH` pins the `bd` binary. The script makes no writes:
89
+ the tracker calls are `bd list` and `bd dep list`, nothing else.
@@ -0,0 +1,118 @@
1
+ # Scopes
2
+
3
+ The scope list says which bd workspaces the queue reads, and which one it may write. It is a
4
+ **file**, never code: a path in a script would name one person's machine, and a scope list does
5
+ not.
6
+
7
+ ## The file
8
+
9
+ | Item | Value |
10
+ |---|---|
11
+ | Default | `.agent-cortex/scopes.json`, relative to the repository root |
12
+ | User level | `<AGENT_CORTEX_HOME>/scopes.json`, then `~/.agent-cortex/scopes.json` |
13
+ | Override | `--scopes <path>` |
14
+ | Fallback | no file found: one scope, named `code`, for the current workspace, writable |
15
+
16
+ The project list is read first, so a repository can commit the scopes its work spans. The user
17
+ list is the personal one: it travels with the person, not the checkout. With neither, the queue
18
+ behaves as it did before scopes existed — one workspace, one list.
19
+
20
+ ```json
21
+ {
22
+ "scopes": [
23
+ { "name": "code", "path": ".", "kind": "code", "readOnly": false },
24
+ { "name": "notes", "path": "~/personal", "kind": "personal", "readOnly": true },
25
+ { "name": "ops", "path": "../ops", "kind": "ops" }
26
+ ]
27
+ }
28
+ ```
29
+
30
+ | Field | Required | Meaning |
31
+ |---|---|---|
32
+ | `name` | yes | The tag every row from this scope carries. Unique within the file. |
33
+ | `path` | yes | The workspace. `~` is the home directory; a relative path resolves against the repository root of the list itself, never the directory the run started in. The queue reports the resolved absolute path, never the text this field holds. |
34
+ | `kind` | no | `code`, `personal` or `ops`. Default `code`. A `personal` scope is the one a shared invocation withholds. |
35
+ | `readOnly` | no | Default `true`. A scope you did not mark writable is read-only. |
36
+
37
+ ## One writable scope
38
+
39
+ The **current workspace** — the nearest ancestor of the run's directory that carries its own
40
+ `.beads` — is the only scope a command may write to. A scope is writable only when it is not
41
+ marked read-only *and* its resolved path is that workspace, so a list copied onto another machine
42
+ cannot widen the writable set: the same entry that is writable in your checkout is read-only in
43
+ mine.
44
+
45
+ The queue writes nothing today — its tracker calls are `bd list` and `bd dep list`. The rule is
46
+ enforced anyway, at the one function every tracker call for a scope passes through, so a later
47
+ change cannot quietly write to the wrong workspace:
48
+
49
+ ```js
50
+ guardRunner(scope, bd) // refuses any call that is not one of the two reads
51
+ ```
52
+
53
+ ## Availability
54
+
55
+ A scope is read only when it can be:
56
+
57
+ - **the directory exists**, and
58
+ - **it carries its own `.beads`**, because bd resolves a workspace by walking *up* from the
59
+ current directory. A configured directory with no tracker of its own would otherwise read the
60
+ enclosing workspace's beads and tag them with the wrong scope, which is a privacy failure and a
61
+ correctness one.
62
+
63
+ Anything else is reported `unavailable` with the reason, above the list, and skipped. A `bd` call
64
+ that fails marks its own scope unavailable and leaves the others alone, so one broken workspace
65
+ never costs the whole queue. Exit code stays `0`.
66
+
67
+ ## The daily scope note
68
+
69
+ Above the ranked list the queue prints one line: which scopes the day belongs to, and the
70
+ strategy line that says so.
71
+
72
+ ```
73
+ today · personal, code — "daily: personal, code — Monday and Tuesday are the personal objectives" (strategy v3, "## Current themes", scope notes)
74
+ ```
75
+
76
+ The line is read from the **personal scope's** own strategy, at the documented default path
77
+ inside that workspace, so the note is personal strategy text and never a copy of it. Write it as
78
+ one bullet under `## Current themes`:
79
+
80
+ ```markdown
81
+ - daily: personal, code — Monday and Tuesday are the personal objectives
82
+ ```
83
+
84
+ The scope names before the em dash are what the note leads with; the rest is the reason, quoted
85
+ verbatim. The citation names the strategy version, the section the line sat under, and the scope
86
+ it was read from. When no personal scope is configured, or none carries a `daily:` line, the note
87
+ says that and names what to add — it never invents one.
88
+
89
+ ## The privacy boundary
90
+
91
+ - **A read-only scope receives no write.** Enforced by `guardRunner`, tested with a mutation.
92
+ - **A shared invocation reads no personal scope at all.** `--shared`, or
93
+ `AGENT_CORTEX_QUEUE_SHARED=1`, marks output that will leave this machine — a CI log, a pasted
94
+ report, a handoff to another agent. Personal scopes are then `withheld`: not read, not ranked,
95
+ not quoted, and counted in the header so nothing disappears silently. **A withheld scope
96
+ publishes neither its name nor its path**, because both identify a workspace the reader may not
97
+ see: the header prints the count, and `--json` prints `null` for both fields.
98
+ - **A withheld scope publishes no `name` and no `path`.** Both identify the workspace the reader
99
+ may not see — a path encodes the home directory, and a name is whatever the owner called it —
100
+ so `--json` carries `null` for both. `kind`, `readOnly` and `writable` remain, because the
101
+ header already says a personal scope was withheld.
102
+ - **A personal row appears only in a local invocation.** Local is the default, because the person
103
+ reading their own queue on their own machine is the common case.
104
+ - **Nothing personal is written anywhere.** The queue copies no bead text into another workspace
105
+ because it writes no bead at all, and the daily line is quoted, never re-filed.
106
+
107
+ ## Reading the queue
108
+
109
+ ```bash
110
+ node <skill-scripts>/queue.mjs queue # every configured scope
111
+ node <skill-scripts>/queue.mjs queue --scopes ./list.json
112
+ node <skill-scripts>/queue.mjs queue --shared # output that leaves this machine
113
+ node <skill-scripts>/queue.mjs queue --json # scope statuses and the note, structured
114
+ ```
115
+
116
+ `--json` carries the same answer with every derived field: each scope's `status`, `reason`,
117
+ `readOnly` and `writable`, the daily note, and the withheld counts. A withheld scope has `null`
118
+ for `name` and `path`.
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: hitl-queue
3
- description: Ranks the open execution:hitl beads into one list ordered by RICE, transitively blocked dependents and work in progress, and prints what each answer unblocks. Use when deciding which human decision to answer next, when a planning session starts, or when asked "what needs my decision", "show the queue" or "what should I answer first".
3
+ description: Ranks the open execution:hitl beads across every configured bd workspace into one list ordered by RICE, transitively blocked dependents, work in progress and the time left to each due date, prints what each answer unblocks and which scope each row came from, notes which scope the day belongs to, and recommends one item from that list with the line of the strategy that justifies it. Use when deciding which human decision to answer next, when a session cold-starts and must say one item, when a planning session starts, or when asked "what needs my decision", "show the queue", "what should we look at" or "what should I answer first".
4
4
  ---
5
5
 
6
6
  # HITL Queue
7
7
 
8
- Owns one output: **the ranked list of beads waiting for a human answer**. Each row carries its own arithmetic, so the owner can check *why* one decision outranks another instead of trusting a number.
8
+ Owns one output: **the ranked list of beads waiting for a human answer**, read from every configured workspace and tagged with the scope each row came from. Each row carries its own arithmetic, so the owner can check *why* one decision outranks another instead of trusting a number.
9
9
 
10
10
  A queue is not a priority. The RICE score is `score-bead`'s judgement, the band it implies is reviewed there, and this skill only orders beads by a number that already exists. Where no score exists, the queue says so and ranks nothing: inventing an order would hide the gap a person has to fill.
11
11
 
@@ -13,6 +13,7 @@ A queue is not a priority. The RICE score is `score-bead`'s judgement, the band
13
13
 
14
14
  - A planning session starts and the owner needs to know which decision comes first.
15
15
  - "What needs my decision?", "show the queue", "what should I answer first?".
16
+ - "What should we look at?" — a cold start that must say one item rather than print the list. See [RECOMMEND.md](RECOMMEND.md).
16
17
  - Before dispatching work from a backlog of HITL beads: the answer unblocks the work, so the order of answers is the order of the work.
17
18
  - A bead was scored or re-scored and the order should follow the new number.
18
19
 
@@ -26,7 +27,7 @@ A queue is not a priority. The RICE score is `score-bead`'s judgement, the band
26
27
  ## The formula
27
28
 
28
29
  ```
29
- total = rice × (1 + ln(1 + dependents)) × (in progress ? 1.5 : 1)
30
+ total = rice × (1 + ln(1 + dependents)) × (in progress ? 1.5 : 1) × deadline
30
31
  ```
31
32
 
32
33
  | Term | Meaning |
@@ -34,50 +35,59 @@ total = rice × (1 + ln(1 + dependents)) × (in progress ? 1.5 : 1)
34
35
  | `rice` | The stored `score` from the bead's `rice` metadata, written by `score-bead`. Never recomputed here. |
35
36
  | `dependents` | Distinct beads that wait on this answer, **transitively**. |
36
37
  | `1.5` | Work in progress outranks equal work not started, so the queue drains WIP first. |
38
+ | `deadline` | The strategy's tier factor for the time left until the bead's `--due`; `1` when it has no due date. |
37
39
 
38
- The dependent count is the load-bearing term. A bead blocking A, which blocks B, which blocks C, unblocks **three**. The walk follows `bd dep list <id> --direction up` from bead to bead, and collects **beads, not paths**: when the graph reconverges (a diamond — one bead reached by two routes), it is counted once. Counting paths would measure the shape of the graph instead of the work an answer releases.
40
+ The dependent count is the load-bearing term. A bead blocking A, which blocks B, which blocks C, unblocks **three**. The walk follows `bd dep list <id> --direction up` from bead to bead, and collects **beads, not paths**: when the graph reconverges (a diamond — one bead reached by two routes), it is counted once, because counting paths would measure the shape of the graph instead of the work an answer releases.
39
41
 
40
- Two edges of the walk are deliberate:
42
+ Two edges of the walk are deliberate: only `blocks` edges count, because a related or duplicate edge is not something anyone waits on; and the walk passes through every bead while counting only live ones, because a closed bead is still a link in the chain but finished work cannot be unblocked. `1 + ln(1 + n)` is logarithmic on purpose: unblocking thirty chores must not drown the list under one row, and zero dependents scores `1`, so a bead that unblocks nothing is not penalised — it is simply not lifted.
41
43
 
42
- - **Only `blocks` edges count.** A related or duplicate edge is not something anyone waits on.
43
- - **The walk passes through every bead; it counts only live ones.** A closed bead is still a link in the chain, so the walk continues past it, but finished work cannot be unblocked, so a closed dependent is not counted.
44
+ ## Deadlines
44
45
 
45
- `1 + ln(1 + n)` is logarithmic on purpose: unblocking thirty chores must not drown the list under one row. Zero dependents scores `1`, so a bead that unblocks nothing is not penalised — it is simply not lifted.
46
+ A `--due` date is the one deadline field, and `bd` already stores it. The queue multiplies the total by the factor of the narrowest tier the time left fits inside; those factors are the **shipped default**, and a strategy's optional `## Deadline tiers` section replaces them, so moving a tier is a strategy edit and a `bump`, never a code change. A bead with no due date keeps the factor 1. [DEADLINES.md](DEADLINES.md) carries the shipped table, the row syntax, the `validate` rule, the boundary and the defer rule.
47
+
48
+ ## Scopes
49
+
50
+ A scope is one bd workspace. The queue reads every one and writes to none; the current workspace is the only writable scope, so every other is read-only, and a missing workspace is `unavailable` and skipped. A shared invocation (`--shared`, or `AGENT_CORTEX_QUEUE_SHARED=1`) withholds every personal scope and the daily note, and prints the count. [SCOPES.md](SCOPES.md) carries the list format, the writable rule, the daily note and the boundary.
46
51
 
47
52
  ## The report
48
53
 
49
54
  One flat list, no sections, ranked first and unscored last:
50
55
 
51
56
  ```
52
- HITL decision queue · 2 ranked, 2 unscored · strategy v2
53
- total = rice × (1 + ln(1 + dependents)) × 1.5 in-progress · ties break on rice, then id · unscored last
57
+ HITL decision queue · 3 ranked, 1 unscored · 3 scopes, 1 unavailable · strategy v2
58
+ total = rice × (1 + ln(1 + dependents)) × 1.5 in-progress × deadline tier · ties break on rice, then scope, then id · unscored last
54
59
  excluded: 3 kind:idea beads (--include-ideas ranks them)
60
+ today · personal, code — "daily: personal, code — Monday and Tuesday are the personal objectives" (strategy v3, "## Current themes", scope notes)
61
+ unavailable: ops (/srv/ops) — workspace does not exist
55
62
 
56
- 1 bd-7 10.0 rice 4.2 = R4 · I3 · C0.7 · E2 ×2.39 dependents(3) ×1.0
63
+ 1 code bd-7 10.0 rice 4.2 = R4 · I3 · C0.7 · E2 ×2.39 dependents(3) ×1.0
57
64
  Ship the queue — unblocks bd-8, bd-9, bd-10
58
- 2 bd-2 6.3 rice 4.2 = R4 · I3 · C0.7 · E2 ×1.00 dependents(0) ×1.5 in-progress
65
+ 2 notes bd-2 8.0 rice 4.2 = R4 · I3 · C0.7 · E2 ×1.00 dependents(0) ×1.0 deadline ×8 OVERDUE by 1d (due 2026-11-14T08:59Z)
59
66
  Decide the API shape — unblocks nothing
60
- - bd-4 — unscored — no rice metadata (score it with score-bead)
61
- Decide the vendor — unblocks nothing
67
+ - code bd-4 — unscored — no rice metadata (score it with score-bead)
68
+ Decide the rollout — unblocks nothing
62
69
  ```
63
70
 
64
- Every row carries its rank, id, total, the four components the score was computed from, both multipliers, the title, and one clause naming what the answer unblocks. An unscored row keeps its place at the end of the same list with the reason: no `rice` metadata, no score inside a `rice` record, or scored against an older strategy version (that last one is ranked and marked `scored at strategy v1, current v2`).
71
+ Every row carries its rank, scope, id, total, the four components the score was computed from, all three multipliers, a deadline clause when the bead has a due date, the title, and one clause naming what the answer unblocks — the scope tag keeps two workspaces that reuse a bead id apart. An unscored row keeps its place at the end of the same list with the reason: no `rice` metadata, no score inside a `rice` record, or scored against an older strategy version (that last one is ranked and marked `scored at strategy v2, current v3`). `--json` prints the same answer with every derived field, including each scope's status and the daily note, for a caller that needs to act on it.
72
+
73
+ ### One item, not the list
65
74
 
66
- `--json` prints the same answer with every derived field, for a caller that needs to act on it.
75
+ A session that must decide says one row and stops. `recommend.mjs` prints the top row with the line of the strategy that justifies it, and a stated condition with one next step when it cannot justify a row. It ranks nothing: the total, the components and the multipliers are the row's own. [RECOMMEND.md](RECOMMEND.md) carries the four stated conditions, the `--why` rule and the `--bead` form for a bead the human named. When that item is done, `boundary.mjs` compares the theme's next item against the queue's top item and prints both scores, and [BOUNDARY.md](BOUNDARY.md) carries the block, the three outcomes and the options.
76
+
77
+ ```bash
78
+ node <skill-scripts>/recommend.mjs recommend --json # the top row, structured
79
+ node <skill-scripts>/recommend.mjs recommend --why "<line>" # the block to say
80
+ ```
67
81
 
68
82
  ## Ordering rules
69
83
 
70
84
  - **Ranked by total, descending.** The total is rounded to one decimal *before* ranking, so the number a reader sees is the number the order was decided by.
71
- - **Ties break on rice, then id.** `ln` flattens, so different dependent counts can reach the same one-decimal total; a fixed tie-break means two runs over one backlog print byte-identical output.
85
+ - **Ties break on rice, then scope, then id.** `ln` flattens, so different dependent counts can reach the same one-decimal total; a fixed tie-break means two runs over one backlog print byte-identical output. The scope breaks the tie before the id because two workspaces may hold the same bead id.
72
86
  - **Unscored beads never earn a rank.** They are listed, not placed, and never compared by title or by priority.
73
87
 
74
88
  ## Workflow
75
89
 
76
- 1. **Check the strategy is readable.** The queue compares each score's `strategyVersion` against the file to mark stale scores. A missing or invalid strategy does not stop the run — the scores are already on the beads — but the header then reports `strategy unknown` and no staleness.
77
-
78
- ```bash
79
- node <skill-scripts>/../../prioritise-work/scripts/strategy.mjs validate
80
- ```
90
+ 1. **Check the strategy is readable.** The queue compares each score's `strategyVersion` against the file to mark stale scores, and reads its deadline tiers. Run `strategy.mjs validate` first. A missing or invalid strategy does not stop the queue — the scores are already on the beads — but the header then reports `strategy unknown`, no staleness, and the shipped deadline default.
81
91
 
82
92
  2. **Run the queue.** This is the hand-run form: no planner, no agent, one command.
83
93
 
@@ -90,44 +100,50 @@ node <skill-scripts>/queue.mjs queue
90
100
  4. **Score what is unscored, one bead at a time.** Load `score-bead`, judge the four components against the strategy, and record the score. Re-run the queue; the bead takes its place.
91
101
 
92
102
  ```bash
93
- node <skill-scripts>/queue.mjs queue --json # the same answer, structured
94
103
  node <skill-scripts>/queue.mjs queue --file <path> --include-ideas
95
104
  ```
96
105
 
97
106
  | Option | Effect |
98
107
  |---|---|
108
+ | `--scopes <path>` | Scope list. Default `.agent-cortex/scopes.json` from the repository root, then `~/.agent-cortex/scopes.json`, then the current workspace alone. |
109
+ | `--shared` | Output that leaves this machine: personal scopes are not read, and the daily note is withheld. |
99
110
  | `--file <path>` | Strategy file. Default `.agent-cortex/working-docs/strategy.md`, relative to the repository root. |
100
111
  | `--include-ideas` | Rank `kind:idea` beads too. They are excluded by default — see below. |
101
- | `--cwd <dir>` | Directory the strategy path and `bd` resolve from. |
102
- | `--json` | Print the report as JSON. |
112
+ | `--cwd <dir>` | Directory the current workspace, its strategy path and `bd` resolve from. |
113
+ | `--json` | Print the report as JSON, including each scope's status and the daily note, for a caller that needs to act on it. |
103
114
 
104
- `BD_PATH` pins the `bd` binary. Exit `0` means the queue was built, including a run that ranked nothing. Exit `1` means a `bd` call failed, and exit `2` means a malformed argument. The script makes no writes: the tracker calls are `bd list` and `bd dep list`, nothing else.
115
+ `BD_PATH` pins the `bd` binary. Exit `0` means the queue was built, including a run that ranked nothing or skipped an unavailable scope; exit `1` means an internal failure, and exit `2` a malformed argument or a scope list that cannot be read. The script makes no writes: the tracker calls are `bd list` and `bd dep list`, nothing else, and a read-only scope receives no other call.
105
116
 
106
117
  ## What the queue leaves out
107
118
 
108
119
  - **Ideas, by default.** `kind:idea` beads are HITL by convention but deliberately unshaped: a RICE score on an idea measures a guess about a guess, and the idea backlog is ranked by `flesh-out-idea` instead. An idea that outranks a ripe decision would send the owner into an interview they did not choose. The count is printed so nothing is dropped silently; `--include-ideas` ranks them when the backlog is what the owner is working.
109
- - **Deferred beads.** A deferral is itself an answer, so a parked bead stays out of the queue until the owner lifts it (`bd update <id> --status open`). The count is printed.
110
- - **Closed beads.** Finished work waits on nothing.
120
+ - **Deferred and closed beads.** A bead deferred into the future stays out of the queue until that date passes, and the count is printed; the queue never adds a second deferral concept. Finished work waits on nothing.
111
121
 
112
122
  ## Red Flags
113
123
 
124
+ - Red flag: writing to a scope the list did not mark writable, so personal work lands in a code workspace.
125
+ - Red flag: reporting only the scopes that answered, so a missing workspace looks like an empty backlog — or inventing a daily note instead of quoting the strategy line.
114
126
  - Red flag: scoring a bead inside this skill, so the queue's order rests on an unreviewed number.
115
127
  - Red flag: ranking an unscored bead by its priority or its title, so the list looks complete and hides the gap.
116
128
  - Red flag: counting dependency paths instead of distinct beads, so a diamond inflates one row above its real value.
117
129
  - Red flag: re-sorting or grouping the flat list before reporting it, so the order the owner reads is not the order that was computed.
118
- - Red flag: excluding ideas without printing how many were excluded.
130
+ - Red flag: hardcoding a deadline factor in the script, so the owner cannot tune the rise without a release.
131
+ - Red flag: excluding ideas or deferrals without printing how many were excluded.
119
132
 
120
133
  ## Verification checklist
121
134
 
122
135
  - [ ] The report is one flat list: ranked rows first, unscored rows last, no sections.
123
- - [ ] Each row shows the rank, id, total, the four components, both multipliers, the title and what the answer unblocks.
136
+ - [ ] Every row is tagged with its scope, every unavailable scope is named with its reason, and the daily note above the list quotes the strategy line with its version and section.
137
+ - [ ] Each row shows the rank, scope, id, total, the four components, all three multipliers, the title and what the answer unblocks.
124
138
  - [ ] A bead blocking three others ranks above an equal bead blocking none; an in-progress bead ranks above an equal not-started one.
139
+ - [ ] A bead due in three days ranks above an otherwise identical bead with no due date; an overdue bead is flagged `OVERDUE` and carries the top tier of the table in force. Every row with a due date shows the due moment and the time left, only a ranked row shows a factor, and a changed tier moves the rank with no code change.
125
140
  - [ ] With no scores, the header says nothing can be ranked and every candidate is listed unscored with a reason.
126
- - [ ] Two identical runs printed byte-identical output.
127
- - [ ] The excluded idea and deferred counts were reported, or the header said there were none.
141
+ - [ ] Two identical runs printed byte-identical output, and the excluded idea and deferred counts were reported, or the header said there were none.
142
+ - [ ] A session that had to decide said one block: the bead, its components, both multipliers, the unblocked beads and the quoted strategy line — or one stated condition with its next step.
128
143
 
129
144
  ## See Also
130
145
 
146
+ - [SCOPES.md](SCOPES.md) — the scope list: its file, its default, the writable rule and the privacy boundary.
131
147
  - [score-bead](../score-bead/SKILL.md) — owns the `rice` record this queue reads, and the band proposal.
132
148
  - [prioritise-work](../prioritise-work/SKILL.md) — owns the strategy file and its version.
133
149
  - [bd-tool](../../productivity/bd-tool/SKILL.md) — the tracker commands, and where operational state lives.