Skip to content

language lens: Tier 4 reconciliation no longer reads the wall clock (Part of #5876) - #5960

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5876-20261022T0307Z
Oct 22, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5876-20261022T0307Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5876. Follow-up to #5957 (merged at eaabe57): the later commit on churn/5876-20261022T0158Z never landed.

Change

language_lens.py _tier_4_heuristic_discovery no longer reads the wall clock. The friction ratio (a timing ratio on a sub-millisecond regex pass) flipped doom-fx convert/ConvSound1 between runs. Now density margin alone decides: >= 1.5x wins, 1.10-1.5x is a collision (undeterminable). Plus test_tier4_no_wallclock_5876.py (40 random clocks, one verdict) and the doom-ios golden re-bless (7081 -> 7096 bytes, the deterministic value).

Cherry-picked a6cefdf (the only commit missing from main; the brief said 3, but it carries all three pieces). Clean, no conflicts.

Evidence

  • doom-fx convert/ConvSound1, real file, 300 inspect runs: one verdict, 300/300 (plaintext, Prose Fallback).
  • doom_rosetta_check.py (all 44 ports): exit 0.
  • pr_gates --fast: 7/7. pr_gates --ratchets: 9 pass, 0 fail, 0 skipped.

Class: verdicts that depend on wall-clock time

Handled: Tier 4 friction term (this PR).
Sibling gaps: none found in language_lens.py (no time import left). Other reads: detector.py time.perf_counter()/time.time() (lines ~4290-4387, 4519-4797, 4922-5148) are telemetry and a slow-shield log only, not verdict inputs. The galaxyscope.py 15 s SIGALRM ReDoS fuse is load-dependent by design (see golden-master-guidelines section 2); not changed.

Remaining slices: cssdoom, sqldoom (functions expected_fails, engine vs ctags/tree-sitter count disagreement unresolved).

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

🤖 Generated with Claude Code

…Part of #5876)

The friction ratio flipped doom-fx convert/ConvSound1 between runs. Margin alone decides; doom-ios golden re-blessed to the deterministic value.

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 22, 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.

@squid-protocol
squid-protocol marked this pull request as ready for review October 22, 2026 03:50
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 03:50
@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 #5960 @ 40ae0e3: 3 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39719014551/job/119629204826
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {b9c55df5-ca0f-4c46-ab92-09193bef20b4}
Region: eastus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[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 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39719014551/job/119627955869
repro: python -m pytest -q tests/core_engine/test_language_lens.py::test_tier_4_macro_and_handicaps
failing tests: tests/core_engine/test_language_lens.py::test_tier_4_macro_and_handicaps
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
E AttributeError: module 'gitgalaxy.standards.language_lens' has no attribute 'time'
FAILED tests/core_engine/test_language_lens.py::test_tier_4_macro_and_handicaps - AttributeError: module 'gitgalaxy.standards.language_lens' has no attribute 'time'
##[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-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 190329
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 2a6380d7af5d277d247857f45830860351741b087b79978fb7431cd1dab22c2d
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 12400437296
Artifact test-times-part-1 has been successfully uploaded! Final size is 190329 bytes. Artifact ID is 12400437296
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39719014551/artifacts/12400437296
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/f9631505-589b-44e4-95cb-1a6daaace2f3' 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/39719014551/job/119627955400
repro: python -m pytest -q tests/core_engine/test_language_lens.py::test_tier_4_density_confidence_is_clamped
failing tests: tests/core_engine/test_language_lens.py::test_tier_4_density_confidence_is_clamped
errors:
fail-on-cache-miss: false
E AttributeError: module 'gitgalaxy.standards.language_lens' has no attribute 'time'
FAILED tests/core_engine/test_language_lens.py::test_tier_4_density_confidence_is_clamped - AttributeError: module 'gitgalaxy.standards.language_lens' has no attribute 'time'
##[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 190801
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 35e4491b5ba664eb8ccab678c4cdfd34ac8876b76dfd499380cde65f154c1ad0
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 12400176910
Artifact test-times-part-3 has been successfully uploaded! Final size is 190801 bytes. Artifact ID is 12400176910
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39719014551/artifacts/12400176910
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/6828deeb-cc01-413b-a5b1-82a1f543747c' 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 22, 2026
…e Tier 4 no longer has (Part of #5876)

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

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (11438ad) 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 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 04:21
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 04e33fc into main Oct 22, 2026
61 checks passed
@squid-protocol
squid-protocol deleted the churn/5876-20261022T0307Z branch October 22, 2026 04:29
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