Skip to content

Assembly: map .a/.i by dialect evidence; colonless column-0 labels are entries (Part of #5624) - #5683

Merged
squid-protocol merged 4 commits into
mainfrom
churn/5624-assembly-dialects
Oct 19, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/5624-assembly-dialects

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5624 (slice 1: assembly mapping). Does not close the issue: the .rev LiveCode fix is a remaining slice.

What changed

Hand-written files (4): assembly.py, _lens_config.py, language_lens.py, aperture.py, plus one new test file tests/extraction/languages/test_assembly_dialects_5624.py (5 total). The rest is the golden re-bless.

  • Mapping by evidence only. .a and .i are registered collision extensions owned by assembly via extensions_needing_discriminator, so they map only when the content proves a dialect (xdef/xref, a lone public NAME, include x.i, NAME var .../NAME macro, section NAME[,CODE|DATA|BSS]). Tier 3 returns undeterminable rather than locking a lone claimant, so SWIG .i, preprocessed-C .i and prose .a are not taken. .s/.inc/.asm map through the same discriminator. HLASM members still go to hlasm.
  • Aperture. A text .a now passes the extension firewall once assembly claims it; an ar archive (!<arch>\n magic, .a only, one 8-byte read) is still denied.
  • func_start. A column-0 label with no colon is an entry when it is alone on its line (optional ; comment) and code follows within 6 blank/comment lines. Data and definition directives (dc/ds/db/dw/equ/set/var/macro/org/include/section/xdef/...) following it do not count. end*/else/even/mend names and names ending in 3+ digits (the local-label convention) are excluded. The colon form is unchanged.

Class and evidence

Class: colonless column-0 label assemblers (Argonaut 65816/SuperFX, Devpac/vasm 68k). Rescan of DOOM-FX source/ (scratch copy, no .git): 160/170 .a, 171/189 .i, 59/59 .asm now assembly (was: none of .a/.i); rlirq.a 22 entries, ripdoomiff.asm 25. The remainder are equ-only include files dropped by the Zero-Density threshold, and ar archives. .rev counters are still livecode (14 files).

Golden drift (re-blessed via golden-lock.sh crucible_check.py --update --yes)

scope_check.py --expect assembly: 1815 differences, 1399 in assembly. Assembly: more entries in colonless-label .S files (macro invocations or colonless labels such as BEGIN, STAGE2, zendproc now count). A differential of old vs new func_start over 232 language-crucible assembly files lost no match. Non-assembly drift (~300) is only float ripple from the whole-graph PageRank normalisation and 3D coordinates (Function rows 55589 to 55665); no other language's signals changed. The one non-ripple-looking line, kotlin Call.kt Structural Magnitude 20.58 to 20.68, comes from the same repo-wide normalisation. The unparsable-artifacts queue changed because the new .a/.i assembly files left it.

Gates (all local, via heavy-run.sh)

  • pr_gates.py --fast: 6/6 pass (lint, audits, secrets, xray, gen-docs, gauntlet)
  • pr_gates.py --ratchets: 8 pass, 0 fail, 0 skipped
  • Pre-PR tests: 218 passed (new file, test_source_reads, test_cics_spec, test_generated_branch, test_sweep_plan, test_ci_critical_path_split, test_proof_reach); time_ratchet.py check --times: 0 over limit
  • audit_check.py: all clear (ruff, mypy, dead-key, ast-accuracy)
  • Tri-comparison not run: no language-signature claim made.

Remaining slices

  • .rev LiveCode content evidence (livecode.py plus a test): would exceed the 5-file limit.
  • Export-aware func_start: a regex cannot read the public/xdef list, so local labels are filtered by the 3+ digit heuristic only.

Sibling gaps

  • Same-line code labels (label move.l ...): burned-estate program needing it: none.
  • Colonless same-line forms (MASM name PROC): none.
  • .s/.inc coverage beyond the discriminator: none.

Cross-repo

None; the language-crucible pin is unchanged.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 19, 2026 17:00
…e entries (Part of #5624)

WIP slice 1: aperture keeps a text .a (ar archives still denied), .a/.i join the
collision set and are assembly only on internal_discriminator evidence, func_start
reads a column-0 label with no colon followed by code.

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 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

# #5624: every claimant owns `ext` only on proof (assembly's `.a` / `.i`) and Tier 2 found
# none, so a lone candidate must not win on the extension: it is a static archive's or a
# SWIG/preprocessed-C file's, not this language's.
return "undeterminable", 0.0
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5683 @ c853423: 3 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39330231400/job/118330007373
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261015.610
Commit: 267fdb4e8bbec4ab5ea31367f3a00d5c480c7656
Build Date: 2026-10-14T17:06:54Z
Worker ID: {6255cbcc-007a-4df0-a8a2-b384b15fa9a7}
Region: centralus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261018.339.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261018.339/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261018.339
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && test "$SKIP" = "true"; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
##[endgroup]
full-suite parts: failure (tested-tree skip: )
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39330231400/job/118326701020
repro: python -m pytest -q tests/core_engine/test_detection_resolution_order.py::test_claimants_and_their_order_are_pinned[.inc]
failing tests: tests/core_engine/test_detection_resolution_order.py::test_claimants_and_their_order_are_pinned[.inc]
errors:
fail-on-cache-miss: false
E AssertionError: the claimant list or registry order for '.inc' moved. Both matter: order decides which internal_discriminator is consulted first in _tier_2_fingerprint_check
tests/core_engine/test_detection_resolution_order.py:90: AssertionError
FAILED tests/core_engine/test_detection_resolution_order.py::test_claimants_and_their_order_are_pinned[.inc] - AssertionError: the claimant list or registry order for '.inc' moved. Both matter: order decides which internal_discriminator is
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 183922
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 64a05785de0a8d72374969132cb59ccb30d2bc3d254cc5c152676b1b649b58bc
Finalizing artifact upload
Artifact test-times-part-2 successfully finalized. Artifact ID 12224457452
Artifact test-times-part-2 has been successfully uploaded! Final size is 183922 bytes. Artifact ID is 12224457452
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39330231400/artifacts/12224457452
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/ae3713e9-bfa2-463b-bfac-4b857a9ba150' 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
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

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39330231400/job/118326701045
repro: python -m pytest -q tests/core_engine/test_detection_resolution_order.py::test_claimants_and_their_order_are_pinned[.asm] tests/core_engine/test_detection_resolution_order.py::test_contested_extension_set_is_pinned
failing tests: tests/core_engine/test_detection_resolution_order.py::test_claimants_and_their_order_are_pinned[.asm] tests/core_engine/test_detection_resolution_order.py::test_contested_extension_set_is_pinned
errors:
fail-on-cache-miss: false
E AssertionError: COLLISION_FREQUENCIES changed; update _EXPECTED_CLAIMANTS in the same commit so the new/removed collision is reviewed, not absorbed
tests/core_engine/test_detection_resolution_order.py:82: AssertionError
E AssertionError: the claimant list or registry order for '.asm' moved. Both matter: order decides which internal_discriminator is consulted first in _tier_2_fingerprint_check
tests/core_engine/test_detection_resolution_order.py:90: AssertionError
FAILED tests/core_engine/test_detection_resolution_order.py::test_contested_extension_set_is_pinned - AssertionError: COLLISION_FREQUENCIES changed; update _EXPECTED_CLAIMANTS in the same commit so the new/removed collision is reviewed, not
FAILED tests/core_engine/test_detection_resolution_order.py::test_claimants_and_their_order_are_pinned[.asm] - AssertionError: the claimant list or registry order for '.asm' moved. Both matter: order decides which internal_discriminator is
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 183679
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 857aeb6ccd80cb87a15856517e9d885948630b1828cd35ad5a8516f0e95e196a
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 12225215069
Artifact test-times-part-3 has been successfully uploaded! Final size is 183679 bytes. Artifact ID is 12225215069
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39330231400/artifacts/12225215069
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/c8954811-36d9-4593-af12-7987851416b1' 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
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 19, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (1ddde90) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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.

2 participants