Repository navigation
feat: separate real baselines from model response and add analysis views - #12
Merged
Merged
Conversation
Model transparency release, part 2. - Each tile shows its stored real-world baseline under the title, apart from the normalized MODEL RESPONSE, which is no longer called a combined result. - Why & source lists paths strongest first with the direction and the kind, citation status and horizon of every step, labels every relationship the same way, and states why a dead end drives nothing. - Sensitivity: every scenario is rerun under nine nearby settings (decay 0.5, 0.7, 0.9; up to 2, 3, 4 relationships) and each moved tile says whether its direction holds, depends on the path limit, or flips. Same engine, other parameters (src/model/analysis.ts). - Category filter. Hidden tiles still take part in the calculation. - Cited relationships only: the same engine on empirical edges alone. None exist yet, and the board says that is a gap in citations, not evidence of no effect. Not part of Share links, which carry inputs only; the page says so. - Scenario A: saved in memory for the tab only, compared tile by tile, never written to the address bar; Reset and history leave it alone. No new dependency. Built JS 269.9 kB to 274.8 kB. Browser suite covers the new tools at 1440, 390 and 320 px and runs axe with them active.
9 tasks done
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.
Summary
Model transparency, part 2 of 3. Makes the difference between a real measurement and the normalized model response obvious, and makes it easy to see why a tile moved and how much that depends on editorial assumptions.
src/model/analysis.tsreruns the scenario with the same engine under nine nearby settings: decay 0.5, 0.7 and 0.9, and up to 2, 3 or 4 relationships. It classifies each tile as same direction under all settings, moves under some settings only, or direction depends on the settings. It is explanatory, not a second prediction engine. Hand-worked tests cover every class, clamping, noise and sign symmetry.No new dependency and no new color token. Built JS goes from 266.5 kB to 275.5 kB (gzip 84.2 to 86.8 kB); CSS from 10.1 to 11.3 kB, including all three parts.
Validation
npm run verifypasses: 754 tests, 100% coverage on the model and display helpers, and the numerical audit passes.npm run test:e2epasses. It now drives the filter, cited-only mode and scenario A at 1440, 390 and 320 px: hidden tiles, no modeled edge used, the comparison text, no horizontal overflow, an unchanged address. It also runs axe WCAG 2.2 A/AA with all three active.npm audit --audit-level=low: 0 vulnerabilities. No dependency changes.Data or model changes
Not applicable. No data or relationship changes. The propagation engine is unchanged; analysis reuses
combineEffects.Security
None. No new input source. The view state (filter, cited-only mode, scenario A) is in memory only and never read from or written to the URL. CSP and the analytics loader are unchanged.