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
encapsulation_ratio is structurally pinned at 1.0 for languages whose globals rule is None — should it render n/a? #3078
metricsHeuristics, risk exposures, and topological math updatesneeds:crucibleNeeds the crucible repo checkoutspriority: lowUI tweaks, documentation, and minor optimizationsquestionFurther information or community discussion requestedscope:frontierMapped, not yet built: eras/commands/regions the burned estates don't use (Gap Atlas)
Read verdict from the keyword-rosetta bias report after bms landed (#2505): bms reads encapsulation_ratio 1.0 against a 0.75 corpus median (+33%, amber, no verdict).
Reading the formula (gitgalaxy/metrics/signal_processor.py ~585-593): total_vars = core_var_decl, global_vars = globals, ratio = 1.0 - global_vars / (total_vars + global_vars). For bms, core_var_decl reads 28 (the generic NAME=value heuristic counts every macro operand line as a variable declaration), and globals is a None rule in the registry — so global_vars can never be nonzero and the ratio is structurally ≡ 1.0 regardless of file content. The cell isn't measuring encapsulation; it's restating that the language has no globals rule.
Same holds for any other language with globals: None (html, markdown record the stated absence).
Two candidate answers, either fine:
Engine: emit NULL for encapsulation_ratio when the language's globals rule is None (the same n/a-by-rule-absence semantics the bias tooling already applies to raw signal cells).
Corpus-side only: add encapsulation_ratio -> (core_var_decl, globals) to keyword-rosetta bias_report.py's DERIVED_INPUTS so the cell inherits globals' n/a and is tagged derived instead of reading as an unexplained deviation. (This is being done now as the immediate ledger-side fix; this issue tracks whether the engine should own it instead.)
metricsHeuristics, risk exposures, and topological math updatesneeds:crucibleNeeds the crucible repo checkoutspriority: lowUI tweaks, documentation, and minor optimizationsquestionFurther information or community discussion requestedscope:frontierMapped, not yet built: eras/commands/regions the burned estates don't use (Gap Atlas)
Activity