Repository navigation
lens: a .h is Objective-C only on Objective-C evidence (Fixes #4546) - #4970
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 12, 2026 09:38
squid-protocol
enabled auto-merge (squash)
October 12, 2026 09:38
Owner
Author
|
No description provided. |
This was referenced Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4546
What
A shared-extension
.his Objective-C only on Objective-C content evidence. Two mechanisms were wrongly calling plain headers ObjC:extern "C"guards)..hbeside.mfiles was locked to ObjC at tier 1.5 with no content check.Fix:
objectivec.pyextensions_needing_discriminator: [".h"](ObjC is not a Tier-3 candidate for.h, and a gravity vote for it is dropped);internal_discriminatorwidened for Foundation-only headers (NS_ENUM/NS_OPTIONS,NS_ASSUME_NONNULL_BEGIN,FOUNDATION_EXPORT,NSString *-style pointers);cpp.pyshared_extension_evidence[".h"]gives line-anchored C++ evidence (namespace, template, class, std::, access labels, constexpr...) which beats a C neighbourhood.extern "C"is not C++ evidence.Class table
extern "C"guardsfoo.h+foo.mSibling AnchorTests:
tests/core_engine/test_header_language_collision.py(70 cases, real registry).Evidence
.mfiles all locked ObjC.crucible_check.pyPASS on both legs (full + zero-dep), no drift, nothing blessed.pr_gates --fast: lint failure (SIM102) fixed; audits/secrets/xray/gauntlet pass.--ratchets: 7/7 pass, 0 skipped.tests/core_engine+ objc/cpp extraction: 2757 passed.Cross-repo: none.
Sibling gaps
Same mechanism (a shared extension in
COLLISION_FREQUENCIESclaimed by ecosystem gravity or broad Tier-3 rules with no content proof), probed with the real registry and a plain sample in alone / rival-neighbour directories. Not fixed here: each needs its own evidence regex and golden review..incPHPa.inc=<?php function helper($a){...}->c("Collision Resolved") alone and beside.c/.cpp; php has no.incdiscriminator.incFortranINTEGER I/COMMON /BLK/ I->c, alone and beside.c.macEasytrieveFILE INPUT1 ... JOB INPUT INPUT1 ... PRINT->hlasmalone, beside.cbland even beside.ezt; easytrieve has nointernal_discriminator.sql/.ddl/.dmlplain SQL beside COBOLSELECT ... FROM usersbeside.cbl/.jcl->db2_sqlvia gravity (#2511 mainframe-sibling gravity); alone ->sqlite. Plain portable SQL beside COBOL is called Db2.asmx86 beside COBOL/JCLsection .text / mov eax,1 / int 0x80beside.cbl/.jcl->hlasmvia gravity (#2503); alone ->assembly.cshtmlRazor@model Foo <h1>@Model.Title</h1>->htmlalone and beside.html;csharponly beside.cs; no Razor discriminator.mMATLAB/ObjC,.yyacc/C,.cmdbatch/REXX,.pypython/embedded_python,.hinternal_discriminator(or this PR) gives content proof; probe passed in all neighbourhoods.map,.c.pl,.v,.cls,.rCOLLISION_FREQUENCIES.plperl-only,.clsapex-only,.v/.runclaimed: no gravity path, so the mechanism does not apply (Mercury/Prolog/Coq/Verilog are not in the registry)🤖 Generated with Claude Code