Skip to content

Add Model Health report (size and formula hygiene) - #11

Open
umang350 wants to merge 1 commit into
masterfrom
claude/formula-hygiene-report
Open

umang350 wants to merge 1 commit into
masterfrom
claude/formula-hygiene-report

Conversation

@umang350

@umang350 umang350 commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Summary

New read-only Structure › Health report, worked out from the in-page model cache the Line Items report already uses (no Anaplan calls). Four tabs:

  • Large Line Items / Large Modules: estimated cells (product of the item counts of the lists a line item applies to). Time, Versions and subsets have no count in the cache, so those rows are tagged Partial.
  • Duplicate Formulas: identical after whitespace is collapsed, 25+ characters, with where they are used (calculate-once candidates).
  • Complex Formulas: 400+ characters, 5+ IFs or 6+ bracket levels.

Only findings are sent back and cached, not every formula. Registered in PAGES, VIEWS, Summary's REPORTS, Download all, package.sh, and DL_STALE. CSV export per tab. CLAUDE.md and CHANGELOG updated.

Testing

  • IA_health run on fixtures in Node (duplicates grouped across modules and spacing, cells, complexity, unknown list sizes).
  • The view rendered in headless Chromium with a stubbed extension API and fake data: all four tabs draw, no page errors.
  • node --check on every changed script; sh package.sh builds.
  • Not tested on a live Anaplan model. The size estimate depends on list item counts and appliesTo names matching the cache's list names; thresholds are rules of thumb, not Anaplan limits.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gp4Gxzr9KGd731nQ6UTixL


Generated by Claude Code

…complex formulas

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gp4Gxzr9KGd731nQ6UTixL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants