Repository navigation
Separate task status from reader ownership - #107
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
One finding on the new roll-up semantics; the rest of the migration (corpus, catalog, theme, chip rename, docs) reads consistently and ci is green on be1fea0.
The new or (self.local[key] and not self._answered(record)) is applied on the roll-up-children path only. The interventions path above it still assigns any(self._awaits(candidate) for candidate in interventions) and drops the owner's own request, so an lf-task that declares ask asks or doesn't depending on which kind of descendant it happens to hold:
tasks = """<lf-tasks id="work">
<lf-task id="read" status="review" ask><strong>Reader review</strong>
<lf-ask id="side-ask"><h2>Which?</h2>
<lf-options id="side" choose>
<lf-option id="side-a"><strong>A</strong></lf-option>
<lf-option id="side-b"><strong>B</strong></lf-option>
</lf-options></lf-ask>
</lf-task>
<lf-task id="plain" status="review" ask><strong>Plain review</strong>
<lf-task id="kid" status="done"><strong>Kid</strong></lf-task>
</lf-task>
</lf-tasks>"""
# publish, then append a user `choose` on `side` picking `side-a`:
# before: [{'id': 'side-ask', ...}, {'id': 'plain', ...}]
# after: [{'id': 'plain', ...}]plain surfaces once its child resolves — that is the case test_task_status_and_reader_ownership_are_independent's release covers, and it is the behaviour the PR is adding. read never surfaces at all: masked while the decision is open (right — deepest open member), then gone once the decision is answered, even though its status is still review and its prose is still the request.
That contradicts the sentence this PR adds to lf-task's catalog description, which is the text an author reads: "The ask flag makes this task a standing request while its status is blocked or review." The shape it applies to is the package's own lf-command x-example — <lf-task id="goal-review" status="blocked"> holding an lf-ask with lf-operations. That example deliberately carries no ask today, so nothing in the corpus is wrong; the trap is that adding ask to it silently does nothing after the operation completes, rather than being refused.
Two ways out, and which one is right depends on what "interventions take precedence" is meant to protect:
- OR the owner in on both paths, so precedence governs which ask is visible (the deeper one, as
_surfacesalready arranges) rather than whether the owner has one at all; or - keep the precedence and narrow the description — say that a task with a direct nested decision hands its request to that decision for good, and have
version checkrefuseaskon a task that holds one, so the inert flag can't be authored.
Not blocking from my side, but I don't think I should approve past a case where the flag this PR introduces is silently inert — it's a judgment call about the intended projection rather than something I can settle from the code.
…r Dependabot alerts (#5940) Clears the six open Dependabot alerts for `hono` (#109–#113, fixed in 4.13.16) and `basic-ftp` (#107, fixed in 6.2.4). Both are development-only transitives of the eval stack. Dependabot's own security updates for both failed on 2026-11-13 (runs [43392104554](https://github.com/max-sixty/leaf/actions/runs/43392104554) and [43392104839](https://github.com/max-sixty/leaf/actions/runs/43392104839)), so nothing else was going to open this PR. - **basic-ftp**: `package.json` pins it through the scoped override `get-uri>basic-ftp`, which #1681 added because `get-uri` still asks for 5.x. That exact pin is why Dependabot couldn't update it. This PR moves the pin from 6.2.1 to 6.2.6, the latest release in the same major that #1681 picked. - **hono**: nothing pins it. Every dependant asks for a range (`^4.11.4` from `@modelcontextprotocol/sdk`, `^4 || ^5` from `@hono/node-server`), and the lockfile had simply resolved 4.13.12. `pnpm update hono --depth Infinity --lockfile-only` moved it to 4.13.18. The lockfile changes nothing beyond those two packages. Verification: `pnpm install --frozen-lockfile` succeeds. `@hono/node-server` 2.1.8 `serve()` with hono 4.13.18 answered a request with 200. The `basic-ftp` that `get-uri` resolves loads as 6.2.6 and exports `Client`. Co-authored-by: leaf-agent <[email protected]>
Task status now describes progress independently from whether the page assigns a decision or review to the reader.
lf-taskgains an explicitaskflag. Roll-up keeps deeper requests visible without losing a matching owner request, so the owner surfaces after a nested decision closes.This updates the command-hub registry and rendering language, migrates ship-review and its generated gallery copy, documents the authoring contract, and tests the generic projection through file and browser boundaries.
Tested:
uv run pytest tests(706 passed, 1 skipped);uv run pre-commit run --all-files.