Skip to content

Shell import graph: oh-my-bash and tfenv as repos 3 and 4; keep the literal tail of "$VAR"/path (Part of #3798) - #6617

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/3798-20261025T0844Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/3798-20261025T0844Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3798. Checklist: none named.

What

The brief's "Shell 28 / JS 63" are stale: #6403 already gave JS two repos (433 imports) and Shell two (56). Shell was still small-n (< 100, graph_coverage_chart.SMALL_N). This adds ohmybash/oh-my-bash and tfutils/tfenv (both MIT, pinned) to the import-graph corpus: Shell 56 -> 100 imports, 4 repos, precision/recall 100.0/100.0, hub overlap@10 1.00.

The new repo exposed one engine gap (4 FN, fn:capture-missed): source "$OSH"/tools/upgrade.sh closes the quote before the literal tail, so _dependency_capture stopped at $OSH and the variable-path resolver (#3598) had no tail. The capture now keeps a tail after a closed quote when the token starts with $; other shapes are unchanged. Golden: 1 shell file (reactos/codespell_check.sh) gains the edge, plus the import lookup/digest aggregates, both legs.

Class / Sibling gaps

Class: shell source/. path whose variable prefix is quoted separately from the literal tail ("$V"/x, "${V}"/x, '$V'/x); tested with the unquoted, whole-quoted, bare-variable and non-variable shapes. Sibling gaps: (1) source "$(dirname "$0")/x.sh" still captures $(dirname (command-substitution prefix; no burned program needs it); (2) shellspec was tried and not pinned: tree-sitter-bash hits an ERROR node on its header, so the reference misses 4 real . "$LIB/..." sources (4 FP that are the reference's blind spot) -- a rule fallback or ledger verdict would be needed. Different mechanism, so not here. Other families in the issue (Elixir, Erlang, OCaml, Julia, R, Nim, HCL) have no engine language profile: add-language first. asdf-vm/asdf was tried first: 0 resolvable imports added. Ledger: Shell has no open shapes; ledger left untouched (a run only moved timestamps). Not in the call-graph corpus (no shell reference in callgraph_refs.py), so no callgraph:false needed.

Gates

pr_gates --fast 7/7; related tests (186) pass; goldens blessed via golden-lock.sh crucible_check.py --update --yes; coverage SVG regenerated (it was stale). --ratchets not run here.

Cross-repo: none.

🤖 Generated with Claude Code

…s); keep the literal tail of "$VAR"/path (Part of #3798)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 25, 2026 08:57
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 08:58
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 37f482b into main Oct 25, 2026
119 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/3798-20261025T0844Z branch October 25, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant