GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — docs: deepen research-workflow, request-intake and research-prepare skills by dezren39 · Pull Request #489 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: bee18afba0
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - **`status --live`**: run `rw status --package "$PKG"` for stage and status. Derive the run status yourself: | ||
| - `git ls-remote origin 'refs/heads/research/<slug>/*'` shows pushed branches; | ||
| - `gh pr list --state all --search "<package id> in:body" --json number,headRefName,headRefOid,state,url` shows PRs; | ||
| - `git merge-base --is-ancestor <sha> origin/main` shows what has merged. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Derive each concept's stage in the status fallback
In the reviewed commit, research_workflow.py status --help does not support --live, so this fallback is the active path, but plain status only returns the package-level stage and generic concept statuses. The listed Git/GitHub commands derive whether work was pushed or merged but never map that history to each concept's current S1–S8 stage; after an S1 merge, step 3 therefore cannot reliably select S2 and may redispatch or stall the concept. The fallback needs to derive the completed/current stage per concept, not only its run status.
AGENTS.md reference: AGENTS.md:L40-L40
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - `gh pr list --state all --search "<package id> in:body" --json number,headRefName,headRefOid,state,url` shows PRs; | ||
| - `git merge-base --is-ancestor <sha> origin/main` shows what has merged. | ||
| - **`ready` without waves**: use the plain `ready` output, then drop concepts that hold a lease or have a running worker. | ||
| - **`lease acquire|release|list`**: use the `mkdir` lock in collaboration rule 5 ([collaboration.md](../../../../planning/workflow/collaboration.md)): `mkdir "$D/locks/<resource>.lock"`, then write `owner` as `<name> <acquired> <expires> <purpose>`. An existing directory means someone else holds the lock. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Initialize the fallback lease directory before locking
The reviewed CLI has no lease subcommand, making this fallback mandatory for every dispatch, but $D is not defined by the setup or dispatch steps. In a fresh router shell, this expands to /locks/<resource>.lock and either fails for lack of permission or creates a global, non-package-scoped lock, so the intended lease is never established and duplicate workers can be dispatched. Define $D from the git common directory, package, and stage before invoking mkdir.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Issues and PRs so far: <URLs, or none> | ||
|
|
||
| Owns (writes): <concept file>; notes it sends (notes/<C003>__to__*); receipts for notes addressed to | ||
| <C003>; its own items in main.md via `rw item`; one changes.md line per change; its log file. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Serialize worker edits to main.md
When two concepts are ready in the same wave, their workers are each told that they own items in the same main.md, while the router acquires only separate concept leases such as C003. Nothing acquires a mutex for the shared file, so parallel workers can concurrently rewrite it and produce conflicting PRs or overwrite state updates. Keep main.md router-owned or acquire a shared-file lease before granting a worker write access.
AGENTS.md reference: AGENTS.md:L41-L44
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - it holds no live lease; | ||
| - it has no open PR. | ||
|
|
||
| If it has an open PR but has stopped, treat it as finished and verify the PR. If it holds a live lease, it is still working. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Restart stopped workers that have not submitted a report
If a worker crashes after opening its PR but before sending the final message or writing end, this rule treats it as finished and excludes it from restart because an open PR exists. The merge procedure above nevertheless requires that final report and its reported SHA for the triple match, leaving the PR permanently neither mergeable nor restartable. Resume or restart such a worker until it produces the required completion report before verification.
AGENTS.md reference: AGENTS.md:L46-L47
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| ```sh | ||
| gh pr merge "$PR" --merge --match-head-commit "$REPORTED" | ||
| git fetch -q origin && git merge-base --is-ancestor "$REPORTED" origin/main && echo landed |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Verify merges against the configured trunk
When the workflow profile's trunk is not main, this ancestry check examines the wrong base ref and can fail even after the PR lands, or succeed against an unrelated branch. The worker brief already parameterizes the declared baseline as <trunk>; the merge diff and post-merge ancestry checks should resolve the same profile value rather than hard-code origin/main.
AGENTS.md reference: AGENTS.md:L42-L42
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| A package with one concept keeps the full layout (no special case in [records.md](/planning/workflow/records.md)) but skips the ceremony: | ||
|
|
||
| - one worker runs S1 and then S2 in the same session if it fits; | ||
| - S3 is just the check `rw check --package "$PKG" --require-resolved`; | ||
| - no waves are planned, and the run table has one row. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Use the actual single-concept package layout
For a package containing exactly one concept, the current scaffold stores that concept in main.md and omits concepts/, design.md, and changes.md; check_package explicitly enforces that the concept path is main.md. Claiming that the package keeps the full layout causes the shortcut and worker-brief template to direct the worker to a nonexistent concepts/Cxxx-*.md, so ordinary single-concept runs can fail before S1 begins.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Objective: <one end state, e.g. "C003 is prepared for full research: excerpts at the top, repo map, | ||
| research questions and facets, Research trigger issue open, PR open into main"> |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Keep S1 workers from publishing trigger issues
The example S1 objective requires a “Research trigger issue open,” but the research-prepare contract only drafts that issue in the concept document; publishing parent issues belongs to S4 issue-handoff. A worker that follows this brief literally will create a GitHub issue three stages early, before reconciliation and the duplicate-publication checks in the handoff skill, leaving stale or duplicate issues when S4 later runs.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - **`lease acquire|release|list`**: use the `mkdir` lock in collaboration rule 5 ([collaboration.md](../../../../planning/workflow/collaboration.md)): `mkdir "$D/locks/<resource>.lock"`, then write `owner` as `<name> <acquired> <expires> <purpose>`. An existing directory means someone else holds the lock. | ||
| - **`item add|set-status`**: edit the items list in `main.md` by hand, following the trail grammar in [records.md](../../../../planning/workflow/records.md), and allocate the next free child number under the parent. Then add one `changes.md` line. | ||
| - **`ids`**: `grep -o 'C[0-9]\{3\}\(\.[0-9]\+\)*' "$PKG/main.md" | sort -uV`. | ||
| - **`render`**: leave the generated views as they are and note it in the turn report. Never hand-edit text between `workflow:view` markers. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Make the render fallback satisfy the refresh gate
The reviewed CLI has no render command, so every multi-concept wave takes this fallback and deliberately leaves the generated views unchanged. Step 7 nevertheless requires the design.md run table on main to match live status before the router is done; after the first merge wave, that condition cannot be met, leaving the router either permanently stuck at the refresh step or falsely reporting a stale view as complete. The fallback must generate the required view safely or explicitly provide an alternative completion rule.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| Read this before every dispatch. A worker starts with no context, so the brief has to carry everything it needs. Fill in every `<...>`. Pass paths, URLs and SHAs. Never paste summaries of documents the worker can read itself (collaboration rule 9). | ||
|
|
||
| Names: `<stage-skill short>-<concept or unit>-<4 hex>`, for example `prepare-c003-7f2a`. Branch: `research/<slug>/<stage>-<unit>`, for example `research/docs-pipeline/s1-c003`. Worktree: `<worktree_root>/research-<slug>-<stage>-<unit>`. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Include the package identity in worker branch names
Two valid packages can have different timestamps and transcripts but the same slug, yet this naming scheme gives both packages the same branch and worktree for a given stage and concept, such as research/docs-pipeline/s1-c003. Their package-scoped leases do not conflict, so concurrent routers can dispatch both workers into the same ref/path and mix commits from unrelated research packages. Include the package ID or timestamp in both names so every worker actually receives a dedicated branch and worktree.
AGENTS.md reference: AGENTS.md:L42-L42
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| | ----- | --------------------------------------------------- | ------------------- | ------------------------------------------------------------------------------------------------------- | | ||
| | S0 | `request-intake` | the input | no package holds this input's sha256 | | ||
| | S1 | `research-prepare` | concept | S0 merged | | ||
| | S2 | `concept-research` | concept | S1 merged and `type` is not `hint` | |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Preserve hint classification in package state
The router conditions S2 on a concept-level type: hint, but the current intake scaffold copies only priority, criticality, and horizon from an outline into concept state, and the intake skill never adds a type field afterward. Consequently, a hint supplied during normal intake cannot reach this condition and is dispatched to deep research as an ordinary concept instead of waiting for the resolving question or note. Use a classification represented by the package schema or extend intake to persist and validate type.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.