Skip to content

calls: shell one-line functions, tcl one-line brace bodies, scheme lambda formals (Part of #5640) - #5812

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5640-20261021T0224Z
Oct 21, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5640-20261021T0224Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5640. Follow-up to #5806.

What

The shapes #5806 left open, probed first (before/after in the unit tests):

  • shell one-line function name() { cmd; } / function name { cmd; } was not a unit at all (opener and closer cancel to net 0 in Mode D), so its calls landed in __global_context__. _slice_by_keywords now emits a one-line satellite for it (shell only, same reserved-word exclusion as func_start).
  • tcl one-line brace bodies: catch {qux}, after 10 {zed}, if {$a} {foo}, try {..} finally {..}, eval {..} are command position (lookbehinds, because the line-start branch already consumes catch). set l {a b} / puts {x} stay non-calls.
  • scheme lambda formals: (lambda (y) ...) / (named-lambda (f y) ...) no longer read y / f as a call (scheme-only pattern; the shared lisp family is untouched).
  • lua after .. / not: already works, pinned by tcl: a [cmd ...] command substitution is a call (Part of #5640) #5806's test; nothing to change.

Class table (call-extraction small shapes)

Member Status
shell command word done (#5728)
shell one-line function unit this PR
tcl [cmd], after } done (#5806)
tcl one-line brace bodies this PR
scheme define-of-lambda done (#5728)
scheme lambda / named-lambda formals this PR
lua after .. / not works, pinned
scheme let binding lists ((x 1)) read x as a call open (known gap K, docs/calls_out_rule_contract.md)
tcl foreach x $l {foo} / switch arm bodies / namespace eval ns {foo} one-liners open (need a script-position rule)
shell foo & /time foo/exec foo command words open

Golden

Blessed via golden-lock.sh crucible_check.py --update --yes, both fixtures; diffs are call-graph only (calls_out_to, fan_in/out, pagerank, graph/llm snapshots). Spot-checked: racket io.ss loses who (a (lambda (who p) formal) from binary-file-port-flush etc.; other rows are last-digit PageRank moves from the repo-wide graph.

Gates

pr_gates --fast 7/7, --ratchets 8/8 (ports, fact-crosscheck, ground-truth, completeness included), tree-wide guards 184 passed, shell/scheme/tcl strict suites 470 passed.

Cross-repo: none.

Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 20, 2026 22:27
…mbda formals (Part of #5640)

WIP: golden masters not yet blessed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…cheme lambda formals (Part of #5640)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 21, 2026 03:00
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 03:00
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5812 @ 631d2e2: 1 failed check(s)

== Call resolution (Level 2, vs pyan3) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39536179865/job/119013239472
repro: python tests/tools/pr_gates.py --fast
errors:
2026-10-21 03:09:55,234 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:09:57,362 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:09:57,832 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:10:01,867 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:10:05,071 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:10:08,373 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-21 03:10:08,375 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-21 03:10:08,377 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-21 03:10:08,379 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-21 03:10:08,580 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-21 03:10:08,583 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-21 03:10:09,560 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-21 03:10:09,562 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-21 03:10:09,563 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-21 03:10:09,564 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-21 03:10:09,565 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-21 03:10:09,566 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-21 03:10:09,567 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-21 03:10:09,656 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-21 03:10:14,250 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:10:20,928 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:10:21,215 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:10:21,521 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:10:21,797 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-21 03:10:23,215 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:*.AssertionError>
... 68 more
log tail:
"overload_blind_precision_pct": 99.7
},
"recall_all_kinds_pct": 76.4,
"resolution_recall_pct": 97.7,
"named_pyan_edges": 1748,
"pyan_edges": 3592,
"wrong_examples": [
"fastapi: fastapi/routing.py:app -> fastapi/exceptions.py:45 (pyan3: fastapi/exceptions.py:213)",
"fastapi: tests/test_arbitrary_types.py:test_typeadapter -> tests/test_arbitrary_types.py:20 (pyan3: tests/test_arbitrary_types.py:59)"
],
"external_examples": [],
"reference_version": "2.9.0",
"lang": "python"
}
}
| language | reference | confident precision | ambiguous precision | recall | resolution recall |
|---|---|---|---|---|---|
| python | pyan3 | 99.9% (1829 judged) | 60.0% | 50.9% | 97.7% |
decorator edges (not gated): precision 100.0% (575 judged); recall with decorators 66.9%
reference edges (not gated): precision 99.7% (345 judged); recall, all kinds 76.4%
call_graph_resolution: WARNING -- pyan3 2.9.0 is not the pinned 2.8.1; numbers are not comparable to the baseline
call_graph_resolution: REGRESSION
python: recall_pct 51.7 -> 50.9
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/9d9bde2d-9d63-46fc-98e5-69a1ac66d513' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 21, 2026
@squid-protocol
squid-protocol merged commit 6c79520 into main Oct 21, 2026
96 of 98 checks passed
@squid-protocol
squid-protocol deleted the churn/5640-20261021T0224Z branch October 21, 2026 03:22
squid-protocol added a commit that referenced this pull request Oct 21, 2026
…(Part of #5619)

scripts/local_demo.sh functions 10 -> 12, scripts/run_with_server.sh 1 -> 2 (summary.functions 540 -> 543); the engine
change is #5812, merged into this branch from main.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 21, 2026
…ed clones (Part of #5619) (#5813)

* doom-rosetta.yml: LOC-sharded zero-drift check, Universal Ctags, cached clones (Part of #5619)

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

* doom-rosetta.yml: draft gate on shard job, tree-sitter installed for the functions oracle, apt pin entry (Part of #5619)

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

* DOOM-rosetta: re-bless sqldoom for shell one-line functions from #5812 (Part of #5619)

scripts/local_demo.sh functions 10 -> 12, scripts/run_with_server.sh 1 -> 2 (summary.functions 540 -> 543); the engine
change is #5812, merged into this branch from main.

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant