Skip to content

Fix the defects of the 0.19.1 review; prepare 0.19.2 - #216

Merged
it-baron merged 62 commits into
mainfrom
fix-review-0-19-1
Nov 25, 2026
Merged

it-baron merged 62 commits into
mainfrom
fix-review-0-19-1

Conversation

@it-baron

Copy link
Copy Markdown
Contributor

A review of the whole of 0.19.1 found four kinds of defect: answers that say "nothing depends on this" where something does, a boundary gate that passes on code it never judged, writes and programs a repository can cause, and one file that stops a build. Every finding that is fixed here was reproduced on a fixture first and has a test that failed before the fix. The details per change are in CHANGELOG.md (0.19.2) and LOG.md.

What changes for users

  • impact --diff and diff_functions no longer answer "empty" for deleted or renamed code, under diff.noprefix and similar settings, or for a graph below the top of the repository. A ref that starts with - is refused: --output=<file> emptied that file, also through the MCP tools list_changes and query_graph.
  • A path that is not in the graph is an error, never answered for a file of a like name. deps and rdeps list every module within the depth.
  • boundaries --strict is incomplete for a stale graph, rule files changed after the build, and source files in a language without a parser. :checked counts the files a rule places; the rest is :no-layer N. A composition root or test that a layer file imports is judged like its folder.
  • .wingbox/config.yaml is checked strictly; a config that cannot be read is an error, never replaced by detection.
  • New dependencies found: Python source roots and imports inside functions, Go files of one package, C# partial classes and namespaces, Java static members, PHP functions, require, Blade classes and route strings, Rust crates by the importer's manifest.
  • One file can no longer stop a build: it is recorded in .wingbox/graph-unparsed.sexp and left out.
  • Nothing is written through a symbolic link at .wingbox or below it; Git calls switch off the programs a repository's configuration names.

Changed expectations of existing tests

Each pinned behaviour the review called wrong:

  • REQ-BCOV-019: plain boundaries said boundaries-ok and counted files that belong to no part.
  • REQ-CS-050: :checked counted files in no layer.
  • REQ-DOC-005: the index accepted one id on two tests (13 tests that shared an id now have their own).

The guard tests REQ-SEC-001 (no network import) and REQ-REL-001 (pinned actions) were rewritten to read syntax instead of lines. Both still reject every case the old versions rejected.

Verified

  • python -m unittest discover -s tests: 1,169 tests on Python 3.12 and on 3.11, macOS, all passing (2 and 4 skipped). The matrix of this pull request covers Linux and Windows.
  • Benchmarks without a model, this branch against 0018247: architecture, impact (edges on 7 corpora, 100 questions), collisions, graphify tests B and C, ToCS and C/C++ give the same accuracy, result files identical. benchmarks/impact/run.sh with its new default reproduces the 105 committed result files.
  • PHP: 336 more edges, none fewer, each checked in its source file (helper function calls, classes named in Blade views, 'Controller@method' routes, require). The reference of benchmarks/php does not count these kinds yet, so that benchmark reports them as wrong until the reference is extended. That is a follow-up whose numbers go to the maintainer before publication; nothing under benchmarks/php/ changes here.
  • The released pull request check (action 1.6.4) parses the new gate lines.

Not done

A line per method in the graph, calls edges without --lsp, and the first-screen figures of the README (unchanged; their recomputation is in LOG.md).

Anyone can open a map request. The build step piped into tail without
pipefail, so a failed build passed; the next step copied REPORT.md and
map.html with a cp that follows links, from a .wingbox/ folder the
requested repository may commit. The job now removes that folder after
the clone, fails when the build fails, collects only regular files and
gives the token only to the steps that call gh.

The other pipelines without pipefail get it too, the registry job
outlives its own wait loop, the push triggers name main only, and a
change of documents runs every test module that reads a document.
The pin check of REQ-REL-001 reads the workflows as YAML, so a flow
style, a quoted key or a comment of two words no longer hides an
action.
Files of one Go package see each other's names without an import, so
impact missed the callers and the in-package tests of a file. The module
line of go.mod was matched with a trailing comment as part of the path,
by an expression quadratic in blank lines, and a go.mod that is not UTF-8
aborted the build.
A changed tsconfig.json, composer.json or compile_commands.json left the
key of the use file and of the fragment store unchanged, because the key
covered the sources only. The next build took the uses of the old settings
over and kept the old fragment store, and a later partial update merged
those fragments: the graph went back to the old resolution.

The digest of the resolution configs discovery sees is now part of
symbol_index_key and of the surface of the walk cache, and the build cache
carries it for the partial update and the fill of use positions.
…scope

An absolute import was looked for at the repository root, beside the
importing file and in the `src/` folders above it only, so a test at the
root had no edge to a package of a nested distribution and `impact` of
that package named no test. The source roots of the repository (a folder
with a pyproject.toml, setup.py or setup.cfg, its `src/`, the folders
those files name) are now asked last; a name that several roots hold, or
a name of the standard library, stays unlinked.

`from pkg import sub` gave no edge when `sub` is a subpackage, and inside
a package `import logging` was linked to the sibling `logging.py`: the
folder of a package is not on the import path.
build_graph scanned and wrote .wingbox/ in a folder where every other
tool said there is no repository: it now applies the check of the first
build. --root is where the search for the graph starts, so the start
line and the instructions name the project whose graph is served, not
the folder given. A message nested deeper than the JSON reader goes
ended the server with a RecursionError: it is a parse error like any
other. An empty item of targets or exclude_dirs was answered for an
arbitrary module: the schema and the check refuse it.

REQ-MCP-009 was proven on the helper only; a tool call with more than
200 lines now proves both call sites of the answer limit.
A type declared partial in two files was linked from nowhere, a type of
an enclosing namespace, a using written inside a namespace and a global
using of another file gave no edge, and a using directive linked a type
that the own namespace hides. The declarations of every file are known
when the language is bound, so the binding is decided there: nearest
namespace first, per project folder, every file of a partial type.
…fault package

A class named only before the dot of a static call or constant, before
'::' or after '@' was not a type identifier in the syntax tree and gave
no edge, and a file without a package declaration got no candidates at
all.
One composer.json or pubspec.yaml with a byte that is not UTF-8, or a
composer.json or compile_commands.json nested deeper than the JSON reader
goes, aborted the whole build.
… dropped

A client without a token could hold the listener: a thread for every
connection with no cap, a read timeout that restarted with every byte,
an unbounded queue behind the one worker, and queued calls that ran
after their client had gone. The listener now keeps at most 64
connections and 16 calls (503 beyond), gives a request one deadline for
its header and body, and takes a waiting call out of the queue when its
client has closed the connection.

A Content-Length that is no ASCII number and a body nested too deeply
ended in an unhandled exception and a dropped connection: both get 400.
--allow-origin could not serve a browser page: the preflight is
answered and the answers carry the Access-Control headers, for origins
given with the option only. An unknown option is refused by its name
without repeating its value, which may be a token. The start line names
the project that is served.

The entry point is now tested with the listener factory replaced:
host, port, token rule, TLS and origins as passed.
The PHP and Ruby parsers call walk_named too, so their files with an
expression of 3,000 operands cannot be read while it recurses. This is
the smallest hunk for that; package wp5 owns the file and its own change
replaces this commit at the merge.
The visitors of the PHP and Ruby parsers recursed once per operand of an
expression and the C++ collector once per #elif branch, so a file with a
thousand of them raised RecursionError and aborted the build. They now
walk with a stack of their own, in the same order.
A review of 0.19.1 found that the query commands could answer for a file
other than the one asked about, and could leave out dependents.

- deps, rdeps, the dep lines of analyze, find_callers and find_calls
  follow a module from its shortest depth, so a module that a longer
  path reaches first no longer hides the modules behind it. The query
  forms (deps), (rdeps), (find-callers), (find-calls) walk level by
  level. A module that comes up again keeps its :cycle line, as the
  recorded 0.13.0 outputs print it.
- An argument that names a file is the module whose file it is, from the
  graph root or the current folder, or an error: never a file whose name
  is like it. A module pattern matches a suffix at a path or name
  boundary. An empty argument is an invalid argument.
- analyze, deps, rdeps, module, boundary and flow take the file path of
  a module and exit 1 when the name is not in the graph, as impact does
  and as README.md and tool-errors.md say.
- usages lists the candidates when a module pattern matches several
  definitions, and exits 1 when the file it names is not in the graph.
- grep_functions searches whole bodies, names a method Class.method and
  reads files only through the check source and grep use.
- source, grep and grep_functions number lines at line feeds only, as
  the parsers do.
The report put the evidence of a capability break, a line of source,
into a table cell as raw Markdown: a remote image and an HTML comment
in a source file were rendered. Evidence now stands in a code span
whose fence is longer than any run of backticks in it, and the cells
that hold rule and advice texts escape <, [, ! and the backslash.

"Next steps" printed wingbox impact with the raw name of the most
depended-on file, so a name with shell characters became a command
when pasted; the map page copied the same command to the clipboard.
Both quote the name as one shell word.
…line

One source file could end a build with a traceback and no graph: a parser
that raised RecursionError on a long expression of generated code, a
manifest with a byte that is not UTF-8 read while a language is bound, a
file that could not be read. A worker process that died took the whole
build with it. A build now records such a file and goes on: parse_source
returns the failure as a value, binary content (a NUL byte in the first
8 KB) is not parsed at all, the files of a dead worker are parsed again
one at a time, and binding a language names the manifest its reader fails
on and binds without it. The files left out are written to
.wingbox/graph-unparsed.sexp, so a question about one of them answers
not-in-graph with the reason instead of "no dependents"; a partial update
never patches such a file in.

A line break in a file name or in a name read from source was written raw
into the graph file and read back as a fact. Every line of the graph and
of the use file now has its control characters escaped, and a file whose
path holds one is left out with a notice.

Two repositories could get the same short ID (`db` + 20 and `db2` + 0),
which made every query fail. A prefix never ends in a digit now and is an
atom whatever the folder is named.

The :edges count of the header is taken from the edge lines written, so a
reader can compare it with what it loads.
A chart name with a line break added fact lines to the graph file with
--append: node IDs and edge ends were written without quotes, and a quoted
value kept its raw line breaks. Every ID, end and value is now an atom or
a quoted string with control characters escaped, as the builder writes
them. A manifest whose shape the reader does not expect (metadata that is
a list, a port that is no number, a name that is no text) raised
AttributeError or ValueError; it is now skipped with a warning that names
the file, and the other manifests give their facts.
…test

The check that no module of the package opens a network connection was
a line pattern: from urllib import request, import os, socket, import
socketserver and __import__("socket") passed it. It now walks the
imports with ast against a deny-list, and covers tools/ too.

tools/requirements_index.py listed one id for two behaviours. It now
refuses an id that two tests carry, in both modes, and names the tests.
Twelve ids were carried twice or three times: the later test of each
gets a number of its own, and the document that cited one of them
follows.
…read

A target whose sources are a variable was stored without sources, so
impact --only tests did not name it. A variable the same file sets once,
at its top level, with literal values is now substituted; any other
source argument that cannot be read marks the target ':sources unread',
and impact names those targets in '(unread-targets ...)'. A call in a
bracket comment made a target, a '#' in a quoted argument cut the call,
and a quoted test name was cut at its first space.

build_code_graph.py (the target and ctest facts), code_graph_search.py
and impact_forms.py (the answer) belong to other packages: smallest hunks.
…ames

'use function' and 'use const' were dropped and only classes were
entities, so a helpers file had no dependents; a require by __DIR__, a
class named in a Blade template (@Inject, @use, a qualified name before
'::'), the class of an <x-...> component, $this->view() and a route
action 'Controller@method' gave no edge.
…d constant by its scope

has_many :batches, :statuses, :people and :boxes gave no association
edge, and User::LIMIT with LIMIT defined in an included concern gave no
edge to User. The autoload path scan was quadratic in a line that
repeats autoload_paths.
A worker that died while files were still being handed out, or before any
other worker had answered, made the build fall back to parsing every file
in its own process, where the same file would end it. The files not
answered are now always parsed one at a time in a process of their own;
the pool is given up only when no worker ever answers. A record of
left-out files that cannot be read makes the partial update decline
instead of raising.
…ilent

More findings of the review of 0.19.1 in the query commands.

- A graph file or a use file that is not UTF-8, a count written with a
  digit that is no decimal number, a query function without its argument
  and a query nested deeper than 100 levels printed a traceback. They
  now answer the documented error fact; boundaries --strict exits 3 for
  an unreadable graph, not 1.
- A graph file with fewer edge facts than its header declares is an
  invalid graph: a file cut short answered from fewer dependencies and
  boundaries --strict said pass. A header count below the facts of the
  file (graphs written by hand in tests) is still read.
- usages says :incomplete when its list may miss uses: a file whose
  positions are not read yet is listed without them instead of being
  left out, and a missing, stale or unreadable use file is named in the
  answer, not only on standard error.
- A module or file name with a bracket, a semicolon or a space is one
  quoted atom in the fact lines, so --json no longer splits it. The flat
  facts of impact --sexp and usages --sexp keep the atoms of 0.13.
- grep reads a last escaped dollar sign as text; entity finds a name
  whatever its letter case, as its pattern form does; the command line
  impact --summary names is quoted for a shell.
- find_callers and find_calls say on standard error that calls edges
  need a build with --lsp and which command lists the call sites; their
  standard output is pinned by the recorded 0.13.0 outputs.
- A Python index.py is found as the file of its folder module, so the
  exact file match answers for it and names it.
A repository can commit symbolic links at .wingbox or below it; a build,
a hook or init then wrote through them, outside the project. Every writer
below .wingbox now goes through one helper (portable.refuse_links,
make_folder, open_unlinked): a .wingbox that is a link and a linked file
that is written in place are refused with one error that names the link;
a file that is replaced by a rename becomes a regular file.

Also from the review of 0.19.1:
- a snapshot root that is not absolute no longer confirms a graph as
  built here, so the hooks do not refresh a committed or copied .wingbox;
- skipped-language notes are written again from the language and the
  file count, never passed on from the record, and a graph that was not
  built here gives none;
- install and uninstall answer with a fact for a settings or
  instructions file they cannot read or write instead of a traceback,
  and install still writes its record;
- init leaves a .gitignore that already has a rule about .wingbox;
- refresh.log keeps only its last part once it passes 1 MB;
- the search hook quotes the path in the command it suggests.
The scope of the security policy named two places Wingbox writes to and
left out the project's .gitignore, Git's global excludes file, the
options that write where their name says, and the HTTP transport, the
only listening code. The README says what init does with a .gitignore
that already names .wingbox and what a link below .wingbox gets.
A review of 0.19.1 found states in which `wingbox boundaries --strict`
answered pass although a rule was broken or files were never read:

- source files of a part in a language no parser reads (they are in no
  module): the graph now counts them per part (arch-not-parsed) and the
  gate lists them as not checked;
- a graph known to be stale, and rule files (.wingbox/config.yaml,
  baseline.sexp, the learned layers of decisions.sexp) changed after the
  build: the graph records a digest of what the build read, and strict
  mode is incomplete in both cases;
- files in no part were counted as checked without --strict, and files
  that no rule places were counted as checked in both modes: :checked now
  counts the files a rule places, the others are listed (not checked) or
  counted apart (:no-layer), and ok is printed only for a pass;
- a file named like a composition root or a test was exempt from every
  rule and other files could relay an import through it: once a file of a
  layer imports it, it is judged like the files of its folder;
- a baseline entry hid its finding with an end date that is no day of the
  calendar, was revived by a second entry, and accepted a break of
  another rule than the one it states;
- a config whose parts hold no file got the built-in layered style;
- a scope that matches no module exited 0.

Also: test file patterns with a capital letter are matched as written
(Latest.java is no test), tests.py is a test, the capability detector
reads a bounded part of a long line (its SQL pattern is quadratic) and a
part with capability rules names the files of languages it does not read.

Two existing expectations follow the new counting: REQ-BCOV-019 (plain
mode no longer says ok for files in no part) and REQ-CS-050 (the summary
counts the files a rule places).
README, SKILL.md and the notation reference described the result line
before the gate told checked files from files no rule places, and did not
say which file names the rules exempt. They now state the new facts and
reasons, the exit status of a scope that matches nothing, the terms of a
baseline entry (a calendar date, the rule it states) and when a
composition root or a test keeps its exemption.
A file of a layer that nothing imports was still taken for an entry point
when the file it imported, named like a composition root, lay in another
part of the repository: only importers of the same part ended the
exemption. An importer of any part does now, and the documentation no
longer promises the entry point exemption to a file whose layer a rule
sets. Also covers the gate after a refresh that failed, and keeps the
test of a config without parts independent of whether the build accepts
such a config.
…d off

A repository that arrives with its .git folder can name programs in
.git/config, in its hooks and through .gitattributes, and a plain
git status, git diff or git ls-files started them during a build: the
fsmonitor program, the post-index-change hook, clean, smudge and process
filters, an external diff or textconv program, Git inside a submodule,
the transport of a promisor remote for missing objects and the signature
program of git log. Wingbox reads a repository and never runs it.

Every Git call now goes through scripts/git_safe.py, which switches each
of these off for the call. Filter drivers are read from the repository's
own configuration and given an empty program; a driver whose name cannot
be written on the command line stops the call. The drivers of the user's
own configuration keep running. git_descendants.py refuses a ref that
starts with "-".
impact --diff and diff_functions answered "empty" for real changes and
gave a ref to Git unchecked:

- A ref that starts with "-" was an option to git diff (--output=<file>
  created or emptied that file). It is refused before Git starts, in
  diff_functions, in the query form and in impact --diff, with
  (error invalid-argument ...) and a non-zero exit status.
- The patch was read by its look: diff.noprefix, diff.mnemonicPrefix,
  color.diff or diff.external made every answer empty, a path with a
  space kept the tab Git writes after it, a hunk header whose context
  held "+1," raised ValueError, and a line of a file that looks like a
  header was taken for one. The format is now fixed on the command line
  and the hunks are counted by their headers.
- Paths were relative to the top of the repository while the graph may
  be built below it, and a file was matched by the end of its path.
  Paths are relative to the graph root and matched exactly; the last
  definition of a file runs to its end.
- Removed lines, a removed file and a renamed file were no change. They
  are named now: removed lines count for the definition above them, and
  a path that is gone gets a changed-file / diff-file fact with its
  status, because its dependents are no longer in the graph.
- Under --only tests a function used by other files only printed an
  empty :used-by list; it now carries :other-users N.
- A failed git diff printed its message over several lines and exited
  with status 0: one line and status 1 now.
SKILL.md told an agent to search .wingbox/index.sexp for module paths
with rg; the file names modules by short ID, so the search finds
nothing and reads as "nothing imports this". The section now gives the
commands that answer, and the notation reference states the mapping.
The skill said it bundles scripts and gave its workflow as python3
scripts/..., which an installed skill does not hold: the examples are
wingbox commands, the script paths one note for a clone.

The README names the one exception to "no network" and "never run",
build --lsp; its comparison names the Wingbox versions and the answer
size of the result files. AGENTS.md names Windows, the limits page C
and C++ among the languages with use positions, the roadmap what
shipped since 0.13 and the published pull request check.

The container of the README compared a run of Wingbox 0.2.3 with
results committed for 0.10.0: the default of the benchmark script is
the version of the committed results.
…nd find an include in another case

A source file that no entry of a compilation database covers got none of
the folders the CMake files name and took every folder of the database
as if a compiler had been given them: such edges are now inferred. An
include whose name differs from the file only in case gave no edge. A
name with a bracket in it (operator()) was written bare to the graph and
read back cut: the writer quotes it (build_code_graph.py, smallest hunk).
A Go method no longer counts the type parameters of its receiver as
names of the package.
'part of app.main;' gave no edge from the part to its library: only the
form with a URI was read.
…tays unlinked

The README, the skill, the notation reference and the page of known
limits say what the fixes of this branch changed: the binding of C#
names, the files of a Go package, Java static uses, PHP functions and
Blade classes, Rails names, the Dart part of a named library, the
include folders beside a partial compilation database, and the CMake
targets whose sources are not read.
…eron-wingbox/6165448d-2ab3-425b-be56-d10e6bd85531/scratchpad/fix/wp3-gate into fix-review-0-19-1
The mark that an answer lists a file without its positions was kept on
the loaded graph. The MCP server keeps one graph between calls, so after
one incomplete answer every later answer said it was incomplete too. The
mark is now carried by the rows of one answer, and the graph only says
whether the positions last asked for were read from the files that hold
the name.
Discovery takes regular files only and descends into no linked folder. The
partial update asked os.path.isfile, which follows links: a link with a
source extension that appeared after the build, or a file below a linked
folder, was parsed and patched into the graph, also when it led outside
the repository. It now takes the files discovery takes.
… per class

`usages <file>::Class.method` answered 0 uses for `Store.create()`,
`Model::create()` and `db.query()`: a path was resolved up to its first
symbol and the segment after it was dropped. SymbolIndex.resolve_all now
also answers the member when one segment remains after a class, an enum, a
trait or a variable whose entity states its class (the new entity field
`type`); the builder adds every answer (the hunk in _module_uses).

The search for the class that defines a member walked every chain of
sixteen bases: four classes that name each other took minutes. It now
visits each class once, in the order written.

The builder also prints the notice of JavaScript files left out as
minified (the hunk after discovery; the text comes from
lang/typescript/javascript.py).
…iles

A name bound by an import inside a function or a class body was a plain
local, so `usages` missed every call behind such an import (189 of them in
this repository). It is now a binding of its scope, written from the
module the import names, read from the one walk of the tree.

The use collector was an ast.NodeVisitor and failed with RecursionError
from about 600 terms or 500 `elif` branches, which stopped the whole
build. It keeps a list of what is still to visit; the helpers that walked
chains by calling themselves loop instead. A file Python's own parser
refuses (a syntax error, a tree deeper than the parser of 3.11 builds, a
NUL character) keeps every name of its import statements, not the first.

The abstract classes are read from the tree: the expression used before
backtracked for hours on a long line. A module name longer than a file
name may be no longer stops the resolver, and the bound of a type
parameter is a use of its type.
… errors

- The walks keep a list of what is still to visit, so a chain of 3,000
  calls no longer ends the build with RecursionError; the shared
  walk_named of the Go, Java, C#, PHP and Ruby readers does the same.
- A computed key is not a member name: a template literal with a line
  break could write a line of its own into the graph.
- Path aliases are read from jsconfig.json and from the project files a
  `references` entry names; a project file whose real path lies outside
  the repository is refused.
- A package.json or tsconfig.json that is not UTF-8 or is nested too deep
  is reported and skipped (also Python loader configuration); `exports`
  nested hundreds deep is flattened without recursion.
- After a syntax error the import and re-export statements are read from
  the text as well, and the file is named in a warning.
- The files left out for a line over 5,000 characters are counted and
  named for the build to print; a class or a module-level variable states
  the class it holds.
…ressions

- The walks keep a list of what is still to visit: a builder chain of 260
  calls ended the build with RecursionError.
- A crate name is read from the dependency tables of the importing
  package (path and workspace dependencies). Two packages named `utils`
  no longer share one target, and a registry crate is never the local
  package of the same name; a name the manifest does not state is linked
  only when one local package has it.
- `include!("file.rs")` is a dependency on that file.
- A method called on a static or a constant (`GLOBAL.save()`) is a use of
  the method of its type.
- The search for `#[path]` attributes and for `extern crate .. as ..;`
  read a long line or many empty lines again from every position; both
  now read the text once. A Cargo.toml nested too deep is reported and
  skipped.
The test compared the log with a trailing newline, which standard
error on Windows writes as two characters.
…n the skill

One test per defect of the review (REQ numbers 9500 to 9524 of the block
reserved for this package). The skill text names the project files whose
aliases are read, the source roots of Python and the notice of files left
out for a long line.
`wingbox learn --apply FILE` with a file that does not exist or is not
UTF-8 ended in a traceback. It now names the file and the reason on
stderr and exits 2, like the other wrong uses of the command.
…eus-aileron-wingbox/6165448d-2ab3-425b-be56-d10e6bd85531/scratchpad/fix/wp9-mcp-ci-docs into fix-review-0-19-1

# Conflicts:
#	README.md
…eus-aileron-wingbox/6165448d-2ab3-425b-be56-d10e6bd85531/scratchpad/fix/wp6-other-langs into fix-review-0-19-1
…aileron-wingbox/6165448d-2ab3-425b-be56-d10e6bd85531/scratchpad/fix/wp7-builder into fix-review-0-19-1
…leron-wingbox/6165448d-2ab3-425b-be56-d10e6bd85531/scratchpad/fix/wp2-query into fix-review-0-19-1

# Conflicts:
#	docs/assurance/tool-errors.md
#	scripts/code_graph_search.py
walk_named is made iterative on the integration branch by the package
that owns the Go, Java, C#, PHP and Ruby readers; the same change here
would only conflict with it, so this branch keeps the file as it was and
drops its test of that walk. The test of the Rust expressions now fails
on the old code within half a minute: its empty lines are followed by a
line that is no `extern crate`, and its limit is 30 seconds.
…us-aileron-wingbox/6165448d-2ab3-425b-be56-d10e6bd85531/scratchpad/fix/wp4-archconfig into fix-review-0-19-1

# Conflicts:
#	src/wingbox/cli.py
After the merge of the config and the link packages, a .wingbox/config.yaml that is a
symbolic link out of the project was refused by the strict reader first, in other words
than the writers use, so one condition had two messages. The reader now names such a
link as the writers do. Only for the config file: for the other files below .wingbox a
file that cannot be read is a warning and the writer names the link itself.
…us-aileron-wingbox/6165448d-2ab3-425b-be56-d10e6bd85531/scratchpad/fix/wp5-py-ts-rust into fix-review-0-19-1
… and the plugin copy

The nine fix packages numbered their tests in reserved blocks. Each id now has the next
free number of its area (the seven TypeScript ones in the areas TS-SYM, TS-ALIAS, TS-JS
and a new TS-PARSE), the two documents that cite one follow, docs/assurance/requirements.md
is what the tool writes, and the plugin copies of SKILL.md and the notation reference are
what tools/sync_plugin.py writes.
A typo such as domain: [modles] placed no file in the layer, so its rules judged nothing and the
gate passed with :no-layer N and no word on what was wrong. The build now names the part, the
layer and the folder in a warning, for layers: and for order:.
On the benchmark corpora 13 of the 14 files the new warning named were valid code that the pinned
grammar cannot read (a tagged template with type arguments, export type * from). The warning now
says that the parser could not read all of the file.
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Wingbox: run calls code that changed, and 1 module outside this pull request uses it

This change edits what it is checked by

  • .github/workflows/benchmark-build-time.yml (changed): the workflow that runs this check
  • .github/workflows/benchmark-docker.yml (changed): the workflow that runs this check
  • .github/workflows/docs.yml (changed): the workflow that runs this check
  • .github/workflows/map-request.yml (changed): the workflow that runs this check
  • .github/workflows/publish-mcp.yml (changed): the workflow that runs this check
  • .github/workflows/tests.yml (changed): the workflow that runs this check

The findings are judged with these files as the base has them (commit 0018247): what only this change's own edit accepts is reported as new. A change of these files needs the review of someone other than its author.

run (function, packages/wingbox-http/src/wingbox_http/__init__.py:66) calls main, which changed. This module uses it and is not in the pull request:

  • packages/wingbox-http/src/wingbox_http/__main__ calls it at packages/wingbox-http/src/wingbox_http/__main__.py:3 and in 1 more place

Other code of scripts/architecture/advice.py, scripts/architecture/capabilities.py and 15 more changed too, outside the items Wingbox lists. These modules use those files and are not in the pull request:

  • scripts/architecture/align uses scripts/architecture/advice.py
  • scripts/architecture/init uses scripts/architecture/advice.py, scripts/architecture/plan.py and 1 more
  • scripts/architecture/learn uses scripts/architecture/detect.py, scripts/architecture/labels.py and 1 more
  • scripts/architecture/library uses scripts/architecture/capabilities.py
  • scripts/architecture/target uses scripts/architecture/detect.py, scripts/architecture/plan.py
  • scripts/lang/cpp/__init__ uses scripts/lang/interface.py
  • scripts/lang/csharp/validation uses scripts/lang/treesitter.py
  • scripts/lang/dart/__init__ uses scripts/lang/interface.py
  • scripts/lang/dart/validation uses scripts/lang/treesitter.py
  • scripts/lang/discovery uses scripts/lang/interface.py
  • ... and 22 more, by folder: scripts/lang/ 16, src/wingbox/ 4, tools/ 2 (the job summary lists them all)

Tests that use what changed (57): tests/output_trees, tests/test_add_command, tests/test_align, tests/test_architecture.py, tests/test_architecture_freshness and 52 more (the job summary lists them all).

Tests changed together with the code they test: tests/test_http_transport.py (tests src/wingbox/mcp_server.py); tests/test_impact_evidence.py (tests scripts/build_code_graph.py); tests/test_impact_evidence.py (tests scripts/code_graph_search.py); tests/test_python_dynamic_loading.py (tests scripts/build_code_graph.py); tests/test_python_dynamic_loading.py (tests scripts/code_graph_search.py); tests/test_review_fixes.py (tests scripts/architecture/advice.py); tests/test_review_fixes.py (tests scripts/architecture/decisions.py); tests/test_review_fixes.py (tests scripts/architecture/declared.py); tests/test_review_fixes.py (tests scripts/architecture/detect.py); tests/test_review_fixes.py (tests scripts/architecture/labels.py); 8 more. Look at what they no longer check.

More: the picture, 2 through a facade or declaration, 2 within 2 hops, 60 test modules, 29 files outside the code graph

Blast radius

%%{init: {"flowchart": {"nodeSpacing": 12, "rankSpacing": 60, "padding": 8}}}%%
flowchart RL
  subgraph pr["Changed files"]
    c0["...ges/wingbox-http/src/wingbox_http/__init__.py"]
    c1[["11 files in scripts/architecture/"]]
    c2[["10 files in scripts/"]]
    c3[["16 files in scripts/lang/"]]
    c4[["7 files in src/wingbox/"]]
    c5[["2 files in tests/"]]
  end
  subgraph g0["packages/"]
    m0("wingbox-http/src/wingbox_http/__main__")
  end
  subgraph g1["scripts/"]
    m1[["3 modules"]]
  end
  subgraph g2["scripts/architecture/"]
    m2[["5 modules"]]
  end
  subgraph g3["scripts/lang/"]
    m3[["21 modules"]]
  end
  subgraph g4["src/wingbox/"]
    m4[["4 modules"]]
  end
  subgraph g5["tests/"]
    m5[["57 test modules"]]
    m6[["3 test modules"]]
  end
  subgraph g6["tools/"]
    m7[["2 modules"]]
  end
  m0 -.-> c0
  m1 -.-> c3
  m1 -.-> m2
  m2 --> c1
  m3 --> c3
  m4 --> c4
  m5 --> c1
  m5 --> c2
  m5 --> c3
  m5 --> c4
  m5 --> c5
  m6 -.-> m2
  m6 -.-> m5
  m6 -.-> m7
  m7 --> c4
  classDef changed stroke-width:3px
  classDef far stroke-dasharray:5 4
  class c0,c1,c2,c3,c4,c5 changed
  class m0,m1,m6 far
Loading

An arrow points from a module to what it uses. Thick border: changed in this pull request. Dashed: it reaches a changed file through a module facade, a declaration or within 2 hops. A box with a count stands for the modules of one folder.

Through packages/wingbox-http/src/wingbox_http/__init__.py, scripts/lang/csharp/__init__.py and 2 more (a module facade or the declaration of the file): 2 module(s), by folder: packages/wingbox-http/ 1, scripts/lang/ 1. They see the change only if it alters an item they use.

Within 2 hops, by folder: scripts/architecture/ 2.

Tests that use the changed code (60), by folder: tests/ 60.

Not in the code graph (29: documents, configuration or deleted files): .github/workflows/benchmark-build-time.yml, .github/workflows/benchmark-docker.yml, .github/workflows/docs.yml, .github/workflows/map-request.yml, .github/workflows/publish-mcp.yml and 24 more.

No new boundary finding.

Not checked: part . (its style has no layers); part benchmarks/php/fixture/modules/Blog (it has too few files to judge); part packages/wingbox-http (it has too few files to judge). No finding is reported there, and that is not a pass. The rules were checked on 29 other modules.

Verdicts

  • Boundaries, introduced by this change: UNKNOWN (not-checked: . (no-layer-style); not-checked: benchmarks/php/fixture/modules/Blog (too-few-files); not-checked: packages/wingbox-http (too-few-files))
  • Boundaries, there before this change: UNKNOWN: no violation was found, but not everything was checked
  • Baseline: no accepted break
  • Tests: none
  • Coverage: incomplete (not-checked: . (no-layer-style); not-checked: benchmarks/php/fixture/modules/Blog (too-few-files); not-checked: packages/wingbox-http (too-few-files))
  • Eligible as evidence: no (boundaries-introduced: UNKNOWN; boundaries-existing: UNKNOWN; tests: none; coverage: incomplete)
Review plan for an agent
(review-plan :schema 1 :result UNKNOWN :execution ok :base 00182470791484c8baf591ea253808c1a5b17b60 :head 3dd57b26b2716d57bff4e5472217d7fca8a84b32 :wingbox "0.19.1" :hops 2 :checked 79adf6d575b4c80ad0484475e27a6eafe690494b :tree merge)
(reason "not-checked: . (no-layer-style)")
(reason "not-checked: benchmarks/php/fixture/modules/Blog (too-few-files)")
(reason "not-checked: packages/wingbox-http (too-few-files)")
(policy-changed ".github/workflows/benchmark-build-time.yml" :kind workflow :how changed)
(policy-changed ".github/workflows/benchmark-docker.yml" :kind workflow :how changed)
(policy-changed ".github/workflows/docs.yml" :kind workflow :how changed)
(policy-changed ".github/workflows/map-request.yml" :kind workflow :how changed)
(policy-changed ".github/workflows/publish-mcp.yml" :kind workflow :how changed)
(policy-changed ".github/workflows/tests.yml" :kind workflow :how changed)
(policy-of-base 00182470791484c8baf591ea253808c1a5b17b60)
(changed-item "packages/wingbox-http/src/wingbox_http/__init__.py" run :kind fn :line 66 :how calls :via (main))
(look "packages/wingbox-http/src/wingbox_http/__main__.py" 3 :module packages/wingbox-http/src/wingbox_http/__main__ :why call :item run :places 2)
(other-code "packages/wingbox-http/src/wingbox_http/listener.py")
(other-code "packages/wingbox-http/src/wingbox_http/settings.py")
(other-code "packages/wingbox-http/src/wingbox_http/transport.py")
(other-code "scripts/architecture/advice.py")
(other-code "scripts/architecture/baseline.py")
(other-code "scripts/architecture/capabilities.py")
(whole-file "scripts/architecture/config.py")
(whole-file "scripts/architecture/decisions.py")
(whole-file "scripts/architecture/declared.py")
(whole-file "scripts/architecture/detect.py")
(whole-file "scripts/architecture/facts.py")
(whole-file "scripts/architecture/labels.py")
(whole-file "scripts/architecture/plan.py")
(whole-file "scripts/architecture/repository.py")
(whole-file "scripts/architecture/sexp.py")
(whole-file "scripts/build_code_graph.py")
(whole-file "scripts/build_infra_topology.py")
(whole-file "scripts/code_graph_search.py")
(whole-file "scripts/fact_json.py")
(whole-file "scripts/generation.py")
(whole-file "scripts/git_descendants.py")
(whole-file "scripts/git_ignore.py")
(whole-file "scripts/git_safe.py")
(whole-file "scripts/graph_snapshot.py")
(whole-file "scripts/graph_update.py")
(whole-file "scripts/impact_forms.py")
(whole-file "scripts/lang/config_values.py")
(whole-file "scripts/lang/cpp/imports.py")
(whole-file "scripts/lang/cpp/parser.py")
(other-code "scripts/lang/cpp/symbols.py")
(whole-file "scripts/lang/csharp/__init__.py")
(whole-file "scripts/lang/csharp/imports.py")
(whole-file "scripts/lang/csharp/parser.py")
(whole-file "scripts/lang/dart/imports.py")
(whole-file "scripts/lang/dart/parser.py")
(whole-file "scripts/lang/go/imports.py")
(whole-file "scripts/lang/go/parser.py")
(whole-file "scripts/lang/interface.py")
(whole-file "scripts/lang/java/imports.py")
(whole-file "scripts/lang/java/parser.py")
(whole-file "scripts/lang/pascal/parser.py")
(whole-file "scripts/lang/php/blade.py")
(whole-file "scripts/lang/php/imports.py")
(whole-file "scripts/lang/php/parser.py")
(whole-file "scripts/lang/php/psr4.py")
(whole-file "scripts/lang/python/__init__.py")
(whole-file "scripts/lang/python/dynamic.py")
(plan-more :hidden 315)

Wingbox 0.19.1, base 0018247, head 3dd57b2, checked as merged into the base (commit 79adf6d). Built and checked on the runner, without a language model; no code left it.

Seven new tests failed on Windows only, none for a fault of the code: four expected a path with
/ where Wingbox prints the path as the system writes it, one wrote its file in text mode (\r\n
became \r\r\n), one assumed that Python 3.12 always parses an expression of 3,000 terms (on
Windows its parser stops earlier and the file takes the fallback the test already checks), and
one hands a stand-in parser to the workers by fork, which Windows does not have; it is skipped
there.
On Windows the background refresh that a hook starts can still hold .wingbox/refresh.log open
after it wrote its result, and an open file cannot be removed there: the cleanup of one test
failed on one of three Windows cells, after its assertions had passed.
@it-baron it-baron closed this Nov 25, 2026
@it-baron it-baron reopened this Nov 25, 2026
@it-baron
it-baron merged commit 73484f4 into main Nov 25, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant