diff --git a/.claude/skills/gitnexus/gitnexus-cli/SKILL.md b/.claude/skills/gitnexus/gitnexus-cli/SKILL.md index c9e0af34..b73ea7ed 100644 --- a/.claude/skills/gitnexus/gitnexus-cli/SKILL.md +++ b/.claude/skills/gitnexus/gitnexus-cli/SKILL.md @@ -5,14 +5,16 @@ description: "Use when the user needs to run GitNexus CLI commands like analyze/ # GitNexus CLI Commands -All commands work via `npx` — no global install required. +Commands below use `node .gitnexus/run.cjs ` — the project-local runner `gitnexus analyze` drops next to the index. It auto-selects an available runner at call time (global `gitnexus`, else `pnpm dlx`, else `npx`), so no package-manager assumption and no global install is required. + +> **Not analyzed yet, or `node .gitnexus/run.cjs` reports `Cannot find module`** (the gitignored runner is absent — e.g. a fresh clone or `git clean`)? (Re)generate it with `npx gitnexus analyze` from the project root. On **npm 11.x**, if `npx` crashes during install (`node.target is null`), install once with `npm i -g gitnexus` (then `gitnexus analyze`) or use `pnpm --allow-build=@ladybugdb/core --allow-build=gitnexus --allow-build=tree-sitter dlx gitnexus@latest analyze`. See [#1939](https://github.com/abhigyanpatwari/GitNexus/issues/1939). ## Commands ### analyze — Build or refresh the index ```bash -npx gitnexus analyze +node .gitnexus/run.cjs analyze ``` Run from the project root. This parses all source files, builds the knowledge graph, writes it to `.gitnexus/`, and generates CLAUDE.md / AGENTS.md context files. @@ -21,13 +23,15 @@ Run from the project root. This parses all source files, builds the knowledge gr | -------------- | ---------------------------------------------------------------- | | `--force` | Force full re-index even if up to date | | `--embeddings` | Enable embedding generation for semantic search (off by default) | +| `--drop-embeddings` | Drop existing embeddings on rebuild. By default, an `analyze` without `--embeddings` preserves them. | +| `--pdg` | Build the program-dependence layers used by `explain` and `pdg_query` (taint, CDG, and REACHING_DEF). | -**When to run:** First time in a project, after major code changes, or when `gitnexus://repo/{name}/context` reports the index is stale. In Claude Code, a PostToolUse hook runs `analyze` automatically after `git commit` and `git merge`, preserving embeddings if previously generated. +**When to run:** First time in a project, after major code changes, or when `gitnexus://repo/{name}/context` reports the index is stale. In Claude Code, a PostToolUse hook detects staleness after `git commit` and `git merge` and notifies the agent to run `analyze` — the hook does not run analyze itself, to avoid blocking the agent for up to 120s and risking KuzuDB corruption on timeout. ### status — Check index freshness ```bash -npx gitnexus status +node .gitnexus/run.cjs status ``` Shows whether the current repo has a GitNexus index, when it was last updated, and symbol/relationship counts. Use this to check if re-indexing is needed. @@ -35,7 +39,7 @@ Shows whether the current repo has a GitNexus index, when it was last updated, a ### clean — Delete the index ```bash -npx gitnexus clean +node .gitnexus/run.cjs clean ``` Deletes the `.gitnexus/` directory and unregisters the repo from the global registry. Use before re-indexing if the index is corrupt or after removing GitNexus from a project. @@ -48,7 +52,7 @@ Deletes the `.gitnexus/` directory and unregisters the repo from the global regi ### wiki — Generate documentation from the graph ```bash -npx gitnexus wiki +node .gitnexus/run.cjs wiki ``` Generates repository documentation from the knowledge graph using an LLM. Requires an API key (saved to `~/.gitnexus/config.json` on first use). @@ -65,7 +69,7 @@ Generates repository documentation from the knowledge graph using an LLM. Requir ### list — Show all indexed repos ```bash -npx gitnexus list +node .gitnexus/run.cjs list ``` Lists all repositories registered in `~/.gitnexus/registry.json`. The MCP `list_repos` tool provides the same information. diff --git a/.claude/skills/gitnexus/gitnexus-debugging/SKILL.md b/.claude/skills/gitnexus/gitnexus-debugging/SKILL.md index 9510b97a..4a33e589 100644 --- a/.claude/skills/gitnexus/gitnexus-debugging/SKILL.md +++ b/.claude/skills/gitnexus/gitnexus-debugging/SKILL.md @@ -16,23 +16,23 @@ description: "Use when the user is debugging a bug, tracing an error, or asking ## Workflow ``` -1. gitnexus_query({query: ""}) → Find related execution flows -2. gitnexus_context({name: ""}) → See callers/callees/processes +1. query({search_query: ""}) → Find related execution flows +2. context({name: ""}) → See callers/callees/processes 3. READ gitnexus://repo/{name}/process/{name} → Trace execution flow -4. gitnexus_cypher({query: "MATCH path..."}) → Custom traces if needed +4. cypher({statement: "MATCH path..."}) → Custom traces if needed ``` -> If "Index is stale" → run `npx gitnexus analyze` in terminal. +> If "Index is stale" → run `node .gitnexus/run.cjs analyze` in terminal. ## Checklist ``` - [ ] Understand the symptom (error message, unexpected behavior) -- [ ] gitnexus_query for error text or related code +- [ ] query for error text or related code - [ ] Identify the suspect function from returned processes -- [ ] gitnexus_context to see callers and callees +- [ ] context to see callers and callees - [ ] Trace execution flow via process resource if applicable -- [ ] gitnexus_cypher for custom call chain traces if needed +- [ ] cypher for custom call chain traces if needed - [ ] Read source files to confirm root cause ``` @@ -40,46 +40,58 @@ description: "Use when the user is debugging a bug, tracing an error, or asking | Symptom | GitNexus Approach | | -------------------- | ---------------------------------------------------------- | -| Error message | `gitnexus_query` for error text → `context` on throw sites | +| Error message | `query` for error text → `context` on throw sites | | Wrong return value | `context` on the function → trace callees for data flow | | Intermittent failure | `context` → look for external calls, async deps | | Performance issue | `context` → find symbols with many callers (hot paths) | | Recent regression | `detect_changes` to see what your changes affect | +| "How does A reach B?" | `trace` between the two symbols — shortest call chain in one call | ## Tools -**gitnexus_query** — find code related to error: +**query** — find code related to error: ``` -gitnexus_query({query: "payment validation error"}) +query({search_query: "payment validation error"}) → Processes: CheckoutFlow, ErrorHandling → Symbols: validatePayment, handlePaymentError, PaymentException ``` -**gitnexus_context** — full context for a suspect: +**context** — full context for a suspect: ``` -gitnexus_context({name: "validatePayment"}) +context({name: "validatePayment"}) → Incoming calls: processCheckout, webhookHandler → Outgoing calls: verifyCard, fetchRates (external API!) → Processes: CheckoutFlow (step 3/7) ``` -**gitnexus_cypher** — custom call chain traces: +**cypher** — custom call chain traces: ```cypher MATCH path = (a)-[:CodeRelation {type: 'CALLS'}*1..2]->(b:Function {name: "validatePayment"}) RETURN [n IN nodes(path) | n.name] AS chain ``` +**trace** — shortest call chain between two symbols ("how does A reach B?"), one call instead of chaining `context` hops: + +``` +trace({ from: "processCheckout", to: "fetchRates" }) +→ status: ok, hopCount: 3 +→ hops: processCheckout → validatePayment → verifyCard → fetchRates +→ edges: CALLS (1.0), CALLS (0.95), CALLS (1.0) +``` + +When no path exists, `trace` reports the furthest reachable node — exactly where the chain breaks (dynamic dispatch, reflection, or an external boundary). + ## Example: "Payment endpoint returns 500 intermittently" ``` -1. gitnexus_query({query: "payment error handling"}) +1. query({search_query: "payment error handling"}) → Processes: CheckoutFlow, ErrorHandling → Symbols: validatePayment, handlePaymentError -2. gitnexus_context({name: "validatePayment"}) +2. context({name: "validatePayment"}) → Outgoing calls: verifyCard, fetchRates (external API!) 3. READ gitnexus://repo/my-app/process/CheckoutFlow diff --git a/.claude/skills/gitnexus/gitnexus-exploring/SKILL.md b/.claude/skills/gitnexus/gitnexus-exploring/SKILL.md index 927a4e4b..f483c2fd 100644 --- a/.claude/skills/gitnexus/gitnexus-exploring/SKILL.md +++ b/.claude/skills/gitnexus/gitnexus-exploring/SKILL.md @@ -18,20 +18,20 @@ description: "Use when the user asks how code works, wants to understand archite ``` 1. READ gitnexus://repos → Discover indexed repos 2. READ gitnexus://repo/{name}/context → Codebase overview, check staleness -3. gitnexus_query({query: ""}) → Find related execution flows -4. gitnexus_context({name: ""}) → Deep dive on specific symbol +3. query({search_query: ""}) → Find related execution flows +4. context({name: ""}) → Deep dive on specific symbol 5. READ gitnexus://repo/{name}/process/{name} → Trace full execution flow ``` -> If step 2 says "Index is stale" → run `npx gitnexus analyze` in terminal. +> If step 2 says "Index is stale" → run `node .gitnexus/run.cjs analyze` in terminal. ## Checklist ``` - [ ] READ gitnexus://repo/{name}/context -- [ ] gitnexus_query for the concept you want to understand +- [ ] query for the concept you want to understand - [ ] Review returned processes (execution flows) -- [ ] gitnexus_context on key symbols for callers/callees +- [ ] context on key symbols for callers/callees - [ ] READ process resource for full execution traces - [ ] Read source files for implementation details ``` @@ -47,18 +47,18 @@ description: "Use when the user asks how code works, wants to understand archite ## Tools -**gitnexus_query** — find execution flows related to a concept: +**query** — find execution flows related to a concept: ``` -gitnexus_query({query: "payment processing"}) +query({search_query: "payment processing"}) → Processes: CheckoutFlow, RefundFlow, WebhookHandler → Symbols grouped by flow with file locations ``` -**gitnexus_context** — 360-degree view of a symbol: +**context** — 360-degree view of a symbol: ``` -gitnexus_context({name: "validateUser"}) +context({name: "validateUser"}) → Incoming calls: loginHandler, apiMiddleware → Outgoing calls: checkToken, getUserById → Processes: LoginFlow (step 2/5), TokenRefresh (step 1/3) @@ -68,10 +68,10 @@ gitnexus_context({name: "validateUser"}) ``` 1. READ gitnexus://repo/my-app/context → 918 symbols, 45 processes -2. gitnexus_query({query: "payment processing"}) +2. query({search_query: "payment processing"}) → CheckoutFlow: processPayment → validateCard → chargeStripe → RefundFlow: initiateRefund → calculateRefund → processRefund -3. gitnexus_context({name: "processPayment"}) +3. context({name: "processPayment"}) → Incoming: checkoutHandler, webhookHandler → Outgoing: validateCard, chargeStripe, saveTransaction 4. Read src/payments/processor.ts for implementation details diff --git a/.claude/skills/gitnexus/gitnexus-guide/SKILL.md b/.claude/skills/gitnexus/gitnexus-guide/SKILL.md index 937ac73d..c9661613 100644 --- a/.claude/skills/gitnexus/gitnexus-guide/SKILL.md +++ b/.claude/skills/gitnexus/gitnexus-guide/SKILL.md @@ -15,7 +15,7 @@ For any task involving code understanding, debugging, impact analysis, or refact 2. **Match your task to a skill below** and **read that skill file** 3. **Follow the skill's workflow and checklist** -> If step 1 warns the index is stale, run `npx gitnexus analyze` in the terminal first. +> If step 1 warns the index is stale, run `node .gitnexus/run.cjs analyze` in the terminal first. ## Skills @@ -35,10 +35,82 @@ For any task involving code understanding, debugging, impact analysis, or refact | `query` | Process-grouped code intelligence — execution flows related to a concept | | `context` | 360-degree symbol view — categorized refs, processes it participates in | | `impact` | Symbol blast radius — what breaks at depth 1/2/3 with confidence | +| `trace` | Shortest path between two symbols — "how does A reach B?" in one call | | `detect_changes` | Git-diff impact — what do your current changes affect | | `rename` | Multi-file coordinated rename with confidence-tagged edits | | `cypher` | Raw graph queries (read `gitnexus://repo/{name}/schema` first) | -| `list_repos` | Discover indexed repos | +| `explain` | Persisted taint findings — source→sink data flows (needs `analyze --pdg`) | +| `pdg_query` | Control/data dependence — what gates X (CDG) / where Y flows (REACHING_DEF); needs `analyze --pdg` | +| `check` | Check graph invariants such as circular imports | +| `route_map` | API route map — which components/hooks fetch which endpoints, and the handler files that serve them | +| `shape_check` | Response-shape drift — keys each route returns vs keys its consumers access (flags MISMATCH) | +| `api_impact` | Pre-change report for an API route — consumers, middleware, shape mismatches, risk level | +| `tool_map` | MCP/RPC tool definitions and the files that handle them | +| `group_list` | List configured multi-repo groups, or one group's config | +| `group_sync` | Rebuild a group's Contract Registry (cross-repo HTTP contract links); run after `group.yaml` changes or member re-index | +| `list_repos` | Discover indexed repos (paginated — `limit`/`offset`) | + +### Paginating `list_repos` + +`list_repos` is paginated so a large registry is not truncated by MCP/LLM token limits. It takes optional `limit` (default **50**, max **200**) and `offset`, and returns: + +```jsonc +{ + "repositories": [ + { "name": "...", "path": "...", "indexedAt": "...", "lastCommit": "...", "stats": { } } + ], + "pagination": { + "total": 437, + "limit": 50, + "offset": 0, + "returned": 50, + "hasMore": true, + "nextOffset": 50 + } +} +``` + +To enumerate **every** repository, keep calling with `offset` set to `pagination.nextOffset` until `hasMore` is `false`: + +```text +list_repos {} → repos 1–50, nextOffset 50, hasMore true +list_repos { offset: 50 } → repos 51–100, nextOffset 100, hasMore true +… +list_repos { offset: 400 } → repos 401–437, hasMore false (done) +``` + +Notes: `offset` ≥ `total` returns an empty page (with `total` still reported). Out-of-range or malformed `limit`/`offset` (non-integer, `limit` outside `[1, 200]`, `offset < 0`) are rejected with a clear error — `limit` above the max is rejected, not silently capped. The order is deterministic (lower-cased name, then path), so paging never skips or duplicates an entry while the registry is unchanged. + +### Taint findings (`explain`) + +`explain` returns taint findings recorded by `gitnexus analyze --pdg` — intra-procedural `TAINTED` edges plus cross-function `TAINT_PATH` hops where the interprocedural taint phase found a function-level source→sink chain. Each finding includes a sink category (command-injection, code-injection, path-traversal, sql-injection, xss), source/sink lines, and the ordered hop path with the variable carried on each hop. + +- `explain {}` — enumerate all findings for the repo (bounded by `limit`, deterministic order) +- `explain { target: "src/vuln.ts" }` — findings in a file (suffix path match accepted) +- `explain { target: "runUserCommand" }` — findings in a function (resolved like `context`; ambiguous names return ranked candidates) + +A repo indexed without `--pdg` returns a clear "no taint layer" note. Caveats: closure/callback, property/field, and implicit flows are not modeled, and interprocedural findings are function-level `TAINT_PATH` hops rather than statement-level path proof, so the absence of a finding is **not** proof of safety. `SANITIZES` (sanitizer-kill) edges are queryable via `cypher`. + +### Control & data dependence (`pdg_query`) + +`pdg_query` reads the control/data-dependence layers `gitnexus analyze --pdg` records (CDG + REACHING_DEF, basic-block granular) — the control/data analog of `explain`. It is **always anchored** (a `target` file path or symbol, resolved like `context`) and has two modes: + +- `pdg_query { mode: "controls", target: "..." }` — CDG: "under what condition does X run?". Each edge is a controlling predicate block → dependent block with the branch sense (`'T'`/`'F'`) in `reason`; an edge into an early `return`/`throw` is flagged `guard: true` (guard-clause discovery — the sense depends on the predicate, so don't filter guards by a fixed label). +- `pdg_query { mode: "flows", target: "...", variable?: "..." }` — REACHING_DEF def→use edges within the function; pass `variable` to trace one binding. + +A repo indexed without `--pdg` returns a "no PDG layer" note (or "status unknown" when the layer can't be confirmed). Intra-procedural only — cross-function flow is taint's domain (`explain`). The raw CDG/REACHING_DEF edges are also queryable via `cypher`. See the `gitnexus-pdg-query` skill for the full query surface. + +### Shortest path between two symbols (`trace`) + +`trace` answers "how does A reach B?" in one call — the shortest directed path over `CALLS` (plus `HAS_METHOD`, so a class-rooted trace descends into its methods) instead of chaining 3–8 `context`/`impact` hops by hand. + +- `trace { from: "validateUser", to: "executeQuery" }` — shortest path between two symbols. +- Disambiguate common names with `from_uid`/`to_uid` (zero-ambiguity) or `from_file`/`to_file`; an ambiguous name returns ranked candidates. +- `maxDepth` (default 10, max 30) bounds the search; `includeTests` (default false) lets the traversal pass through test-file symbols. + +Returns ordered `hops` (each `{ name, filePath, startLine }`) and an aligned `edges[]` of `{ relType, confidence }`, so call hops and containment (`HAS_METHOD`) hops stay distinguishable. When no path exists it reports the **furthest** reachable node (where the chain breaks) and sets `truncated: true` if a traversal cap was hit first. Every result carries a `status`: `ok` / `no_path` / `ambiguous` / `not_found` / `error`. + +Cross-repo (experimental): pass `repo: "@groupName"` to trace across a group's member repos — the path may cross **one** `ContractLink` boundary (reported as a `CONTRACT_LINK` hop with the bridged contract in `crossings[]`). Omit `to` entirely to follow `from`'s outgoing HTTP call to whatever provider endpoint it lands on. Groups are configured via `group_list` / `group_sync`. ## Resources Reference @@ -55,8 +127,10 @@ Lightweight reads (~100-500 tokens) for navigation: ## Graph Schema -**Nodes:** File, Function, Class, Interface, Method, Community, Process -**Edges (via CodeRelation.type):** CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, MEMBER_OF, STEP_IN_PROCESS +**Nodes:** File, Folder, Function, Class, Interface, Method, CodeElement, Community, Process, Route, Tool, plus language-specific types (Struct, Enum, Trait, Impl, Namespace, Module, …) and BasicBlock (`--pdg` indexes only). The full node list lives in `gitnexus://repo/{name}/schema`. +**Edges (via CodeRelation.type):** CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, CONTAINS, MEMBER_OF, HAS_METHOD, HAS_PROPERTY, ACCESSES, METHOD_OVERRIDES, METHOD_IMPLEMENTS, STEP_IN_PROCESS, HANDLES_ROUTE, FETCHES, HANDLES_TOOL, ENTRY_POINT_OF, WRAPS, QUERIES, INJECTS, plus `--pdg`-only types (CFG, REACHING_DEF, TAINTED, SANITIZES, TAINT_PATH, CDG — zero rows on a default index). + +Read `gitnexus://repo/{name}/schema` before writing Cypher — it is the authoritative schema for the indexed repo. ```cypher MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"}) diff --git a/.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md b/.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md index e19af280..45eb7ce8 100644 --- a/.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md +++ b/.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md @@ -17,22 +17,22 @@ description: "Use when the user wants to know what will break if they change som ## Workflow ``` -1. gitnexus_impact({target: "X", direction: "upstream"}) → What depends on this +1. impact({target: "X", direction: "upstream"}) → What depends on this 2. READ gitnexus://repo/{name}/processes → Check affected execution flows -3. gitnexus_detect_changes() → Map current git changes to affected flows +3. detect_changes() → Map current git changes to affected flows 4. Assess risk and report to user ``` -> If "Index is stale" → run `npx gitnexus analyze` in terminal. +> If "Index is stale" → run `node .gitnexus/run.cjs analyze` in terminal. ## Checklist ``` -- [ ] gitnexus_impact({target, direction: "upstream"}) to find dependents +- [ ] impact({target, direction: "upstream"}) to find dependents - [ ] Review d=1 items first (these WILL BREAK) - [ ] Check high-confidence (>0.8) dependencies - [ ] READ processes to check affected execution flows -- [ ] gitnexus_detect_changes() for pre-commit check +- [ ] detect_changes() for pre-commit check - [ ] Assess risk level and report to user ``` @@ -55,10 +55,10 @@ description: "Use when the user wants to know what will break if they change som ## Tools -**gitnexus_impact** — the primary tool for symbol blast radius: +**impact** — the primary tool for symbol blast radius: ``` -gitnexus_impact({ +impact({ target: "validateUser", direction: "upstream", minConfidence: 0.8, @@ -73,10 +73,10 @@ gitnexus_impact({ - authRouter (src/routes/auth.ts:22) [CALLS, 95%] ``` -**gitnexus_detect_changes** — git-diff based impact analysis: +**detect_changes** — git-diff based impact analysis: ``` -gitnexus_detect_changes({scope: "staged"}) +detect_changes({scope: "staged"}) → Changed: 5 symbols in 3 files → Affected: LoginFlow, TokenRefresh, APIMiddlewarePipeline @@ -86,7 +86,7 @@ gitnexus_detect_changes({scope: "staged"}) ## Example: "What breaks if I change validateUser?" ``` -1. gitnexus_impact({target: "validateUser", direction: "upstream"}) +1. impact({target: "validateUser", direction: "upstream"}) → d=1: loginHandler, apiMiddleware (WILL BREAK) → d=2: authRouter, sessionManager (LIKELY AFFECTED) diff --git a/.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md b/.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md index f48cc01b..2dbb71ca 100644 --- a/.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md +++ b/.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md @@ -16,78 +16,78 @@ description: "Use when the user wants to rename, extract, split, move, or restru ## Workflow ``` -1. gitnexus_impact({target: "X", direction: "upstream"}) → Map all dependents -2. gitnexus_query({query: "X"}) → Find execution flows involving X -3. gitnexus_context({name: "X"}) → See all incoming/outgoing refs +1. impact({target: "X", direction: "upstream"}) → Map all dependents +2. query({search_query: "X"}) → Find execution flows involving X +3. context({name: "X"}) → See all incoming/outgoing refs 4. Plan update order: interfaces → implementations → callers → tests ``` -> If "Index is stale" → run `npx gitnexus analyze` in terminal. +> If "Index is stale" → run `node .gitnexus/run.cjs analyze` in terminal. ## Checklists ### Rename Symbol ``` -- [ ] gitnexus_rename({symbol_name: "oldName", new_name: "newName", dry_run: true}) — preview all edits -- [ ] Review graph edits (high confidence) and ast_search edits (review carefully) -- [ ] If satisfied: gitnexus_rename({..., dry_run: false}) — apply edits -- [ ] gitnexus_detect_changes() — verify only expected files changed +- [ ] rename({symbol_name: "oldName", new_name: "newName", dry_run: true}) — preview all edits +- [ ] Review graph edits (high confidence) and text_search edits (review carefully) +- [ ] If satisfied: rename({..., dry_run: false}) — apply edits +- [ ] detect_changes() — verify only expected files changed - [ ] Run tests for affected processes ``` ### Extract Module ``` -- [ ] gitnexus_context({name: target}) — see all incoming/outgoing refs -- [ ] gitnexus_impact({target, direction: "upstream"}) — find all external callers +- [ ] context({name: target}) — see all incoming/outgoing refs +- [ ] impact({target, direction: "upstream"}) — find all external callers - [ ] Define new module interface - [ ] Extract code, update imports -- [ ] gitnexus_detect_changes() — verify affected scope +- [ ] detect_changes() — verify affected scope - [ ] Run tests for affected processes ``` ### Split Function/Service ``` -- [ ] gitnexus_context({name: target}) — understand all callees +- [ ] context({name: target}) — understand all callees - [ ] Group callees by responsibility -- [ ] gitnexus_impact({target, direction: "upstream"}) — map callers to update +- [ ] impact({target, direction: "upstream"}) — map callers to update - [ ] Create new functions/services - [ ] Update callers -- [ ] gitnexus_detect_changes() — verify affected scope +- [ ] detect_changes() — verify affected scope - [ ] Run tests for affected processes ``` ## Tools -**gitnexus_rename** — automated multi-file rename: +**rename** — automated multi-file rename: ``` -gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true}) +rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true}) → 12 edits across 8 files -→ 10 graph edits (high confidence), 2 ast_search edits (review) +→ 10 graph edits (high confidence), 2 text_search edits (review) → Changes: [{file_path, edits: [{line, old_text, new_text, confidence}]}] ``` -**gitnexus_impact** — map all dependents first: +**impact** — map all dependents first: ``` -gitnexus_impact({target: "validateUser", direction: "upstream"}) +impact({target: "validateUser", direction: "upstream"}) → d=1: loginHandler, apiMiddleware, testUtils → Affected Processes: LoginFlow, TokenRefresh ``` -**gitnexus_detect_changes** — verify your changes after refactoring: +**detect_changes** — verify your changes after refactoring: ``` -gitnexus_detect_changes({scope: "all"}) +detect_changes({scope: "all"}) → Changed: 8 files, 12 symbols → Affected processes: LoginFlow, TokenRefresh → Risk: MEDIUM ``` -**gitnexus_cypher** — custom reference queries: +**cypher** — custom reference queries: ```cypher MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "validateUser"}) @@ -98,24 +98,24 @@ RETURN caller.name, caller.filePath ORDER BY caller.filePath | Risk Factor | Mitigation | | ------------------- | ----------------------------------------- | -| Many callers (>5) | Use gitnexus_rename for automated updates | +| Many callers (>5) | Use rename for automated updates | | Cross-area refs | Use detect_changes after to verify scope | -| String/dynamic refs | gitnexus_query to find them | +| String/dynamic refs | query to find them | | External/public API | Version and deprecate properly | ## Example: Rename `validateUser` to `authenticateUser` ``` -1. gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true}) - → 12 edits: 10 graph (safe), 2 ast_search (review) +1. rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true}) + → 12 edits: 10 graph (safe), 2 text_search (review) → Files: validator.ts, login.ts, middleware.ts, config.json... -2. Review ast_search edits (config.json: dynamic reference!) +2. Review text_search edits (config.json: dynamic reference!) -3. gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: false}) +3. rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: false}) → Applied 12 edits across 8 files -4. gitnexus_detect_changes({scope: "all"}) +4. detect_changes({scope: "all"}) → Affected: LoginFlow, TokenRefresh → Risk: MEDIUM — run tests for these flows ``` diff --git a/components/core/Slide.tsx b/components/core/Slide.tsx index b9866cee..ba732154 100644 --- a/components/core/Slide.tsx +++ b/components/core/Slide.tsx @@ -83,7 +83,7 @@ export default function Slide({ width={1180} height={440} className="opacity-90" - style={{ height: '40px', width: 'auto' }} + style={{ height: ctx.partnerLogo.height ?? 40, width: 'auto' }} /> )} diff --git a/components/core/SlideshowContext.tsx b/components/core/SlideshowContext.tsx index 0f864588..9d388e63 100644 --- a/components/core/SlideshowContext.tsx +++ b/components/core/SlideshowContext.tsx @@ -1,6 +1,7 @@ 'use client'; import { createContext, useContext, ReactNode } from 'react'; +import type { SlideshowConfig } from '@/lib/types'; export interface SlideshowContextValue { id: string; @@ -8,7 +9,7 @@ export interface SlideshowContextValue { date: string; location?: string; footerText: string; - partnerLogo?: { src: string; alt: string }; + partnerLogo?: SlideshowConfig['partnerLogo']; currentSlide: number; buildStep: number; totalSteps: number; diff --git a/components/core/SlideshowViewer.tsx b/components/core/SlideshowViewer.tsx index 62fb4bcf..df26a95c 100644 --- a/components/core/SlideshowViewer.tsx +++ b/components/core/SlideshowViewer.tsx @@ -137,7 +137,9 @@ function SlideshowViewerClient({ config }: SlideshowViewerProps) { })} {!isFullscreen && !exportMode && !config.hideNavBar && ( -
+
{!config.hideNavHint && ( diff --git a/lib/slideshows.ts b/lib/slideshows.ts index 54fcbf8d..2085480e 100644 --- a/lib/slideshows.ts +++ b/lib/slideshows.ts @@ -23,6 +23,7 @@ import { l0Ima2026Config } from "@/slideshows/l0-ima-2026/config"; import { iariw2026Config } from "@/slideshows/iariw-2026/config"; import { gettsim2026Config } from "@/slideshows/gettsim-2026/config"; import { arnold2026Config } from "@/slideshows/arnold-2026/config"; +import { arnold2026ShortConfig } from "@/slideshows/arnold-2026-short/config"; import { cpidWebinar2026Config } from "@/slideshows/cpid-webinar-2026/config"; import { overhang2026Config } from "@/slideshows/overhang-2026/config"; import { overhang2026BackupConfig } from "@/slideshows/overhang-2026-backup/config"; @@ -53,6 +54,7 @@ export const slideshows: SlideshowConfig[] = [ cpidWebinar2026Config, gettsim2026Config, arnold2026Config, + arnold2026ShortConfig, iariw2026Config, l0Ima2026Config, aspenBenefits2026Config, diff --git a/lib/types.ts b/lib/types.ts index 8d8179b3..eff9c5a4 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -38,7 +38,7 @@ export interface SlideshowConfig { location?: string; footerText?: string; /** Optional co-brand wordmark shown next to the PolicyEngine logo in the footer. */ - partnerLogo?: { src: string; alt: string }; + partnerLogo?: { src: string; alt: string; height?: number }; speakers?: SpeakerInfo[]; private?: boolean; /** Move the deck on PageDown and PageUp, which presentation clickers send. Leave it off for a deck with a region that scrolls. */ @@ -47,6 +47,8 @@ export interface SlideshowConfig { countSlides?: boolean; /** Hide the "Click or arrow keys" hint in the navigation bar, for a deck whose footer logo sits under it. */ hideNavHint?: boolean; + /** Center the navigation bar between the footer logos and text. */ + centerNavBar?: boolean; /** Hide the navigation bar (arrows and counter), for a deck that draws its own page number. Click and the keys still move the deck. */ hideNavBar?: boolean; slides: SlideConfig[]; diff --git a/public/logos/axiom-wordmark-bare-white.svg b/public/logos/axiom-wordmark-bare-white.svg new file mode 100644 index 00000000..5716a644 --- /dev/null +++ b/public/logos/axiom-wordmark-bare-white.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/public/logos/axiom-wordmark-bare.svg b/public/logos/axiom-wordmark-bare.svg index c56b6934..24ef7d24 100644 --- a/public/logos/axiom-wordmark-bare.svg +++ b/public/logos/axiom-wordmark-bare.svg @@ -1,4 +1,4 @@ - + diff --git a/public/logos/chronicle-wordmark.svg b/public/logos/chronicle-wordmark.svg index b38cbe6c..e68ca820 100644 --- a/public/logos/chronicle-wordmark.svg +++ b/public/logos/chronicle-wordmark.svg @@ -1,14 +1,14 @@ - + - - C - H - R - N - I - C - L - E + + + + + + + + + diff --git a/public/logos/corollary-wordmark.svg b/public/logos/corollary-wordmark.svg index 1f387008..fc726f75 100644 --- a/public/logos/corollary-wordmark.svg +++ b/public/logos/corollary-wordmark.svg @@ -1,6 +1,6 @@ - + - Corollary + diff --git a/public/logos/microcosm-wordmark.svg b/public/logos/microcosm-wordmark.svg index c0d9b2ce..00db9beb 100644 --- a/public/logos/microcosm-wordmark.svg +++ b/public/logos/microcosm-wordmark.svg @@ -1,15 +1,13 @@ - + - - m - i - c - r - o - c - o - s - m - + + + + + + + + + diff --git a/public/logos/thesis-wordmark.svg b/public/logos/thesis-wordmark.svg index 62c56efc..8cd74d70 100644 --- a/public/logos/thesis-wordmark.svg +++ b/public/logos/thesis-wordmark.svg @@ -1,8 +1,8 @@ - + - thesis + diff --git a/public/screenshots/arnold-2026/obbba-district-distribution.png b/public/screenshots/arnold-2026/obbba-district-distribution.png new file mode 100644 index 00000000..4ae53b80 Binary files /dev/null and b/public/screenshots/arnold-2026/obbba-district-distribution.png differ diff --git a/public/screenshots/arnold-2026/obbba-district-map.png b/public/screenshots/arnold-2026/obbba-district-map.png new file mode 100644 index 00000000..1c3bad53 Binary files /dev/null and b/public/screenshots/arnold-2026/obbba-district-map.png differ diff --git a/slideshows/arnold-2026-short/config.ts b/slideshows/arnold-2026-short/config.ts new file mode 100644 index 00000000..abebc45f --- /dev/null +++ b/slideshows/arnold-2026-short/config.ts @@ -0,0 +1,115 @@ +import { SlideshowConfig } from "@/lib/types"; +import { speakers } from "@/lib/speakers"; + +import TitleSlide from "../arnold-2026/slides/TitleSlide"; +import { + PartnershipSlide, + WhoUsesSlide, + FundingSlide, + PipelineSlide, +} from "../arnold-2026/slides/ContextSlides"; +import AgendaSlide from "../arnold-2026/slides/AgendaSlide"; +import ScaleSlide from "../arnold-2026/slides/ScaleSlide"; +import { + StackIntroSlide, + StackPeSlide, + StackAxiomSlide, + StackChronicleSlide, + StackMicrocosmSlide, + StackThesisSlide, + StackCorollarySlide, +} from "../arnold-2026/slides/StackWalkSlides"; +import { + ScorecardLiveSlide, + GraphRandSlide, + ChronicleLiveSlide, + CalibrationLiveSlide, + ThesisLiveSlide, +} from "../arnold-2026/slides/LayerSlides"; +import { + DistrictSlide, + TariffSlide, + SocialSecuritySlide, + SnapQcSlide, + AiIncomeShiftSlide, +} from "../arnold-2026/slides/ProgressSlides"; +import { NextSlide, QuestionsSlide } from "../arnold-2026/slides/ClosingSlides"; +import { + AppendixDividerSlide, + GraphStaticSlide, + CalibrationStaticSlide, + ScorecardStaticSlide, + SnapSimStaticSlide, + DistrictStaticSlide, + CrfbStaticSlide, + ThesisStaticSlide, + TariffStaticSlide, + ChronicleStaticSlide, + ValidationStaticSlide, +} from "../arnold-2026/slides/AppendixSlides"; + +/** + * The conversation cut: their threads first, the stack on one slide plus one + * recap, one ask — ten slides. Everything else sits in the appendix to pull + * on demand (layer walk with live embeds, scene-setting, static fallbacks). + */ +export const arnold2026ShortConfig: SlideshowConfig = { + id: "arnold-2026-short", + title: "Five projects, one chain of checks", + description: + "Private funder check-in — the conversation cut: their threads, the stack, one ask", + date: "2026-09-01", + footerText: "Arnold Ventures check-in · September 2026", + centerNavBar: true, + partnerLogo: { + src: "/logos/axiom-wordmark-bare-white.svg", + alt: "Axiom", + height: 24, + }, + speakers: [speakers["max-ghenis"]], + private: true, + slides: [ + // Their threads first + TitleSlide, + AgendaSlide, + DistrictSlide, + AiIncomeShiftSlide, + SocialSecuritySlide, + SnapQcSlide, + TariffSlide, + + // Why the stack, the stack, its checks, the ask + ScaleSlide, + { component: StackIntroSlide, builds: 6 }, + GraphRandSlide, + ScorecardLiveSlide, + ThesisLiveSlide, + NextSlide, + QuestionsSlide, + + // Appendix — pull on demand + AppendixDividerSlide, + StackPeSlide, + StackAxiomSlide, + StackChronicleSlide, + ChronicleLiveSlide, + StackMicrocosmSlide, + CalibrationLiveSlide, + StackThesisSlide, + StackCorollarySlide, + PartnershipSlide, + WhoUsesSlide, + FundingSlide, + PipelineSlide, + GraphStaticSlide, + CalibrationStaticSlide, + ScorecardStaticSlide, + SnapSimStaticSlide, + DistrictStaticSlide, + CrfbStaticSlide, + ThesisStaticSlide, + TariffStaticSlide, + ChronicleStaticSlide, + ValidationStaticSlide, + ], +}; diff --git a/slideshows/arnold-2026/config.ts b/slideshows/arnold-2026/config.ts index fb233740..f03beb23 100644 --- a/slideshows/arnold-2026/config.ts +++ b/slideshows/arnold-2026/config.ts @@ -8,6 +8,7 @@ import { FundingSlide, PipelineSlide, } from "./slides/ContextSlides"; +import AgendaSlide from "./slides/AgendaSlide"; import ScaleSlide from "./slides/ScaleSlide"; import { StackIntroSlide, @@ -30,12 +31,9 @@ import { TariffSlide, SocialSecuritySlide, SnapQcSlide, + AiIncomeShiftSlide, } from "./slides/ProgressSlides"; -import { - LoopsRecapSlide, - NextSlide, - QuestionsSlide, -} from "./slides/ClosingSlides"; +import { NextSlide, QuestionsSlide } from "./slides/ClosingSlides"; import { AppendixDividerSlide, GraphStaticSlide, @@ -52,20 +50,23 @@ import { export const arnold2026Config: SlideshowConfig = { id: "arnold-2026", - title: "Six projects, one chain of checks", + title: "Five projects, one chain of checks", description: "Private funder check-in — the stack, its feedback loops, and current progress", date: "2026-09-01", footerText: "Arnold Ventures check-in · September 2026", + centerNavBar: true, partnerLogo: { - src: "/logos/axiom-foundation-white.svg", - alt: "The Axiom Foundation", + src: "/logos/axiom-wordmark-bare-white.svg", + alt: "Axiom", + height: 24, }, speakers: [speakers["max-ghenis"]], private: true, slides: [ // Scene-setting TitleSlide, + AgendaSlide, PartnershipSlide, WhoUsesSlide, FundingSlide, @@ -74,7 +75,7 @@ export const arnold2026Config: SlideshowConfig = { // The problem, then the stack walk: each layer lit in turn, // with its live surface right after ScaleSlide, - StackIntroSlide, + { component: StackIntroSlide, builds: 6 }, StackPeSlide, ScorecardLiveSlide, StackAxiomSlide, @@ -94,7 +95,7 @@ export const arnold2026Config: SlideshowConfig = { SnapQcSlide, // Close - LoopsRecapSlide, + AiIncomeShiftSlide, NextSlide, QuestionsSlide, diff --git a/slideshows/arnold-2026/slides/AgendaSlide.tsx b/slideshows/arnold-2026/slides/AgendaSlide.tsx new file mode 100644 index 00000000..5c25a0eb --- /dev/null +++ b/slideshows/arnold-2026/slides/AgendaSlide.tsx @@ -0,0 +1,46 @@ +import Slide from "@/components/core/Slide"; +import SlideHeader from "@/components/layout/SlideHeader"; +import SlideTitle from "@/components/layout/SlideTitle"; + +const beats = [ + { + n: 1, + title: "The threads you've raised", + body: "The district grant, AI and the tax base, Social Security, SNAP payment errors, tariffs.", + }, + { + n: 2, + title: "Five projects, one chain of checks", + body: "The stack, each layer with the loop that grades it — and Axiom live.", + }, + { + n: 3, + title: "The near-term picture", + body: "The capabilities that decide how capital-taxation options score.", + }, + { n: 4, title: "Over to you", body: "Most of the time is yours." }, +]; + +export default function AgendaSlide() { + return ( + + + Today + + +
+ {beats.map((b) => ( +
+ + {b.n} + +
+
{b.title}
+
{b.body}
+
+
+ ))} +
+ + ); +} diff --git a/slideshows/arnold-2026/slides/AppendixSlides.tsx b/slideshows/arnold-2026/slides/AppendixSlides.tsx index f85d3f15..496d0fa2 100644 --- a/slideshows/arnold-2026/slides/AppendixSlides.tsx +++ b/slideshows/arnold-2026/slides/AppendixSlides.tsx @@ -93,7 +93,7 @@ export const TariffStaticSlide = () => ( url="axiom.org/tariff/schedule" src="/screenshots/arnold-2026/tariff-schedule.png" alt="Tariff schedule and coverage browser" - caption="13,790 rated HTS lines with statutory rate text and named coverage status — incomplete and not certified, and it says so." + caption="13,790 rated HTS lines with statutory rate text and named coverage status — incomplete and not certified." /> ); diff --git a/slideshows/arnold-2026/slides/ClosingSlides.tsx b/slideshows/arnold-2026/slides/ClosingSlides.tsx index e78a3dc5..c63f321b 100644 --- a/slideshows/arnold-2026/slides/ClosingSlides.tsx +++ b/slideshows/arnold-2026/slides/ClosingSlides.tsx @@ -91,44 +91,43 @@ export function NextSlide() { return ( - The near-term picture + The next twelve months

- Charlie's August note named the frame: near-term projects that - close gaps in tax data and modeling capability, toward capital-taxation - options “sufficiently ready to be enacted by the end of - 2028.” Three capabilities decide how those options score: + Three lanes — and where the near-term frame from Charlie's + August note sits in them.

- Capital income and wealth + Close the gaps that decide how scores land

- In the calibrated population itself — so distributional claims - about capital taxation rest on data anchored to administrative - totals. + Capital income and wealth in the calibrated population, realization + responses, incidence by state and district — the layer your + grant built, extended to the capital side, every estimate published + beside other models' where a published score exists.

- Realization responses + Finish the migration

- Behavioral machinery for capital gains — the difference - between a static score and one CBO would recognize. + PolicyEngine onto Axiom's encodings; congressional-district + rows into the calibration now under way; the Social Security + dynamics layer through its scoring protocol.

- Incidence by state and district + Grade everything

- The district layer your current grant built, extended to the capital - side — every estimate published beside other models' - where a published score exists. + Thesis forecasts under current law and under reforms, resolving + annually; the Scorecard growing beside every published score.

@@ -146,8 +145,8 @@ export function NextSlide() { export function QuestionsSlide() { return ( @@ -180,67 +184,56 @@ const pipeline = [ ask: "Public Benefit Innovation Fund, round 2", amount: "$1.64M", stage: "Finalist; decision expected early September", - odds: "70%", }, { ask: "NSF POSE Phase II", amount: "$1.5M", stage: "Submitting September 1", - odds: "30%", }, { ask: "NSF CSSI Elements", amount: "$600k", stage: "Submitted December 2025; late in FY26 cycle", - odds: "20%", }, { ask: "NSF CSSI Framework", amount: "up to $5M", stage: "Drafting for the December 1 deadline", - odds: "10%", }, { ask: "EIP × CIP Checks and Balances — two applications", amount: "$675k", stage: "Submitted July 21; in review", - odds: "40%", }, { ask: "Lightcone Commons (S-process) — two applications", amount: "~$3M", stage: "Submitted August 24; editable through ~October", - odds: "30%", }, { ask: "Stevens/AIRC policy-lab consulting (earned)", amount: "$150k / 6 mo", stage: "Contract initiated August 12; in Stevens contracting", - odds: "70%", }, { ask: "Invited application, AI-philanthropy foundation", amount: "$2M", stage: "Application due this week", - odds: "55%", }, { ask: "Multi-year institutional ask (Axiom core support)", amount: "—", stage: "Under review; pitch expected October", - odds: "50%", }, { ask: "Nuffield Foundation (UK)", amount: "£300k", stage: "Drafting", - odds: "40%", }, { ask: "CAPE / BEAMM EU consortium", amount: "—", stage: "Consortium bid pending; our share TBD", - odds: "30%", }, ]; @@ -248,7 +241,7 @@ export function PipelineSlide() { return ( - What's in process — with our odds + What's in process
@@ -264,9 +257,6 @@ export function PipelineSlide() { Stage - - Our estimate - @@ -281,9 +271,6 @@ export function PipelineSlide() { {row.stage} - - {row.odds} - ))} @@ -291,9 +278,8 @@ export function PipelineSlide() {

- Subjective probabilities, updated as we learn — the same - discipline Thesis applies to official statistics. Smaller and UK-side - asks not shown; full inventory on request. + Smaller and UK-side asks not shown; full inventory, with our probability + estimates, on request.

); diff --git a/slideshows/arnold-2026/slides/LayerSlides.tsx b/slideshows/arnold-2026/slides/LayerSlides.tsx index d706b0d7..29d15756 100644 --- a/slideshows/arnold-2026/slides/LayerSlides.tsx +++ b/slideshows/arnold-2026/slides/LayerSlides.tsx @@ -38,7 +38,7 @@ export const ScorecardLiveSlide = () => ( export const GraphRandSlide = () => ( diff --git a/slideshows/arnold-2026/slides/ProgressSlides.tsx b/slideshows/arnold-2026/slides/ProgressSlides.tsx index a241b23f..9011a092 100644 --- a/slideshows/arnold-2026/slides/ProgressSlides.tsx +++ b/slideshows/arnold-2026/slides/ProgressSlides.tsx @@ -1,6 +1,12 @@ "use client"; import LiveAppSlide from "./LiveAppSlide"; +import Slide from "@/components/core/Slide"; +import SlideHeader from "@/components/layout/SlideHeader"; +import SlideTitle from "@/components/layout/SlideTitle"; +import { resolveImageSrc } from "@/lib/base-path-image"; + +const BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH || ""; /** Progress since we last talked: districts, tariffs, Social Security, SNAP QC. */ @@ -14,27 +20,57 @@ function Card({ tag, children }: { tag: string; children: React.ReactNode }) { } export const DistrictSlide = () => ( - - - 436 congressional districts in the API and app — district maps, the - NJ child tax credit calculator's district tab, the state legislative - tracker. One national file, filtered by state and district. - - - The current default release is calibrated to national and state totals. - The August build carries the first 436 district population targets, with - IRS SOI district income following — full district rows are expected - in the next release. - - - Spending runs through December 31, with the final hand-off report and - dashboard link due then. - - + + +
+ Your grant at work — the district layer + + IARIW 2026, Brussels + +
+
+ +
+
+ + 436 congressional districts in the API and app — district maps, + the NJ child tax credit calculator's district tab, the state + legislative tracker. One national file, filtered by state and + district. + + + The current default release is calibrated to national and state + totals; the calibration now under way passes 30,000 targets, + congressional-district rows included. + + + The OBBBA analysis of household and geographic variation — + results by state and congressional district — and a methods + paper on the imputation machinery beneath the calibrated file. Final + hand-off report and dashboard link due December 31. + +
+ +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + OBBBA average household net income change in 2026, by congressional district +
+ OBBBA's average household net income change in 2026, by + congressional district — from the paper presented at IARIW. +
+
+
+
); export const TariffSlide = () => ( @@ -67,23 +103,29 @@ export const TariffSlide = () => ( export const SocialSecuritySlide = () => ( CRFB's benefit-taxation designs scored year by year through 2100 - — revenue, trust-fund split, and distribution — on this public - dashboard, with the paper alongside. + — revenue, trust-fund split, and distribution — on the public + dashboard at policyengine.org/us/taxation-of-benefits-reforms. - - The dynamic layer's first estimates are up at - microcosm.institute/dynamics — person-level histories, the machinery - that survivor-benefit composition and claiming questions actually need. + + The longitudinal layer is specified before it is built: one weight per + full trajectory, transitions as conditional models, sensitivity surfaces + instead of 75-year point forecasts, and a scoring protocol under which + every claim resolves against administrative publications, backtests with + leakage control, or computes exactly from statute. Contributions merge + only on held-out score. - - Hana's generation-level incidence view is on the roadmap; the $100k - cap's survivor composition is exactly what person-level histories - unlock. Next stop: Gopi Shah Goda's February LTSS convening. + + No trajectory has been scored against administrative outcomes yet, and the + page says so. The same discipline built the cross-sectional file (0.038 + holdout loss, against 0.317 for the enhanced CPS it replaced). + Person-level histories are what Hana's generation-level view and the + $100k cap's survivor composition run on; next stop, Gopi Shah + Goda's February convening. ); @@ -111,3 +153,30 @@ export const SnapQcSlide = () => (
); + +export const AiIncomeShiftSlide = () => ( + + + The Budget Lab's Slow, Moderate, and Rapid AI scenarios run through + PolicyEngine at 2030 — who gains, who loses, and what happens to the + tax base under each. + + + Published estimates of AI's growth effect differ by more than two + orders of magnitude. That is the case for scoring policy against many + futures rather than one — and for grading the calls afterward, which + is what Thesis does. + + + The write-up's own known limits: the incremental capital flow is + apportioned by households' existing realized capital income, where + the Budget Lab apportions by SCF-imputed assets. Closing that gap means + capital income and wealth in the calibrated population, plus realization + responses — the near-term picture that closes. + + +); diff --git a/slideshows/arnold-2026/slides/ScaleSlide.tsx b/slideshows/arnold-2026/slides/ScaleSlide.tsx index 0369ddfa..59c42b81 100644 --- a/slideshows/arnold-2026/slides/ScaleSlide.tsx +++ b/slideshows/arnold-2026/slides/ScaleSlide.tsx @@ -10,44 +10,59 @@ export default function ScaleSlide() { The scale of the scoring problem -
-
-
~50k
-
- atomic projections a year +
+
+
~50k
+
+ projections a year today
-
+
CBO's baseline series-years plus bill-year-category estimate - cells — extraordinary craft, carefully quality-controlled + cells, and about 1,000 public cost estimates — extraordinary + craft, carefully quality-controlled
-
-
~1,000
-
- public cost estimates a year +
+
>300k
+
+ if every bill had a score
-
- while each Congress introduces roughly 10,000 bills — an order - of magnitude more proposals than ever receive a score +
+ ~10,000 bills a Congress × 10 years × 3 budget + categories, as the floor — an order of magnitude more + proposals than ever get a formal public score
-
-
>300k
-
- cells, at minimum +
+
>10m
+
+ if every outcome had an estimate
-
- bills × years × headline categories, before - section-level detail, interactions, or uncertainty +
+ a fiscal score is one number; policy also moves poverty, inequality, + regions, take-up — a million public statistical cells × + a 10-year horizon, before uncertainty bands +
+
+
+
>100b
+
+ if you cross them +
+
+ bill × statistic × year cells — the hard question + is which deserve estimates, which deserve bands, and which are out + of domain
-
+

- Not a claim that every bill deserves a formal score — a scale - check on the information legislatures could ask for. Closing the gap - takes apparatus: encoded rules, calibrated data, and verification that + Democracy decides what to value; at this scale it can search the + design space for the policies that best move the indicators it named, + and grade every prediction against reality. Getting there takes + apparatus — encoded rules, calibrated data, verification that scales with both. That apparatus is what your grants have been building.

diff --git a/slideshows/arnold-2026/slides/StackWalkSlides.tsx b/slideshows/arnold-2026/slides/StackWalkSlides.tsx index a80c75d0..c74a1fe1 100644 --- a/slideshows/arnold-2026/slides/StackWalkSlides.tsx +++ b/slideshows/arnold-2026/slides/StackWalkSlides.tsx @@ -1,7 +1,8 @@ import Slide from "@/components/core/Slide"; import SlideHeader from "@/components/layout/SlideHeader"; import SlideTitle from "@/components/layout/SlideTitle"; -import Image from "@/components/core/BasePathImage"; +import { resolveImageSrc } from "@/lib/base-path-image"; +import { useSlideshowContextSafe } from "@/components/core/SlideshowContext"; /** * The stack walk: one overview with the six layers numbered in walk order, @@ -12,84 +13,85 @@ import Image from "@/components/core/BasePathImage"; type LayerKey = "corollary" | "thesis" | "policyengine" | "microcosm" | "axiom" | "chronicle"; -function Wordmark({ layer, faded }: { layer: LayerKey; faded: boolean }) { - const cls = faded ? "opacity-30 grayscale" : ""; - switch (layer) { - case "corollary": - return ( - Corollary - ); - case "thesis": - return ( - Thesis - ); - case "policyengine": - return ( - PolicyEngine - ); - case "microcosm": - return ( - Microcosm - ); - case "axiom": - return ( - Axiom - ); - case "chronicle": - return ( - Chronicle - ); - } +const BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH || ""; + +const marks: Record = { + corollary: { + src: "/logos/corollary-wordmark.svg", + alt: "Corollary", + height: 16, + }, + thesis: { src: "/logos/thesis-wordmark.svg", alt: "Thesis", height: 17 }, + policyengine: { src: "/logos/teal.svg", alt: "PolicyEngine", height: 20 }, + microcosm: { + src: "/logos/microcosm-wordmark.svg", + alt: "Microcosm", + height: 14, + }, + axiom: { src: "/logos/axiom-wordmark-bare.svg", alt: "Axiom", height: 15 }, + chronicle: { + src: "/logos/chronicle-wordmark.svg", + alt: "Chronicle", + height: 14, + }, +}; + +// Plain : next/image never completed loading these SVGs in the deck. +function Wordmark({ + layer, + faded, + scale = 1, +}: { + layer: LayerKey; + faded: boolean; + scale?: number; +}) { + const m = marks[layer]; + return ( + // eslint-disable-next-line @next/next/no-img-element + {m.alt} + ); } +const missions: Record = { + corollary: "the products that follow from the rules", + thesis: + "every government statistic, forecast under current law and every reform", + policyengine: "every policy score, replicated in the open", + microcosm: "society in miniature, calibrated to every official statistic", + axiom: "a computable layer for all law", + chronicle: "every official statistic, recorded as first published", +}; + +const loops: Record = { + corollary: "the market, on top of the checks below", + thesis: "every forecast graded against the official first print", + policyengine: + "every score set beside the published one, divergence explained", + microcosm: "every calibration target published with its error", + axiom: "compared against every independent engine and record", + chronicle: "every first print witnessed, checkable offline", +}; + +const loopUrls: Partial> = { + axiom: "axiom.org/validation", + chronicle: "chronicle.institute/verify", + microcosm: "microcosm.institute/calibration/dashboard", + policyengine: "policyengine.org/scorecard", + thesis: "app.thesisinstitute.org/calibration", +}; + const oneLiners: Record = { - corollary: "applications and delivery on top of the stack", + corollary: "products that follow from the rules — applications on top", thesis: "judgment and uncertainty — forecasts scored against reality", policyengine: "the model that composes them — any reform, any question", microcosm: "the world at micro level, calibrated to administrative truth", - axiom: "the rules, executable — every value cited, every clause dated", + axiom: "computable law — every value cited, every clause dated", chronicle: "official statistics as sourced, dated, machine-readable facts", }; @@ -139,10 +141,9 @@ function StackDiagram({ focus }: { focus?: LayerKey }) {
↑
↑
-
- - -
+ +
↑
+
); } @@ -198,47 +199,96 @@ function WalkSlide({ ); } -const walkOrder: { n: number; layer: LayerKey; name: string }[] = [ - { n: 1, layer: "policyengine", name: "PolicyEngine" }, - { n: 2, layer: "axiom", name: "Axiom" }, - { n: 3, layer: "chronicle", name: "Chronicle" }, - { n: 4, layer: "microcosm", name: "Microcosm" }, - { n: 5, layer: "thesis", name: "Thesis" }, - { n: 6, layer: "corollary", name: "Corollary" }, -]; +function IntegratedRow({ + layer, + visible, + dotted = false, +}: { + layer: LayerKey; + visible: boolean; + dotted?: boolean; +}) { + return ( +
+
+ +
+
+ {missions[layer]} +
+
+
{loops[layer]}
+ {loopUrls[layer] && ( +
+ {loopUrls[layer]} +
+ )} +
+
+ ); +} + +function Arrow({ dashed = false }: { dashed?: boolean }) { + return ( +
+ {dashed ? "┊" : "↑"} +
+ ); +} +/** Builds bottom-up, one project per step; the closing line is step 6. */ export function StackIntroSlide() { + const ctx = useSlideshowContextSafe(); + const step = ctx?.buildStep ?? 6; + const on = (n: number) => step >= n; return ( - Six projects, one stack + Five projects, one chain of checks -
- -
- {walkOrder.map((w) => ( -
- - {w.n} - -
- {w.name} - - {" "} - — {oneLiners[w.layer]} - -
-
- ))} -
-

- For each: where it stands, where it's going, and the feedback - loop that keeps it honest. The district grant funds - PolicyEngine's data layer — number 4. -

-
+
+
+
+
Mission
+
Feedback loop
+ + + + + + + + + +
+ +
+

+ The primitives of policy analysis in the AI era, each publishing its + own checks. Certified is computed, never set by hand, and the + dashboard publishes whatever the computation says. The district grant + funds PolicyEngine's data layer — Microcosm. +

); @@ -259,8 +309,9 @@ export const StackPeSlide = () => ( } ambition={ <> - Any reform, any question, on the fly — for analysts, agencies, and - AI agents, with the same rules and data underneath. + Replicate all policy scores with flexible open-source models — any + reform, any question, on the fly, for analysts, agencies, and AI agents, + with the same rules and data underneath. } loop={ @@ -268,7 +319,7 @@ export const StackPeSlide = () => ( The Scorecard: estimates from Urban, JCT, TPC, CBO, PWBM, and state fiscal notes beside PolicyEngine's counterpart — each pair labeled comparable, constructed, or concept mismatch. The metric is - explained divergence, not a scoreboard. + explained divergence. } /> @@ -277,7 +328,7 @@ export const StackPeSlide = () => ( export const StackAxiomSlide = () => ( @@ -289,9 +340,9 @@ export const StackAxiomSlide = () => ( } ambition={ <> - The reference encoding of the law — the layer models, government - tools, and AI agents all read from, instead of each re-implementing the - statute. + Encode the world’s rules — the reference encoding models, + government tools, and AI agents all read from, instead of each + re-implementing the statute. } loop={ @@ -299,7 +350,7 @@ export const StackAxiomSlide = () => ( About 900,000 household cases checked against independent calculators and records — PolicyEngine, SPSD/M, EUROMOD, SNAP QC files — on a public dashboard. Certified is computed, never set by hand; today - it reads 0 of 13, and publishing that honestly is the point. + it reads 0 of 13. } /> @@ -320,9 +371,11 @@ export const StackChronicleSlide = () => ( } ambition={ <> - Official statistics as sourced, dated, machine-readable facts — - recorded as published, never reconciled or modeled. The ground truth the - rest of the stack calibrates and grades against. + Collect all official statistics — sourced, dated, + machine-readable, recorded as published, never reconciled or modeled. + The ground truth the rest of the stack calibrates and grades against + — and, next, each fact tied to the concepts Axiom encodes, so the + record and the law share one vocabulary. } loop={ @@ -350,9 +403,10 @@ export const StackMicrocosmSlide = () => ( } ambition={ <> - Every cell of the simulated world traceable to the administrative total - it was calibrated against — households first, other unit families - (like import entries for tariff analysis) joining the same discipline. + Build society in miniature, calibrated to all official statistics + — every cell traceable to the administrative total behind it; + households first, other unit families (like import entries for tariff + analysis) joining the same discipline. } loop={ @@ -382,9 +436,9 @@ export const StackThesisSlide = () => ( } ambition={ <> - Forecast accuracy as the end-to-end test of the whole stack: when a new - country or program comes online, do resolved forecasts get better? The - track record is the product. + Forecast all government statistics, under current law and under reforms + — accuracy as the end-to-end test of the whole stack: when a new + country or program comes online, do resolved forecasts get better? } loop={ @@ -404,9 +458,9 @@ export const StackCorollarySlide = () => ( focus="corollary" status={ <> - Earliest stage — scoping. The delivery layer for parties whose - rules are private: contracts and agreements that reference public law, - situated against the open graph. + Earliest stage — scoping, as a for-profit. The delivery layer for + parties whose rules are private: contracts and agreements that reference + public law, situated against the open graph. } ambition={ @@ -418,9 +472,10 @@ export const StackCorollarySlide = () => ( } loop={ <> - Inherited from below: conformance checks against independent records, - with results issued only where the checks pass — never - self-certified. + The market: Corollary is the for-profit layer, so its products are + graded by whether anyone pays for them — on top of the checks + inherited from below, with results issued only where those checks pass, + never self-certified. } /> diff --git a/slideshows/arnold-2026/slides/TitleSlide.tsx b/slideshows/arnold-2026/slides/TitleSlide.tsx index a8f8b036..a92eaf66 100644 --- a/slideshows/arnold-2026/slides/TitleSlide.tsx +++ b/slideshows/arnold-2026/slides/TitleSlide.tsx @@ -32,7 +32,7 @@ export default function TitleSlide() {

- Six projects, + Five projects,