Skip to content

docs(diagrams): bring dependency-graph.md back in line with the source at 0.15.1 - #211

Merged
laithalsaadoon merged 1 commit into
mainfrom
docs/dependency-graph-0.15.1
Sep 23, 2026
Merged

laithalsaadoon merged 1 commit into
mainfrom
docs/dependency-graph-0.15.1

Conversation

@laithalsaadoon

Copy link
Copy Markdown
Contributor

Documentation only: docs/diagrams/structural/dependency-graph.md realigned to the source at 0.15.1 (main d64e6a3), plus two lines in docs/architecture/module-map.md.

Why the page needed it. It still drew the consolidator as an eve agent and cited apps/consolidator/agent/agent.ts, agent/channels/eve.ts and agent/sandbox/sandbox.ts, all deleted by 40511b7 when the agent became an in-process AI SDK tool loop. It did not know packages/integrations or packages/telemetry existed, pinned Effect at rc.109, and every count in its prose (12 packages, 37 direct edges, 18 dropped, "cli imports nine of the other eleven", the worked-example site counts, the overflow edge counts) came from that older tree. The See also counts were 5/5/2/2 where the generator gives 24/20/18/14/12/11, and the page had no version stamp.

What changed, all re-measured this run (artifacts kept with the maintenance job: depgraph-measure.py and its output):

  • 14 internal packages, 45 direct internal edges, 19 after transitive reduction, 26 dropped, acyclic. contracts and telemetry are the two sinks; mcp is the only source; cli imports 12 of the other 13.
  • The eve node is gone. The consolidator's ai / @ai-sdk/amazon-bedrock / @ai-sdk/anthropic stack is drawn as a second edge into Bedrock Runtime because apps/consolidator/src/model.ts:14-15 says the direct path is the same InvokeModel call packages/llm makes with the AWS SDK; the three libraries keep separate pins in the table. @effect/platform-node (one import site) moves to the overflow so the diagram stays at exactly 20 nodes.
  • Every pin and manifest line re-read (Effect rc.115 at pnpm-workspace.yaml:93-94, just-bash 3.4.2, Bedrock Runtime 3.1135.0, @ai-sdk/amazon-bedrock 5.0.81, plus zod and jsonc-parser in the overflow). Every path:line citation re-verified: 121 citations, 0 missing, 0 out of range.
  • The declared-but-no-runtime-edge list grows from two to four (traces -> index, index -> llm, index -> store dev, mcp -> llm and traces), each with the source comment that explains it.
  • Stamp line and the See also method sentence added, matching the insights pages.
  • module-map.md: the deleted apps/consolidator/src/run-auth.ts (231 LOC) leaves the supporting-code list, and its Dependency graph See also row goes 5 -> 24. Nothing else in that file changed; its other See also rows are also stale and are a target for a later run.

Source-side notes surfaced by the audit, not changed here (they are under apps/*/src or manifests): apps/consolidator/package.json:5 still describes the package as "The eve agent"; the comment at apps/cli/src/exec.ts:321-322 still names an eve closure in api-layer.ts as its precedent; apps/consolidator/src/index.ts:6-7 says only the sleep phase depends on the barrel while cli and eval import it.

mise run format:md made no further change. Local gate result in the first comment. Authority: documentation edits for legibility (standing authority item 2); docs-only, so Laith's 2026-09-14 ruling covers the merge while Copilot's body is its quota message.

…e at 0.15.1

The page still drew the consolidator as an eve agent and cited three files
under apps/consolidator/agent/ that commit 40511b7 deleted when the agent
became an in-process AI SDK tool loop. It also predated packages/integrations
and packages/telemetry, pinned Effect at rc.109, and carried edge and
import-site counts measured on that older tree.

Re-measured at d64e6a3 with artifacts kept alongside this run: 14 internal
packages, 45 direct internal edges reduced to 19 (26 dropped, acyclic), two
sinks (contracts and telemetry), cli importing 12 of the other 13. The eve
node is gone; the consolidator's AI SDK stack is drawn as a second edge into
Bedrock Runtime (same InvokeModel service, apps/consolidator/src/model.ts:14-15)
and @effect/platform-node moves to the overflow table so the diagram stays at
the 20-node budget. Every pin, manifest line and import site was re-read; the
four declared-but-unused workspace dependencies are listed with their reasons;
the page gains the version stamp and See also method sentence the insights
pages use, with regenerated counts (5/5/2/2 -> 24/20/18/14/12/11).

module-map.md: drop the deleted apps/consolidator/src/run-auth.ts from the
supporting-code list and update its Dependency graph See also count to match.
@laithalsaadoon

Copy link
Copy Markdown
Contributor Author

Local gate on this head (ff76113): mise run check green, 68 of 68 tasks in 70 s (64 cached; the docs build, lint:md and the site tests re-ran). mise run format:md made no change. Citation check on the rewritten page: 121 path:line citations, 0 missing, 0 out of range. Commit signature verified by the GitHub API.

Copilot AI lite review requested due to automatic review settings September 23, 2026 07:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@laithalsaadoon

Copy link
Copy Markdown
Contributor Author

CI check attempt 1 failed in packages/store on tests/store.test.ts:1507 ("a failed commit is compensated, for every singular operation > compensates an INTERRUPTED archive, which is what a client timeout leaves"): ENOENT ... /tmp/memhtml-store-U0fysv/areas/inbox/a-remembered-fact.html. This PR changes two Markdown files under docs/, and the same head passed the local gate 68/68, so this is a timing flake on the runner, of the same family as the integrations doctor handshake timeout (#207 attempt 1 yesterday). The failed job was re-run at 07:27Z; the test is left untouched for Laith.

@laithalsaadoon
laithalsaadoon merged commit 97e6a4e into main Sep 23, 2026
12 of 13 checks passed
@laithalsaadoon
laithalsaadoon deleted the docs/dependency-graph-0.15.1 branch September 23, 2026 07:34
laithalsaadoon added a commit that referenced this pull request Sep 23, 2026
#214)

fix: remove the timing races behind three intermittently failing tests

Each of these failed on CI or on a loaded box while the same tree passed alone;
none was a wrong answer from the code under test.

- integrations doctor "completes the live MCP handshake": the handshake probe
  had a 5 s bound for strictly more work than the 10 s version probe (the
  server must load the CLI's module graph and open and migrate the store's
  database before it can answer initialize). HANDSHAKE_TIMEOUT_MS is now 20 s
  and the test's own vitest timeout 45 s, above the sum of both probe bounds.
  Failed 2026-09-14 (twice, locally under a11y/Lighthouse load) and on CI for
  #207 on 2026-09-22.

- store "compensates an INTERRUPTED archive": the test interrupted on a 200 ms
  wall clock while claiming to interrupt at the hanging commit. On a slow
  runner 200 ms landed inside `git mv` or `git add`; the aborted child still
  held .git/index.lock when the compensation's `git reset` ran, so restore
  failed as a whole and the moved file was never put back (CI for #211,
  2026-09-23: ENOENT on the first readFile). The fake commit now signals a
  Deferred when reached and hangs; the test forks the archive, waits for the
  signal, interrupts the fiber, and asserts the exit carries an interrupt.
  The interruption lands at the commit on every box, which is the production
  case the comment names.

- consolidator "removes the temp parent it created": the census counted every
  memhtml-corpus-snapshot-* entry in tmpdir(), which reachability.test.ts
  creates and removes in a parallel worker (5 before, 3 after on 2026-09-08).
  The census now reads only the two names this case created; dropping the
  rm(parent) from release still leaves both and fails the assertion.

Merged under the standing authority Laith granted on 2026-09-23 for addressing
flakes.
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.

2 participants