Skip to content

feat(discovery): carry dated_by through the deep-tier research sweep - #7806

Merged
kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-7363-39058655862-1
Oct 17, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-7363-39058655862-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #7363

Hold: a human merges this

Summary

Opened by the work-resolve-issue lane from work-resolve-issue/issue-7363-39058655862-1, which an earlier run left with commits and no report. The model did not run again, and the earlier run's outcome could not be read, so this body carries none of its text.

Fix

The diff shows the changes.

Verification

The earlier run reported no checks here.

Left out: every check; a person reviews the diff before merging.

Related

#7363

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of 4ac124bda6c5abbb3347c338f7c3698d6216577f: no file of this pull request changed since the review of 6ee0ae6.

No security findings in the incremental change since dbc210c (changelog fragment, research-sweep.test.mjs, research-sweep.js).

What changed. A deep-tier reader may now request a sitemap.xml at its page's origin or at any parent path of the page, not only /sitemap.xml at the origin. The change replaces sitemapOf with sitemapsOf.

Why it stays inside the existing trust boundary.

  • sitemapsOf builds each candidate from the page's own origin and pathname. The host never differs from the page the sweep already fetches, so no cross-origin or SSRF reach is added. The test for another origin still covers that.
  • A request is fetched only if it passes rawable() and the allowed predicate. rawable() needs isPublicUrl, https: and no quote or backslash characters. allowed is an exact string match against the generated list. The fetch is capped by REQUEST_CAP and FETCH_CAP.
  • The candidate paths are prefixes of the already-validated page path, normalised by URL. Query strings and userinfo are dropped, since origin and pathname exclude them. The change adds no new injection surface.
  • Candidates are a bounded, fixed-suffix set (.../sitemap.xml). A prompt-injected page cannot steer the reader to an arbitrary path.
  • The new test checks that https://code.claude.com/blog/sitemap.xml is not fetched for a /docs/en/ page.
  • Dropping source-commit narrows the allowed dating methods and widens nothing.

Not read. The instruction-exception register was not consulted. The diff touches no standing instruction surface (CLAUDE.md, a rules file, a hook or a skill body), only a workflow script prompt string. Its wording change loosens the "fetch no other address than the sitemap at its origin" rule to "a sitemap that dates the page", and the script's allowed predicate still enforces that rule.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of 4ac124bda6c5abbb3347c338f7c3698d6216577f: no file of this pull request changed since the review of 6ee0ae6.

Incremental review of 6ee0ae6 against dbc210c (changelog fragment, research-sweep.js, research-sweep.test.mjs): no findings.

  • Sitemap allowlist: I traced sitemapsOf (research-sweep.js:224) by reading it, not by running it.
    • https://code.claude.com/docs/en/hooks allows /docs/sitemap.xml, /docs/en/sitemap.xml and /sitemap.xml. /blog/sitemap.xml is rejected, as the new test expects.
    • A trailing-slash page, a root page and a single-segment page (/1) also give the right lists.
    • A malformed URL returns [] inside the try/catch.
    • The allowlist is still enforced in judged (line 324): the rawable check (public, https-only, no quote or backslash) and the exact-match allowed predicate. The wider allowlist adds no new bypass.
  • dated_by schemas: dated_by is an optional string in both the read schema (line 365) and the cited-source schema (line 436). That matches the rewritten schema test.
  • Prompt narrowing: the reader prompt no longer names source-commit. A reader cannot fetch a repository commit from the sweep, so I read this as intentional. check-source-applicability and artifact-shape.md still accept source-commit for other flows, so nothing breaks.
  • Test change: the sitemap test now pins literal URLs instead of computing them from the code under test, which makes it stronger.
  • Not run: I could not run node --test for research-sweep.test.mjs in this session (the command needed approval). I have no test result to report, so treat the tests as unconfirmed by me.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on dbc210c.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 17, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: the lane did not record a disposition for every review thread it kept, so none was posted.

  • Reason: feedback-incomplete
  • Resume key: dbc210cd85766fb907e333e91e728fae930f74aa (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=7806 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=7806 -f activity=address-feedback

… sitemap

A reader may now request a sitemap.xml at its page's origin or any parent
path, so a code.claude.com /docs/en/ page reaches
https://code.claude.com/docs/sitemap.xml instead of the origin root, which
holds no lastmod for it. The reader prompt drops source-commit, which the
request filter never let a reader fetch.

Tests take their expected sitemap URLs as literals, tie dated_by to the
reader's own source, cover the /docs/en/ case and a non-ancestor sitemap,
and check the schemas the agents receive instead of the source text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YcPjcqFavvzkTGBKXMgdXR
@kyle-sexton kyle-sexton changed the title chore: work on #7363 feat(discovery): carry dated_by through the deep-tier research sweep Oct 17, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: risk MED at head 4ac124bda6c5abbb3347c338f7c3698d6216577f. Only LOW merges without a human; this pull request waits for one.

MED findings:claude-review: 1 open

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: the verifier verdict refuses verify:earlier-fail at head 4ac124bda6c5abbb3347c338f7c3698d6216577f. That refusal needs a human, who merges in person; the pr-merge lane will not merge this pull request.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 17, 2026
Merged via the queue into main with commit 5ed7dd4 Oct 17, 2026
21 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-7363-39058655862-1 branch October 17, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(discovery): carry dated_by through the deep-tier research sweep

1 participant