circle-ir-ai 4.42.0 → 4.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/blast-radius/radius.d.ts +1 -1
  3. package/dist/blast-radius/types.d.ts +1 -1
  4. package/dist/blast-radius/types.d.ts.map +1 -1
  5. package/dist/bom/usage.d.ts +2 -0
  6. package/dist/bom/usage.d.ts.map +1 -1
  7. package/dist/bom/usage.js +2 -2
  8. package/dist/bom/usage.js.map +1 -1
  9. package/dist/change-scope/canonical.d.ts +35 -0
  10. package/dist/change-scope/canonical.d.ts.map +1 -0
  11. package/dist/change-scope/canonical.js +84 -0
  12. package/dist/change-scope/canonical.js.map +1 -0
  13. package/dist/change-scope/index.d.ts +73 -0
  14. package/dist/change-scope/index.d.ts.map +1 -0
  15. package/dist/change-scope/index.js +1503 -0
  16. package/dist/change-scope/index.js.map +1 -0
  17. package/dist/change-scope/scope.d.ts +63 -0
  18. package/dist/change-scope/scope.d.ts.map +1 -0
  19. package/dist/change-scope/scope.js +725 -0
  20. package/dist/change-scope/scope.js.map +1 -0
  21. package/dist/change-scope/side.d.ts +161 -0
  22. package/dist/change-scope/side.d.ts.map +1 -0
  23. package/dist/change-scope/side.js +148 -0
  24. package/dist/change-scope/side.js.map +1 -0
  25. package/dist/change-scope/slice-rules.d.ts +129 -0
  26. package/dist/change-scope/slice-rules.d.ts.map +1 -0
  27. package/dist/change-scope/slice-rules.js +190 -0
  28. package/dist/change-scope/slice-rules.js.map +1 -0
  29. package/dist/change-scope/types.d.ts +191 -0
  30. package/dist/change-scope/types.d.ts.map +1 -0
  31. package/dist/change-scope/types.js +41 -0
  32. package/dist/change-scope/types.js.map +1 -0
  33. package/dist/dead-code/engine.d.ts +8 -0
  34. package/dist/dead-code/engine.d.ts.map +1 -1
  35. package/dist/dead-code/engine.js +3 -3
  36. package/dist/dead-code/engine.js.map +1 -1
  37. package/dist/index.d.ts +3 -1
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +4 -1
  40. package/dist/index.js.map +1 -1
  41. package/dist/mcp/index.d.ts +7 -1
  42. package/dist/mcp/index.d.ts.map +1 -1
  43. package/dist/mcp/index.js +10 -1
  44. package/dist/mcp/index.js.map +1 -1
  45. package/dist/mcp/tools/change-scope.d.ts +35 -0
  46. package/dist/mcp/tools/change-scope.d.ts.map +1 -0
  47. package/dist/mcp/tools/change-scope.js +112 -0
  48. package/dist/mcp/tools/change-scope.js.map +1 -0
  49. package/dist/scope/product-paths.d.ts +8 -3
  50. package/dist/scope/product-paths.d.ts.map +1 -1
  51. package/dist/scope/product-paths.js +22 -3
  52. package/dist/scope/product-paths.js.map +1 -1
  53. package/dist/specifica/evidence-extractor.d.ts +4 -0
  54. package/dist/specifica/evidence-extractor.d.ts.map +1 -1
  55. package/dist/specifica/evidence-extractor.js +39 -9
  56. package/dist/specifica/evidence-extractor.js.map +1 -1
  57. package/dist/specifica/file-routes.d.ts +10 -3
  58. package/dist/specifica/file-routes.d.ts.map +1 -1
  59. package/dist/specifica/file-routes.js +52 -9
  60. package/dist/specifica/file-routes.js.map +1 -1
  61. package/dist/specifica/generator.d.ts.map +1 -1
  62. package/dist/specifica/generator.js +13 -2
  63. package/dist/specifica/generator.js.map +1 -1
  64. package/dist/specifica/index.d.ts +1 -1
  65. package/dist/specifica/index.d.ts.map +1 -1
  66. package/dist/specifica/index.js +1 -1
  67. package/dist/specifica/index.js.map +1 -1
  68. package/dist/specifica/java-erp-entries.d.ts +130 -0
  69. package/dist/specifica/java-erp-entries.d.ts.map +1 -0
  70. package/dist/specifica/java-erp-entries.js +867 -0
  71. package/dist/specifica/java-erp-entries.js.map +1 -0
  72. package/dist/specifica/learned-tree.d.ts +2 -0
  73. package/dist/specifica/learned-tree.d.ts.map +1 -1
  74. package/dist/specifica/learned-tree.js.map +1 -1
  75. package/dist/specifica/level-design.d.ts +41 -4
  76. package/dist/specifica/level-design.d.ts.map +1 -1
  77. package/dist/specifica/level-design.js +847 -24
  78. package/dist/specifica/level-design.js.map +1 -1
  79. package/dist/specifica/library-surface-java.d.ts +49 -0
  80. package/dist/specifica/library-surface-java.d.ts.map +1 -0
  81. package/dist/specifica/library-surface-java.js +235 -0
  82. package/dist/specifica/library-surface-java.js.map +1 -0
  83. package/dist/specifica/library-surface-python-rust.d.ts.map +1 -1
  84. package/dist/specifica/library-surface-python-rust.js +13 -0
  85. package/dist/specifica/library-surface-python-rust.js.map +1 -1
  86. package/dist/specifica/library-surface.d.ts +4 -1
  87. package/dist/specifica/library-surface.d.ts.map +1 -1
  88. package/dist/specifica/library-surface.js +5 -2
  89. package/dist/specifica/library-surface.js.map +1 -1
  90. package/dist/specifica/modules.d.ts +20 -1
  91. package/dist/specifica/modules.d.ts.map +1 -1
  92. package/dist/specifica/modules.js +403 -66
  93. package/dist/specifica/modules.js.map +1 -1
  94. package/dist/specifica/provenance.d.ts +6 -2
  95. package/dist/specifica/provenance.d.ts.map +1 -1
  96. package/dist/specifica/provenance.js +8 -3
  97. package/dist/specifica/provenance.js.map +1 -1
  98. package/dist/specifica/python-entries.d.ts +96 -0
  99. package/dist/specifica/python-entries.d.ts.map +1 -0
  100. package/dist/specifica/python-entries.js +475 -0
  101. package/dist/specifica/python-entries.js.map +1 -0
  102. package/dist/specifica/python-modules.d.ts +64 -0
  103. package/dist/specifica/python-modules.d.ts.map +1 -0
  104. package/dist/specifica/python-modules.js +433 -0
  105. package/dist/specifica/python-modules.js.map +1 -0
  106. package/dist/specifica/rule-facts.d.ts +105 -0
  107. package/dist/specifica/rule-facts.d.ts.map +1 -0
  108. package/dist/specifica/rule-facts.js +512 -0
  109. package/dist/specifica/rule-facts.js.map +1 -0
  110. package/dist/specifica/spec-generator.d.ts +3 -1
  111. package/dist/specifica/spec-generator.d.ts.map +1 -1
  112. package/dist/specifica/spec-generator.js +13 -7
  113. package/dist/specifica/spec-generator.js.map +1 -1
  114. package/dist/specifica/spec-tree.d.ts +48 -0
  115. package/dist/specifica/spec-tree.d.ts.map +1 -1
  116. package/dist/specifica/spec-tree.js +257 -51
  117. package/dist/specifica/spec-tree.js.map +1 -1
  118. package/dist/specifica/state-machines.d.ts +85 -0
  119. package/dist/specifica/state-machines.d.ts.map +1 -0
  120. package/dist/specifica/state-machines.js +1073 -0
  121. package/dist/specifica/state-machines.js.map +1 -0
  122. package/dist/specifica/throw-scopes.d.ts +94 -0
  123. package/dist/specifica/throw-scopes.d.ts.map +1 -0
  124. package/dist/specifica/throw-scopes.js +757 -0
  125. package/dist/specifica/throw-scopes.js.map +1 -0
  126. package/dist/specifica/tree-types.d.ts +24 -2
  127. package/dist/specifica/tree-types.d.ts.map +1 -1
  128. package/dist/specifica/tree-types.js.map +1 -1
  129. package/dist/specifica/ts-entries.d.ts +137 -0
  130. package/dist/specifica/ts-entries.d.ts.map +1 -0
  131. package/dist/specifica/ts-entries.js +616 -0
  132. package/dist/specifica/ts-entries.js.map +1 -0
  133. package/dist/specifica/ts-rule-sources.d.ts +51 -6
  134. package/dist/specifica/ts-rule-sources.d.ts.map +1 -1
  135. package/dist/specifica/ts-rule-sources.js +499 -38
  136. package/dist/specifica/ts-rule-sources.js.map +1 -1
  137. package/dist/specifica/types.d.ts +19 -1
  138. package/dist/specifica/types.d.ts.map +1 -1
  139. package/dist/specifica/use-cases.d.ts +36 -6
  140. package/dist/specifica/use-cases.d.ts.map +1 -1
  141. package/dist/specifica/use-cases.js +350 -46
  142. package/dist/specifica/use-cases.js.map +1 -1
  143. package/dist/specifica/validation-constraints.d.ts +36 -0
  144. package/dist/specifica/validation-constraints.d.ts.map +1 -0
  145. package/dist/specifica/validation-constraints.js +184 -0
  146. package/dist/specifica/validation-constraints.js.map +1 -0
  147. package/dist/utils/file-skip.d.ts.map +1 -1
  148. package/dist/utils/file-skip.js +19 -1
  149. package/dist/utils/file-skip.js.map +1 -1
  150. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,91 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.44.0] - 2026-12-02
11
+
12
+ Spec recovery 0.3, engine part (SR3-E1–E6, E9, M1, merged through #1246): the learned spec tree on outside code finds modules from more declared manifests, links between them, Python, TypeScript, Java and Java ERP (iDempiere) entry points, rule facts with conditions, codes and plain words, and state machines from Prisma, Django, Python and Java enums; plus the spec-recovery measure kit. Rule conditions come from the syntax tree and are no longer inverted or cut short (SR3-E10, #1247). Also the change scope of a pull request (A7, #1228), unique keys for repeated throws (#1187) and Python raise rules over multi-line calls (#1221). Still on circle-ir 4.26.0. Learned rule keys change where a throw is now read as a guard, where duplicates are grouped, and where one symbol repeats an identical throw.
13
+
14
+ ### Added
15
+ - **Change scope of a pull request, `changeScope(baseRoot, headRoot, anchors)` (techspec end-to-end-model plan, task A7, D29, D30 and D32; C4 0.7.1 §15–§16, techspec#900).** Base and head as two git checkouts, each walked over **git's tracked files** (`git ls-files -s`: symlinks by link text and gitlinks by commit, as git stores them; untracked `dist/` and `node_modules` are not in the repository) and **read as stored**: a changed path is one whose object id or mode differs in the index, and content is read from the object store with one `git cat-file --batch` (never `--filters`), so no checkout conversion (`core.autocrlf`, `eol`, a clean filter) moves an answer and the working tree's bytes are not read (review 6147162752 S1); a mode-only change (`chmod +x`) is a changed path (S2) and analyzed with circle-ir's graph builders, tsconfig path aliases and workspace imports resolved first (`blast-radius/import-map.ts`). Answers `change-scope@0.1`: `changed[]` (`changed` · `added` · `removed` · `moved`, from `detectMoves`), every tracked path whose stored object or mode differs in `changed_files[]`, `reached[]` with `hops` and `tier`, `impacted_tests[]` selected by file closure (`files[]`, `reaches[]`, `hops`/`tier` when a changed declaration is reached), `declarations{}`, and per anchor (`at` decides reach, `reads[]` the slice) `reached`, `complete`, `via[]` and slice digests at base and head, then `scope_digest` over the JCS form. An empty anchor list and unknown keys are refused.
16
+ - **0.1 reuses only self-contained reads (D32).** `decl_text`, `file` and `config_key` anchors are reused when their digest is unchanged. When any file changed, every `module_closure` and `route` anchor answers `complete: false` with `reason: "closure_reuse_deferred"` and re-runs, its digests, `reached` and `via[]` informational; `impacted_tests[]` is advisory (every entry `unproven`) and the answer carries `select_all: true`. The deferral does not count against the top-level `complete`, which in 0.1 is the AND of the other anchors and of a walk that was not cut; it hides only itself: a deferred anchor that is also incomplete for another reason (a read that names nothing, a self-contained read's reason, a link it cannot follow) makes the top level `false` (S3). An empty diff reuses everything, except an anchor that is incomplete for a reason that holds whatever changed: a read that names nothing (N2), a link that leaves the tree or bytes that cannot be read (B2). **D30's closure reuse below is experimental, for 0.2, behind `CIRCLE_IR_AI_CHANGE_SCOPE_CLOSURE_REUSE=1` (or `closureReuse: true`), off by default**; the flag's state is bound into `rules`.
17
+ - **git runs read-only:** `-c core.fsmonitor=false`, `core.hooksPath=/dev/null`, `--no-optional-locks`, every transport denied (`protocol.*.allow=never`) and `GIT_NO_LAZY_FETCH=1`, no inherited `GIT_*` variables, so a checkout's own config runs no command (review 6146528338 S3) and a partial clone's missing blob is not fetched: it cuts the walk.
18
+ - **Read shapes of 0.1 (D29): slices are bytes, the facts only choose the files.** `decl_text` (the declaration's stored bytes from its first decorator, comments included, never decoded; a Java declaration from the start of its own syntax node, matched by kind and exact position (the node starts where circle-ir's declaration does, or declares its name there, as a field's declarator does), so a field of several declarators, or one whose initializer or line declares a class, a method or a field of the same name, keeps its own annotations and modifiers, which are its `"decorators"` column even on the declarator's own line; in TypeScript, Python and Go the decorated node, or a first child of it on its line (comments skipped, no body entered), must also start exactly where the declaration does, so a member on a decorated class's line is not widened to the class's decorators; positions are read from the text the graph is built on (tsconfig `paths` rewrites included); and a declaration that no syntax node spans exactly has no bytes, so its read is incomplete rather than its bare lines, as is every declaration in a TypeScript or JavaScript class body where a line ends with `static`, `get` or `set` that tree-sitter reads as a field of that name (tsc reads a modifier of the next member, so the decorators land on the wrong member); a Go declaration from the first `//go:` or `//export` directive in the comments right above it, also in the `"decorators"` column; review 6147162752 B1), `file` (stored bytes and mode; a symlink by its link text at every hop and the bytes of the tracked file it lands on, resolved hop by hop against the listing, directory links on the way included; a link that leaves the tree, passes through or lands on anything but a tracked directory or file (`nothere/../conf/x` included), lands on a submodule, or loops makes the read incomplete, B2), `module_closure` (the module and every in-repository module it reaches by imports, `import x = require()` included, every conditional target of `exports`/`imports`, same-package files for Java and Go, and the files its declarations' graph rows point to, to a fixpoint, with imported non-code files, stylesheet imports and the build and tool configuration over each module), `route` (the closure of every module on the registration chain from an app entry, with the HTML file that names it) and `config_key` (= `file`). No shape takes parameters.
19
+ - **Reuse needs positive proof (D30; behind the flag in 0.1).** For `module_closure` and `route` reads an anchor is `complete` only when every changed file is in the slice's bytes, or is source in a fully resolved language (TypeScript, JavaScript, Python, Java, Go), parsed completely and not configuration by name, while nothing in the closure uses a loading form the engine does not follow (a computed `import()`/`require()`, `import.meta.glob`, `require.context`, workers, `importlib`/`__import__`, `sys.path` changes, `Class.forName`, `ServiceLoader`, Spring component scan, `//go:embed`, `plugin.Open`, an inline HTML script). `decl_text`, `file` and `config_key` reads are self-contained.
20
+ - **In-repository names resolve inside the repository (D30):** a `package.json` `name` or a `workspace:`/`file:`/`link:`/`portal:` dependency, through every `exports`/`main` target, built `dist/` targets mapped to their source; a Python module or package directory anywhere in the tree; a Java package prefix of a Java, Kotlin, Scala, Groovy or proto package in the tree. A bare specifier no `package.json` from the importing file's package up to its workspace root declares is `missing` too. Stylesheets follow every string of an `@import` list, `@use`, `@forward`, `@require`, `composes … from` and Less options; Sass built-ins and `.d.ts`-only imports resolve. Angular and Nx `fileReplacements` are followed.
21
+ - **Loading by convention (D30).** A changed source file that no followed import, reference or graph row of any tracked file reaches (the orphan rule), and a changed file under the convention roots of a framework present in the tree (`CONVENTIONS`: Django settings strings and app modules, Spring component scan, Next.js, Nuxt, SvelteKit, Remix, Astro, Gatsby, Expo Router and TanStack Router file routes, Storybook stories, Celery tasks and autodiscovery, pytest `conftest.py` and `pytest_plugins`, jest/vitest `__mocks__` and setup files), are not understood: they re-run every closure that does not hold them, cap the top level, and select tests whose closures cannot see them (`unproven`). Test files are exempt from both rules for non-test anchors. Configuration is named by file pattern (`CONFIG_FILES`).
22
+ - **The slice rules are versioned (`slice-rules@11`, `src/change-scope/slice-rules.ts`)** and bound into `rules` with every table: the fully resolved languages, `BUILD_CONFIG`, `CONFIG_FILES`, `CONVENTIONS`, the orphan rule, the unsupported, style and HTML extensions, the followed and unfollowed forms, the skip rules and the size bounds.
23
+ - **Top-level `complete` with the flag on (0.2):** every anchor; no changed file the engine does not understand; no referenced code the graphs skip; no unresolved call site that may reach a changed or reaching declaration (circle-ir's `couldReach` predicate, mirrored over every body, R6).
24
+ - **Digests** follow C4 §16.4: blake3 derive-key `"cognium read-shape v1"` over the answer's `rules` and each read's `JCS({read_shape, target})` with its `(path, part, blake3)` parts (a file's part is its git mode), little-endian (`@noble/hashes` 2.4.0, new exact dependency, MIT, pure JS).
25
+ - **Workaround for circle-ir `ids@0.1`:** a decorator on an export statement (`@Controller() export class X`) stays in the module's `body_hash`, not `X`'s. Its raw text joins `X`'s `decl_text`, and a change to it is reported as `changed` with `columns: ["decorators"]`.
26
+ - **MCP tool `change_scope`** (`project_root` = head, `baseline_root` = base, two git checkouts; `anchors`, 1 to 1,000 per call on this door), read-only, closed-world, `provenance: deterministic`. **Not listed unless `CIRCLE_IR_AI_CHANGE_SCOPE=1`**, so the default tool list stays the thirteen. Nothing existing changes behaviour; `EXT_LANG`/`IGNORE_DIRS` (bom usage) and the dead-code engine's `manifests`/`consoleScripts`/`goModulePath` are now exported for reuse, unchanged.
27
+ - **Module links beyond JavaScript (SR3-E2, spec recovery 0.3).** The module map in a level's design.md also links modules through:
28
+ - a Maven `<dependency>` on a sibling module (not `test` scope, `<dependencyManagement>`, `<profiles>` or plugins) and a Gradle `project(':x')` dependency (not test or test-fixture configurations, not a `dependsOn` / `mustRunAfter` / `finalizedBy` task-ordering statement);
29
+ - Java and Kotlin imports resolved to the one module that declares the imported package;
30
+ - Python imports resolved across module roots to the one module that holds the package (a folder with `__init__.py`; never a standard-library name, a name some level declares as a third-party dependency in pyproject or any requirements file under it unless it is a module's own project, or a loose top-level `.py` file);
31
+ - HTTP calls whose host is another module's service name (`http://customers-service/…`, `lb://vets-service`), the name taken from the module's own name, folder, Spring `spring.application.name`, or a Compose service built from its folder or using an image named after it; a Spring config import (`configserver:http://config-server:8888`, `spring.cloud.config.uri`) is its own kind, `config`;
32
+ - an environment variable read in code whose value is such a URL, taken only from the Compose service that runs that module (built from its folder, else using an image named after it, else itself named after it) or from that module's own `.env` (never a test-runner service, `.env.test`, `.env.example` or `.env.sample`; a repository-root `.env` feeds only the repository's own files).
33
+
34
+ Each link keeps its first site (`file:line`) and kind (dependency, import, http, config). A name or package two modules claim links nowhere; URLs in comments are skipped (block comments and Python docstrings across lines; a `//` inside a string or regex literal opens none); the link walk, and the files it reuses from the main walk, never come from virtualenvs (`venv`, `.venv`, any folder with `pyvenv.cfg`), `site-packages`, `__pycache__`, `target` or `.gradle`. A host that is a module is no longer listed as an external service. Before → after: gson 0 → 3 links (extras, metrics, proto → gson), spring-petclinic-microservices 0 → 12 (5 HTTP: api-gateway → customers, vets, visits, genai and genai → vets; 7 config: each service → config-server); the other nine SR-M2 repositories unchanged (fastapi-fullstack's frontend → backend has no product source: its only service-name value is in the Playwright service).
35
+ - **Spec recovery measure v1 (SR3-M1).** `benchmarks/spec-recovery/` now measures whole repositories: fifteen fixtures (`fixtures/<name>/expected.json`: URL, pinned commit, expected modules, reference use cases with their judged marks, expected state machines, labeller and date; the ten SR-M2 repositories and SR-M1's five, those marked `private`; no third-party code), a runner (`npm run benchmark:spec-recovery`, `measure.ts`: clone at the commit or `--local <dir>`, two static runs in their own processes from `dist`, `--model` only with a model route), the checks in `measure-kit.ts` (0.2 structural acceptance with the amended §3.3, modules precision and recall, an automatic use-case coverage proxy kept apart from judged coverage, citations, state machines, determinism, runtime) and `PROTOCOL.md` (the judged scores and how to calibrate an agent with one person-labelled repository). The 0.1 kit's commands are unchanged. Benchmark only: no engine change.
36
+ - **Java ERP entry points as use cases (spec recovery 0.3, SR3-E9; iDempiere first).** The learned spec found no use case in iDempiere's bundles (0 of 360 entry points). New `src/specifica/java-erp-entries.ts`, read from circle-ir's IR: processes (a class extending `SvrProcess`, also through the level's own classes, or annotated `@Process`) as a new entry kind `process`, anchored on `doIt()`, with the parameter names `prepare()` reads and `@Parameter` fields as the use case's `inputs`; callouts (each public `CalloutEngine` method with the callout signature, and each `IColumnCallout.start` with its `@Callout` table and column), area by table; posting classes (`Doc` subclasses with `createFacts`), document actions (`DocAction` implementations: one use case per class, its `prepareIt` / `completeIt` / `voidIt` … as code paths), OSGi services (`@Component(service = X.class)`; a Spring `@Component` is not one), forms (`IFormController`, `ADForm`) and server processes (`AdempiereServer`, kind `cron`). Titles are the javadoc's first sentence, else the name in words. On the three iDempiere bundles: 126/126 callouts, 172/172 processes, 60/62 acct entry points.
37
+ - **Callout rules.** A callout returns its error instead of throwing it: a non-empty `return "…"` / `return Msg.getMsg(ctx, "Key")` under a condition is a guard rule ("shall return the error … when …"), and the fields a callout sets through its `GridTab` under one condition are one `field-set` rule (new rule derivation). The condition is the innermost `if` (or `else`) around the statement; a row read or a callout already running is not one.
38
+ - **Trivial guards tagged.** On the rules of these use cases, a guard (never a `field-set` rule) that is a save failure (`!po.save()`), an id that is 0, a null or empty value, or a callout already running carries `trivial` (`Requirement.trivial`) and is listed after the others; an `else` branch (`!(cond)`) is not tagged. A local tag until SR3-E5's rule facts carry one for every rule.
39
+ - **Framework types from the ERP packages only.** `SvrProcess`, `@Process`, `Doc`, `DocAction`, callout and form types count when the file imports them from `org.compiere`, `org.adempiere` or `org.idempiere` (or, without an import of that name, sits in or wildcard-imports one of them): a Flowable `@Process` is not a process. Parameters compared through constants (`name.equals(PARAM_X)`, `MCost.COLUMNNAME_X`) are read; ticket references (`IDEMPIERE-918 …`) are left out of titles.
40
+ - **TypeScript and Java entry points the learned spec missed (spec recovery 0.3, SR3-E4).** tRPC procedures defined in their own files are named by the key path of the routers that reach them, across files (`document.find`, `recipient.completeDocumentWithToken`); remix-flat-routes `+` folders are routes (`routes/_recipient+/sign.$token._index.tsx` → `PAGE /sign/:token`; a folder's `_layout` is not a page, `[x]` escapes a segment); Hono chains whose handler follows middleware (`.post('/x', sValidator(…), handler)`), and a package router mounted by another workspace package (`app.route('/api/auth', auth)` from `@acme/auth/server`); job definitions (an object with `id`, `handler` or `run`, and `trigger` or `cron`) as queue jobs or scheduled jobs, anchored on the handler file they load; Nest's `setGlobalPrefix` on controller routes and the Swagger page; Spring AI `@Tool` methods; a Java library's public surface (public types of exported, non-`internal` packages, `module-info.java` `exports` honoured, a class with many public methods as a row of its own). New files `ts-entries.ts` and `library-surface-java.ts`.
41
+
42
+ ### Changed
43
+ - **Modules: a declared `docs` package stays, and Dockerfiles make a module only where they build their own code (SR3-E1).** A package that a manifest names (npm/pnpm workspaces, Cargo, Maven `<module>`, Gradle `include` and the readers below) stays a module under a `docs`/`doc` folder (documenso `apps/docs`). Tests, e2e (`apps/e2e`, Nx `web-e2e`), examples, samples and fixtures stay out even when declared, as does whatever the shared product-scope rule leaves out; such declared packages are listed in `ModuleMap.leftOut` and on one line of the repository's design.md. A Dockerfile, or a compose build context, makes no module when its build context is a parent folder (compose `build.context`, else `COPY`/`ADD` sources found at the root or a file under the folder's own path) or the folder holds no source and no package manifest (healthchecks, documenso and petclinic-ms `docker/`); a root-context Dockerfile that copies its own code folder (`COPY svc/api ./svc/api`) still makes it a module, and one inside a package still marks that package a service. A module's manifest name is written into its design.md (`Declared as \`emails\`.` when the folder name differs) and its rules.json `metadata.declaredName` and `SpecLevel.declaredName`.
44
+ - **Modules: Python and more TS monorepo declarations (SR3-E1).** uv `[tool.uv.workspace]` members; Poetry, uv, PDM and hatch path dependencies; two or more Python packages (`pyproject.toml`, `setup.py`, `setup.cfg`) below the top level; Django apps from `INSTALLED_APPS` (with the lists it is built from, star-imported base settings, `+=` and `.append` at any indent) in the settings module `manage.py` names, or `<pkg>/settings.py` / `<pkg>/settings/base.py` when it comes from the environment, apps beside `manage.py` or under `src/`; three or more apps under a parent package that sits beside other apps, and is not a container such as `apps/`, are one module (`hc.integrations.*`); a reusable app's `testproject`/`tests`/`sandbox` settings make no modules; Nx `project.json`, Lerna `lerna.json`, Rush `rush.json`, Deno `deno.json(c)` `workspace`, Nest CLI and Angular `projects`. A root `tsconfig.json` `references` entry only confirms a module (`alsoDeclaredBy`). New `Module.source` values: `uv-workspace`, `python-path-dependency`, `python-package`, `django-app`, `nx-project`, `lerna-package`, `rush-project`, `deno-workspace`, `nest-project`, `angular-project`. Modules found: healthchecks 1 → 6, documenso 15 → 15 (`docs` in, `docker` out), petclinic-ms 9 → 8, fastapi-fullstack 3 → 3 (`backend` from its pyproject).
45
+ - **State machines from declared enums and their writes (spec recovery 0.3, SR3-E6).** design.md now reads four more sources of a state set, each tied to the code that writes it, with every state, write and guard at its `file:line`: a Prisma `enum` used as a model field's type (writes `field: Enum.X` in `data` / `create` / `update`, guards from the same call's `where`, an earlier `findFirst` filter, comparisons before the write and early-exit checks in a same-file helper), a Django field with `choices=` (`obj.status = "down"`, `.update(status=…)`, `.filter` / `.exclude`), a Python `enum.Enum` held in an attribute (`__init__` gives the initial state), and a Java enum or `static final int` constant class named …State / …Status / …Scope / …Phase / …Stage (assignments and one-argument calls, under `case` labels or comparisons). Such a machine belongs to the module that writes it, not the schema package. Seed data, fixtures and mocks are not writes. A status type with no guarded transition and fewer than two states written is no longer reported (UI and vendor types). A Prisma write binds to an enum only when the model it is written to (`prisma.<model>.update(…)`) has a field of that enum type. A Java one-argument call counts as a write only when it changes held state (`set…`, `replace…`, `push…`, `transition…`), and a Python or Java set needs a guarded transition to be kept, so a value passed along (`respond(HttpStatus.OK)`) is no machine. `.py` and `.java` files now count toward design.md's 20 000-file walk cap. documenso: 10 machines, all UI or vendor with 0 transitions → 9 domain machines in `lib` / `ee` (DocumentStatus, SigningStatus, SendStatus, ReadStatus, BackgroundJobStatus, OrganisationMemberInviteStatus with guarded transitions; SubscriptionStatus, EmailDomainStatus, WebhookCallStatus written but with no guard, ranked last); healthchecks 0 → 1 (`Check.status`); httpx 0 → 1 (`ClientState`); gson 0 → 1 (`JsonScope`). New file `src/specifica/state-machines.ts`.
46
+ - **ERP model generator output is generated code.** A Java file whose first 40 lines carry `Generated Model - DO NOT CHANGE`, `Generated Interface for <table>` or `@author <name> (generated)` (iDempiere `X_*` / `I_*`) is skipped by spec generation as `generated`, so no rule comes from a generated setter. Spec generation only: scan, trust and quality still read these files (product scope decides by path).
47
+ - **Python entry points in the learned spec (spec recovery 0.3, SR3-E3).** New `src/specifica/python-entries.ts`.
48
+ - **click and Typer commands:** one use case per command (`@<group>.command`, `@click.command`, Typer `@app.command()`), named by `name=`, the first string, or the function name (click: `_` → `-`, `_command`/`_cmd` suffix dropped). `@click.option` / `@click.argument` (also those added by a same-file decorator function) and `typer.Option` are the command's parameters, never use cases: sqlite-utils showed `Commands (135) | --alter, --analyze…`, now 48 commands each with its options. Subgroups (`@cli.group()`, `add_command`, `add_typer(name=)`) are areas. A `[project.scripts]` entry that runs a click command names it (httpx: one `httpx` command, no separate binary row). New optional `parameters` on `UseCaseEntry` and on rules.json `useCases[]`.
49
+ - **A library's surface shows beside a Python CLI** (it showed only when every entry was a binary), and `from ._x import *` names are found where they are declared: httpx lists `get`, `post`, `Client`, `AsyncClient`, `Timeout`… by module.
50
+ - **FastAPI prefixes:** `APIRouter(prefix=…)` and `include_router(…, prefix=…)` are composed across files through Python imports; a settings constant is read from its class when it is a plain string (`/api/v1`), else shown as `{NAME}`. Two Python route handlers with the same trigger no longer merge into one use case (fastapi-fullstack's admin `GET /users` and `POST /users` were lost to the items router's `GET /`).
51
+ - **Django `include(<list>)` of a list in the same urls.py** is followed: healthchecks routes read `/api/v1/checks/<uuid:code>/pause`, `/ping/<uuid:code>/fail`. An include of an imported name still keeps registered paths.
52
+ - **Django management commands** (`<app>/management/commands/<name>.py`, `class Command`) are a new use-case kind `job`, `manage.py <name>`, with their `add_argument` options (healthchecks: sendalerts, sendreports, prune*, smtpd…).
53
+ - **Rule facts (spec recovery 0.3, SR3-E5).** Guard and throw rules in the learned tree are read as facts and said in plain words.
54
+ - **Python guards carry their condition.** circle-ir has no CFG for Python, so the `if` / `elif` around a `raise` (its header may span lines; the `else` of a lone `if` is its negation) is read by indentation: `if not x: raise E("…")` is a guard "when `x` is missing". Before, 85 of 86 healthchecks rules and all 155 sqlite-utils rules were "may throw".
55
+ - **Messages.** FastAPI's `detail=` is the message and `status_code=` the code (`HTTPException(status_code=403, detail="…")` gave `HTTPException("403")`); Python literals written side by side across lines (`"a " "b".format(…)`) and f-strings keep their literal parts (`{x}` → `…`); an object literal after a code is the message (`new AppError(AppErrorCode.NOT_FOUND, { message: 'Folder not found' })`, `new AppError('MISSING_CONTENT_IMAGE', { message })`); a later string after a status (`new ResponseStatusException(HttpStatus.NOT_FOUND, "…")`).
56
+ - **Java.** `errors.rejectValue(field, code, message)` / `errors.reject(…)` are guards on a field (petclinic's `PetValidator`, duplicate pet name, birth date); an `orElseThrow(() -> new X("…"))` lambda is a guard "when nothing is found". A TS / Java throw that is not its block's first statement gets the `if (…) {` around it (read by braces when the CFG links none).
57
+ - **Validation constraints in design.md.** Bean Validation annotations (`@NotBlank`, `@Size`, `@Pattern`, `@Min`, `@Max`, `@Email`, `@Past`, …) and Pydantic / SQLModel `Field(min_length=…, max_length=…, ge=…, pattern=…)` give one `validation` constraint row per class (new `validation-constraints.ts`; `LevelDesignOptions.validationConstraints`).
58
+ - **Plain words.** A rule with a fact reads `Rejects <what> when <condition>: "<message>" (<code or error type>)`, with identifiers quoted and no priority word; the raw condition, message, code, field and error type are in rules.json under the new `fact` field. **The rule key is still computed from the 0.1 text**, so a fact that did not change keeps its key; a fact that now has a condition or a message gets a new key.
59
+ - **Duplicates grouped.** Rules with the same message and condition are one rule; the others' anchors are kept as evidence code paths and in `fact.also`, and the sentence names every subject.
60
+ - **Trivial guards tagged.** Not-found guards (`if (!x) throw NotFound`, an `orElseThrow` with a not-found message), type checks and null-argument checks get `fact.trivial` and an `_(trivial: …)_` mark, and are listed after the domain rules.
61
+ - **spec.md shows domain rules first.** Rules are numbered as a balanced sample across directories (each directory's best rule first, by relevance: message, condition, project error type, domain words; less for a configuration gate or a data migration), trivial ones last; the "+N more" line counts the trivial ones. gson's spec showed 44 of 154 rules in path order with no `JsonReader` rule; documenso's lib spec stopped before `server-only/document/*`.
62
+ - **A use case's guard is not moved to a layer by its file's imports alone.** FastAPI's `users.py` imports `sqlmodel` and "user" is never a domain term, so all twelve of its guards went to L7 and the level showed none. A check outside the use cases stays in spec.md the same way when it has both a message and a condition and is not a configuration check.
63
+ - **The levels one package was split into share their domain terms** (SR3-E1's Django apps and Python sub-packages, with the level holding their manifest; workspace packages and services never share). A sibling's term moves only a guard or throw with a message or condition out of its layer, never a configuration check or an authentication, configuration, cryptography, data, operations, logging or error-handling rule, and the layer line it gave stays in principles.md when nothing else gives it. With #1237's split of healthchecks, the OnCalendar and Timezone validators and `HeadersField.to_python` stay in spec.md (`Webhook.notify`, a configuration gate, stays on L8).
64
+ - **Review nits (#1244).** A switch (`not settings.X_ENABLED`, `not ignore`) reads "is off"; a positional error code before a Python message is the code (`PydanticCustomError("cron_syntax", "…")`); a not-found message tags a rule trivial only under a condition; duplicates group by error type and code too.
65
+ - **Product scope `product-paths/5`.** `examples/` below a package root (documenso's `packages/api/v1/examples/`, not a Go or Python package, not in `lib/`) and `seed/` / `seeds/` directly under a package root (`packages/prisma/seed/`) are out of product scope, for spec, scan, quality and trust alike.
66
+ - **One trivial flag (spec recovery 0.3 integration).** `Requirement.trivial` is the one place a rule says it is true but plumbing. It takes the rule fact's tag (SR3-E5: not found, type check, null check) when the fact is attached, and the Java ERP guard tag (SR3-E9: save failure, id check, null check, callout active), which wins when both apply. spec.md's `trivial:` tag, the "(n trivial)" count and the rule ranking read it, so a Java ERP use case's trivial rules are tagged in spec.md too.
67
+
68
+ ### Fixed
69
+ - **Python raise rules span multi-line calls (#1171 S2, #1221).** A `raise X(` whose message sits on the next lines maps to its constructor call, so the rule keeps its message.
70
+ - **Repeated identical throws in one symbol get unique rule keys (#1182 S1, #1187).** A per-symbol ordinal enters the rule key when one symbol repeats the same type, message and condition.
71
+ - **Spring class and method mappings join with one `/`** (`/api/gateway` + `owners/{id}` was `/api/gatewayowners/{id}`), and `@RequestMapping(method = RequestMethod.POST)` reads as POST.
72
+ - **Rules beside entry points are kept (review of #1241).** A TS/JS level with routes or jobs still keeps, as other domain rules, the domain rules inside the functions it exports (no surface row shown; a React hook's "used within a provider" check is not kept); those rules get the static rules' keys, so one check is one rule. A check inside a handler that has a file of its own (a tRPC procedure, a job's handler file) is that entry's rule unless it is plainly transport, config or env.
73
+ - **Jobs need a job signal:** a job call (`defineJob`, `task`), a job type named `Job`, `JobDefinition` or `…JobDefinition` (`satisfies JobDefinition`), or a `cron`; `id` + `handler` with an `event`, a `trigger` (string or object) or another type (`JobsTableColumn`) is not a job.
74
+ - **A Java application has no library surface:** an OSGi or Eclipse bundle activator, a servlet or Jakarta application, or Spring Boot, Quarkus and Micronaut. A `public static void main` outside benchmark, example and demo classes is a binary use case (`run Lister`) beside the library surface, never a reason to drop it (commons-compress ships `Lister` and `CLI` mains). `@RequestMapping(method = {GET, POST})` gives one route per verb.
75
+ - **Other domain rules carry stable ids**, so their keys change once in any TS or JS level that has them (two documenso keys, `seedDocuments` and `createGoogleCloudSigner`; a rule listed twice, with and without a stable id, is now one).
76
+ - **Not entry points:** UI and canvas event listeners (`.on('click.marquee tap.marquee')`, `transform.contentBox`) and `.get()` / `.delete()` on a repository or service (`this.articleService.delete(slug)` was "DELETE in `<inline>`").
77
+
78
+ - **A rule's condition is no longer inverted or cut short (SR3-E10).** The guard of a TypeScript, JavaScript or Java throw was read from the CFG: the conditional on the throw's line, or the one whose `true` edge led to it. A one-line `if (b === 8) {…} else { throw … }` gave "shall reject … when b === 8" (the else branch rejects when `b !== 8`); `if (a) { if (b > 5) throw … }` gave "when b > 5", dropping `a`; a guard inside a `switch` case was given the `if` without the case; and a throw that a `try` in the same function catches was reported as a rejection of the caller. The guard now comes from circle-ir's syntax tree (`throw-scopes.ts`): the conjunction of every enclosing branch condition, outermost first, an `else` (or `else if`) branch's negated (`b !== 8`, `!a`, `!(b > 5)`), a condition that binds looser than `&&` bracketed. Where the full condition cannot be stated faithfully, the rule has none ("may throw") rather than a wrong one: a `switch` case, a `catch` handler whose conditions do not name the caught error, an earlier `return`/`break`/`continue` in the same branch, a condition spanning lines, a parse error in the `if` (its condition or a branch), an `else` under a top-level bitwise `&`/`|`/`^` (negating it is not a swap of `===`), and an enclosing condition whose names are written between it and the throw (`if (x == null) { x = make(); if (!x.save()) throw … }`: "x == null && !x.save()" would describe two moments; a loop in between counts whole). A guard clause earlier at the function's or a loop body's top level is read as before, and a loop body is transparent (the rule holds per iteration); a nested function (arrow, lambda) is its own scope. An earlier guarded `throw` in the same branch is not counted (the guard-clause reading): in `if (a) { if (b) throw A; throw B }` B reads "when a", because A is a rule of its own. A throw in a `try` body is no rule when a handler takes it and does not pass it on: TS/JS any `catch`; Java the thrown type, `Throwable`, or a supertype of a JDK exception (`catch (Exception e)` does not take a JDK `Error` such as `AssertionError`, and an unknown `…Error` stays a rule without a condition); a handler that converts it (`throw new TypeError(…)`, or reassigns its parameter before `throw e`) makes the original throw no rule. A handler that only throws the error again, or lets the type through (`if (e instanceof T) throw e`), passes the guard on unchanged; one that may rethrow it leaves it without a condition. **Python** takes the same guard source since the merge with SR3-E5, which had read a raise's `if` by indentation: the conjunction of every enclosing `if`, an `elif` or `else` negating the `if` and each `elif` before it (`not a`, `a != 1`, `x is not None`, `k not in d`, else `not (…)`), joined with `and`; a wrapped (multi-line) Python condition is quoted on one line, as SR3-E5 did, unless a comment sits inside. An `elif` now carries the negation of the conditions before it (SR3-E5 gave the `elif`'s own condition alone), and a raise under nested `if`s carries all of them. E5's message, `detail=`/`status_code=` and code reading is unchanged. A raise an `except` in the same function catches (its type, `BaseException`, a bare `except`, or `Exception` for anything but `SystemExit`, `KeyboardInterrupt` and `GeneratorExit`) is no rule. **SR3-E5's Java rejecting calls** take the scope of the call: `rejectValue` / `reject` get the full conjunction of the `if`s around them (no `try` applies: they throw nothing), and an `orElseThrow` lambda's guard is its call's conjunction and "<receiver> is empty", dropped when a handler takes the thrown type; the lambda is matched to its nearest `orElseThrow` (two on nearby lines no longer share one). The brace and indentation readers SR3-E5 used as fallbacks (`braceGuard`, `pythonGuard`) are gone: one guard source per language. Throw ordinals (#1187) are assigned after every fact is read, on the final conditions. Rust is unchanged.
79
+ - **Callers:** parsing is async and extraction is not, so call the new `prepareRuleFacts(file, code, ir)` (exported from `circle-ir-ai`, `specifica/index` and `specifica/evidence-extractor`) after `analyze()` and before `extractEvidence` / `extractTsRuleFacts` on that IR. `generateSpecifica` and `generateSpecificaForDirectory` do, and so do circle-pack's specifica runners. Without it a TS/JS, Java or Python throw has no condition and the run warns once on stderr (`[specifica] <file>: rule extraction ran without prepareRuleFacts…`); no Python `except` is checked either. When `prepareRuleFacts` itself cannot parse a file, that file's throws have no condition and the run says so once (`… prepareRuleFacts could not parse the file …`), not that the step was skipped. Throws in other languages read under `mixedLanguageSpec` (C#, Go …) have no scopes and so no condition, without the warning.
80
+ - **Effect (static spec trees, main 90b2c9d against this change; the same as against bb2f386):** sqlite-utils and petclinic byte-identical; ky 8 rule lines changed, healthchecks 1, gson 55, documenso 105 (conditions completed or negated, "may throw" where a condition cannot be stated, caught throws gone, guards the CFG had missed now stated). A rule key changes only where its text or its anchors changed. On documenso two principles.md layer lines follow from the changed rule text.
81
+
82
+ ## [4.43.0] - 2026-11-30
83
+
84
+ ### Changed
85
+ - **Java throws and guards are domain rule sources (res-1823).** A Java file's `throw new X(…)` facts, with the `if` that guards each (quoted from its line, as for TypeScript), now reach the static rules and the level's spec.md: OWASP BenchmarkUtils had 5 use cases (its Maven goals) and 0 rules, so its review had nothing to show. A throw with neither a message nor a guard (`throw new RuntimeException(e)`, which passes an error on) is not a rule, nor is an internal error such as `AssertionError`; generic messages stay, as for TypeScript.
86
+ - **A throw's message is quoted only when the code says it literally (res-1823).** A variable or a call passed to an error (`new RuntimeException(e)`, `new IOException(versionNumError)`, `new RuntimeException(finding.toString())`, `new Error(msg)`) was quoted as if it were the message (`RuntimeException("e")`); it is now no message, so the rule names the error type alone (and an unguarded generic one is no domain rule). A concatenation keeps its literal parts, with `…` for each other operand (`"ZipFile does not contain " + zipPath` → `ZipFile does not contain …`), where the doubled quotes showed before. The object form (`new TRPCError({ code, message: '…' })`) is kept whole for its `message:`; template literals are unchanged. TypeScript, JavaScript, Java and Python throws; a rule whose text changes gets a new rule key.
87
+ - **A Python format string keeps its literal text (cognium-ai#1213 review).** `raise ValueError("bad order %s" % y)` and `raise ValueError("bad order {}".format(y))` now read `ValueError("bad order …")`, as a concatenation does (`%%`, `{{` and `}}` read as the character); the literal-only rule above had dropped their message, leaving a bare "may throw ValueError". f-strings are kept as written, as template literals are; a name, a call or a constant (`msg`, `str(y)`, `errors.BAD_ORDER`) is still no message.
88
+ - **No "0 export(s)" public-surface row (res-1823).** A barrel that only re-exports packages (`export * from '@repo/db/schema'`) gave a use case titled "0 export(s): @repo/db/schema"; such a group now gives no row (6 on controldeck, 1 on cognium-dev).
89
+ - **A Maven goal's use case reads "Maven goal create-scorecard"** (was "goal create-scorecard"). The title only; the entry (`kind: cli`, `method: GOAL`, `path`) and the use-case id are unchanged.
90
+
91
+ On circle-ir **4.26.0** (exact). No API or output-schema changes in this package. Pair it with `@cognium/mcp-server` 1.0.1 and `cognium` 5.0.1, which pin the same circle-ir; the loaders refuse a module on another circle-ir minor.
92
+
93
+ - **`circle-ir` 4.25.0 → 4.26.0.** The Python log value-shape check reads the whole logging call and keeps a flow when any name other than a shape (`len(...)`, `json.dumps(...)`, `**kwargs` keys, a key-loop variable) is used as a value (cogniumhq/cognium-dev#1508). Typecheck, build and the full suite are green on 4.26.0 from npm with no expectation changes.
94
+
10
95
  ## [4.42.0] - 2026-11-29
11
96
 
12
97
  The first release with `circle-ir-ai/cli`, the AI commands as a module for the one CLI, `cognium` 5. On circle-ir 4.25.0, like 4.41.0. Install it next to `cognium`: `npm i -g cognium circle-ir-ai`.
@@ -144,7 +144,7 @@ export declare const BLAST_TEST_HOPS: {
144
144
  readonly max: 8;
145
145
  };
146
146
  /** The rule that says which files are tests (the product-scope rule, reason `test`). */
147
- export declare const BLAST_TEST_RULE = "product-paths/4";
147
+ export declare const BLAST_TEST_RULE = "product-paths/5";
148
148
  /** Is this root-relative file a test (the product-scope rule says `test`)? */
149
149
  export type TestFilePredicate = (file: string) => boolean;
150
150
  /** The tests answer before the walk has run, or when it cannot back one: not known. */
@@ -162,7 +162,7 @@ export interface BlastTests {
162
162
  status: BlastTestStatus;
163
163
  /** How many calls back from the change the walk followed (option, default 4). */
164
164
  max_hops: number;
165
- /** The rule that says which files are tests: the product-scope rule's version (`product-paths/2` in 4.38.0, then `product-paths/3`, `product-paths/4` since cognium-ai#1127). */
165
+ /** The rule that says which files are tests: the product-scope rule's version (`product-paths/2` in 4.38.0, then `product-paths/3`, `product-paths/4` since cognium-ai#1127, `product-paths/5` since SR3-E5). */
166
166
  rule: string;
167
167
  }
168
168
  export interface BlastRadius {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/blast-radius/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,iFAAiF;AACjF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yEAAyE;AACzE,MAAM,WAAW,eAAe;IAC9B,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,oFAAoF;IACpF,QAAQ,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MAAM,EAAE,CAAC;IACpB,iKAAiK;IACjK,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,eAAe,CAAC;IACxB,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,iNAAiN;IACjN,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,sGAAsG;IACtG,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAChD,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9D,KAAK,EAAE,UAAU,CAAC;IAClB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE;QAAE,OAAO,EAAE,aAAa,EAAE,CAAC;QAAC,OAAO,EAAE,aAAa,EAAE,CAAA;KAAE,CAAC;IAC/D,8HAA8H;IAC9H,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,yEAAyE;AACzE,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB"}
@@ -8,6 +8,8 @@
8
8
  * specifier is the package name); Maven is best-effort via groupId prefix.
9
9
  */
10
10
  import type { UsageIndex } from './types.js';
11
+ export declare const EXT_LANG: Record<string, string>;
12
+ export declare const IGNORE_DIRS: Set<string>;
11
13
  /** The usage index's default bound on the walk (best-effort, not exhaustive). */
12
14
  export declare const MAX_FILES = 4000;
13
15
  /** The usage index's default bound on directory depth. */
@@ -1 +1 @@
1
- {"version":3,"file":"usage.d.ts","s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AAG,gBAAgB,CA2CzG;AA8BD,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,qGAAqG;IACrG,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,EAAE,EACxB,IAAI,GAAE,iBAAsB,GAC3B,OAAO,CAAC,UAAU,CAAC,CAErB;AAED,8DAA8D;AAC9D,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,EAAE,EACxB,IAAI,GAAE,iBAAsB,GAC3B,OAAO,CAAC;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,cAAc,GAAG,IAAI,CAAA;CAAE,CAAC,CAwClE"}
package/dist/bom/usage.js CHANGED
@@ -10,14 +10,14 @@
10
10
  import * as fs from 'fs';
11
11
  import * as path from 'path';
12
12
  // Source extension → circle-ir SupportedLanguage.
13
- const EXT_LANG = {
13
+ export const EXT_LANG = {
14
14
  '.ts': 'typescript', '.tsx': 'tsx', '.mts': 'typescript', '.cts': 'typescript',
15
15
  '.js': 'javascript', '.jsx': 'javascript', '.mjs': 'javascript', '.cjs': 'javascript',
16
16
  '.py': 'python',
17
17
  '.java': 'java',
18
18
  '.go': 'go', '.rs': 'rust',
19
19
  };
20
- const IGNORE_DIRS = new Set(['node_modules', '.git', 'dist', 'build', 'coverage', '.next', 'vendor', 'target', '__pycache__']);
20
+ export const IGNORE_DIRS = new Set(['node_modules', '.git', 'dist', 'build', 'coverage', '.next', 'vendor', 'target', '__pycache__']);
21
21
  /** The usage index's default bound on the walk (best-effort, not exhaustive). */
22
22
  export const MAX_FILES = 4000;
23
23
  /** The usage index's default bound on directory depth. */
@@ -1 +1 @@
1
- {"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/bom/usage.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MA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I,CAAC;oBAAE,SAAS;gBAC9D,MAAM,GAAG,GAAG,GAAG,IAAI,KAAK,GAAG,CAAC,WAAW,EAAE,CAAC;gBAC1C,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;oBAAE,SAAS;gBAC5B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACd,MAAM,IAAI,GAAc,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC;gBAC/D,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Canonical forms and digests for the change scope (C4 §15.2, §16).
3
+ *
4
+ * - `jcs`: RFC 8785 for the values the answer holds (objects, arrays,
5
+ * strings, integers, booleans, null). Keys sort by UTF-16 code units, as
6
+ * RFC 8785 says; strings and integers serialize as ECMAScript does.
7
+ * - `blake3Hex` / the anchor digest: blake3 from `@noble/hashes` (pure JS).
8
+ * The anchor digest is `blake3_derive_key("cognium read-shape v1", …)` over
9
+ * C4 §16.4's framing, with the answer's `rules` first in the preimage.
10
+ * Its parts are raw file bytes and raw declaration text (D29).
11
+ */
12
+ export type Json = null | boolean | number | string | Json[] | {
13
+ [k: string]: Json | undefined;
14
+ };
15
+ export declare function jcs(v: Json | undefined): string;
16
+ export declare function blake3Hex(bytes: Uint8Array | string): string;
17
+ export declare function blake3Of(value: Json): string;
18
+ export declare function byCodePoints(a: string, b: string): number;
19
+ /** One read's share of an anchor digest: its descriptor and its parts. */
20
+ export interface ReadPart {
21
+ /** `JCS({read_shape, target})`. */
22
+ descriptor: string;
23
+ /** `[path, part, blake3 hex]`: a whole file (`part` empty) or a declaration's text (`part` its id). */
24
+ parts: Array<[string, string, string]>;
25
+ }
26
+ /**
27
+ * `blake3:` + hex of `blake3_derive_key("cognium read-shape v1", …)` over C4
28
+ * 0.7 §16.4's framing: `u32 len ‖ rules` (the producer and its version), then
29
+ * for each read in the byte order of its descriptor `u32 len ‖ descriptor ‖
30
+ * u64 n ‖ (u32 len ‖ path ‖ u32 len ‖ part ‖ blake3)*`, parts sorted by
31
+ * (path, part). Every integer is little-endian; strings are UTF-8; `blake3`
32
+ * is the 32 raw bytes.
33
+ */
34
+ export declare function anchorDigest(rules: string, reads: readonly ReadPart[]): string;
35
+ //# sourceMappingURL=canonical.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canonical.d.ts","sourceRoot":"","sources":["../../src/change-scope/canonical.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,CAAC;AAEjG,wBAAgB,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAQ/C;AAID,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAE5C;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,0EAA0E;AAC1E,MAAM,WAAW,QAAQ;IACvB,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,uGAAuG;IACvG,KAAK,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACxC;AAkBD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,QAAQ,EAAE,GAAG,MAAM,CAmB9E"}
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Canonical forms and digests for the change scope (C4 §15.2, §16).
3
+ *
4
+ * - `jcs`: RFC 8785 for the values the answer holds (objects, arrays,
5
+ * strings, integers, booleans, null). Keys sort by UTF-16 code units, as
6
+ * RFC 8785 says; strings and integers serialize as ECMAScript does.
7
+ * - `blake3Hex` / the anchor digest: blake3 from `@noble/hashes` (pure JS).
8
+ * The anchor digest is `blake3_derive_key("cognium read-shape v1", …)` over
9
+ * C4 §16.4's framing, with the answer's `rules` first in the preimage.
10
+ * Its parts are raw file bytes and raw declaration text (D29).
11
+ */
12
+ import { blake3 } from '@noble/hashes/blake3.js';
13
+ import { bytesToHex } from '@noble/hashes/utils.js';
14
+ import { compareCodePoints } from 'circle-ir';
15
+ import { READ_SHAPE_CONTEXT } from './types.js';
16
+ export function jcs(v) {
17
+ if (v === null || typeof v !== 'object') {
18
+ if (typeof v === 'number' && !Number.isFinite(v))
19
+ throw new TypeError('jcs: non-finite number');
20
+ return JSON.stringify(v ?? null);
21
+ }
22
+ if (Array.isArray(v))
23
+ return `[${v.map(jcs).join(',')}]`;
24
+ const keys = Object.keys(v).filter((k) => v[k] !== undefined).sort();
25
+ return `{${keys.map((k) => `${JSON.stringify(k)}:${jcs(v[k])}`).join(',')}}`;
26
+ }
27
+ const utf8 = new TextEncoder();
28
+ export function blake3Hex(bytes) {
29
+ return bytesToHex(blake3(typeof bytes === 'string' ? utf8.encode(bytes) : bytes));
30
+ }
31
+ export function blake3Of(value) {
32
+ return `blake3:${blake3Hex(jcs(value))}`;
33
+ }
34
+ export function byCodePoints(a, b) {
35
+ return compareCodePoints(a, b);
36
+ }
37
+ class Frame {
38
+ parts = [];
39
+ size = 0;
40
+ bytes(b) { this.parts.push(b); this.size += b.length; }
41
+ /** Little-endian, as every integer of the framing. */
42
+ u32(n) { const b = new Uint8Array(4); new DataView(b.buffer).setUint32(0, n, true); this.bytes(b); }
43
+ u64(n) { const b = new Uint8Array(8); new DataView(b.buffer).setBigUint64(0, BigInt(n), true); this.bytes(b); }
44
+ str(s) { const b = utf8.encode(s); this.u32(b.length); this.bytes(b); }
45
+ done() {
46
+ const out = new Uint8Array(this.size);
47
+ let at = 0;
48
+ for (const p of this.parts) {
49
+ out.set(p, at);
50
+ at += p.length;
51
+ }
52
+ return out;
53
+ }
54
+ }
55
+ /**
56
+ * `blake3:` + hex of `blake3_derive_key("cognium read-shape v1", …)` over C4
57
+ * 0.7 §16.4's framing: `u32 len ‖ rules` (the producer and its version), then
58
+ * for each read in the byte order of its descriptor `u32 len ‖ descriptor ‖
59
+ * u64 n ‖ (u32 len ‖ path ‖ u32 len ‖ part ‖ blake3)*`, parts sorted by
60
+ * (path, part). Every integer is little-endian; strings are UTF-8; `blake3`
61
+ * is the 32 raw bytes.
62
+ */
63
+ export function anchorDigest(rules, reads) {
64
+ const f = new Frame();
65
+ f.str(rules);
66
+ const byDescriptor = new Map();
67
+ for (const r of reads) {
68
+ const parts = byDescriptor.get(r.descriptor) ?? byDescriptor.set(r.descriptor, new Map()).get(r.descriptor);
69
+ for (const p of r.parts)
70
+ parts.set(`${p[0]}\u0000${p[1]}`, p);
71
+ }
72
+ for (const d of [...byDescriptor.keys()].sort(byCodePoints)) {
73
+ const parts = [...byDescriptor.get(d).values()].sort((a, b) => byCodePoints(a[0], b[0]) || byCodePoints(a[1], b[1]));
74
+ f.str(d);
75
+ f.u64(parts.length);
76
+ for (const [p, part, hex] of parts) {
77
+ f.str(p);
78
+ f.str(part);
79
+ f.bytes(Uint8Array.from(Buffer.from(hex, 'hex')));
80
+ }
81
+ }
82
+ return `blake3:${bytesToHex(blake3(f.done(), { context: utf8.encode(READ_SHAPE_CONTEXT) }))}`;
83
+ }
84
+ //# sourceMappingURL=canonical.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canonical.js","sourceRoot":"","sources":["../../src/change-scope/canonical.ts"],"names":[],"mappings":"AAAA;;;;;;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C,GAAG,CAAC,CAAC,CAAE,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtH,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACT,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACpB,KAAK,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,KAAK,EAAE,CAAC;YACnC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACT,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACZ,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,OAAO,UAAU,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAChG,CAAC"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Change scope engine op — `changeScope(baseRoot, headRoot, anchors)`
3
+ * (techspec end-to-end-model plan, task A7, D29, D30 and D32; C4 0.7.1 §15–§16).
4
+ *
5
+ * Reads each checked-out tree into a `Side`, over **git's tracked files**
6
+ * (`git ls-files -s`): symlinks by their link text and gitlinks by their
7
+ * commit, as git stores them; untracked `node_modules` and `dist/` are not in
8
+ * the repository. Bytes are read **as stored**, from the object store
9
+ * (`git cat-file --batch`, no filters), never from the working tree: a
10
+ * changed path is one whose object id or mode differs (review 6147162752 S1,
11
+ * S2). For each side:
12
+ * - circle-ir's graphs (TypeScript and JavaScript, Java, Python, Go), after
13
+ * rewriting tsconfig-path and workspace imports (`blast-radius/import-map.ts`);
14
+ * - each graphed file's imports, resolved to repository paths per language.
15
+ * An import whose name matches a package, module or source directory of
16
+ * the repository must resolve inside it (C4 §16.1 *In-repository names*):
17
+ * a `package.json` `name` or a `workspace:`/`file:`/`link:`/`portal:`
18
+ * dependency, through every conditional target of `exports`, `main` or
19
+ * `#imports` (built `dist/` targets mapped to their source); a Python module
20
+ * or package directory anywhere in the tree; a Java package prefix of a
21
+ * tree package (Java, Kotlin, Scala, Groovy, proto). A bare specifier that is
22
+ * neither a builtin nor declared by a `package.json` from the importing
23
+ * file's package up to its workspace root is `missing` too;
24
+ * - the import forms each graphed file uses that the engine does not follow
25
+ * (C4 §16.1 *Unfollowed forms*), read from circle-ir's parse tree;
26
+ * - stylesheet imports (every string of an `@import` list, `@use`,
27
+ * `@forward`, `@require`, `composes … from`, `url()`), and HTML `src`/`href`;
28
+ * - the app entries: `main` entries, and the modules an HTML file or a
29
+ * `package.json` names;
30
+ * - the build and tool configuration over each file (`BUILD_CONFIG`);
31
+ * - each declaration's stored bytes from its first decorator, comments included
32
+ * (a Java declaration from its syntax node, a Go one from its directives);
33
+ * - each symlink resolved hop by hop against the tracked listing.
34
+ * `scope.ts` computes the answer over the two sides.
35
+ *
36
+ * 0.1 reuses only self-contained reads (plan D32): closure and route anchors
37
+ * always re-run, and tests are advisory. D30's closure-reuse rules run only
38
+ * with `closureReuse`, or `CIRCLE_IR_AI_CHANGE_SCOPE_CLOSURE_REUSE=1`: off by
39
+ * default, experimental for 0.2.
40
+ *
41
+ * Deterministic, model-free and read-only: git runs with its fsmonitor, hooks
42
+ * and optional locks off, every transport denied and lazy fetch off, and with
43
+ * no `GIT_*` variable inherited, so a checkout's own config cannot run a
44
+ * command (review 6146528338 S3) and a partial clone's missing blob is not
45
+ * fetched. Nothing
46
+ * calls it unless asked (the MCP tool is registered only behind
47
+ * `CIRCLE_IR_AI_CHANGE_SCOPE=1`).
48
+ * Where Illata replaces this (task A1, blocked; A9): the sides load from the
49
+ * stored snapshots by digest instead.
50
+ */
51
+ import { type CollectOptions } from '../bom/usage.js';
52
+ import type { ChangeScope, ChangeScopeAnchor } from './types.js';
53
+ export * from './types.js';
54
+ export { jcs, anchorDigest, blake3Of } from './canonical.js';
55
+ export { checkAnchors, scopeOf, MAX_ANCHORS, type ScopeOptions } from './scope.js';
56
+ export { BUILD_CONFIG, FULLY_RESOLVED, SLICE_RULES } from './slice-rules.js';
57
+ export type { Side, SideGraph, FileKind, FileImport, LinkResolution } from './side.js';
58
+ /** The walk's bound: past it every anchor is incomplete. `maxDepth` bounds the tsconfig search only. */
59
+ export declare const CHANGE_SCOPE_WALK: {
60
+ readonly maxFiles: 200000;
61
+ readonly maxDepth: 32;
62
+ };
63
+ export interface ChangeScopeOptions {
64
+ walk?: CollectOptions;
65
+ /** D30's closure and route reuse, experimental for 0.2; default: the `CIRCLE_IR_AI_CHANGE_SCOPE_CLOSURE_REUSE` flag, off (D32). */
66
+ closureReuse?: boolean;
67
+ }
68
+ export declare const CHANGE_SCOPE_CLOSURE_REUSE_FLAG = "CIRCLE_IR_AI_CHANGE_SCOPE_CLOSURE_REUSE";
69
+ /** Whether the experimental closure reuse is on: the flag set to `1` or `true`. */
70
+ export declare function closureReuseEnabled(env?: NodeJS.ProcessEnv): boolean;
71
+ /** The change scope of a pull request: base and head as two git checkouts. */
72
+ export declare function changeScope(baseRoot: string, headRoot: string, anchors: readonly ChangeScopeAnchor[], opts?: ChangeScopeOptions): Promise<ChangeScope>;
73
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/change-scope/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAUH,OAAO,EAAY,KAAK,cAAc,EAA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