Skip to content

feat(source-control): supply babysit-loop telemetry's --app-slug from a lane_app_slug userConfig key - #8164

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-8001-39106018919-1
Oct 19, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-8001-39106018919-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8001

Summary

Opened by the work-resolve-issue lane. The run's own summary:

source-control now declares an optional string userConfig key lane_app_slug. Babysit-loop's telemetry upsert reference passes it as --app-slug on both the write and --read calls. The script treats an empty or literal ${user_config.…} placeholder slug as absent.

Not verified

  • check-skill run reports babysit-prs engine.test.sh failing with a read-only filesystem error under /home/runner/.claude; this change does not touch babysit-prs

Fix

  • plugins/source-control/.claude-plugin/plugin.json: new lane_app_slug string key
  • plugins/source-control/README.md: key listed in both userConfig tables
  • plugins/source-control/skills/babysit-loop/reference/telemetry-upsert.md: write and --read calls pass --app-slug '${user_config.lane_app_slug}'
  • plugins/source-control/skills/babysit-loop/scripts/telemetry-upsert.sh: placeholder slug treated as absent; header comment updated
  • plugins/source-control/skills/babysit-loop/scripts/telemetry-upsert.test.sh: placeholder and empty slug cases
  • .changes/source-control/feat-lane-app-slug-userconfig-8d3f2a61.md: minor fragment

Verification

The run reports:

Left out: the items under Not verified.

Related

#8001

… lane_app_slug userConfig key

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

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 78b34040f7f2c54e998b98e946a90fb0c5e6b96a: 0 finding(s), 0 as inline comments.

Security review: PR #8164 (HEAD 78b3404)

No security issues found.

The PR adds a lane_app_slug userConfig key and passes it as --app-slug in babysit-loop's telemetry upsert. It also makes the script treat an empty slug or a leftover literal ${user_config.…} placeholder as absent. I read the diff and the script's uses of APP_SLUG.

  • Injection: --app-slug is checked against ^[a-z0-9][a-z0-9-]*$ before use (telemetry-upsert.sh:86). The only later use is building the identity string ${APP_SLUG}[bot] (telemetry-upsert.sh:106-107). Placeholder handling runs before that check, so no unvalidated value reaches it. The docs show the argument single-quoted, so no shell expansion happens.
  • Identity and authorization: the slug is used only when gh api user fails or reports a Bot. A user token ignores it, as the new test 25c checks. The slug comes from operator-controlled plugin config. Setting a wrong slug only changes whose comments the script treats as its own, which is the same exposure the existing --app-slug flag already had.
  • Fail-closed behavior: an absent slug on a failed gh api user call still stops with exit 5 and writes nothing. Tests 25b and 25c cover that.
  • Instruction surface: no standing instruction, hook allowlist or guardrail is deleted or weakened. The reference-doc edits only describe the new flag. I did not consult the instruction exception register, because this diff removes no rule.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 78b34040f7f2c54e998b98e946a90fb0c5e6b96a: 0 finding(s), 0 as inline comments.

No findings.

I read the full diff (6 files) and the closing issue #8001, and checked the script's argument handling in telemetry-upsert.sh. I did not run the tests myself. The "71 checks passed" and "all 146 fragments valid" figures come from the PR author and are unverified by me.

  • Criteria 1 and 2: met. lane_app_slug is declared in plugin.json. Both the write call and the --read call in reference/telemetry-upsert.md pass --app-slug '${user_config.lane_app_slug}'.
  • Criterion 3: the diff adds placeholder-slug and empty-slug tests that fail if the guard is removed. Without the guard, a literal ${user_config…} slug fails the slug regex and exits 3. With it, the slug is treated as absent and the identity stays unresolved (exit 5).
  • Criterion 4: the fragment feat-lane-app-slug-userconfig-8d3f2a61.md carries a minor bump. I did not run the validator.
  • Script change: the new line at telemetry-upsert.sh:85 mirrors the existing lane_instance placeholder handling at line 89 and runs before slug validation. --app-slug '' parses correctly because the option takes $2 directly.
  • Docs: the README has the key in both userConfig tables, and the manifest description matches the script's slug regex.

The author's note that a babysit-prs engine.test.sh failure is environmental is unverified, but that code is untouched by this change.

kyle-sexton and others added 2 commits October 18, 2026 20:22
…lures

Sentence-case the lane_app_slug title, regenerate the options reference,
and mark the literal ${user_config...} test input as intentional for
shellcheck SC2016.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path enqueued this pull request at head 78b34040f7f2c54e998b98e946a90fb0c5e6b96a.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 19, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot removed this pull request from the merge queue due to a manual request Oct 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path enqueued this pull request at head 78b34040f7f2c54e998b98e946a90fb0c5e6b96a.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit f06240c Oct 19, 2026
26 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-8001-39106018919-1 branch October 19, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(source-control): supply babysit-loop telemetry's --app-slug from a lane_app_slug userConfig key

1 participant