Skip to content

feat(knowledge): make absorb-upstream's private record checkout a user option - #17500

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/17208-knowledge-private-record-root
Nov 19, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/17208-knowledge-private-record-root

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Refs: #17208

Summary

When a record's source is not public and its destination is, absorb-upstream sent the person to one organization's private repository (#17208).

Fix

  • New private_record_root userConfig (directory, no default) names the private checkout; the skill body reads ${user_config.private_record_root} and, unset or still the literal token, asks the person for the path.
  • README configuration table and generated options block list it. Fragment: knowledge minor.

Verification

  • scripts/validate-plugin-contracts.mjs: exit 0.
  • scripts/sync-plugin-options-docs.py: README synced (7 options).
  • The absorb-upstream evals already name a generic private checkout, so they need no change.

Remaining

What #17208 still needs after this PR, each carried by its own follow-up PR under Refs: #17208:

  • Classify every other organization-specific match in shipped content as runtime behavior, instruction, permitted citation or test fixture (the plan's rows table), and record the result on Remove organization-specific dependencies from shipped plugins #17208.
  • Make the remaining runtime and instruction matches read a documented, overridable value: the source-control trust and cost settings, including the DECISION_ROW owner-decisions link in plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py (open in fix(source-control)!: read the merge trust and cost settings from userConfig #17473); plugin-quality standards_repo, playbooks' repo-sweep issue target and fleet's converge_docs_url (branches pushed, PRs to follow); the git-hooks git_url shared by the plugins that install git hooks; and the guardrails lane App login.
  • Add the CI portability check (scripts/check-skill-portability.sh or its token classes) that fails when shipped content adds a new organization dependency outside the allowed citation shapes. It lands last, after the fixes, so it is green when it arrives.

Related

Plan item 8 of #17208. The owner's checkout path is a machine fact, set in user settings, not in this repository.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd

…r option

When a record's source is not public and its destination is,
absorb-upstream redirected the person to one organization's private
repository. The checkout is now the private_record_root userConfig
option (a directory, no default); unset, the skill asks for the path.

Refs: #17208

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 19, 2026 19:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T19:12:24.195179Z 6a52121 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44595752879

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions github-actions Bot 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.

claude-security-review: 1 inline finding(s) on 6a521211abca662a12928036e286404bc6fbfbb8; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 6a521211abca662a12928036e286404bc6fbfbb8: read 4 of 4 changed file(s); 1 finding(s), 1 as inline comments.

Security review: PR #17500 (head 6a52121)

The PR adds a userConfig key, private_record_root, to the knowledge plugin. When a record's source is not public and its destination is, absorb-upstream now names the private checkout from this key instead of hardcoding one organization's repository. I read all four changed files: the changeset fragment, plugin.json, the README and SKILL.md.

No exploitable security issue found. There is one manifest flag, which the manifest rules require for any added key that is not a selector or inert.

What I checked:

  • Is the key a guard? No. Its only reader is the skill body at SKILL.md:85. The skill shows the value to the person as part of a suggested rerun command and writes nothing there itself. The key gates, caps and confirms nothing.
  • What if it points at a public checkout? The privacy guard still holds. A rerun with --out <path>/docs/upstream checks the destination's visibility again (SKILL.md:73-75), so a public or unknown destination is refused again. A wrong setting cannot leak a private source.
  • Instruction surface: the guard's rule "Write nothing in this repository" and the rule that the record is never shortened (SKILL.md:87-88) are unchanged. Only the suggested target changed, from a hardcoded name to the setting or a question to the person.
  • Trusted paths: no changed file matches a trusted-path glob.
  • Prior findings: this lane has not reviewed an earlier head, so this was a full review, not blocking only.
  • PR context: it holds no embedded instructions to the lane.

critical-findings: 0

Manifest lines (1)
  • manifest userConfig.private_record_root: flag, added directory-typed key with no default. It is not a selector (not a boolean or an options-list string; its value is a filesystem path) and not inert (type is directory, not number or boolean). Nothing runs from it. Its only reader is prose in plugins/knowledge/skills/absorb-upstream/SKILL.md:85, which puts the path into a suggested rerun command's --out that the person runs. That rerun passes the destination visibility check again. On update, installed users get an unset option: the skill asks them for a private checkout path instead of naming melodic-software/knowledge-corpus.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 6a521211abca662a12928036e286404bc6fbfbb8: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

No findings. This PR adds a private_record_root option to the knowledge plugin, with type directory and no default. absorb-upstream uses it to name the private checkout that gets a record when the source is not public and the destination is. If the option is empty or still holds the literal ${user_config.private_record_root} token, the skill asks the person for the path. That replaces the earlier hard-coded melodic-software/knowledge-corpus reference.

What I checked:

  • Option reads: the skill's guard row reads the new key through ${user_config.…}, the same way the plugin's other skills read their options. It handles both an empty value and a token left unreplaced, which matches the plugin's existing convention for an unset option (see work-root.mjs and preflight.mjs).
  • Leftover references: nothing under plugins/knowledge still names knowledge-corpus as the place to send a private record. The remaining matches are corpus-layout wording elsewhere in video-digest and docpage-digest, not this guard.
  • README: both README tables match the manifest entry.
  • Closing issue: the PR says "Refs: Remove organization-specific dependencies from shipped plugins #17208" and closes no issue, so the PR context has no closing-issue section and there were no acceptance criteria to check.
  • Path-scoped rules: skill-bodies-state-current-rules.md and cost-claims.md match plugins/*/skills/**. The changed row states the current rule and makes no cost claim.
  • Loosened checks: no check is loosened.
  • Verification: the PR body's verification (contract validator exit 0, options-docs sync) is the author's claim; I did not run it.
  • Settings: the prompt had no loosened_check_* lines, so I used the defaults and did not check the citation requirement.

Loosened-check verdict: fail (default; no wrapper line); patterns: 0

Advisory and manifest lines (4)
  • manifest userConfig.private_record_root (new field): pass. Leaving it unset is correct for a value that depends on the machine, and plugins/knowledge/skills/absorb-upstream/SKILL.md reads the key.
  • manifest userConfig (defaults/removals/options): pass. No existing default changed, no field was removed, and no options were added.
  • manifest version: pass. The changelog fragment's bump: minor matches adding an option.
  • manifest description/keywords: pass. absorb-upstream is already described, and nothing was added or removed that needs a new description or keyword.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 6a521211abca662a12928036e286404bc6fbfbb8. What it wrote, as data:

Summary: Refs #17208, a partial delivery. The code change is correct and stays within the issue's
  scope. In plugins/knowledge/skills/absorb-upstream/SKILL.md, the skill no longer names one
  organization's private repository. It now reads a new `private_record_root` userConfig option that
  has no default, and asks the person for the path when the option is unset or still the literal
  token. The option is declared in plugin.json and listed in both README tables, and a minor change
  fragment is added. CI is green on the judged head: Check Plugins, Check Skills, Lint Repo, Test
  Bash (0) and Test Node all concluded success
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44595699059/job/135813601959).
  Test Python was skipped, which is expected because no Python changed. No capture was recorded. It
  fails anyway. For a `refs` pull request the body must name what remains of the issue for later
  work, and this body only says "Plan item 8 of #17208". It never says which of the issue's other
  items are still open. Those include classifying every match, making the remaining runtime and
  instruction matches configurable, and the CI portability check.
- PR body: for a Refs: delivery, add a line naming what remains of #17208 for later work. For
  example: the other matches still to be classified, the remaining runtime and instruction matches
  still to be made configurable (such as babysit_merge_policy.py, harness-ops observability and
  work-items morning-brief), and the `scripts/check-skill-portability.sh` / CI check that fails on
  new organization-specific dependencies. "Plan item 8 of #17208" names the delivered part but none
  of the remaining work.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. and removed pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. labels Nov 19, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit ad89a94 Nov 19, 2026
106 of 108 checks passed
@kyle-sexton
kyle-sexton deleted the fix/17208-knowledge-private-record-root branch November 19, 2026 20:55
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant