Skip to content

feat(agents): [#2904] add the researcher agent and the skill that holds its workflow - #3076

Merged
josecelano merged 15 commits into
torrust:developfrom
josecelano-bot:2904-t8-researcher
Nov 26, 2026
Merged

josecelano merged 15 commits into
torrust:developfrom
josecelano-bot:2904-t8-researcher

Conversation

@josecelano-bot

@josecelano-bot josecelano-bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Related to #2904. Task T8 of the specification: the researcher agent, and the skill that holds its workflow.

Why

D16 of the specification: one pull request per agent that starts no other agent, additive, so develop stays consistent after each merge. The researcher replaces the Copilot profile of the same name, and the specification noted that nothing held its "facts, not decisions" rule.

What this changes

  • The agent. .claude/agents/researcher.md: model inherit (D13), tools Bash, Read, Write, Grep, Glob, WebFetch and WebSearch, no agent started (D3), research-external-evidence preloaded, and a reply file researcher-<subject>-r<round>.json when the research belongs to an issue (verdicts DONE, QUESTION, BLOCKED; the sources go in evidence, the problems found in findings). A question for the contributor goes in its reply, because it cannot ask.
  • A new skill. research-external-evidence holds the workflow, the report and the boundaries (facts not decisions, read-only, shallow clones outside tracked folders). The specification lists only the agent file for T8; the skill follows the decision taken for the implementer in T6, because no skill held this workflow and the first reviews of T6 and T7 failed on workflow text that lived only in an agent file (P2, policy 7 of AGENTS.md).
  • Inventory. removed-profile-rules.md has a row for every rule of the researcher profile, with its destination.
  • Evidence. The task-review reply file (task-reviewer-t8-r1.json, passed) and the progress-log entries of the specification.

For the maintainer

  • The task review passed in round 1 with four minor findings, two nits and one suggestion, all handled. One check stays open for the task that reruns scenario M1 (AC1): that WebFetch and WebSearch load for the researcher agent. A tool missing from a started agent is dropped without a message; if they do not load, ToolSearch is added to the tools. The progress log says so.
  • The rule "do not modify any file of the workspace" of the old profile contradicted its own rule to clone into .tmp/; the skill now says "no tracked file", with the reply file and the clones as the exceptions.
  • Not done here, by design: docs/agents/orchestration.md still names the old profile (T9), and the removal of .github/agents/ is T10.

Validation

The pre-commit gate passed on every commit (linter all, the frontmatter checks for the skill layout and descriptions, agent-reply-validator --all, cargo machete, the documentation tests).

🤖 Generated with Claude Code

josecelano-bot and others added 5 commits November 26, 2026 16:17
… that holds the research workflow

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ry of research-external-evidence consistent and align the index tables

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rcher profile and record the task review of T8

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d9931465-2bc5-44c3-aa19-904248c368ed
Commits

Reviewing files that changed from the base of the PR and between 66c12ff and 0756c1a.

Files selected for processing: 7

  • .claude/agents/researcher.md
  • .claude/skills/README.md
  • .claude/skills/research-external-evidence/SKILL.md
  • docs/issues/open/2904-2003-migrate-custom-agents-to-claude-code/ISSUE.md
  • docs/issues/open/2904-2003-migrate-custom-agents-to-claude-code/agent-replies/task-reviewer-t8-r1.json
  • docs/issues/open/2904-2003-migrate-custom-agents-to-claude-code/removed-profile-rules.md
  • docs/pr-reviews/pr-3076-review/PR-REVIEW.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

da2ce7
da2ce7 previously approved these changes Nov 26, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at a95ba7597a796611ff9e785c0b29ed1ac105846f. Recomputed from the bytes at this head, against the merge base 66c12ffe1; git merge-tree against develop 66c12ffe1 writes a tree with no conflicts, identical to the head's own tree.

Process. A task of the #2904 specification adding an agent and a skill, so the checklist is add-new-skill, implement-task, commit-changes and open-pull-request. Each is met: the skill folder equals its name, its quoted description is 192 characters with "Use when", the index gains a Research area, the T8 row and the log are updated, and the task-review reply is committed with the work.

The change against its claim. The agent file has the keys of the other agents, model: inherit as D13 says, the tools the description names and the reply path of D18; the validator's name rule and the schema accept researcher, t8 and pr3070, and the verdicts DONE, QUESTION and BLOCKED. The skill holds the old profile's workflow, report and boundaries, and each of the 26 inventory rows points to text that says what the row claims. Two places disagree with each other (inline).

Consistency. Every relative link and semantic-links path resolves; nothing is moved or renamed; the dictionary is unchanged and already holds the technical words added; the reply file passes a hand check against the schema, its name agrees with its fields, and the lines of docs/agents/orchestration.md it cites name the researcher.

Hygiene. Five Conventional subjects in the [#2904] form of the earlier task pull requests, one intent each, author equal to committer, no body beyond an attribution footer on each commit, which no rule in the tree forbids; git diff --check is clean; the commit-id check of open-pull-request prints nothing; the closing-keyword pattern finds nothing in the title, the description or the messages, and Related to #2904 fits a task that does not finish the issue.

Findings: two Minor (the agent's final message drops the evidence the skill's report requires; the read-only boundary's exceptions are not cases of its rule) and two Nit (a finding count in the progress log and the description; a quotation in the inventory). None blocks.

Checked, no finding: section V1 shows a listed tool the build lacks is dropped without a message; D16 lists researcher among the agents that start none; the profile did contradict itself on cloning into .tmp/.

Checks

On the loop's compute node at this head, against the merge base 66c12ffe1: the repository's pre-commit gate and lint roster exit 0 (2026-11-26). The PR adds an agent definition, a skill and documentation, so no package tests apply. Checked against the bytes at posting: the task-review reply file agent-replies/task-reviewer-t8-r1.json holds four findings graded Minor, two graded Nit and one Suggestion. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Package Coverage (${{ matrix.package }}): completed/skipped; Package Coverage Regression: completed/success; Build on windows-latest (nightly): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Build on macos-latest (stable): completed/cancelled; Build on ubuntu-latest (stable): completed/success; Build on macos-latest (nightly): completed/success; Docker E2E: completed/skipped; Documented Clippy Allows: completed/success; Shipped Features: completed/success; Unit (stable): completed/success; Source Locations: completed/success; Workspace Packaging: completed/success; Unit (nightly): completed/success; Layer Boundary Bans: completed/success; Test (Docker) (release): in_progress/pending; Discover Package Coverage: completed/success; Generate Coverage Report: completed/success; Docs Lint: completed/success; CodeRabbit: completed/neutral". At posting, develop is 66c12ffe1.

Comment thread .claude/agents/researcher.md Resolved
@da2ce7

da2ce7 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

ACK a95ba75 — the agent, the skill and its index row, the inventory rows and the task-review reply were recomputed at this head against the specification, the reply schema and the old profile, with no blocking finding

josecelano-bot and others added 4 commits November 26, 2026 17:03
… carry the report and limit the read-only boundary to the reply file and the clones

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…n in the researcher inventory

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…3 and F4 to their fix on pull request 3076

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@josecelano

Copy link
Copy Markdown
Member

ACK a95ba75

…ads of the first review round on pull request 3076

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@josecelano

Copy link
Copy Markdown
Member

ACK 2bdafdb

@josecelano
josecelano requested a review from da2ce7 November 26, 2026 17:22

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 2bdafdb9b4131ff8d80bccf82f18433bcc754200. Recomputed from the bytes at this head, against the merge base 66c12ffe1; git merge-tree against develop a8cfc186f writes a tree with no conflicts, and no file changed on both sides.

Process. Since a95ba7597 the branch fast-forwards by four commits: two fix the findings of review 6077983778 and two add the audit record that process-pr-review requires. Its sections and front matter follow the template and the record of #3070, and its review ids, severities, resolution subjects and log order agree with the forge and the branch.

The change against its claim. 13ae38a52 makes the final message the skill's report followed by the verdict and the reply path, gives the restated question, the comparison and the sources a reply field, and states one boundary in the skill and the agent: no file of the workspace is created or changed except the reply file and the clones in .tmp/. 0c3505f49 corrects the finding count, which the description now matches too, quotes the specification's cell as it is, and brings the inventory row in line with the boundary. The four findings of review 6077983778 are fixed at this head.

Consistency. Links still resolve and no dictionary word is added. The replies on the four threads (discussion_r4711580907, discussion_r4711581448, discussion_r4711581999, discussion_r4711582459) state what the tree holds, except where the inventory change is credited (inline).

Hygiene. Four Conventional subjects in the [#2904] form, author equal to committer, an attribution footer on each and no other body, which no rule in the tree forbids; git diff --check is clean; the commit-id check of open-pull-request prints nothing; no closing keyword in the title, the description or the messages.

Findings: one Minor (the audit record still says every reply is pending and every thread open, so validate-audit-record.py fails on all four rows, which its skill treats as blocking) and two Nit (the tightened boundary leaves no room for the research document the skill's introduction mentions; the boundary row credits 13ae38a52 with the inventory change that 0c3505f49 made). Approval waits for the record.

Checked, no finding: the record's front matter matches the earlier records, not the template's own; develop moved only in files this branch does not touch.

Checks

On the loop's compute node at this head, against the merge base 66c12ffe1: the repository's pre-commit gate and lint roster exit 0; the audit validator exits non-zero with 4 rows, 1 log entry and 4 failures (2026-11-26), which is the Minor finding above. The PR changes documentation and agent definitions only, so no package tests apply. Checked against the bytes at posting: the four detail entries of the audit record carry Reply URL: pending. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Publish (Release): completed/skipped; Publish (Development): completed/skipped; Context: completed/success; Package Coverage (${{ matrix.package }}): completed/skipped; Package Coverage Regression: completed/success; Docs Lint: completed/success; Docker E2E: completed/skipped; Documented Clippy Allows: completed/success; Shipped Features: completed/success; Layer Boundary Bans: completed/success; Unit (stable): completed/success; Source Locations: completed/success; Discover Package Coverage: completed/success; Workspace Packaging: completed/success; Unit (nightly): completed/success; Generate Coverage Report: completed/success; Test (Docker) (release): completed/success; Build on ubuntu-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Build on macos-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (nightly): completed/success; CodeRabbit: completed/neutral". At posting, develop is a8cfc186f.

josecelano-bot and others added 4 commits November 26, 2026 17:52
…document of research-external-evidence

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ads of the second review round on pull request 3076

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 01b19ff46cda9522324fa49f3c499fb8a3180ca9. Recomputed from the bytes at this head, against the merge base 66c12ffe1; git merge-tree against develop a8cfc186f writes a tree with no conflicts, and no file changed on both sides.

Process. Since 2bdafdb9b the branch fast-forwards by three commits: d1b2002df records the replies and the resolved threads of review 6077983778, 2165f047a fixes the skill's sentence on the research document, and 01b19ff46 records review 6078625708 and lists both fixing commits in the boundary row's Resolution reference.

The change against its claim. Each commit does what its subject says. The four rows of review 6077983778 now carry discussion_r4711580907, discussion_r4711581448, discussion_r4711581999 and discussion_r4711582459 and RESOLVED, as on the forge. The skill now says the caller writes the research document under docs/research/ from the report, so the boundary needs no exception for it. The boundary row names both commits that made its fix. The three findings of review 6078625708 are fixed in the tree, and the replies on their threads state what the tree holds.

Consistency and hygiene. Links resolve; no dictionary word added; three Conventional [#2904] subjects, author equal to committer, an attribution footer on each (no rule forbids one); git diff --check clean; the open-pull-request commit-id check prints nothing; no closing keyword.

Findings, given here rather than inline so that recording them needs no new reply URL:

  • [Minor] The three rows added for review 6078625708 carry Reply URL: pending and Thread state OPEN, while their replies (discussion_r4712002860, discussion_r4712003193, discussion_r4712003552) are posted and the three threads are resolved, and the Processing Log ends at 17:52, before the replies. validate-audit-record.py therefore fails on those three rows at this head, and its skill treats that as blocking. A commit pushed after the replies that records the three reply URLs, RESOLVED and a log entry completes the record.
  • [Nit] The 17:15 log entry says the replies on the four threads of review 6077983778 have created_at 17:16 UTC; the forge gives 17:15:32Z to 17:15:39Z.

Approval waits for the record.

Checked, no finding: no log entry is stamped later than its commit; RESOLVED agrees with the forge; both subjects of the boundary row exist in the branch.

Checks

On the loop's compute node at this head, against the merge base 66c12ffe1: the repository's pre-commit gate and lint roster exit 0; the audit validator exits non-zero with 7 rows, 3 log entries and 3 failures (2026-11-26), which is the Minor finding above. The PR changes documentation and agent definitions only, so no package tests apply. Checked against the bytes at posting: three detail entries of the audit record carry Reply URL: pending. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/neutral". At posting, develop is a8cfc186f.

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 0756c1a683e70a21c17ed3ac0f35b1dd52237a6e. Since review 6078787946 at 01b19ff46, three commits change only docs/pr-reviews/pr-3076-review/PR-REVIEW.md: they record the reply URLs and resolutions of the three threads of review 6078625708, repair one reply URL, and add rows for the two findings that review 6078787946 gave in its body. Nothing else in the tree changed.

Both findings of that review are answered: no row carries a pending reply any more, and the log entry now gives the reply times the forge shows (17:15:32 UTC to 17:15:39 UTC). The audit validator passes with 9 rows, 5 log entries and no failure, which was the only open point, and a trial merge into develop a8cfc186f has no conflict. The earlier reading of the agent, the skill and the specification changes stands.

No finding.

Checks

On the loop's compute node at this head, against the merge base 66c12ffe1: the repository's pre-commit gate and lint roster exit 0, and the audit validator reports ok with 9 rows, 5 log entries and 0 failures (2026-11-26). The PR changes documentation and agent definitions only, so no package tests apply. Checked against the bytes at posting: git diff --stat 01b19ff46 0756c1a68 lists only the audit record (40 insertions, 8 deletions), and no detail entry of the record carries a pending reply URL. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/neutral". At posting, develop is a8cfc186f.

@da2ce7

da2ce7 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

ACK 0756c1a — the researcher agent and the skill that holds its workflow, with their inventory rows, and an audit record that answers every review finding with the validator passing

@josecelano

Copy link
Copy Markdown
Member

ACK 0756c1a

@josecelano
josecelano merged commit dfe388e into torrust:develop Nov 26, 2026
24 checks passed

This branch was previously deployed

1 inactive deployment
coverage — 0756c1a6 Deployed Nov 26, 2026 by josecelano-bot via Generate Coverage Report #3582
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants