Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions scripts/skill-env-reachability-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ SANDBOX_RUNTIME_VARS=(
FULLSEND_OUTPUT_SCHEMA
FULLSEND_PERSONAS_FILE
FULLSEND_ROLE
FULLSEND_SKILLS_DIR

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Protected files require human approval 📜 Skill insight § Compliance

The PR modifies files under scripts/ and skills/, both listed in the repository's active
REVIEW_PROTECTED_PATHS value. Any changed file under those prefixes requires a protected-path
review finding, so this PR cannot be auto-approved.

Dismiss ↗ | View ↗

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS does not check that any runtime actually delivers the variable. is_sandbox_runtime_var (lines 160-165) only compares the name against this hardcoded list, and the main loop skips every match with continue (lines 377-378). The skill's reference to FULLSEND_SKILLS_DIR is therefore treated as reachable without any check, and the warning that used to track the skill-path gap disappears.

Suggested fix: Do not list FULLSEND_SKILLS_DIR as universally injected until runtime support is confirmed. Until then, track the skill-path gap in KNOWN_GAPS, keyed on the variable the skill now references.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] design-coherence

The PR body says 'Closes #1672', but the issue's core condition is not met: a runtime-neutral FULLSEND_SKILLS_DIR injected by all runtimes, which is upstream work. Merging would auto-close an issue whose upstream prerequisite is still open.

Suggested fix: Change 'Closes #1672' to 'Refs #1672', or mark the PR blocked until the upstream change merges.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

The PR adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS, which exempts it from reachability validation, and deletes the tracked KNOWN_GAPS entry for #1672. The test only checks this static list, which the PR edits itself, so it now passes without showing that any runtime injects the variable. The list's header comment says it holds variables injected on every runtime, and FULLSEND_SKILLS_DIR is absent from the live pi sandbox. The test change hides the missing producer. The PR body calls the change a trivial refactor that resolves the known gap, which does not match this behavioral change.

Suggested fix: Keep the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry, and leave FULLSEND_SKILLS_DIR out of SANDBOX_RUNTIME_VARS, until the runtimes verifiably export it. Correct the PR description to say the gap is not yet resolved.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS exempts it from reachability validation and removing the KNOWN_GAPS entry hides the unresolved runtime dependency; nothing shows the runtime injects the var.

Suggested fix: Keep a KNOWN_GAPS entry for pr-risk-assessment:FULLSEND_SKILLS_DIR (#1672) until runtime injection is implemented and verified, then add it to SANDBOX_RUNTIME_VARS.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS unconditionally exempts its references from reachability validation, yet the variable has no producer in this repository and was observed absent from the review sandbox. Removing the KNOWN_GAPS entry pr-risk-assessment:CLAUDE_CONFIG_DIR (#1672) at the same time hides the unresolved path-delivery problem instead of testing that it was fixed. The file's own header comment says SANDBOX_RUNTIME_VARS is reserved for vars injected on every runtime and that per-skill gaps belong in KNOWN_GAPS.

Suggested fix: Remove this exemption until universal runtime injection is implemented and verified. Until then, track the unresolved variable under pr-risk-assessment in KNOWN_GAPS so the test keeps reporting the gap.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

The PR adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and removes the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry for #1672. Together these unconditionally exempt the variable from reachability checking. The file's header defines SANDBOX_RUNTIME_VARS as vars injected on every runtime, but nothing shows FULLSEND_SKILLS_DIR is injected (it is absent from the pi review sandbox). The test therefore passes while the runtime dependency is unresolved, instead of flagging it as a tracked gap.

Suggested fix: Keep the dependency tracked in KNOWN_GAPS (e.g. pr-risk-assessment:FULLSEND_SKILLS_DIR referencing #1672 and the upstream issue) and add the variable to SANDBOX_RUNTIME_VARS only after every runtime is confirmed to inject it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

SANDBOX_RUNTIME_VARS is an unconditional exemption: any skill reference to a listed variable skips the harness reachability check; it does not verify that the runtime injects the variable. This PR adds FULLSEND_SKILLS_DIR to the list and removes the KNOWN_GAPS entry pr-risk-assessment:CLAUDE_CONFIG_DIR (#1672), so the result changes from a tracked gap to PASS without evidence that the variable is provided. If it is not injected, CI stays green while the risk step fails at runtime.

Suggested fix: Keep the dependency tracked in KNOWN_GAPS (re-keyed to FULLSEND_SKILLS_DIR) until a fullsend release that exports it is confirmed, then move it to SANDBOX_RUNTIME_VARS.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS exempts every reference to it from reachability validation without establishing that any runtime supplies it. Together with removing the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry, the test now silently accepts the replacement dependency even though the command can resolve to /pr-risk-assessment/scripts/risk-tier1.sh. The file's header says runtime-specific variables must not be listed there and should be tracked in KNOWN_GAPS instead.

Suggested fix: Keep FULLSEND_SKILLS_DIR out of SANDBOX_RUNTIME_VARS until runtime injection is implemented and verified, and track pr-risk-assessment:FULLSEND_SKILLS_DIR in KNOWN_GAPS (referencing #1672) in the meantime.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS exempts every reference to it from reachability validation, although the variable is not injected by any runtime verified here. Together with removing the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry, this turns an acknowledged unresolved dependency into a passing check without making the variable reachable. The comment above the list says it holds only vars injected on every runtime.

Suggested fix: Keep the unresolved dependency tracked in KNOWN_GAPS (retargeted to FULLSEND_SKILLS_DIR) and do not list FULLSEND_SKILLS_DIR in SANDBOX_RUNTIME_VARS until runtime injection is implemented and verified.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS exempts it from reachability validation, and removing the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry hides the gap, although nothing in this repo supplies the variable and the allowlist comment limits it to universally injected vars.

Suggested fix: Keep FULLSEND_SKILLS_DIR out of SANDBOX_RUNTIME_VARS and keep a KNOWN_GAPS entry tracking #1672 until runtime injection is confirmed across supported runtimes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS (documented as vars injected on every runtime) exempts it from the reachability check instead of validating delivery, and the KNOWN_GAPS entry that tracked the dependency is removed with no evidence any runtime injects the variable.

Suggested fix: Do not add FULLSEND_SKILLS_DIR as a universal exemption until all runtimes are shown to inject it; until then keep an explicit tracked reachability gap.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] unauthorized-change

Issue #1672 authorizes removing the KNOWN_GAPS entry only once resolved; the upstream prerequisite is unconfirmed. The PR edits the allowlist and deletes the gap anyway, so the test passes without verifying any runtime exports the variable, and the PR body claim that the gap is resolved is unsupported.

Suggested fix: Keep the KNOWN_GAPS entry, pointed at the upstream prerequisite, until fullsend exports FULLSEND_SKILLS_DIR on all runtimes, or land this PR only after the upstream change ships.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

The diff adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and removes the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry for #1672. Together these turn a tracked gap into an unconditional pass. The comment above the array defines SANDBOX_RUNTIME_VARS as vars injected into the sandbox on every runtime, but nothing in this repo shows FULLSEND_SKILLS_DIR is injected and it is unset in the pi sandbox, so the exemption asserts a guarantee that does not exist.

Suggested fix: Add FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS only after the runtimes export it. Until then, keep the KNOWN_GAPS entry referencing #1672.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] misleading-label

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS is not named in #1672, though it is the direct counterpart of the authorized KNOWN_GAPS removal. The remaining concern is that it asserts runtime delivery that is not established, which is covered by the test-weakened finding at this line.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and removing the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry makes the static reachability check treat the new dependency as reachable without proof; nothing in this repo shows the runtime injects it.

Suggested fix: Before merging, confirm the upstream fullsend injection has shipped. If it has not, keep a KNOWN_GAPS entry until it does.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

FULLSEND_SKILLS_DIR is added to the universal SANDBOX_RUNTIME_VARS allowlist and the tracked KNOWN_GAPS entry is removed, turning an unresolved runtime dependency into an unconditional pass in the reachability test.

Suggested fix: Keep FULLSEND_SKILLS_DIR out of SANDBOX_RUNTIME_VARS and track it in KNOWN_GAPS until runtimes deliver it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and removing the KNOWN_GAPS entry makes the reachability check pass on an unverified assumption that every runtime injects the variable.

Suggested fix: Keep the KNOWN_GAPS entry and keep FULLSEND_SKILLS_DIR out of the universal allowlist until a released fullsend version is confirmed to inject it, or add a comment naming the fullsend PR/version that provides it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

The PR adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS, which exempts it from reachability validation. The file header limits that list to vars 'injected into the sandbox on every runtime' and says other vars belong in KNOWN_GAPS. The variable is absent from the current sandbox and this PR introduces nothing that sets it. Deleting the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry at the same time turns an unresolved dependency the test explicitly reported into a passing check.

Suggested fix: Keep the dependency tracked in KNOWN_GAPS (as pr-risk-assessment:FULLSEND_SKILLS_DIR, referencing #1672) until universal runtime injection is verified, then move it to SANDBOX_RUNTIME_VARS.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and removing the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry makes the reachability check pass unconditionally for a variable that is not delivered by any harness or verified in the runtime; the gap is hidden rather than validated.

Suggested fix: Keep FULLSEND_SKILLS_DIR out of SANDBOX_RUNTIME_VARS and track pr-risk-assessment:FULLSEND_SKILLS_DIR in KNOWN_GAPS until runtime injection is verified.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS skips its reachability check for every skill, and removing the pr-risk-assessment:CLAUDE_CONFIG_DIR known-gap entry removes the warning that tracked this gap. Nothing in this repo confirms every runtime delivers the variable.

Suggested fix: Keep the variable tracked as a known reachability gap until runtime injection is confirmed upstream, rather than exempting it globally.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS, and removing the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry, makes the reachability test report a pass for a variable that is absent from the current pi sandbox. The header of this script limits the allowlist to variables injected on every runtime, and that has not been confirmed for this one.

Suggested fix: Keep FULLSEND_SKILLS_DIR out of SANDBOX_RUNTIME_VARS, and keep the #1672 KNOWN_GAPS entry, until universal runtime injection is confirmed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and deleting the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry turns an unresolved dependency into a passing check without establishing runtime delivery; the file header says this list is only for vars injected on every runtime.

Suggested fix: Keep the dependency tracked in KNOWN_GAPS until universal runtime injection is verified.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS exempts it from reachability validation even though it is absent from the current sandbox and has no producer in this repository. Together with deleting the known-gap entry, this suppresses the unresolved skill-path dependency instead of verifying that runtime injection exists.

Suggested fix: Keep the unresolved FULLSEND_SKILLS_DIR dependency tracked in KNOWN_GAPS rather than the universal runtime allowlist until injection across supported runtimes is verified.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS (defined as variables injected on every runtime) exempts it from reachability checks, and removing the #1672 KNOWN_GAPS entry turns a visible gap into a pass without evidence that any runtime delivers the variable. The variable is unset in this pi sandbox.

Suggested fix: Remove FULLSEND_SKILLS_DIR from SANDBOX_RUNTIME_VARS and keep a KNOWN_GAPS entry until injection is verified.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and removing the pr-risk-assessment:CLAUDE_CONFIG_DIR entry from KNOWN_GAPS breaks the test's own rules. Its header (lines 27-38) reserves SANDBOX_RUNTIME_VARS for variables injected on every runtime. No producer of FULLSEND_SKILLS_DIR exists in this repo and it is unset in the pi sandbox. Listing it hides the missing runtime dependency, so the reachability test passes while the skill reference is broken.

Suggested fix: Remove FULLSEND_SKILLS_DIR from SANDBOX_RUNTIME_VARS until fullsend-ai/fullsend exports it on all runtimes, and track the gap in KNOWN_GAPS (e.g. pr-risk-assessment:FULLSEND_SKILLS_DIR referencing #1672) so it stays visible.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS (line 43) and removing the pr-risk-assessment:CLAUDE_CONFIG_DIR entry from KNOWN_GAPS treats the variable as injected on every runtime. is_sandbox_runtime_var only checks array membership, so the test stops reporting the new reference as a gap. The file's own header says this array is limited to variables injected on every runtime and that unresolved per-skill gaps belong in KNOWN_GAPS. The variable is not defined anywhere in this repo and is unset in the review sandbox, so the change hides the unresolved producer/consumer gap instead of confirming it is fixed. Upstream export cannot be verified from this static review.

Suggested fix: Keep a KNOWN_GAPS entry (re-keyed to FULLSEND_SKILLS_DIR if needed) and leave the variable out of SANDBOX_RUNTIME_VARS until upstream runtimes are confirmed to inject it into every sandbox; or keep a runtime fallback in the consumers until the export ships.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

The PR adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS (documented as vars injected on every runtime), which exempts it from reachability validation, and in the same change removes the KNOWN_GAPS entry pr-risk-assessment:CLAUDE_CONFIG_DIR (#1672). The variable is not provided by any harness in this repo and is unset in the current pi sandbox, and the #1672 triage says upstream runtimes must export it first. The test therefore accepts the broken invocation and drops the warning that tracked the unresolved dependency.

Suggested fix: Revert the SANDBOX_RUNTIME_VARS addition and keep the pr-risk-assessment KNOWN_GAPS entry (retargeted at FULLSEND_SKILLS_DIR) until fullsend-ai/fullsend is confirmed to export FULLSEND_SKILLS_DIR on all supported sandbox runtimes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

FULLSEND_SKILLS_DIR is added to SANDBOX_RUNTIME_VARS (vars injected on every runtime) though it is unset in the live pi sandbox and declared in no harness; combined with deleting the KNOWN_GAPS entry for #1672, the reachability test now passes unconditionally and masks the gap.

Suggested fix: Remove FULLSEND_SKILLS_DIR from SANDBOX_RUNTIME_VARS and keep a pr-risk-assessment KNOWN_GAPS entry (#1672) until upstream injection ships and is verified on every runtime.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

FULLSEND_SKILLS_DIR is added to SANDBOX_RUNTIME_VARS, whose header comment says its vars are injected on every runtime by the fullsend runtime. This repo cannot verify that for this variable (unset in the pi review sandbox), and the PR deletes the #1672 KNOWN_GAPS entry, so the test passes on an unchecked assumption and the tracked gap is hidden before delivery is confirmed.

Suggested fix: Keep the #1672 KNOWN_GAPS entry (and keep FULLSEND_SKILLS_DIR out of SANDBOX_RUNTIME_VARS) until the fullsend runtimes inject the variable, or land this PR only after that fullsend release.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS declares it as a variable every runtime injects into the sandbox, but nothing here shows that the fullsend runtime does so yet; issue #1672 says the runtime-side change is in the separate fullsend repo. Together with removing the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry, this makes the reachability test pass without closing the gap it tracked: the allowlist only exempts the variable from the check and does not inject it. Skill scripts can then fail in sandboxes where the variable is empty while the test reports the gap as resolved.

Suggested fix: Keep the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry (#1672), and do not list FULLSEND_SKILLS_DIR in SANDBOX_RUNTIME_VARS, until a released fullsend runtime that exports FULLSEND_SKILLS_DIR is confirmed. Then make both changes together with the skill path migration.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

The PR adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and deletes the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry for #1672. The block comment above SANDBOX_RUNTIME_VARS defines it as vars injected into the sandbox on every runtime by the fullsend runtime. Nothing in this repo shows that the upstream runtime injects FULLSEND_SKILLS_DIR, and #1672 is still open. The static reachability test therefore passes because of an assertion, not because delivery has been shown, which hides the runtime gap described in the companion breaking-config finding.

Suggested fix: Don't add FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS until the fullsend runtime injects it on every supported runtime. Until then, keep a KNOWN_GAPS entry for pr-risk-assessment that references #1672, keyed to the new variable.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

The PR adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and deletes the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry. That tells the reachability test that every runtime always injects the variable, but this repo cannot verify that and the script comment says only vars the runtime actually injects belong in this list. The change only exempts the variable from the check; it does not inject it into the sandbox, so it hides the gap that #1672 tracks instead of resolving it.

Suggested fix: Keep FULLSEND_SKILLS_DIR out of SANDBOX_RUNTIME_VARS and keep the ["pr-risk-assessment:CLAUDE_CONFIG_DIR"] KNOWN_GAPS entry until upstream fullsend exports the variable across all runtimes in a released version.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

The PR adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS, whose header comment says entries are injected on every runtime by the fullsend runtime, and removes the KNOWN_GAPS["pr-risk-assessment:CLAUDE_CONFIG_DIR"] (#1672) entry. Nothing shows any runtime exports FULLSEND_SKILLS_DIR: it is unset in the review sandbox, absent from the repo, and no upstream change is linked. The validation loop exempts any variable on that list without checking it is actually set, so the reachability test now reports this unresolved dependency as reachable instead of flagging it as a tracked gap.

Suggested fix: Add FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS only after fullsend-ai/fullsend exports it in all runtimes. Until then keep a KNOWN_GAPS entry tracking #1672 for pr-risk-assessment.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

FULLSEND_SKILLS_DIR is added to SANDBOX_RUNTIME_VARS, whose header describes variables injected into the sandbox on every runtime, and the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry for #1672 is deleted. Listing the variable only exempts it from the check; it does not inject it. The reachability test therefore stops reporting a gap that still exists.

Suggested fix: Revert the SANDBOX_RUNTIME_VARS addition and keep the KNOWN_GAPS entry for #1672 until the variable is actually injected by all runtimes. Land the test change together with, or after, the upstream export.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] architectural-conflict

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS claims a universal runtime injection that this repo does not show; the header limits that list to variables injected on every runtime and says per-skill gaps belong in KNOWN_GAPS. The PR also deletes the #1672 KNOWN_GAPS entry, so the reachability check now skips the variable unconditionally, hiding the dependency instead of verifying it.

Suggested fix: Remove FULLSEND_SKILLS_DIR from SANDBOX_RUNTIME_VARS and keep a KNOWN_GAPS entry for pr-risk-assessment tracking #1672 until fullsend ships universal runtime injection of FULLSEND_SKILLS_DIR.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

The PR adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS (line 43) and deletes the KNOWN_GAPS entry pr-risk-assessment:CLAUDE_CONFIG_DIR that tracked #1672. The header comment on SANDBOX_RUNTIME_VARS says these vars are injected on every runtime by the fullsend runtime (FULLSEND_*). That is not yet substantiated for this var: it is absent in the observed pi sandbox and nothing in the repo sets it. The test therefore passes on static grounds while the runtime contract is still unmet, and the gap tracking for #1672 is dropped.

Suggested fix: Until runtime injection is deployed, keep the dependency tracked in KNOWN_GAPS (e.g. update the entry to pr-risk-assessment:FULLSEND_SKILLS_DIR pending the upstream release) instead of exempting it globally. Promote it to SANDBOX_RUNTIME_VARS once fullsend exports it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS exempts it from reachability validation although it is absent from the current sandbox and no delivery is added here. The test skips allowlisted variables before checking harness delivery, so the migrated skill passes even though its invocation fails at runtime. Removing the tracked KNOWN_GAPS entry also removes the existing warning.

Suggested fix: Keep this dependency tracked as unresolved until runtime injection is verified. Add it to the runtime allowlist only alongside evidence that supported runtimes export the skill-directory path.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS exempts the new dependency from reachability validation, although the variable is absent in the pi sandbox. Together with removing the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry, an unresolved dependency now looks like a pass. The list is documented as variables injected on every runtime.

Suggested fix: Keep FULLSEND_SKILLS_DIR out of the universal allowlist until runtime delivery is verified, and track it as an unresolved KNOWN_GAPS entry in the meantime.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS hides a delivery gap that is still open. The test exempts every listed variable from reachability checks and never verifies that a runtime exports it. FULLSEND_SKILLS_DIR has no producer in the repository and is absent in the live sandbox. The file's header comment says this list is for variables injected on every runtime, and that unverified or runtime-specific variables belong in KNOWN_GAPS. The PR also removes the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry, so the tracked warning for this skill disappears even though the gap is not closed.

Suggested fix: Do not exempt FULLSEND_SKILLS_DIR globally until injection on every runtime is verified. In the meantime track pr-risk-assessment:FULLSEND_SKILLS_DIR in KNOWN_GAPS.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Reclassified from medium. Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and dropping the KNOWN_GAPS entry matches what #1672 prescribes and the documented contract for runtime-injected FULLSEND_* vars. The residual risk is the same unverified runtime injection tracked in the api-contract finding on skills/pr-review/sub-agents/risk-assessment.md.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

FULLSEND_SKILLS_DIR is added to SANDBOX_RUNTIME_VARS (vars assumed injected by every runtime) and the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry is removed, so the reachability test now passes without anything in this repo demonstrating the variable is delivered. The lint cannot catch the gap described in the api-contract finding.

Suggested fix: Keep the allowlist entry only once the runtime-side injection is confirmed released, or retain a KNOWN_GAPS entry for FULLSEND_SKILLS_DIR until then.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] test-weakened

Adding FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS (the list of variables injected on every runtime) exempts it from the reachability check even though it is absent from the current runtime. Together with deleting the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry, a tracked gap becomes a passing result without showing that any runtime delivers the variable.

Suggested fix: Keep the gap tracked in KNOWN_GAPS (pointing at the upstream fullsend issue) until universal runtime injection is verified; only then add the variable to SANDBOX_RUNTIME_VARS.

GOOGLE_APPLICATION_CREDENTIALS
PATH
)
Expand Down Expand Up @@ -132,10 +133,6 @@ declare -A KNOWN_GAPS=(
["github-forge:ISSUE_NUMBER"]="#1664 — forge skill derives ISSUE_NUMBER locally from ISSUE_URL; not in fix/retro/review/prioritize/triage env.sandbox"
["gitlab-forge:ISSUE_NUMBER"]="#1664 — forge skill derives ISSUE_NUMBER locally from ISSUE_URL; not in fix/retro/review/prioritize/triage env.sandbox"
["issue-labels/gitlab:ISSUE_NUMBER"]="#1664 — label skill derives ISSUE_NUMBER locally from ISSUE_URL; review/triage harnesses do not supply it"
# pr-risk-assessment scripts hard-reference the runtime-specific config
# dir (CLAUDE_CONFIG_DIR on claude; CODEX_HOME/PI_CODING_AGENT_DIR on
# codex/pi). No runtime-neutral skill path exists yet.
["pr-risk-assessment:CLAUDE_CONFIG_DIR"]="#1672 — runtime-specific config dir; needs runtime-neutral skill path"
# Skills below reference these vars as ${VAR} expansions without
# assigning them, and no delivering harness declares them in
# env.sandbox.
Expand Down
2 changes: 1 addition & 1 deletion skills/pr-review/sub-agents/risk-assessment.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ review verdicts.

1. Run the Tier 1 metadata script:
```bash
bash "${CLAUDE_CONFIG_DIR}/skills/pr-risk-assessment/scripts/risk-tier1.sh"
bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh"
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Resolved

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] logic-error

The new invocation bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh" needs FULLSEND_SKILLS_DIR to be set. Nothing in this repo sets it: a grep of the base checkout finds no match outside this diff, and the variable is unset in the current pi review sandbox. If it is unset, the command becomes bash "/pr-risk-assessment/scripts/risk-tier1.sh", which fails because the file is not found, so Tier 1 metadata extraction never runs. skills/pr-risk-assessment/SKILL.md:207 has the same problem. The upstream fullsend runtime code is not available here, so universal injection by every runtime cannot be confirmed.

Suggested fix: Hold back these invocation changes until the upstream fullsend runtimes export FULLSEND_SKILLS_DIR and the deployed runtime version includes that change, or use a skill-path resolution mechanism shown to work on all runtimes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation now depends on FULLSEND_SKILLS_DIR being set in the sandbox (same change in skills/pr-risk-assessment/SKILL.md:207). Nothing in the PR shows that any fullsend runtime (claude, codex, pi) exports this variable: in the PR head it appears only in the lines this PR edits, and it is not set in the pi review sandbox, although other FULLSEND_* vars are. When it is unset the command becomes bash "/pr-risk-assessment/scripts/risk-tier1.sh", which fails, so Tier 1 risk assessment breaks, including on claude where the current CLAUDE_CONFIG_DIR path works today. Issue #1672 and its triage comment make this migration conditional on the upstream runtimes exporting the variable first; the PR does not link or show evidence that prerequisite has landed.

Suggested fix: Do not merge until every supported fullsend runtime (claude, codex, pi) exports FULLSEND_SKILLS_DIR; link the upstream fullsend PR/release and state the required version. Otherwise add a temporary fallback in both invocations (SKILL.md:207 and risk-assessment.md:27), e.g. ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}, and account for it in the reachability test.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

Both Tier 1 commands (risk-assessment.md:27 and skills/pr-risk-assessment/SKILL.md:207) now depend on the fullsend runtime exporting FULLSEND_SKILLS_DIR into the sandbox. Nothing in this repo (harness env blocks, skills) or in the review sandbox's pi-config sets the variable, and the PR does not show a producer; issue #1672 describes runtime injection as a proposal that lives in the fullsend repo. If the variable is unset, the path expands to /pr-risk-assessment/scripts/risk-tier1.sh and Tier 1 extraction fails with no fallback. That regresses the claude runtime, where ${CLAUDE_CONFIG_DIR}/skills/... worked; pi/codex were already broken. The PR also says 'Closes #1672' while delivering only the consumer side, so the tracking issue would close before the dependency exists.

Suggested fix: Before merging, link a released fullsend version that exports FULLSEND_SKILLS_DIR for the claude, codex and pi runtimes and document it as the minimum version; otherwise sequence this PR after the fullsend change, or fail fast with a clear error when the variable is unset. Change 'Closes #1672' to a partial reference until runtime injection lands.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The PR replaces ${CLAUDE_CONFIG_DIR}/skills/... with ${FULLSEND_SKILLS_DIR}/... in risk-assessment.md, pr-risk-assessment/SKILL.md and the risk-tier1.sh header, with no fallback. Nothing in this repo sets or documents FULLSEND_SKILLS_DIR, and the PR links no fullsend change that exports it; issue #1672 treats runtime injection as a separate step this PR does not do. The variable is also unset in the pi runtime sandbox this review ran in. On a runtime that does not export it, the command expands to /pr-risk-assessment/scripts/risk-tier1.sh and Tier 1 fails. That includes claude, where the old path worked. The PR also adds the variable to SANDBOX_RUNTIME_VARS and removes the KNOWN_GAPS entry, so the reachability test now treats it as guaranteed. No minimum fullsend version is recorded for @v0 consumers, and Closes #1672 closes the issue although its runtime-injection requirement is not met. The rebase onto main did not change the patch.

Suggested fix: Gate the merge on a released fullsend change that exports FULLSEND_SKILLS_DIR on every runtime, link it, and note the minimum fullsend version. Until then keep a fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} and use Refs #1672 instead of Closes #1672.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

${CLAUDE_CONFIG_DIR}/skills/... is replaced with ${FULLSEND_SKILLS_DIR}/..., but nothing in this repo defines or exports FULLSEND_SKILLS_DIR. A code search of fullsend-ai/fullsend finds no match, and this review sandbox's environment does not contain it. Issue #1672 lists injecting the variable from every runtime as a proposed first step, not as something that already exists. Where the variable is unset the command expands to bash "/pr-risk-assessment/scripts/risk-tier1.sh" and fails with 'No such file'. Tier 1 risk metadata is then lost, or the risk-assessment sub-agent fails. This also removes the previously working claude-runtime path with no fallback. The identical invocation at skills/pr-risk-assessment/SKILL.md:207 has the same problem.

Suggested fix: Land and release the fullsend runtime change that injects FULLSEND_SKILLS_DIR on claude, codex and pi first, and gate this PR on that version. Until then, add a fallback in both invocations (risk-assessment.md:27 and SKILL.md:207), for example SK="${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR:+$CLAUDE_CONFIG_DIR/skills}}", with an explicit error if it is empty. Keep the KNOWN_GAPS entry until the runtime provides the variable.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

Sub-agent and SKILL.md:207 invoke ${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh, but nothing in this repo sets or declares FULLSEND_SKILLS_DIR, no fullsend runtime release exporting it is linked, and it is unset in the live pi sandbox. Unset, the path expands to /pr-risk-assessment/scripts/risk-tier1.sh, Tier 1 extraction fails, and the missing or degraded risk assessment forces a comment verdict.

Suggested fix: Confirm and link fullsend runtime injection of FULLSEND_SKILLS_DIR on all runtimes (claude, codex, pi), or define it in harness env.sandbox, or fall back to CLAUDE_CONFIG_DIR/CODEX_HOME/PI_CODING_AGENT_DIR when unset. Keep the CLAUDE_CONFIG_DIR reference and KNOWN_GAPS entry until the contract ships.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation depends on FULLSEND_SKILLS_DIR, which nothing in this repo defines and which the pi review sandbox does not set; the #1672 triage says the upstream runtime export has not landed. Unset, the command expands to /pr-risk-assessment/scripts/risk-tier1.sh and fails (also breaking claude, which works today via CLAUDE_CONFIG_DIR). Same dependency in SKILL.md:207 and the risk-tier1.sh header. Upstream runtime code could not be inspected.

Suggested fix: Land and release the FULLSEND_SKILLS_DIR export in all fullsend runtimes first and confirm the harness image includes it; until then hold the PR or merge only with a fallback such as SKILLS_DIR="${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR:+$CLAUDE_CONFIG_DIR/skills}}" that fails fast when empty.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation in risk-assessment.md:27 and pr-risk-assessment/SKILL.md:207 is now bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh". Nothing in this repo or diff sets FULLSEND_SKILLS_DIR, and it is unset in the pi review sandbox (skills live at /sandbox/pi-config/skills). When it is unset the path expands to /pr-risk-assessment/scripts/risk-tier1.sh, which does not exist, so Tier 1 metadata fails. On the claude runtime this replaces a ${CLAUDE_CONFIG_DIR}/skills/... path that works today. The triage comment on #1672 says the migration is blocked until the runtimes export the variable. The PR also lists the variable as runtime-provided in the reachability test and removes the KNOWN_GAPS entry tracking #1672, so the gap is no longer visible.

Suggested fix: Do not merge until the claude, codex and pi runtimes all export FULLSEND_SKILLS_DIR. Alternatively, add a fallback that works on every runtime and fails with a clear message when the directory is empty, for example ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} plus an explicit check, and apply it in both risk-assessment.md and SKILL.md:207.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] protected-path

The PR modifies protected paths: scripts/skill-env-reachability-test.sh, skills/pr-review/sub-agents/risk-assessment.md, skills/pr-risk-assessment/SKILL.md, skills/pr-risk-assessment/scripts/risk-tier1.sh. The PR links #1672 and explains its rationale, but human approval is always required for protected-path changes regardless of context.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] api-contract

The consumers are migrated to FULLSEND_SKILLS_DIR before anything supplies it. In the running pi review sandbox env has PI_CODING_AGENT_DIR=/sandbox/pi-config but no FULLSEND_SKILLS_DIR, and no injection was found in harnesses, scripts or sandbox config. The command resolves to /pr-risk-assessment/scripts/risk-tier1.sh and fails with exit 127 (also SKILL.md:207). Whitelisting the var in SANDBOX_RUNTIME_VARS and removing the KNOWN_GAPS entry only stops the reachability test from catching this. The external fullsend runtime was not available for verification.

Suggested fix: Land and release the fullsend runtime change that exports FULLSEND_SKILLS_DIR=/skills on every supported runtime before merging, or keep a working path-resolution mechanism until then; link that change in the PR and verify in a real sandbox.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] api-contract

The Tier 1 invocation here and in skills/pr-risk-assessment/SKILL.md:207 now depends on FULLSEND_SKILLS_DIR. Nothing in this repo sets that variable and it is not set in the current pi review sandbox. If the fullsend runtime in use does not export it yet, the path becomes /pr-risk-assessment/scripts/risk-tier1.sh and Tier 1 metadata collection fails; on the claude runtime this regresses the previous CLAUDE_CONFIG_DIR path. Whether the upstream injection has shipped cannot be checked from this repo.

Suggested fix: Confirm the fullsend release these harnesses target exports FULLSEND_SKILLS_DIR on the claude, codex and pi runtimes, and link the upstream change in the PR description. Otherwise hold the merge until that injection ships.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

Migration to ${FULLSEND_SKILLS_DIR} depends on a variable no released fullsend runner exports (fullsend-ai/fullsend#8465; absent from the review sandbox env; not set by harness/review.yaml). When unset, the Tier 1 command expands to /pr-risk-assessment/scripts/risk-tier1.sh and fails, losing risk signals on the claude runtime where the old path works. Issue #1672 gates removal of the KNOWN_GAPS entry on resolution, and triage marks it blocked upstream. The reachability test stays green because the PR adds the variable to SANDBOX_RUNTIME_VARS.

Suggested fix: Hold the merge until a released fullsend runner exports FULLSEND_SKILLS_DIR on claude, codex and pi, and state the minimum fullsend version in the PR; until then keep a fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation here and in skills/pr-risk-assessment/SKILL.md:207 depends on FULLSEND_SKILLS_DIR with no fallback. Nothing in this repo defines or exports it, and it is not set in the pi review sandbox. On a runtime that does not inject it the command expands to /pr-risk-assessment/scripts/risk-tier1.sh and fails, losing Tier 1 signals; the old CLAUDE_CONFIG_DIR path worked on claude.

Suggested fix: Confirm the fullsend runtime change that injects FULLSEND_SKILLS_DIR on every runtime is merged and released in the lockstep version before merging, or keep a fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}, or add a fail-fast check, in both SKILL.md and risk-assessment.md.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The PR replaces ${CLAUDE_CONFIG_DIR}/skills/... with ${FULLSEND_SKILLS_DIR}/... at risk-assessment.md:27 and skills/pr-risk-assessment/SKILL.md:207, with no fallback. Nothing in this repo sets FULLSEND_SKILLS_DIR: a grep over the base checkout finds nothing, and in the PR head the only hits are these consumers and the test exemption. The variable is also empty in the pi review sandbox. Where it is unset, the command becomes bash "/pr-risk-assessment/scripts/risk-tier1.sh", which fails with 'No such file' (exit 127), and the Tier 1 signals are lost. Claude-runtime deployments worked before because CLAUDE_CONFIG_DIR was set there, so this regresses them unless the fullsend runtime injection described in #1672 has shipped. This PR neither verifies nor gates on that dependency. (Codex and pi were already broken on the old path, so the regression is specific to Claude.)

Suggested fix: Do not merge until the fullsend runtime injection of FULLSEND_SKILLS_DIR is released on every runtime (claude, codex and pi), and record the minimum fullsend version needed. Alternatively, keep a working fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR:+$CLAUDE_CONFIG_DIR/skills}}, or fail fast with a clear error when no skills dir resolves.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation now depends on FULLSEND_SKILLS_DIR, but nothing in this repo or PR defines or injects it: no harness env.sandbox block sets it, and it is unset in the live pi review sandbox. The command expands to bash "/pr-risk-assessment/scripts/risk-tier1.sh" and Tier 1 collection fails; this does not fix pi/codex and regresses claude. The same invocation is at skills/pr-risk-assessment/SKILL.md:207.

Suggested fix: Land the fullsend runtime change that exports FULLSEND_SKILLS_DIR=/skills on every runtime before switching these invocations; or define the var in the harness env.sandbox blocks delivering the skill; or keep a fallback in both invocations, e.g. ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}. Keep the KNOWN_GAPS entry until the variable is verifiably set.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The sub-agent now runs bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh". Nothing in this repo defines or exports FULLSEND_SKILLS_DIR, the PR changes no harness, and issue #1672 says upstream runtimes must export it first. In the pi review sandbox the variable is unset, so the path expands to /pr-risk-assessment/scripts/risk-tier1.sh. The claude runtime would break the same way. Same path at skills/pr-risk-assessment/SKILL.md:207 and scripts/risk-tier1.sh:5.

Suggested fix: Do not merge until the upstream fullsend runtimes (claude, codex, pi) export FULLSEND_SKILLS_DIR, and link the upstream release or PR. Alternatively keep a temporary fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 command now depends on ${FULLSEND_SKILLS_DIR}, and nothing in this repo defines or exports that variable. The review sandbox for this run (pi runtime) has it unset, with PI_CODING_AGENT_DIR=/sandbox/pi-config. When it is unset the path expands to /pr-risk-assessment/scripts/risk-tier1.sh, the script is not found (exit 127), and no Tier 1 signals are produced. The same dependency is in skills/pr-risk-assessment/SKILL.md line 207. Issue #1672's triage comment says the upstream fullsend runtime export is a prerequisite, and nothing shows it has landed. Migrating now also regresses the claude runtime, which works today through CLAUDE_CONFIG_DIR.

Suggested fix: Merge only after the upstream fullsend runtime exports FULLSEND_SKILLS_DIR (pointing at the skills directory) on claude, codex and pi. Until then, add a fallback in both invocations, such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}, or fail fast with a clear message when the variable is unset.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The skill invocation now depends on FULLSEND_SKILLS_DIR, but nothing in this repo sets it, and the variable is unset in the current pi review sandbox (PI_CODING_AGENT_DIR=/sandbox/pi-config, skills at /sandbox/pi-config/skills). With it unset the path expands to /pr-risk-assessment/scripts/risk-tier1.sh, so the Tier 1 script fails. The change also removes the CLAUDE_CONFIG_DIR path that worked on claude, with no fallback. The same dependency appears at skills/pr-risk-assessment/SKILL.md:207. Adding the variable to SANDBOX_RUNTIME_VARS only makes the reachability test tolerate it; it does not make any runtime provide it. The fullsend runtime repo was not available to check whether injection has landed.

Suggested fix: Land and release runtime injection of FULLSEND_SKILLS_DIR in fullsend-ai/fullsend for every runtime first, then merge this migration. Alternatively keep a fallback in the invocations until then, e.g. ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR:-${PI_CODING_AGENT_DIR:-$CODEX_HOME}}/skills}, applied in both risk-assessment.md and SKILL.md.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation now reads ${FULLSEND_SKILLS_DIR}, but nothing in this repo sets or exports it and the pi review sandbox does not set it either. With it unset the path expands to /pr-risk-assessment/scripts/risk-tier1.sh, which does not exist, so the Tier 1 script fails (exit 127). The identical invocation in skills/pr-risk-assessment/SKILL.md has the same problem. Issue #1672 triage says the migration is blocked until upstream fullsend runtimes export the variable; CLAUDE_CONFIG_DIR works today on the claude runtime. The PR also adds FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS and removes the KNOWN_GAPS entry, so the test treats the variable as runtime-provided instead of verifying it.

Suggested fix: Do not merge until upstream fullsend exports FULLSEND_SKILLS_DIR from all runtimes and that is confirmed, or use a working fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR:-${PI_CODING_AGENT_DIR:-$CODEX_HOME}}/skills}. Keep the KNOWN_GAPS entry until the upstream change lands.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation depends on FULLSEND_SKILLS_DIR, which is supposed to be injected by the fullsend runtime (another repo) but is not set or documented anywhere in this repo. It is empty in the pi review sandbox, so the command expands to /pr-risk-assessment/scripts/risk-tier1.sh and fails; claude deployments exporting only CLAUDE_CONFIG_DIR lose a previously working invocation. Same dependency at skills/pr-risk-assessment/SKILL.md:207. The #1672 triage comment says migrating before all runtimes export the variable would break claude.

Suggested fix: Do not migrate until fullsend exports FULLSEND_SKILLS_DIR on all runtimes; or keep a fallback chain (FULLSEND_SKILLS_DIR, then CLAUDE_CONFIG_DIR/CODEX_HOME/PI_CODING_AGENT_DIR + /skills) or fail with a clear error when unset, in both risk-assessment.md and SKILL.md; document the runtime contract.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation now depends on FULLSEND_SKILLS_DIR. Nothing in this repo defines or exports that variable, and no harness env block sets it; it is also unset in the pi review sandbox. If the runtime does not export it, the command expands to bash "/pr-risk-assessment/scripts/risk-tier1.sh" and fails, so the risk assessment breaks. Issue #1672's triage comment says this migration is blocked until the fullsend runtimes export the variable. The same dependency is in skills/pr-risk-assessment/SKILL.md:207 and the comment at skills/pr-risk-assessment/scripts/risk-tier1.sh:5.

Suggested fix: Confirm that the fullsend runtimes (claude, codex and pi) export FULLSEND_SKILLS_DIR and merge only once a released fullsend version does. Alternatively use a fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} in risk-assessment.md and SKILL.md, or hold the migration until the upstream change ships.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] protected-path

This PR modifies protected paths: scripts/skill-env-reachability-test.sh, skills/pr-review/sub-agents/risk-assessment.md, skills/pr-risk-assessment/SKILL.md, skills/pr-risk-assessment/scripts/risk-tier1.sh. The PR links issue #1672 and explains the rationale, but human approval is always required for protected-path changes regardless of context.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 script calls in skills/pr-review/sub-agents/risk-assessment.md:27 and skills/pr-risk-assessment/SKILL.md:207 now depend only on FULLSEND_SKILLS_DIR, with no fallback. The variable is a cross-repo contract with the fullsend runtimes (claude/codex/pi). Nothing in this repo or PR defines or exports it, and it is unset in the review sandbox. When it is unset, the command expands to '/pr-risk-assessment/scripts/risk-tier1.sh' and exits 127, so no Tier 1 metadata signals are produced. This also breaks the claude runtime, where the old ${CLAUDE_CONFIG_DIR}/skills path works today. Issue #1672's triage comment says migrating before every runtime exports the variable would break claude. This static review cannot confirm whether upstream fullsend already exports it.

Suggested fix: Do not merge until fullsend releases runtimes that export FULLSEND_SKILLS_DIR (as /skills) for claude, codex and pi, and the harness is pinned to that version. Alternatively, add a backward-compatible fallback at both invocation sites (risk-assessment.md and SKILL.md), e.g. skills_dir="${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}", until the upstream export lands.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation now relies on ${FULLSEND_SKILLS_DIR}, and nothing in this repo sets it. No harness/*.yaml env.sandbox block defines it. In this review run's pi sandbox it is unset (skills live at /sandbox/pi-config/skills), so the path expands to /pr-risk-assessment/scripts/risk-tier1.sh and Tier 1 metadata extraction fails on any runtime that does not export it, including claude, which works today via CLAUDE_CONFIG_DIR. The same change appears in skills/pr-risk-assessment/SKILL.md:207 and the usage comment at skills/pr-risk-assessment/scripts/risk-tier1.sh:5. The #1672 triage comment says this migration is blocked until upstream runtimes export FULLSEND_SKILLS_DIR; upstream runtime support could not be verified from this review.

Suggested fix: Hold the merge until upstream runtimes (claude, codex, pi) are confirmed to export FULLSEND_SKILLS_DIR, or use a shell fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} in the invocations so current runtimes keep working during the migration.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

PR switches ${CLAUDE_CONFIG_DIR} to ${FULLSEND_SKILLS_DIR} (also SKILL.md:207 and risk-tier1.sh comment), but nothing in this repo defines the variable and it is unset in the live pi sandbox, so the invocation expands to /pr-risk-assessment/scripts/risk-tier1.sh and fails. Upstream runtime injection could not be verified; on claude this regresses a working path.

Suggested fix: Confirm upstream fullsend injects FULLSEND_SKILLS_DIR on claude/codex/pi in a released version and gate the PR on it; otherwise use ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} or resolve relative to the skill location, and keep the KNOWN_GAPS entry.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 command now depends on FULLSEND_SKILLS_DIR, but nothing in this repo declares or sets it (it appears only in the four changed lines; no harness/*.yaml env block mentions it) and it is unset in the pi review sandbox. Issue #1672 places the injection in the fullsend repo runtimes, which this PR does not touch. If no runtime injects it, the command expands to bash "/pr-risk-assessment/scripts/risk-tier1.sh", fails, and collects no Tier 1 metadata; claude, which worked via CLAUDE_CONFIG_DIR, would also regress. The same invocation is in skills/pr-risk-assessment/SKILL.md and the risk-tier1.sh header comment.

Suggested fix: Merge only together with, or after, a fullsend release whose claude, codex and pi runtimes export FULLSEND_SKILLS_DIR; otherwise keep a fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} until delivery is confirmed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation now depends on FULLSEND_SKILLS_DIR, and nothing in this repository sets it. The same dependency is at skills/pr-risk-assessment/SKILL.md:207. No harness env.runner/env.sandbox block defines it. At the PR head it appears only on the four lines this PR adds. Issue #1672 places the runtime-side injection in the separate fullsend repo, and that change could not be confirmed as landed. In the pi review sandbox the variable is unset, so the command resolves to bash "/pr-risk-assessment/scripts/risk-tier1.sh" and fails with exit 127. The script is actually delivered at /sandbox/pi-config/skills/pr-risk-assessment/scripts/risk-tier1.sh. The Claude runtime worked before because it exports CLAUDE_CONFIG_DIR. If a runtime does not export the new variable, the risk-assessment sub-agent breaks there.

Suggested fix: Land and release the fullsend runtime change that exports FULLSEND_SKILLS_DIR to sandbox processes on all runtimes before merging, and document the minimum fullsend version. Otherwise, use a temporary fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} in risk-assessment.md:27, SKILL.md:207 and the risk-tier1.sh header comment until runtime support ships.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

This line now runs bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh", and so does skills/pr-risk-assessment/SKILL.md line 207. In the PR head, the variable appears only in these invocations, a comment in risk-tier1.sh line 5, and the SANDBOX_RUNTIME_VARS list. No harness env.sandbox block or other in-repo source defines it. Issue #1672 says the injection belongs in the separate fullsend runtime repo, which can't be checked from here. The variable is unset in the pi sandbox this review ran in. If it is unset, the path becomes /pr-risk-assessment/scripts/risk-tier1.sh, bash exits with 127, and Tier 1 produces no metadata signals. On claude this is a regression, because ${CLAUDE_CONFIG_DIR}/skills/... used to resolve there.

Suggested fix: Make sure FULLSEND_SKILLS_DIR is actually delivered on claude, codex and pi before switching these consumers. Either land and release the fullsend runtime change, or set it in the relevant harness env.sandbox blocks. Until then, keep a fallback in both invocations, for example ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation now reads ${FULLSEND_SKILLS_DIR}; the same change is in skills/pr-risk-assessment/SKILL.md:207 and the usage comment in risk-tier1.sh:5. Nothing in this repo defines or exports that variable: it appears only in the four changed lines of the PR head and nowhere in the base checkout or any harness env.sandbox. The variable is also absent from the live pi review sandbox that evaluated this PR. Issue #1672's triage comment places runtime support upstream in fullsend-ai/fullsend and warns that migrating before every runtime exports it would break the claude runtime, which works today. If the variable is unset, the command expands to /pr-risk-assessment/scripts/risk-tier1.sh, which does not exist, so Tier 1 risk signal collection fails.

Suggested fix: Merge only after the upstream runtimes (claude, codex, pi) export FULLSEND_SKILLS_DIR in a released fullsend version, and confirm that minimum version. Or add a fallback so current runtimes keep working, e.g. S="${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}"; bash "$S/pr-risk-assessment/scripts/risk-tier1.sh", in both risk-assessment.md and SKILL.md.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation now depends on FULLSEND_SKILLS_DIR here and at skills/pr-risk-assessment/SKILL.md:207 (plus the header comment in risk-tier1.sh). Nothing in this repo defines or injects that variable (a grep of the base repo finds no match), the PR links no upstream fullsend change that exports it, and it is unset in the pi review sandbox (PI_CODING_AGENT_DIR=/sandbox/pi-config is set instead). When unset, the path expands to /pr-risk-assessment/scripts/risk-tier1.sh, which does not exist, so Tier 1 metadata signals are lost on every runtime, including claude where the old CLAUDE_CONFIG_DIR path works today. Issue #1672's triage comment says the same: migrating before all runtimes export the variable would break the claude runtime. A missing or degraded risk assessment also forces otherwise approvable reviews down to comment under the risk gate.

Suggested fix: Do not merge until fullsend-ai/fullsend exports FULLSEND_SKILLS_DIR (pointing at the installed skills directory) in every supported runtime, and link that upstream change in the PR. Alternatively use a fallback that works today in both skill files, e.g. ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR:-${CODEX_HOME:-$PI_CODING_AGENT_DIR}}/skills}/pr-risk-assessment/scripts/risk-tier1.sh, or resolve the script relative to the loaded skill's directory.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation now runs bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh" (also in skills/pr-risk-assessment/SKILL.md:207 and the risk-tier1.sh header comment), but nothing in this repository sets FULLSEND_SKILLS_DIR: no harness env.sandbox entry, no script, and it is unset in the pi review sandbox (only PI_CODING_AGENT_DIR is present). Unset, the path expands to /pr-risk-assessment/scripts/risk-tier1.sh, which does not exist, so the script fails with exit 127 and Tier 1 extraction never runs; this would also regress the claude runtime, where the old CLAUDE_CONFIG_DIR path resolved. The triage comment on #1672 says the migration is blocked until upstream runtimes export the variable. Whether upstream exports it cannot be verified from this repository.

Suggested fix: Do not switch these invocations until the upstream fullsend runtimes export FULLSEND_SKILLS_DIR: revert the invocations in risk-assessment.md, SKILL.md and the risk-tier1.sh header comment to the previous working path. Alternatively keep a working fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}, extended to cover pi and codex.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] breaking-config

The Tier 1 invocation (risk-assessment.md:27 and pr-risk-assessment/SKILL.md:207) now depends on FULLSEND_SKILLS_DIR, which nothing in this repo sets (not in harness env.sandbox; absent from the pi sandbox of this run). With it unset the path expands to /pr-risk-assessment/scripts/risk-tier1.sh and Tier 1 produces no signals. Issue #1672 asks for runtime injection before migrating the consumers.

Suggested fix: Land and verify the fullsend-side change that injects FULLSEND_SKILLS_DIR on every supported runtime (claude, codex, pi) before merging, or keep a working fallback in the invocation until the variable is guaranteed; restore the KNOWN_GAPS entry until then.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] api-contract

The Tier 1 commands in skills/pr-review/sub-agents/risk-assessment.md:27 and skills/pr-risk-assessment/SKILL.md:207 now run bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh". Nothing in this repo sets FULLSEND_SKILLS_DIR, harness/review.yaml does not declare it in env.sandbox, and it is not set in the observed pi review sandbox, although other FULLSEND_* vars (FULLSEND_OUTPUT_DIR, FULLSEND_ROLE) are. The code that would inject it belongs to the external fullsend-ai/fullsend runtime and could not be checked from here. If the variable is unset, the path becomes /pr-risk-assessment/scripts/risk-tier1.sh and the script fails with 'No such file or directory'. That would break Tier 1 on the claude runtime, where the old ${CLAUDE_CONFIG_DIR}/skills/... path worked. When risk is reported as missing or degraded, post-review downgrades approvals at the configured threshold, so this disables risk scoring rather than opening a security gap. 'Closes #1672' may also be premature, because the provider half of the issue (runtime injection) lives upstream.

Suggested fix: Merge only after the fullsend runtime release that injects FULLSEND_SKILLS_DIR=/skills on every supported runtime is deployed. Alternatively, keep a backwards-compatible fallback during the transition (e.g. ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR:-}/skills}). Consider 'Relates to #1672' instead of 'Closes'.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] api-contract

The invocation now requires FULLSEND_SKILLS_DIR, but this PR supplies no producer for that variable. It is absent from the current pi sandbox environment, and harness/review.yaml does not deliver it. Running the new command here expands the path to /pr-risk-assessment/scripts/risk-tier1.sh, so Tier 1 metadata extraction cannot run. The same dependency is introduced in skills/pr-risk-assessment/SKILL.md:207. The upstream runtime implementation could not be verified from this repository.

Suggested fix: Land and deploy the upstream runtime export for every supported runtime before switching these consumers, or provide a verified compatibility path until that export is universally available.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] api-contract

The invocation now requires FULLSEND_SKILLS_DIR, but this PR only adds consumers of that variable, not a producer. A search of the base checkout finds no definition of it, and harness/review.yaml env.sandbox does not declare it. In the pi review sandbox the variable is unset, so the command resolves to /pr-risk-assessment/scripts/risk-tier1.sh and exits 127. The same invocation is in skills/pr-risk-assessment/SKILL.md:207. Tier 1 metadata collection cannot run unless a runtime injects the variable, and the sub-agent procedure has no fallback.

Suggested fix: Coordinate and verify runtime injection of FULLSEND_SKILLS_DIR (pointing at the uploaded skills directory) before migrating these consumers, or provide a verified compatible resolution path until that runtime contract exists.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] api-contract

The new invocation bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh" depends on FULLSEND_SKILLS_DIR, but nothing in this repository sets it: a grep of the base checkout, including harness/*.yaml env.sandbox, finds no definition, and the variable is unset in the live pi sandbox running this review. When unset the command expands to bash "/pr-risk-assessment/scripts/risk-tier1.sh", which fails with no such file. The same invocation is at skills/pr-risk-assessment/SKILL.md:207. The old CLAUDE_CONFIG_DIR path works on the claude runtime today, so this migration breaks Tier 1 risk scoring there. Linked issue #1672's triage comment names upstream runtime export of FULLSEND_SKILLS_DIR as a prerequisite for this migration. Upstream runtime code is not available here, so a newer runtime that exports the variable cannot be ruled out from this tree.

Suggested fix: Before migrating these consumers, verify that the runtimes (or harness env.sandbox) inject FULLSEND_SKILLS_DIR. Until then keep a working invocation, or resolve the script relative to the installed skill location without relying on an unset variable.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] api-contract

The Tier 1 invocation now depends on FULLSEND_SKILLS_DIR, but nothing in this repository supplies it and it is absent from the review sandbox this run executes in (the other FULLSEND_* vars such as FULLSEND_ROLE and FULLSEND_PERSONAS_FILE are present). Where the variable is not injected, the command expands to /pr-risk-assessment/scripts/risk-tier1.sh and fails. On the claude runtime this is a regression from the working ${CLAUDE_CONFIG_DIR} path. The same invocation is in skills/pr-risk-assessment/SKILL.md:207. The runtime change that issue #1672 requires lives in the separate fullsend repo, and this PR neither links nor pins it. The same unverified assumption lets scripts/skill-env-reachability-test.sh pass, because it now lists the variable as always reachable and drops the #1672 KNOWN_GAPS entry. The challenger rated this medium. It is kept at high because the prior high rating applies to code that is unchanged in substance, and the sandbox evidence supports it.

Suggested fix: Confirm that a fullsend runtime release injecting FULLSEND_SKILLS_DIR (pointing at <ConfigDir>/skills/) on every supported runtime has shipped, or ship it in lockstep, and link it in the PR. Until then keep the ${CLAUDE_CONFIG_DIR} invocation and the pr-risk-assessment:CLAUDE_CONFIG_DIR KNOWN_GAPS entry.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] api-contract

The invocation bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh" (also skills/pr-risk-assessment/SKILL.md:207) needs FULLSEND_SKILLS_DIR to be exported by the runtime. Nothing in this repo exports it; the PR only adds it to SANDBOX_RUNTIME_VARS in the reachability test, which exempts it from the lint but does not inject it. The runtime side lives in the separate fullsend repo and cannot be verified from this PR. If it is unset, the path collapses to /pr-risk-assessment/scripts/risk-tier1.sh and Tier 1 metadata signals are lost (observed unset in the current pi review sandbox). On claude this is a regression versus the previously working CLAUDE_CONFIG_DIR path; on pi/codex the old path was already unresolvable. Severity reclassified from high to medium: the failure only degrades the advisory risk score, not review findings or verdicts, and lockstep versioning with fullsend limits the ordering risk.

Suggested fix: Ensure fullsend's FULLSEND_SKILLS_DIR injection ships in the same lockstep release as, or before, this change (and confirm the invocation in a real runtime sandbox), or keep a working script-location fallback until it does.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] api-contract

The Tier 1 invocation now requires FULLSEND_SKILLS_DIR, but that variable is not set in the current pi review sandbox (FULLSEND_ROLE, FULLSEND_OUTPUT_DIR, FULLSEND_PERSONAS_FILE are; it is not). The command expands to /pr-risk-assessment/scripts/risk-tier1.sh and exits 127, although the script exists under /sandbox/pi-config/skills/. Nothing in this repo sets or documents the variable, and issue #1672's triage says the migration must wait until every upstream runtime exports it. Impact is bounded: a failed risk assessment degrades to no score, and with a risk verdict threshold other than 6 that forces a comment verdict. See also the breaking-config finding for skills/pr-risk-assessment/SKILL.md:207 (same substitution).

Suggested fix: Do not require FULLSEND_SKILLS_DIR until the upstream runtimes (claude, codex, pi) export it in a released fullsend version. Until then keep a fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} (or resolve the script relative to the loaded skill directory), and keep risk-assessment.md and SKILL.md consistent.

```
Capture the KEY=VALUE output. Each line is one signal.

Expand Down
2 changes: 1 addition & 1 deletion skills/pr-risk-assessment/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ response directly.

1. **Run Tier 1 script:**
```bash
bash "${CLAUDE_CONFIG_DIR}/skills/pr-risk-assessment/scripts/risk-tier1.sh"
bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] unauthorized-change

The triage comment on issue #1672 says the agents-side migration is blocked until every runtime exports FULLSEND_SKILLS_DIR upstream, and that migrating earlier would break the claude runtime. Nothing in the diff or repo shows that export has landed, and the variable is unset in the pi review sandbox. Even so, the PR replaces the ${CLAUDE_CONFIG_DIR}/skills/... path (which works on claude) in SKILL.md:207, sub-agents/risk-assessment.md:27 and risk-tier1.sh:5. It also makes the reachability test pass on that unverified assumption: it adds FULLSEND_SKILLS_DIR to the hardcoded SANDBOX_RUNTIME_VARS allowlist (scripts/skill-env-reachability-test.sh:43) and deletes the #1672 KNOWN_GAPS entry. That only edits the allowlist; no runtime exports anything new. The PR description's claim that the test validates the variable and that the gap is resolved overstates what the diff does.

Suggested fix: Hold this PR until the upstream runtimes all export FULLSEND_SKILLS_DIR, and link evidence of that, or agree a transitional fallback (e.g. ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills}) on #1672. Until then, do not add FULLSEND_SKILLS_DIR to SANDBOX_RUNTIME_VARS or drop the #1672 gap tracking, and correct the PR description.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] missing-authorization

Issue #1672 says to migrate the skill paths and remove the KNOWN_GAPS entry only once a runtime-neutral FULLSEND_SKILLS_DIR is injected by all runtimes. The triage comment on the issue says this is blocked on an upstream fullsend change and warns that migrating early would break the claude runtime, which works today. This PR migrates anyway. Nothing in this repo produces FULLSEND_SKILLS_DIR (a grep of the base checkout finds no matches), and the variable is not set in the pi review sandbox. There, bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh" expands to /pr-risk-assessment/scripts/risk-tier1.sh and fails (exit 127), leaving Tier 1 unavailable. Any runtime that does not export the variable loses the working CLAUDE_CONFIG_DIR path. The same invocation changed in skills/pr-review/sub-agents/risk-assessment.md line 27. Whether the claude runtime exports FULLSEND_SKILLS_DIR could not be verified from this repo.

Suggested fix: Hold this PR until upstream fullsend exports FULLSEND_SKILLS_DIR in every runtime (claude, codex, pi). Or make the change safe now with a fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} in the three invocation sites, and keep the #1672 gap tracked until the upstream export lands.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] missing-authorization

Issue #1672 requires the fullsend runtimes to inject FULLSEND_SKILLS_DIR before consumers migrate. Nothing in this repo sets it, the PR links no evidence of runtime support, and it is absent from the current pi sandbox. When unset, the invocation expands to /pr-risk-assessment/scripts/risk-tier1.sh and Tier 1 extraction fails (also in skills/pr-review/sub-agents/risk-assessment.md:27).

Suggested fix: Hold the PR until the runtime export ships and link evidence, or keep the KNOWN_GAPS entry and add a fallback such as ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} during the transition.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[high] missing-authorization

Issue #1672 only authorizes this migration once FULLSEND_SKILLS_DIR is injected by all runtimes. The triage comment on the issue says the work is blocked until upstream fullsend runtimes support the variable, and that migrating before then would break the claude runtime, which works today. Nothing in this repo defines or exports FULLSEND_SKILLS_DIR (no harness env.sandbox entry, no script assignment), and it was observed unset in the pi review sandbox. With it unset, the new invocation here (and the identical one in skills/pr-review/sub-agents/risk-assessment.md, step 1) expands to bash /pr-risk-assessment/scripts/risk-tier1.sh, a non-existent path, so Tier 1 risk metadata collection fails on every runtime that lacks the variable, including claude, instead of becoming runtime-neutral. The PR's 'Closes #1672' and 'trivial refactor' framing does not hold because the issue's precondition is unmet. The upstream fullsend implementation could not be verified from this repository. See also: [protected-path] finding.

Suggested fix: Do not merge until fullsend-ai/fullsend runtimes export FULLSEND_SKILLS_DIR and it is confirmed available in every sandbox runtime. Alternatively define it in harness env.sandbox, or keep a working skill-path resolution/fallback until the prerequisite lands. Drop 'Closes #1672' until the precondition is met.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] fail-open

When FULLSEND_SKILLS_DIR is unset or empty, the invocation resolves to the root-relative /pr-risk-assessment/scripts/risk-tier1.sh instead of failing fast with a clear error. The same unguarded invocation is in skills/pr-review/sub-agents/risk-assessment.md. Exploiting it would need write access to the sandbox filesystem root, which is unverified and unlikely, and the removed CLAUDE_CONFIG_DIR form had the same empty-expansion behaviour, so the realistic impact is an unclear failure.

Suggested fix: Use ${FULLSEND_SKILLS_DIR:?FULLSEND_SKILLS_DIR is required} in both invocations.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] fail-open

The Tier 1 invocation depends on an environment variable that may be unset. When it is, the path resolves to a root-level /pr-risk-assessment/scripts/risk-tier1.sh. The expected result is a missing-file failure, so risk scoring degrades. No access gate is involved, and no way for a PR author to plant a script at that path was found.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] fail-open

The invocation has no guard for an unset FULLSEND_SKILLS_DIR; the path silently resolves to the filesystem root and tier-redistribution rules degrade the score instead of stopping.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] misleading-label

Title says refactor and body says Trivial refactor, but the change replaces a variable that works on claude today with one nothing in this repo defines; it is not behavior-preserving.

Suggested fix: Reframe the PR as dependent on upstream fullsend exporting FULLSEND_SKILLS_DIR and link or confirm that change.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] misleading-label

The PR body calls this a trivial refactor and says the previously known gap is resolved and validated by the reachability test. The test passes only because the variable was added to the always-provided list; no runtime is shown to export it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] protected-path

This PR modifies protected governance/infrastructure paths: scripts/skill-env-reachability-test.sh, skills/pr-review/sub-agents/risk-assessment.md, skills/pr-risk-assessment/SKILL.md, skills/pr-risk-assessment/scripts/risk-tier1.sh. The PR links issue #1672 and explains the rationale, but human approval is always required for protected-path changes, regardless of context.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] breaking-config

The skill now depends on FULLSEND_SKILLS_DIR, which only the upstream fullsend runtimes (fullsend-ai/fullsend) can export. Neither the PR head nor the base repo sets it: no harness env.runner/env.sandbox entry, no doc, no minimum fullsend version. It is unset in the current pi-runtime sandbox, so the path expands to /pr-risk-assessment/scripts/risk-tier1.sh, which does not exist and Tier 1 extraction fails. Whether the claude runtime exports it cannot be checked from this repo; if it does not, the runtime that works today with CLAUDE_CONFIG_DIR breaks too. The same substitution is at risk-assessment.md:31 and in the risk-tier1.sh:5 header comment.

Suggested fix: Hold the migration until the upstream runtimes export FULLSEND_SKILLS_DIR in a released fullsend version, or keep a ${FULLSEND_SKILLS_DIR:-${CLAUDE_CONFIG_DIR}/skills} fallback until then, and document the minimum fullsend version.

```
Capture KEY=VALUE output. Parse each line and store signals.

Expand Down
2 changes: 1 addition & 1 deletion skills/pr-risk-assessment/scripts/risk-tier1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# risk-tier1.sh — Compute deterministic Tier 1 metadata signals for PR risk assessment.
#
# Run by the risk-assessment sub-agent inside the sandbox:
# bash "${CLAUDE_CONFIG_DIR}/skills/pr-risk-assessment/scripts/risk-tier1.sh"
# bash "${FULLSEND_SKILLS_DIR}/pr-risk-assessment/scripts/risk-tier1.sh"
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Resolved
#
# Required env vars: PR_NUMBER, REPO_FULL_NAME, GH_TOKEN
# Output: KEY=VALUE pairs on stdout, one per line.
Expand Down
Loading