Skip to content

feat(analysis): add type shape facts to symbols - #59

Merged
bntvllnt merged 1 commit into
mainfrom
feat/2-5-0-type-shape-facts
Jul 1, 2026
Merged

feat(analysis): add type shape facts to symbols#59
bntvllnt merged 1 commit into
mainfrom
feat/2-5-0-type-shape-facts

Conversation

@bntvllnt

@bntvllnt bntvllnt commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • add parser type/shape facts for exported/local symbols: signatures, parameters, return types, consumed/produced shapes, confidence
  • propagate type facts through graph symbol nodes, file context, symbol context, search, CLI text formatters, and MCP/CLI JSON surfaces
  • keep parser organization explicit with parser/type-facts.ts and parser/symbols.ts; preserve barrel re-export symbols in file context
  • sync docs/llms/roadmap for the 2.5.0 Type/Shape foundation slice

Roadmap

  • 2.5.0 / P1 Type/Shape Layer foundation slice
  • CH-P1-03: parser -> graph -> core -> search -> CLI/MCP type/shape facts

Tests / Gates

  • pnpm exec eslint src/types/index.ts src/parser/index.ts src/parser/type-facts.ts src/parser/symbols.ts src/graph/index.ts src/core/index.ts src/search/index.ts src/operations/formatters.ts tests/type-shape.test.ts tests/operation-registry.e2e.test.ts tests/phase1-red.test.ts
  • pnpm typecheck
  • pnpm build
  • focused regression chain: 85 tests passed
  • pnpm test: 32 files, 455 tests passed
  • pnpm verify:cli-real: pass=56 fail=0
  • git diff --check
  • hygiene scan: no added any, as assertion, TS ignore, TS expect-error, or eslint-disable

Dogfood

  • node dist/cli.js file tests/fixture-codebase/src auth/index.ts --json --force preserves barrel exports: AuthService, authenticate, requireAuth, etc.
  • node dist/cli.js search tests/fixture-codebase/src CreateUserInput --limit 3 --json --force returns UserService.createUser with consumes: [CreateUserInput], produces: [User]
  • codebase-intelligence changes . --json --force: 19 changed files, 37 affected files, 11 changed symbols

Code Review

  • artifact: /tmp/code-review-type-shape-facts.json
  • mode: Deep
  • coverage: 75/75 hunks, 18/18 rules
  • verdict: CLEAN

@bntvllnt
bntvllnt merged commit 602e544 into main Jul 1, 2026
2 checks passed
@bntvllnt
bntvllnt deleted the feat/2-5-0-type-shape-facts branch July 1, 2026 05:09
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.

1 participant