Repository navigation
feat: boundaries, entry to outbound (M24) - #54
Merged
Merged
Conversation
Phase 22 as §25: the member on edges to stubs (MM-6), boundary rules a model proposes, claims with checked evidence, reach as selection and the walk turned over. Milestones and Decisions move to §26 and §27. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
MM-6: an optional `member` string on invocation, access and reference edges (refused on every other kind), written first among the optional keys of the `x` record and used as the last edge-order tiebreak, absent first, so an edge without one encodes to the bytes it had. The integrity rule (`memberViolations`): a member only on those kinds and only to a stub. SCHEMA_VERSION 1.1.0; a 1.0.0 file decodes unchanged and every fixture re-encodes byte for byte. Schemas regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
MM-6 through the analyzer: `edge.member` in model.db (DB_VERSION 5, so an older cache is regenerated), the `member` column of the `dep` view, `"member": GLOB` on a JSON `edge`/`edgeIn` selector (one segment, so `insert*` matches `insert/2`; no text form, `edge:KIND>TERM` unchanged), the `member` conformance rule, and the subject's coverage counts `edgesToStubs`/`membersNamed`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
`validate` prints `members named: N of M edges to stubs` (PLAN §25.1) and names `members` among the rules its verdict covers. The dep view's documented copies gain the `member` column, as the docs test requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The shared Rust writer carries an optional `member` on an edge (MM-6): written first among the optional keys, the last edge-order tiebreak with the absent one first, and part of the edge's Hash/Eq, so the ruby and python dedup keeps two members on one line as two edges. The header states 1.1.0 only when an edge names a member, so a model that names none keeps its 1.0.0 bytes. Ruby and python build `member: None`; both suites and snapshots are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The pass rewrites entity measures only and copies every other line byte for byte; a unit test proves it for an edge naming the member of its stub (MM-6). No code change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
PLAN §25.1: until an extractor names the member of a stub, its profile says so. The six profiles with a shipped extractor (java, csharp, ts, ex, rb, python) gain the MM-6 note; each extractor step replaces it with the spelling it writes. The profiles page is regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The MM-6 entry in docs/model-metamodel.md holds the edge-order and schema-version decision with each encoder's evidence. METAMODEL §4 and §6, the edges, stubs and model.jsonl reference pages, the selector grammar, the validate output and the rule lists follow; the edges diagram shows `member` on invocation, access and reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
A source slice now carries `shown`, the file lines its text holds (the head and the tail of an elided slice), and `shownLine` reads one back. Never hashed, never rendered: no prompt byte moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Two field types join the closed grammar: `anchor` ({ file, line },
optionally `mentions` a sibling text field) and `entity` (an id), as a
field and as a list item. `keep` now receives what the prompt showed
(`shownBy`) and returns the record's metadata: an anchor off the shown
lines, one whose line lacks the mention, or an id the prompt never wrote
is dropped (list item) or nulled (block field, nullable by rule), and
`checks.*` metadata counts it. A level declaring a checked field gets an
Evidence section in its system message; a definition using neither type
keeps its digest, answer digest and system messages (pinned).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
`claimsOf` turns the records of several walk stores into one flat `codegraph.claims/1` document: one claim per declared field of a record, with its walk, the walk's version and digest, the answering model, the confidence, and what a checked field lost (from the checks metadata). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Unions every <model>.N.walk.db beside the model, each opened as a reader of the walk its file name says (query_only, nothing written), and prints the claims per entity, or the codegraph.claims/1 document with --json; --id keeps one entity's. Explain's store is not read. A store that cannot be read refuses the whole answer, named. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The anchor and entity field types, what a prompt is said to show, the nullability rule, the checks metadata, the claims reader and its document with a worked example; the website's walk-definition page gains the checked fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
In the prompt of a level that declares an anchor, each shown source line carries its file line number, right-aligned, then " | "; an elided middle keeps its marker behind a blank number column. The Evidence rule says an anchor's line is that number. The spec declares it (`WalkSpec.numbered`); the slice is unchanged, so a mention is checked on the file's own line, never on its number. Any other level, every pre-M24d definition and explain keep their prompts byte for byte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
M24a, the core half: MM-6, the member on an edge to a stub. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
codegraph.boundaries/1 (PLAN §25.2): parse and check a boundaries file (every fault with its path and the valid words; an M23 stack table read as inbound alone), apply it to a graph (the entry inventory of the three layers of entry-points.sql and the outbound rows, each with the rule that found it under a stable name), and the forward slice on the three inferences of M23c with a depth bound and breadth-first distances. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
On the five fixtures with a stack table, the page's table and two overlap cases, the inventory equals entry-points.sql row for row and in order, from model.jsonl and from the store; the slice from every entry equals reach.sql on facts, candidates (dispatch removed) and dispatch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
An invocation or reference to a stub names the member its site writes, name/arity with the arity the site really has (MM-6): remote calls and macros, piped calls, captures, locals an import of the stub provides, `use` (__using__/1), defdelegate, remote types in typespecs (t/0) and --trace calls. `:ets.lookup/2` and `:ets.update_counter/4` on one table are now told apart. The writer puts `member` right after `p`, sorts it last (absent first, then UTF-16), and writes schemaVersion 1.1.0; the trace's known-edge signature includes the member. Snapshot regenerated by the escript: only the header version and 35 member keys move (no entity line, no edge to a corpus entity, no reorder); the metrics snapshot follows. validate: members named 35 of 38 edges to stubs, the 3 being modules written as values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The ex profile note replaces "names no member yet" with its spelling per site kind and what names none; the profile test checks the spelling. docs/elixir-extractor.md and the website reference say the same; profiles.md regenerated with website/scripts/profiles-page.mjs (only the two Elixir notes move). capabilities.md does not move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
MM-6: an invocation, access or reference to a stub carries `member`, the simple name the site wrote (`add`, `out`, `parseInt`, `getLogger` on a field initializer's reference). A constructor call, a class literal and a type use name none; an edge to a corpus entity never does. `member` joins the Edge record (so the LinkedHashSet splits two members at one site) and AccessKey (a read and a write of one member at one site stay one access). The writer puts it right after `p` and sorts by it last, absent first; the header moves to schema 1.1.0. The fixture snapshot moves by the header, 20 member keys and one split: Reporting.first's `values.isEmpty() ? null : values.get(0)` is two invocations of List (188 -> 189 edges). The metrics snapshot copies the same lines. Tests that pinned 188/177/183/60 restate what they guard; the explain goldens are NOT updated (reported). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The Java profile note replaces "names no member yet" with the spelling (the simple name), every site kind that names a member and every one that names none, the counts measured on spring-petclinic, and the Spring Data gap: a call to a method a corpus repository inherits from JpaRepository yields no edge, so names nothing. The profiles test holds the new note for java; the other five keep the old one. The website profiles page is regenerated, the Java extractor page gains a section and the note, and the pages quoting the fixture state 189 edges and `members named: 20 of 61`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
analyze --report entrypoints|outbound|reach --boundaries FILE: the file is read and refused with every fault before a model is opened; the reports read the base graph, so the .jsonl and the store print the same rows; a flag a report would not read is refused. A modules rule now names the stub or any container above it (an Elixir module is a type). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The outbound header agrees in number; the report test drops whatever member the Elixir fixture carries before writing its own, so it holds when the extractor starts naming members. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The reference page (the file, the vocabularies, rule names, the three reports, a Phoenix and a Spring example run on the fixture and on PetClinic), held to the parser and the constants by a test; the design record docs/boundaries.md; the commands in CLAUDE.md; the Stimuli page names the one-command reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Since the Java extractor names members, Reporting.first's `values.isEmpty() ? null : values.get(0)` is two invocations of the List stub; the prompt rendered a duplicate "- List of List (external)" line and moved the fingerprints of Reporting.first, type Reporting and module com.acme.order in the explain goldens. The domain facts now carry the edge's `member` (data only), and collectUnits folds operation facts equal on everything but `member` into one, dropping the member: the template rule, the pack, the facts digest, the fingerprint and the token estimate see what they saw before. Facts that differ by anchor, flags or provenance, and two byte-identical facts, stay as they were. No golden file changes: the 17 explain golden tests go green on their committed bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
M24b: codegraph.boundaries/1 and the entrypoints, outbound and reach reports. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
A field of a stub struct is one `access` to the stub module per field
written at the site, `member` the field's name as written (`valid?`),
isRead in a pattern, isWrite in a construction or an update, as for a
corpus struct. Nothing is left under `field_external`: removed.
The fixture gains AcmeOrder.Line.clear_errors/1 (a pattern on and an
update of %Ecto.Changeset{}): the snapshot adds 2 entities, 2 accesses
and 2 struct references, and line.ex's file and module grow (1-28,
sloc 23); metrics, vocabulary.json and the counts follow. validate:
members named 37 of 42 edges to stubs.
The elixir explain golden moves with the fixture source, not `member`:
- a new unit, clear_errors/1;
- Order's prompt (the Order/Reporting/Line cycle) gains Line's lines;
- 18 dependents follow through the Merkle chain, 0 unexplained.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
docs-boundaries.test.ts pairs backtick fences only: the signature's four-backtick fence inside a tilde block left one open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
M24d, second half: a walk definition may show the member an edge to a stub names (context.members), and three definitions ship in plugin/walks/: entry-residue, outbound-systems and process-state. Explain refuses the key and its prompts keep their bytes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
IN-12 is the member opt-in and the shipped walks on the integration branch; the down walk and context.quotes take IN-13. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
As-built notes for the Ruby and Python extractor step and for the second half of M24d: the member opt-in and the three definitions in plugin/walks, with what section 25.4 asks that they do not express. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
A receiver Roslyn cannot bind is a reference to its stub in <unresolved>; it now names the one name written right after it (`JsonConvert.SerializeObject(x)` -> `SerializeObject`, generic arguments dropped). A longer chain names only that first name; a bare unbound type use, `new Unbound()`, typeof, attributes and generic arguments still name none. Two members of one unbound receiver at one site are two edges. The fixture moves by one member key (LedgerAdapter.cs:24): validate's C# pair is [17, 119]. Profile note, extractor page, README and the profiles page state the rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
M24f: a walk's order turned over (direction: "down", two layerings, hubs, the cone an edit re-asks) and context.quotes, which reads another walk's store read-only. An up walk's fingerprints and explain's prompts keep their bytes. Conflicts, all with m24/d-walks, both sides kept: the context keys in packages/insights/src/definition.ts (members beside maxDependents and quotes, in the schema, the canonical form, the fingerprint input and explain's refusals), an import in prompt.ts, and two pages: docs/insights.md (IN-12 then IN-13) and the walk-definition reference, where the fingerprint paragraph and the explain paragraph now state both. CLAUDE.md gains the down walk's command line. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The digest boundaries propose writes is checked and ignored: a file without it parses as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
M24a, C#: the extractor names the member on edges to stubs (17 of 119 on the fixture), an unbound receiver included: the one name written right after it. member joined the hand-listed merge key, so two edges of the fixture split (292 to 295). No explain golden moves. This is the last of the six extractors. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
As-built notes for the C# extractor step, which closes M24a, and for M24f; MM-6 states the spelling C#, Ruby and Python settled on. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
inbound.concepts and outbound.concepts match the concept label of an explain record, handed to applyBoundaries as a projection (entity id to label). Without one a concept rule is not evaluated: no row, and evaluated false in its count. The inbound rows form a last layer, concept, that yields only to a classified row; an outbound concept row is a labelled type with no edge. entry:unclassified leaves out an entity a concept classifies. The outbound table prints a null stub as a dash, and names the concept layer only for a file holding a concept rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Censuses of the graph shown to a model as material, its answer through a strict schema, and the three checks on receipt: names from the census, every rule run, a person's file never overwritten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
The walk definition key sample (IN-14): N rows per inbound rule, drawn by a hash of the ids. Absent, it emits nothing and moves no digest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Per rule, the confirmed share of its answered sample; a rule under the threshold is listed for removal, a broad one with no answer is unaudited. Nothing is rewritten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
analyze --report entrypoints|outbound|reach, walk and explain open explain's store beside the model as a reader (M16c: checked first, no migration, query_only, an older store refused) when the boundaries file holds a concepts rule, and hand applyBoundaries the type labels. --insights FILE names another store. Without a store the rules are not evaluated: the reports say so and why; a walk naming such a rule is refused. A label explain's vocabulary cannot hold is a usage error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
BD-11 records the projection, the concept layer, the row with no edge, the reader and what not evaluated means. The website's boundaries page gains the two maps, held to explain's concept vocabulary by a test; the analyze, walk and explain pages and CLAUDE.md gain --insights FILE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
N rows per inbound rule, sampled by a hash of the ids, asked blind: is this an entry point, of which kind, and the line that wires it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
propose shows a model the censuses in two calls, states the estimate and asks first, and never replaces a file a person edited: .proposed and a diff instead. audit reads the audit walk's store as a precision per rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
BD-10, IN-14 (the sample key), the CLI reference page, the proposal header on the boundaries page, and CLAUDE.md's commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
M24e: codegraph boundaries propose (a model writes a boundaries file from censuses; three checks on receipt; a person's file is never overwritten) and its audit, a sampled walk shipped in plugin/walks with a precision reader. No provider was called: fake completer only. Conflicts, all with m24/f-down, both sides kept: the sample key beside direction and layering in packages/insights/src/definition.ts (type, schema, parse, canonical form, explain's refusals), the list of valid keys in definition.test.ts, and docs/insights.md (IN-13 then IN-14). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
An inbound concepts rule now finds the uncalled operations of a labelled type, as supertypes and types rules do: one meaning of entry for every type-level rule. Taking every operation made six called controller helpers entries on PetClinic. An uncalled operation keeps its unclassified no caller row beside the concept row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
As-built notes for the proposal, its three checks, the header digest and the audit walk, with what is guessed until the live runs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Brings m24e's proposal key and BD-10, the down walk and C#. Conflicts kept both sides: BD-10 before BD-11, the propose and audit lines of CLAUDE.md after the concepts lines, WalkRun's concepts beside down and quotes, --insights in the walk synopsis that gained the down flags. propose.ts narrows a dropped system rule to modules or types: a proposal never holds a concepts rule, and OUTBOUND_MAPS now has one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
M24g: inbound.concepts and outbound.concepts in a boundaries file, matched on the concept label of an explain record. The analyzer takes the labels as a projection and reads no store; the CLI opens the store beside the model read-only. Without a store a concepts rule is counted as not evaluated. This is the last of the seven steps of the phase. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
As-built notes for the concepts rules: the closed labels, the projection, not evaluated versus found nothing, the row shapes, the read-only proof and the PetClinic measurement. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
codegraph | 6b1786c | Commit Preview URL Branch Preview URL |
Nov 29 2026, 05:17 PM |
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.
M24 (PLAN.md §25, "Boundaries"): codegraph can now say where a system is entered and where it leaves, from rules a person owns, and walk the graph from those points. All seven steps, M24a to M24g, are in this one PR. §25.7 has an "As built" note per step, with every place the result differs from the plan.
What it adds
The model:
memberon edges to stubs (M24a, MM-6)invocation,accessorreferenceedge whose target is a stub may name the member it uses (member, written afterp). A producer that names members writesschemaVersion1.1.0.edgeMultiplicity: "set" | "repeat", pinned to the six snapshots by a test.collectUnitsdropsmemberand folds the split edges back, so prompts and paid fingerprints do not move.Rules and reports (M24b, BD-1 to BD-8)
codegraph.boundaries/1file states what counts as an entry (inbound) and what counts as another system (outbound), with awhyper rule.codegraph analyze --boundaries FILE --report entrypoints|outbound|reach, as text or--json. An uncalled operation no rule classifies is listed as unclassified, never hidden.Walking from the boundaries (M24c, IN-11)
entry,entry:KIND,entry:unclassified,outbound,outbound:KIND,rule:NAME.rootsandreach { maxDepth, via }; the plan is priced by depth and the budget follows distance. Flags--roots,--max-depth,--via,--boundariesonwalkandexplain.Checked answers and shipped walks (M24d, IN-12)
anchorandentityanswer fields are checked against the model on receipt;insights --claimsreads them back.context.members: trueshows a walk the members its unit uses. Explain refuses the key.plugin/walks/:entry-residue,outbound-systems,process-state, an example boundaries file and a README.Proposing the rules (M24e, BD-10, IN-14)
codegraph boundaries proposedrafts a boundaries file from eight censuses of the model, two model calls per language, three checks on receipt. It writes the file, orFILE.proposedwith a diff when a person has edited it since (the header carries a digest).codegraph boundaries auditsamples each rule's rows (sample: { perRule: N }) and reports precision per rule against a 0.8 threshold.Walking down (M24f, IN-13)
direction: "down": each operation is asked with what reaches it first (## What reaches this),layering: "nearest" | "all-callers",context.maxDependents(default 20).context.quoteslets one walk quote another's answers.Rules over insights (M24g, BD-11)
inbound.conceptsandoutbound.conceptsclassify by explain's closed concept labels (applicationService,repository, …), read from the insights store, which is opened read-only.--json. A claim never becomes a fact: nothing is written back.Docs:
docs/boundaries.md(BD-1 to BD-11),docs/insights.md(IN-10 to IN-14), MM-6 indocs/model-metamodel.md, the website's walk-definition and profile reference pages, each extractor's page, CLAUDE.md, and PLAN §25 and §26.Before merging
process-stateon the Elixir fixture,boundaries proposeon PetClinic and Plausible, the down walk on PetClinic. Until then these values are guesses: propose's 1 500 output tokens per call, the census bounds, the broad-rule share of 0.25,maxDependents20, and the down prompt's token cost.owners.save(owner)on PetClinic has no edge at all:saveis inherited fromJpaRepositorythrough a corpus interface, and without a classpath the call has no declaring type to name.outbound.concepts: { "repository": "database" }finds the three repository interfaces, but cannot tell a read from a write. Closing it needs a new resolution rule in the Java extractor; not in this PR.entry-residueleaves out wiring files (no rule kind names them).process-stateselects by edge terms, because on Elixiruse GenServeris a call of__using__/1, not a supertype edge.MegaCorp.Ledger.X()namesLedger.cece4e7,f16bb36,5c64a22), against the "under 50" rule. Left as they are; fixing them means rewriting history.Verification
On the merged tree (
6b1786c):pnpm -r test: CLI 2 071 of 2 071, insights 619 (1 skipped), core 618, vocabulary 364, viz 143, navigator-ui 124, city 98, llm 96, extractors/typescript 82, scm 56, navigator 45. Analyzer 941 of 942:scale.test.tstimes out at 5 s under the parallel run and passes alone (2 of 2), as M21 recorded.pnpm -r buildgreen, the website included once the Hextra submodule is initialized.main.pnpm run gen:schemaschanges nothing../test.sh --java,--csharp,--elixir,--ruby,--python,--metrics: all checks passed.main, only the five underpackages/cli/test/golden/explain/elixirdiffer, from the Elixir fixture gaining a function. No other explain golden moved, which is what the fold incollectUnitsis for.🤖 Generated with Claude Code
https://claude.ai/code/session_01PKCVh1VXWEqBhGUFQftJAY