Skip to content

fix(onboarding): detect just task runners in readiness scans - #966

Draft
austinchennn wants to merge 1 commit into
OpenHands:mainfrom
austinchennn:fix/readiness-justfile-955
Draft

austinchennn wants to merge 1 commit into
OpenHands:mainfrom
austinchennn:fix/readiness-justfile-955

Conversation

@austinchennn

Copy link
Copy Markdown

HUMAN:


AGENT:

Why

Fixes #955. The onboarding plugin's agent-readiness scan misses root lowercase/hidden justfiles on Linux and ignores documented just build commands, producing incomplete Build & Dev Environment evidence. The issue is ready-for-dev.

Summary

  • Enumerate actual root justfile names once, including mixed capitalization and .justfile, so case-insensitive hosts do not double-count aliases. Reuse them in build-command and setup-file scans.
  • Add the just build pattern to the existing grep and document the supported detection. Preserve exit behavior, arguments, scoring and root-only scope.
  • Add eight subprocess regressions exercising the actual Bash entrypoint.

Issue Number

Fixes #955.

How to Test

  • uv sync --group test (uv0.13.8; repository seven-day dependency cutoff preserved).
  • uv run pytest -q tests/test_agent_readiness_build_env.py: 8 passed. On original source: 6 failed, 2 passed.
  • uv run pytest -q: 1662 passed, 33 skipped, 6 subtests passed in 113.10s on macOS arm64.
  • uv run python scripts/sync_extensions.py --check: passed, with existing nonblocking marketplace coverage warnings for github-comment-cleanup and issue-duplicate-checker. No generated catalog changes.
  • bash -n on the scanner and git diff --check: passed.

Actual Linux proof used an isolated mysql:8.0 local image with /bin/bash as its entrypoint and --network=none (no MySQL server launched, no host mounts, no existing containers touched). Source scripts/fixtures were passed over stdin into the container's /tmp. A lowercase file was created and absence of the uppercase alias verified first. The real scanner was then run on Justfile/justfile/.justfile/JuStFiLe fixtures, README/AGENTS just build cases and a Makefile control, on both revisions:

Linux
case-sensitive-filesystem-confirmed
# original source
Justfile: status=1
justfile: status=1
.justfile: status=1
JuStFiLe: status=1
failed checks: 9/12
# this change
Justfile: status=1
justfile: status=1
.justfile: status=1
JuStFiLe: status=1
failed checks: 0/12

Minimal reproduction on Linux: create a root justfile containing # Run just build, then run bash plugins/onboarding/skills/agent-readiness-report/scripts/scan_build_env.sh <fixture>. The file now appears in Setup scripts and has a nonzero build-command reference count. The pytest cases cover the remaining issue criteria.

Video/Screenshots

CLI-only change; real scanner output above. No browser or model/provider calls.

Notes

AI-assisted implementation and verification. This PR stays draft because the HUMAN section must be completed by a real human; it has deliberately been left untouched. Skipped full-suite cases are not claimed as tested. No packaged-agent/model behavior evaluation was performed or needed to exercise this scanner entrypoint.

Signed-off-by: Austin <guangchengchen45@gmail.com>
@github-actions github-actions Bot added the type: fix A bug fix label Nov 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

agent-readiness-report: scan_build_env.sh misses lowercase justfile and just build commands

1 participant