You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
objective-c api: a bare method definition is invisible to the rule (contract corollary 3) #2940
Child of the api contract (#2730, docs/api_rule_contract.md); surfaced by the corpus scoreboard's two remaining raw_arch_api open cells (ledger api-no-plantable-idiom).
The objective-c api rule matches a -/+ method line terminated by ; — an @interface declaration — and nothing else Objective-C-shaped. But Objective-C methods have no visibility syntax at all: every method a file implements is dispatchable from anywhere, so per the contract's corollary 3 (where the language makes things public by default, the declaration itself IS the marker), the method definition- (int)name:(int)arg { is the public-surface marker in exactly the way C's column-0 function declarator is (#2907), matlab's column-0 function is, and abap's FORM is.
Consequence on the corpus: objective-c a/b/c read raw 0 + orphan credit 3, and main.mm (never imported, so never credited) reads arch_api0 for four public methods — units_public 0, ledgered in units-public-main-outside-api-contract. On the crucible, every @implementation's method list in a .m measures no public surface unless the header happens to live in the same file.
Fix shape: allow the existing method-line alternative to terminate at { as well as ; (same type-cast + identifier guard, so the wrapped-arithmetic false positive stays excluded). Same-file declaration+definition double-count is the matlab order of approximation and is documented; the per-unit is_public name-set union (#2908 Phase 2) already dedupes at the unit level.
Corpus effect (predicted, to verify by scan): a/b/c raw_arch_api 0→3, api_orphan_credit 3→0 (the #2827 overlap now recognises the names), arch_api unchanged at 3; main arch_api 0→4, units_public 0→4; risk_documentation main unchanged at 75 (weighted 6/8 replaces unweighted 3/4). Resolves the objective-c half of api-no-plantable-idiom; the sqlite half is a corpus-plant constraint being re-dispositioned as inherency in the same corpus PR.
status: engine PR #2941 open (rosetta:rebless-owed, CI running); corpus branch rebless/2940-objc-api pushed and held for the engine-first merge order (ROSETTA_AUDIT.md) — open it once #2941 merges.
Measured end to end:
rule_probe: 0 lost, +15 gained, every line read (13 planted probes; HyperText.m- (int) format { and - (BOOL)isIndex {).
Golden masters: 9 substantive diffs, all objective-c (HyperText.m api 1→3, API Exposure 1.88%→3.75%, Is Public columns, mass aggregates +2). Both legs blessed and verify green.
Corpus (applied on the branch, verify_language PASS 84/84): a/b/c api 0→3 + credit 3→0, main api 0→4, units_public 0→4; ledger: api-no-plantable-idiom loses objective-c and re-dispositions to intended-morphology for the sqlite remainder (plant constraint, not engine defect); units-public-main-outside-api-contract drops objective-c.
Bias report at this engine: open-defect share 3 → 1 of 2,633 — raw_arch_api reads 0 open cells; the scoreboard's last open cell is func_complexity_gini (makefile), its own ledger entry, no issue yet.
Activity
squid-protocol commentedon Sep 10, 2026
status: engine PR #2941 open (
rosetta:rebless-owed, CI running); corpus branchrebless/2940-objc-apipushed and held for the engine-first merge order (ROSETTA_AUDIT.md) — open it once #2941 merges.Measured end to end:
rule_probe: 0 lost, +15 gained, every line read (13 planted probes;HyperText.m- (int) format {and- (BOOL)isIndex {).HyperText.mapi 1→3, API Exposure 1.88%→3.75%, Is Public columns, mass aggregates +2). Both legs blessed and verify green.verify_languagePASS 84/84): a/b/c api 0→3 + credit 3→0, main api 0→4, units_public 0→4; ledger:api-no-plantable-idiomloses objective-c and re-dispositions tointended-morphologyfor the sqlite remainder (plant constraint, not engine defect);units-public-main-outside-api-contractdrops objective-c.raw_arch_apireads 0 open cells; the scoreboard's last open cell isfunc_complexity_gini(makefile), its own ledger entry, no issue yet.