Repository navigation
Conversation
This was referenced Apr 19, 2026
This was referenced Apr 22, 2026
This was referenced May 1, 2026
neo-opus-ada
pushed a commit
that referenced
this pull request
May 7, 2026
The full per-bucket substrate audit from #10903 has landed across two epics: Bucket A-F (closed via #10903 epic): - A+E (heavy SLM + Authorization PoC-skip) via #10907 - B+D (grid WIP + MCP server bootstrap) via #10921 - C (substrate-data ~17 specs) via #10910 - F (CrossTenantIsolation + HeartbeatPropagation deferrals) via #10919 - HeartbeatPropagation toBeGreaterThanOrEqual fix via #10920 Bucket G (#10924 — closes via this PR's downstream wave): - G1+G2+G3 hard-failure skip-guards via #10928 - G4 namespace-collision spec-local fix via #10929 - G5 (4 flakes): #1 cascade-resolved by G4; #4 (TransportService bind race) + #10931 POLL_INTERVAL coupling shipped via #10930 - G6 (27 did-not-run) — expected to auto-clear post-G1-G4 per @neo-gpt's monitoring lane All bucket skip-guards activate via the NEO_TEST_SKIP_CI=true env already in this workflow's Run-tests step (added in Lane C #10899 prior commit 094c3e7). This commit re-enables the unit matrix row that was deferred during the #10903 audit cycle. Both suites now gate PR-to-dev runs for the first time since #10903 deferral. Continues #10897 (Lane C followup); the original Lane C scaffolding shipped via 4fb4bca. Bucket epics #10903 + #10924 close-out tracked separately as project-management events when their last subs close.
neo-opus-ada
pushed a commit
that referenced
this pull request
May 10, 2026
… refresh spec header (#11141) Per @neo-gpt's PR #11143 cycle-2 follow-up review (commentId 4416108391): **Drift 1 — restore.mjs JSDoc overstated merge-mode coverage:** "Embedded substrates use INSERT OR IGNORE" was wrong for memory/summaries (Chroma `collection.upsert()` is still in use; preserve-live parity tracked at #11144). Narrowed to "Graph SQLite uses INSERT OR IGNORE; Memory + summaries (Chroma) still use collection.upsert(); parity at #11144." **Drift 2 — restore-filters.spec.mjs stale "deferred" header:** Header still listed "INSERT OR IGNORE row-level semantics (gated on #11142 wipe-path fix)" as deferred even though those 4 row-level regression tests were added in commit `65d39bdd8` of this PR. Updated coverage section #4 to enumerate them, and the deferred section to only list the genuinely out-of-scope items (full runRestore flow + Chroma parity #11144).
tobiu
added a commit
that referenced
this pull request
May 10, 2026
…/targeting/hooks (#11141) (#11143) * feat(ai-restore): preserve-live merge semantics + per-incident filter/targeting/hooks (#11141) Sharpens the two-mode contract documented in #10871 and adds per-incident customization for substrate-targeted restoration. **Core semantic correction:** `Memory_DatabaseService.#importGraph` previously used `INSERT OR REPLACE` in both modes — the `mode` parameter only gated truncate. Result: `merge` mode silently overwrote live rows with backup versions when IDs collided. - `replace` mode: TRUNCATE then `INSERT OR REPLACE` (existing destructive behavior; preserved). - `merge` mode: `INSERT OR IGNORE` (NEW) — backup-only IDs INSERT; live-existing IDs preserved (post-wipe re-ingestion via gh-workflow + retrospective daemon stays authoritative). **New CLI flags on `runRestore` / `parseArgs`:** - `--filter-labels=<csv>` — drop graph nodes by label (e.g., `FILE,DIRECTORY,KB_GAP,TOOLING_GAP`). Orphan-edge guard drops edges whose source/target was filtered. - `--filter-edge-types=<csv>` — drop graph edges by type (e.g., `CONTAINS,DISCOVERED_IN,EVALUATED_BY`). - `--only-substrate=<csv>` — restrict to listed substrates. - `--post-restore-hook=<name>` — supports `filesystem-ingestor` (regenerates FILE/DIRECTORY/CONTAINS deterministically post-restore). Filter implementation: stream-reads JSONL into a temp directory mirroring the bundle layout. Pre-import; SDK contract unchanged. Idempotent. **Empirical anchor (2026-05-10 graph-wipe incident):** Graph SQLite wipe via `Store.clear → onNodesMutate → SQLite.removeNodes` bypassed #10845's `SQLite.clear` guard (root cause being addressed in #11140). Live graph went 22,660 → 3,545 nodes. Dry-run restoration analysis at `.neo-ai-data/recovery-2026-05/graph-restore-dryrun.mjs` identified 11,589 substrate-correct insert target after applying the example filter set above. **Sequencing:** this PR's empirical-validation step (today's actual data restore) is gated on #11140 landing first — restoring without the wipe-path guard means re-wipeable on next test run. * refactor(ai-restore): FK-safe edge filter + truthful counters + hook allowlist (#11141) Incorporates @neo-gpt's /peer-role review on #11141 (commentId 4416007918): **FK-safe edge filtering** — Refactor `prepareFilteredGraphDir` into three stages: 1. Cross-bundle node classification: walk EVERY JSONL file in the bundle to build `acceptedBackupNodeIds` set (per-file classification missed cross-file edges). 2. Compute `validEndpointIds = acceptedBackupNodeIds ∪ liveNodeIds`. Edges may INSERT only if both endpoints exist in this union. Otherwise FK violation against `Edges.source/target → Nodes(id)` post-`INSERT OR IGNORE`. 3. Stream-write filtered output preserving JSONL nodes-before-edges order. Adds `collectLiveGraphNodeIds({dbPath})` helper — read-only better-sqlite3 query against the live graph SQLite (WAL mode permits concurrent reads with the running MC daemon). Caller in `runRestore` collects the snapshot before invoking the filter. **Truthful counters** — `Memory_DatabaseService.#importGraph` now distinguishes `inserted` (changes === 1) vs `skippedExisting` (changes === 0; OR IGNORE silent no-op) vs `failed` (per-record exception). Uses better-sqlite3's `stmt.run().changes`. Returns `{imported, counts, mode}` — `imported` field preserved for backward-compat with the caller in `importDatabase` (totalImported accumulator); `counts` exposes `nodes.{inserted,skippedExisting,failed}` + `edges.{inserted,skippedExisting,failed}`. **Post-restore hook allowlist** — Explicit reject for `dream-service` per peer-review (REM cycle does graph mutation/inference; can blur recovery validation immediately after a restore). Only `filesystem-ingestor` allowlisted. Unknown hooks throw. **Scope split** — Filed #11144 (Chroma `#importMemories` preserve-live parity follow-up) to keep this PR boundary clean per peer-review recommendation. * test(ai-restore): unit coverage for parseArgs new flags + filter + hook allowlist (#11141) Adds `test/playwright/unit/ai/buildScripts/restore-filters.spec.mjs` covering the new surfaces from cycle-1 commits (`75a1bd4f3` + `e7030b13b`): **parseArgs (CLI surface):** - `--filter-labels` accepts both space-separated and `=`-suffix CSV forms. - `--filter-edge-types` same. - `--only-substrate` parses CSV. - `--post-restore-hook` accepts allowlist name. - Defaults preserved when new flags absent. - Unknown-flag rejection still fires. - Empty CSV `--filter-labels=` yields empty array (filter inactive). **prepareFilteredGraphDir (FK-safe filter, synthetic JSONL fixtures):** - Drops nodes by label. - Drops edges by type. - Orphan-edge guard: edges to filtered nodes are dropped. - **Live-union check**: edges to live-only endpoints (in `liveNodeIds` Set but not in backup) are PRESERVED; edges to never-existing endpoints are dropped. Validates the Stage-2 union-check from the @neo-gpt review. **dispatchPostRestoreHook (allowlist):** - `dream-service` explicit-reject with rationale message. - Unknown hook rejected with allowlist hint. Internal helpers (`prepareFilteredGraphDir`, `collectLiveGraphNodeIds`, `dispatchPostRestoreHook`) made `export` for direct testability. **Not in this spec (deferred to post-#11142 merge):** - Full `runRestore` flow with new flags (would touch live MC services). - `INSERT OR IGNORE` row-level semantics (requires real SQLite + safe test isolation; gated on the #11140 wipe-path fix landing first). - Chroma-side parity (#11144 follow-up). * test(ai-restore): update existing parseArgs deep-equal for new #11141 fields `restore.spec.mjs:378` deep-equals the parseArgs return shape. After #11141 extended `parseArgs` to include `filterLabels`/`filterEdgeTypes`/`onlySubstrate`/ `postRestoreHook`, the deep-equal needed corresponding default values (`[], [], null, null`) added. Discovered via CI failure on this PR (run 25636616464; 1 failed of 1069+86 skipped). All three deep-equal assertions in the existing test updated to include the new fields with their default values, preserving full coverage of the existing flag combinations. Comprehensive coverage of the new flags' parsing behavior continues to live in `restore-filters.spec.mjs` (added in `2aa5161ef`). * fix(ai-restore): surface graph counts through importDatabase return shape (#11141) @neo-gpt's peer-role follow-up identified that the per-substrate truthful counters from `#importGraph` were getting swallowed at the `importDatabase` aggregation layer — only the aggregate `imported` total surfaced in the public return. Now `importDatabase` adds a `counts` field: ``` { message: string, imported: <total>, mode: 'merge' | 'replace', counts: { graph: { nodes: {inserted, skippedExisting, failed}, edges: {...} } | null, memoriesInserted: <number> // bulk Chroma upsert; sub-types deferred to #11144 } } ``` The SDK return propagates through `runRestore`'s `subsystems.graph` assignment, so the public `runRestore` result exposes the structured counts for operator validation post-merge. Memory/summary side aggregates as `memoriesInserted` for now; finer-grained inserted/skipped/failed split deferred to #11144 (Chroma preserve-live parity) where it's natural to thread per-record outcome through the chunked-batch path. * test(ai-restore): fix spec bootstrap + add row-level INSERT OR IGNORE regression (#11141) @neo-gpt's PR #11143 cycle-1 review (commentId 4416083541) RA 2 + RA 3: **RA 2 — bootstrap fix:** `restore-filters.spec.mjs` failed with `Neo.gatekeep is not a function` (Compare.mjs:166) because importing `restore.mjs` chains to `ai/services.mjs` which loads core classes requiring the `gatekeep` augmentation. The setup() call only configures Neo; the augmentation happens via `src/Neo.mjs` + `src/core/_export.mjs` imports — same pattern as the existing `restore.spec.mjs`. Added the missing imports. **RA 3 — direct row-level regression for the core semantic fix:** 4 new tests under `graph merge: INSERT OR IGNORE preserves live rows + edges` describe block. Use better-sqlite3 directly with synthetic schema mirroring production (Nodes + Edges + ON DELETE CASCADE FK) — no GraphService / Memory_DatabaseService boot dependency. - **merge mode (OR IGNORE), conflicting node-id**: live row preserved (data unchanged), `changes === 0`, AND live edge NOT cascade-deleted (the critical empirical reason merge cannot use OR REPLACE). - **replace mode (OR REPLACE), conflicting node-id**: live row replaced, AND live edge IS cascade-deleted via ON DELETE CASCADE during the implicit DELETE phase of OR REPLACE — documents the asymmetry and locks in the empirical reason for the semantic split. - **merge mode (OR IGNORE) on edges**: conflicting edge-id preserves live edge type + data. - **merge mode**: backup-only IDs INSERT cleanly (`changes === 1`). Tests assert the SQL primitive directly so future refactoring or schema migration would surface any merge-mode regression at the lowest possible testable layer. * fix(test): make buildSyntheticGraphDb sync — no async needed for better-sqlite3 (#11141) CI failed at line 340 with 'Cannot read properties of undefined (reading close)' because buildSyntheticGraphDb was declared async but called via sync IIFE; the destructured `{db, dbFile}` resolved to undefined fields of a Promise. better-sqlite3 is synchronous (new Database, pragma, exec, prepare, run all sync) — the async keyword was spurious. Removed it + simplified call sites to direct invocation. All 4 row-level INSERT OR IGNORE tests now resolve correctly. * docs(ai-restore): cycle-2 RA — narrow merge-mode prose to graph-only; refresh spec header (#11141) Per @neo-gpt's PR #11143 cycle-2 follow-up review (commentId 4416108391): **Drift 1 — restore.mjs JSDoc overstated merge-mode coverage:** "Embedded substrates use INSERT OR IGNORE" was wrong for memory/summaries (Chroma `collection.upsert()` is still in use; preserve-live parity tracked at #11144). Narrowed to "Graph SQLite uses INSERT OR IGNORE; Memory + summaries (Chroma) still use collection.upsert(); parity at #11144." **Drift 2 — restore-filters.spec.mjs stale "deferred" header:** Header still listed "INSERT OR IGNORE row-level semantics (gated on #11142 wipe-path fix)" as deferred even though those 4 row-level regression tests were added in commit `65d39bdd8` of this PR. Updated coverage section #4 to enumerate them, and the deferred section to only list the genuinely out-of-scope items (full runRestore flow + Chroma parity #11144). --------- Co-authored-by: tobiu <[email protected]>
This was referenced May 11, 2026
Merged
Merged
Closed
tobiu
added a commit
that referenced
this pull request
May 13, 2026
* feat(skills): add perFilePayloadBudget for recursive Map vs World Atlas enforcement (#11320) Sub-A of Epic #11319 (Discussion #11314 graduation). Implements the mechanical-enforcement primitive for recursive Map vs World Atlas at the references/<workflow>.md tier: - Schema: new optional `perFilePayloadBudget` field in defaults block AND per-skill entry (positive integer, omit to disable per-file enforcement). - Manifest: defaults.perFilePayloadBudget = 25000 (25 KB empirical floor for clean skills). Temporary per-skill overrides for migration-period monoliths: pr-review = 66000 (pr-review-guide.md @ 57,388 B); pull-request = 38000 (pull-request-workflow.md @ 33,463 B). These override values tighten as Sub-B+ migrations extract rare-trigger sections to sub-rule sibling files. - Lint script: new payloadFileSizes() walker reports per-file sizes within references/; main lint() compares each file against the per- skill perFilePayloadBudget (cascading from defaults), fails with Required Action template directing the author to the Map vs World Atlas extraction pattern documented in skill-authoring-guide.md. - Lint script (validator): perFilePayloadBudget validated as positive integer when present; backwards-compatible when omitted. Unsupported- key checks tightened to use schema.properties keys instead of schema.required so optional fields don't false-fail. - /create-skill discipline: skill-authoring-guide.md §"Map vs World Atlas Constraint Placement" extended with new "Recursive Application" subsection documenting the canonical one-line trigger pointer syntax `<!-- trigger: [condition] → read [sub-rule.md] -->` and the empirical-floor + temporary-override calibration model. - Tests: 4 new specs covering defaults acceptance, per-skill override, positive-integer validation, and backwards-compat (manifest without the field passes cleanly). All 10 tests in lintSkillManifest.spec.mjs pass in 2.5s. NO workflow migrations in this PR. Migration of pr-review-guide.md and pull-request-workflow.md to extract rare-trigger sections behind one-line trigger pointers is Sub-B+ lane per Epic #11319 graduation target split (avoiding migration blast-radius blur per @neo-gpt body- repair #4 on Discussion #11314). Substrate-Mutation Pre-Flight slot-rationale per pull-request-workflow.md §1.1: - New schema field perFilePayloadBudget (defaults + per-skill): disposition `keep` for the schema field; 3-axis = high-frequency (every CI run on .agents/skills/** PR) × high-severity (atlas- monolith re-bloat empirically demonstrated +27-130% over 6-8 weeks post-Epic #10733 cleanup) × machine-enforceable (lint script). Net cost: ~30 chars in always-loaded schema, ~30 chars in manifest defaults, +~60 chars total for 2 per-skill overrides. Substrate net-expansion is preventive against linear future bloat per future- decay-mitigation rationale. - skill-authoring-guide.md +26 lines: disposition `keep`; document is conditionally loaded only on /create-skill invocation; addition is the canonical syntax + recursive principle documentation that Sub-B+ migrations will consume. - lint-skill-manifest.mjs +33 lines: disposition `keep`; mechanically enforces the principle. Resolves Sub-A AC1-3, AC6-10 of Epic #11319. Section-trigger parser + trigger-frequency × size heuristic (Sub-A AC4-5) deferred to Sub-A-follow-up ticket: the per-file byte cap is sufficient v1 mechanical primitive; the parser becomes load-bearing when Sub-B+ migrations introduce trigger declarations to validate. Co-authored-by: Tobias Uhlig <[email protected]> Co-authored-by: neo-gemini-3-1-pro <[email protected]> Co-authored-by: neo-gpt <[email protected]> * refactor(skills): extract checkPerFileBudgets pure function + add negative-path tests (#11332) Cycle 1 response to @neo-gpt review of #11324: - RA2: extract `checkPerFileBudgets(files, perFileBudget)` as pure exported function from inline lint loop; testable + reusable by future sub-rule extraction tooling. Add 3 new specs: over-budget negative path, all-files- under-budget happy path, and omit-to-disable contract (null / undefined / 0 / negative all return no errors). - RA3: nullable contract canonicalized to "omit to disable; positive integer when present" — explicit test for the omit-to-disable rule. 13/13 lint-skill-manifest specs pass in 2.2s. PR body updated with RA1 close-target retarget to #11332 + RA4 /turn-memory-pre-flight retrospective. --------- Co-authored-by: tobiu <[email protected]> Co-authored-by: neo-gemini-3-1-pro <[email protected]> Co-authored-by: neo-gpt <[email protected]>
1 of 2 tasks
10 tasks
This was referenced Aug 17, 2026
tobiu
pushed a commit
that referenced
this pull request
Aug 20, 2026
…#17429) * chore(apps): remove the devindex app, its guides, SCSS and tests (#17421) `neomjs/devindex` owns the app, its Data Factory, and its own tickets and PRs. What remained here was a copy that had fallen behind the destination. Both arms of #17422 landed first (devindex PR #4), so the tests are in their new home before they leave this one — not deleted here and ported later. 104 files deleted, 27 MB of working tree, including the 23 MB tracked `users.jsonl`. Reclaiming that from HISTORY is #17376 and needs the one-shot rewrite; this only stops the working tree carrying it. Removed: `apps/devindex/**` (49), `learn/guides/devindex/**` (27) with its 30 `learn/tree.json` entries, 14 SCSS files across src/dark/light, 9 unit specs, and the 5 e2e specs that navigate to `/apps/devindex/`. The e2e census was run by NAVIGATION TARGET, not by filename. Four further specs mention DevIndex in prose while driving `/examples/grid/lockedColumns/`; their comments were already stale before this change and are corrected rather than carried. Exactly five specs call `goto('/apps/devindex/…')` and exactly those five moved. The boot mandate was the blocker worth naming. `AGENTS_STARTUP.md` Step 1 made `learn/guides/devindex/frontend/Architecture.md` a mandatory read for every agent, so deleting it breaks every boot. Its content is engine architecture — Minimal Main Thread, App Worker, VDOM deltas, hierarchical MVC/MVVM — taught through the app, and both halves already exist as engine-canonical guides: `fundamentals/WorkerArchitecture.md` and `datahandling/StateProviders.md`. The guide was a duplicate of documentation this repo already had, so Step 1 now points at the canonical pair. Net substrate reduction, not a relocation. `unit-profiling` is removed rather than left empty. Its only two members were the DevIndex profiling specs, and `neomjs/devindex` already carries both AND the same barrier-plus-`workers: 1` isolation. A project whose `testMatch` selects nothing does not fail — it reports zero tests and reads as passing. Coverage that would otherwise have left with the app is repointed, not dropped: - `checkPackageContents.spec.mjs` asserted rename-survival on the DevIndex corpus rule. That property belongs to the rule SHAPE, not to any one tree, so it now asserts against `.neo-ai-data/`, which has the same prefix-plus-carve-out form. Verified it still fails on a rule pinned one level too deep. - `lintRetryBounds` kept a true-verdict retry site by moving to `src/manager/DragCoordinator.mjs`, a real registry-listed retry-growth site. - `dataSyncPipeline`'s allowlist and `isGeneratedDataPath` drop the devindex clause; its comment claiming "four DevIndex stages below" described stages that left in #17391 and is corrected to say why the deferral flag outlived them. `sitemap.xml` and `llms.txt` are regenerated rather than hand-edited, so the tree does not ship public URLs pointing at deleted guides. Kept deliberately: every `neomjs/devindex-opt-in` / `-opt-out` reference (those are separate live repositories), every pointer to `neomjs/devindex` as the destination, the `resources/content/**` and `learn/blog/` history, and the dated `cognitive-load-baseline-2026-05.md` measurement — rewriting a dated measurement to match today would falsify it. spec-retired: 8 of the 9 deleted unit specs live under the same names on neomjs/devindex@main, verified against the destination's canonical branch rather than a local clone: CleanupReconciliation, GitHubService, GridScrollProfile, OptInPhaseIsolation, StoreFilterProfile, StoreRankCalculation, UpdaterGraphqlBudget, UpdaterRenameRecovery. spec-retired: StoragePublishedIndex.spec.mjs is NOT ported, deliberately. It pins the superseded single-file `publishedIndex` contract — `config.publishedIndex` and `config.paths.indexProvenance` do not exist in the destination. The read path it covered is covered there by StorageWorkingSetHydration.spec.mjs (9 cases), re-derived against the shape that actually runs, where one file became nine members and provenance moved into a fetched manifest. spec-retired: the 5 deleted e2e specs moved to neomjs/devindex under its new e2e harness (neomjs/devindex#4, 11 passed). All five navigate to /apps/devindex/ and three click a control only that app has, so they are not retargetable here. Unit suite: 14218 passed, 1 failed. The failure is `McpServersHealth`, one of the two failures present on the pre-removal baseline (14271 passed / 2 failed); the other did not fire this run. Total moved 14286 -> 14232, which is exactly the 54 deleted devindex tests. `build-themes` passes and emits no devindex CSS; lint-tree-json reports OK at 193 nodes, down from 223. * chore(docs): regenerate the tracked class hierarchy after the devindex removal (#17421) `extends` is hashed into every Knowledge Base chunk id, so committing the 49 deleted app classes without regenerating this file would make the next ingest re-identify the affected chunks and mark the existing corpus stale. Caught by `check-freshness` on PR #17429 rather than by me — the file is generated but tracked, so "generated" was the wrong reason to leave it alone. * chore(ci): re-trigger the PR body gate after a body-only fix (#17421) The body opened with `Closes #17421`; the gate forbids that form and requires `Resolves #N`. The body is fixed and the live PR now passes both arms of the check locally. This commit exists because the verdict could not be refreshed any other way. `gh run rerun` replays the ORIGINAL event payload, so it re-lints the pre-fix body and fails identically. The workflow does list `edited` among its triggers, but two `gh pr edit --body-file` calls queued no run — so an empty commit (`synchronize`) is the only event that makes the gate read the current body. Recorded rather than force-pushed silently: a stale-payload gate verdict looks exactly like an unfixed body, and the next person to hit it should not have to re-derive that.
neo-opus-vega
added a commit
that referenced
this pull request
Aug 21, 2026
…#17413) Render-verified all six Mermaid diagrams in a browser against the portal — the surface a reader actually meets this guide on, fed by the learn tree entry this branch adds. All six parse; two were illegible, which no linter reports because both are valid Mermaid. Measured intrinsic width against the ~860px doc column: #1 authority map 2837x830 -> 1356x878 scale 0.30 -> 0.63 #4 guard pairs 3789x212 -> 995x830 scale 0.23 -> 0.86 At 0.23 a 14px label renders near 3px. The causes were different. The pairs diagram placed four subgraphs side by side because nothing linked them, so it grew with the number of pairs; each subgraph now declares its own direction and invisible links stack them vertically. The authority map spread six long-labelled leaves horizontally, and a subgraph direction could not fix it: Mermaid ignores that direction when edges cross the subgraph boundary, which every leaf's edge does. Removing the wrapper is what let the flow axis bind. Worst case across all six is now 0.63, was 0.23. No parse errors, no clipping. Verified quantitatively per diagram and visually for both repairs. Co-Authored-By: Vega <[email protected]>
neo-opus-vega
added a commit
that referenced
this pull request
Aug 21, 2026
…#17413) Render-verified all six Mermaid diagrams in a browser against the portal — the surface a reader actually meets this guide on, fed by the learn tree entry this branch adds. All six parse; two were illegible, which no CI linter reports because both are valid Mermaid. Measured intrinsic width against the ~860px doc column: #1 authority map 2837x830 -> 922x1670 scale 0.30 -> 0.93 #4 guard pairs 3789x212 -> 995x830 scale 0.23 -> 0.86 At 0.23 a 14px label renders near 3px. Both had the same cause and it was not the flow direction: sibling chains with nothing linking them are laid out side by side, so the diagram grows with the number of branches. Linking them with invisible edges stacks them instead. The pairs diagram also needed each subgraph to declare its own direction. A subgraph direction cannot fix the authority map, which is worth recording: Mermaid ignores it when edges cross the subgraph boundary, and every leaf's edge does. Flipping that diagram to LR did narrow it to 1356 (0.63), but `lint-guides` rejected the result — `[mermaid-lr-squish]`, 14 nodes in an LR flow. The heuristic was right and the measurement agreed once the real fix was in: TD with serialized branches beats LR at 0.93 vs 0.63. Worst case across all six is now 0.69, was 0.23. No parse errors, no clipping, `lint-guides` clean on this file. Co-Authored-By: Vega <[email protected]>
tobiu
pushed a commit
that referenced
this pull request
Aug 21, 2026
…17434) * docs(agentos): the embedding lane gets an owning document (#17413) `learn/agentos/EmbeddingLane.md` — six diagrams, sibling of KnowledgeBase.md. The lane had no owning document because it has no owning subsystem: dispatch in memory-core, batching and guardrail in knowledge-base, geometry leaves in configBase, slice and lease scheduling in the orchestrator, shape verification in its own module. Four owners, no owner — so a defect spanning three of them belonged to nobody, and establishing the composition cost a full session of plane reads that produced nine wrong intermediate claims, eight of them answerable from content already committed. Written to the two-truths rule the ticket demands. CONTRACT facts are stated plainly with the citation that re-derives them; every constant was verified at source rather than recalled. PLANE facts carry an observation date and the command that re-reads them, because a plane fact in the timeless present is the defect — one day earlier this guide would have said the parser declines vendored trees, true of the contract and false of the plane. The diagrams carry the load rather than prose: which value decides what and where width was conflated with concurrency; one slice as it actually runs; the checkpoint cycle that is absorbing while a corpus exceeds one slice; four guard pairs whose joint outcome differs from either alone; what the shape verifier establishes and that utilization sits outside it; and the four-owner locality map. Three findings post-date the ticket and are in rather than deferred: the single-worker post queue as a third serialisation layer, the carry arithmetic whose prefix-contiguity dependence makes a guard fail closed and silently drop conserved work, and the absence of any wired re-embed trigger. Traps section is the payload for the next reader: the memory ceiling's own derivation, fused attention already attempted, contract-vs-plane on vendored trees, and that a function named in a comment is not a function that is called. No client identifiers. lint-guides OK, lint-tree-json OK, registry entry and a cross-link from the ingestion model both in. Resolves #17413 * docs(agentos): the guide registers itself, and its lessons leave the repository (#17413) Registration was half-done: the tree entry existed and the SEO generator's PRIORITIES map did not, so the page ranked at the default rather than where a maintainer-facing internals guide belongs. Added at 0.8 — below both subsystem apexes it spans, because a reader arrives at KnowledgeBase or MemoryCore and reaches this one from them. Diagram 6 named a module that exists only on an unmerged sibling branch. A ground-truth guide cannot mix planned contract into current contract, so the node is removed; it returns when the code does. Four of the nine wrong claims this document cost were not about Neo: a declared parallelism is not a measured one, a capacity number has a unit, a fail-closed guard converts a wrong answer into a silent loss, and throughput can be a correctness property. They are now in the narrative in first person rather than in a role matrix, because what makes them useful elsewhere is that all four were invisible to code review and visible to one instrumented run. * docs(agentos): the width clamp was correct in the task unit, not impossible (#17413) The guide said `parallel - 1` reserved "a slot the client cannot hold open, since the server assigns slots from its own queue". That is false, and it is the claim @neo-gpt falsified during the #17412 review. The provider's capacity unit is a TASK — one multi-input POST expands to one task per input — so a client does control offered work, and the clamp reserved real headroom: three inputs is three tasks against four slots, leaving one free. The clamp was arithmetically correct and its intent was sound. Its defect was the unit it was spent in: headroom expressed as a width consumes the budget concurrency needs, so a lane declaring four slots offered one request at a time. A ground-truth guide carrying a refuted claim is worse than no guide, which is why this lands ahead of the #17433 rebase rather than with it. lint-guides: 0 findings for this file. * docs(agentos): the carry failure this guide taught never happened (#17413) Re-verified every concurrency, width, carry, queue, checkpoint, diagram and code-locality statement against the exact tree now that the owning implementation has landed. One statement was false, and it was the one the document called the most important. The guide described the carry defect as realized: work conservation switching itself off, the lane re-purchasing vectors on every retry, nothing in the logs. The landed implementation states the opposite in one sentence — "No reachable input reddened the product, and none can." The formula's stated justification was false, but its conclusion held via an unstated caller-side ordering invariant, so nothing was ever mis-carried. The failure was derived from the mechanism rather than observed. The corrected lesson is narrower and more useful: a computation that is correct by accident is one refactor from being wrong in silence, and that is why the repair passes the measured prefix instead of re-deriving it. The fourth diagram pair now names the unstated invariant rather than an incident. Verified unchanged at the new tree: both line-anchored citations, the NEO_LOCAL_MODELS_EMBEDDING_PARALLEL default, the providerLaneLiveShape docblock quote (exact), all eight code-locality paths, the deferred-checkpoint contract, and the past-tense framing of the width/concurrency conflation now that the clamp is gone. Co-Authored-By: Vega <[email protected]> * docs(agentos): two diagrams were rendering at a third of legible size (#17413) Render-verified all six Mermaid diagrams in a browser against the portal — the surface a reader actually meets this guide on, fed by the learn tree entry this branch adds. All six parse; two were illegible, which no CI linter reports because both are valid Mermaid. Measured intrinsic width against the ~860px doc column: #1 authority map 2837x830 -> 922x1670 scale 0.30 -> 0.93 #4 guard pairs 3789x212 -> 995x830 scale 0.23 -> 0.86 At 0.23 a 14px label renders near 3px. Both had the same cause and it was not the flow direction: sibling chains with nothing linking them are laid out side by side, so the diagram grows with the number of branches. Linking them with invisible edges stacks them instead. The pairs diagram also needed each subgraph to declare its own direction. A subgraph direction cannot fix the authority map, which is worth recording: Mermaid ignores it when edges cross the subgraph boundary, and every leaf's edge does. Flipping that diagram to LR did narrow it to 1356 (0.63), but `lint-guides` rejected the result — `[mermaid-lr-squish]`, 14 nodes in an LR flow. The heuristic was right and the measurement agreed once the real fix was in: TD with serialized branches beats LR at 0.93 vs 0.63. Worst case across all six is now 0.69, was 0.23. No parse errors, no clipping, `lint-guides` clean on this file. Co-Authored-By: Vega <[email protected]>
Closed
7 tasks
dawesi
pushed a commit
to dawesi/neo
that referenced
this pull request
Aug 25, 2026
…neomjs#17429) * chore(apps): remove the devindex app, its guides, SCSS and tests (neomjs#17421) `neomjs/devindex` owns the app, its Data Factory, and its own tickets and PRs. What remained here was a copy that had fallen behind the destination. Both arms of neomjs#17422 landed first (devindex PR neomjs#4), so the tests are in their new home before they leave this one — not deleted here and ported later. 104 files deleted, 27 MB of working tree, including the 23 MB tracked `users.jsonl`. Reclaiming that from HISTORY is neomjs#17376 and needs the one-shot rewrite; this only stops the working tree carrying it. Removed: `apps/devindex/**` (49), `learn/guides/devindex/**` (27) with its 30 `learn/tree.json` entries, 14 SCSS files across src/dark/light, 9 unit specs, and the 5 e2e specs that navigate to `/apps/devindex/`. The e2e census was run by NAVIGATION TARGET, not by filename. Four further specs mention DevIndex in prose while driving `/examples/grid/lockedColumns/`; their comments were already stale before this change and are corrected rather than carried. Exactly five specs call `goto('/apps/devindex/…')` and exactly those five moved. The boot mandate was the blocker worth naming. `AGENTS_STARTUP.md` Step 1 made `learn/guides/devindex/frontend/Architecture.md` a mandatory read for every agent, so deleting it breaks every boot. Its content is engine architecture — Minimal Main Thread, App Worker, VDOM deltas, hierarchical MVC/MVVM — taught through the app, and both halves already exist as engine-canonical guides: `fundamentals/WorkerArchitecture.md` and `datahandling/StateProviders.md`. The guide was a duplicate of documentation this repo already had, so Step 1 now points at the canonical pair. Net substrate reduction, not a relocation. `unit-profiling` is removed rather than left empty. Its only two members were the DevIndex profiling specs, and `neomjs/devindex` already carries both AND the same barrier-plus-`workers: 1` isolation. A project whose `testMatch` selects nothing does not fail — it reports zero tests and reads as passing. Coverage that would otherwise have left with the app is repointed, not dropped: - `checkPackageContents.spec.mjs` asserted rename-survival on the DevIndex corpus rule. That property belongs to the rule SHAPE, not to any one tree, so it now asserts against `.neo-ai-data/`, which has the same prefix-plus-carve-out form. Verified it still fails on a rule pinned one level too deep. - `lintRetryBounds` kept a true-verdict retry site by moving to `src/manager/DragCoordinator.mjs`, a real registry-listed retry-growth site. - `dataSyncPipeline`'s allowlist and `isGeneratedDataPath` drop the devindex clause; its comment claiming "four DevIndex stages below" described stages that left in neomjs#17391 and is corrected to say why the deferral flag outlived them. `sitemap.xml` and `llms.txt` are regenerated rather than hand-edited, so the tree does not ship public URLs pointing at deleted guides. Kept deliberately: every `neomjs/devindex-opt-in` / `-opt-out` reference (those are separate live repositories), every pointer to `neomjs/devindex` as the destination, the `resources/content/**` and `learn/blog/` history, and the dated `cognitive-load-baseline-2026-05.md` measurement — rewriting a dated measurement to match today would falsify it. spec-retired: 8 of the 9 deleted unit specs live under the same names on neomjs/devindex@main, verified against the destination's canonical branch rather than a local clone: CleanupReconciliation, GitHubService, GridScrollProfile, OptInPhaseIsolation, StoreFilterProfile, StoreRankCalculation, UpdaterGraphqlBudget, UpdaterRenameRecovery. spec-retired: StoragePublishedIndex.spec.mjs is NOT ported, deliberately. It pins the superseded single-file `publishedIndex` contract — `config.publishedIndex` and `config.paths.indexProvenance` do not exist in the destination. The read path it covered is covered there by StorageWorkingSetHydration.spec.mjs (9 cases), re-derived against the shape that actually runs, where one file became nine members and provenance moved into a fetched manifest. spec-retired: the 5 deleted e2e specs moved to neomjs/devindex under its new e2e harness (neomjs/devindex#4, 11 passed). All five navigate to /apps/devindex/ and three click a control only that app has, so they are not retargetable here. Unit suite: 14218 passed, 1 failed. The failure is `McpServersHealth`, one of the two failures present on the pre-removal baseline (14271 passed / 2 failed); the other did not fire this run. Total moved 14286 -> 14232, which is exactly the 54 deleted devindex tests. `build-themes` passes and emits no devindex CSS; lint-tree-json reports OK at 193 nodes, down from 223. * chore(docs): regenerate the tracked class hierarchy after the devindex removal (neomjs#17421) `extends` is hashed into every Knowledge Base chunk id, so committing the 49 deleted app classes without regenerating this file would make the next ingest re-identify the affected chunks and mark the existing corpus stale. Caught by `check-freshness` on PR neomjs#17429 rather than by me — the file is generated but tracked, so "generated" was the wrong reason to leave it alone. * chore(ci): re-trigger the PR body gate after a body-only fix (neomjs#17421) The body opened with `Closes neomjs#17421`; the gate forbids that form and requires `Resolves #N`. The body is fixed and the live PR now passes both arms of the check locally. This commit exists because the verdict could not be refreshed any other way. `gh run rerun` replays the ORIGINAL event payload, so it re-lints the pre-fix body and fails identically. The workflow does list `edited` among its triggers, but two `gh pr edit --body-file` calls queued no run — so an empty commit (`synchronize`) is the only event that makes the gate read the current body. Recorded rather than force-pushed silently: a stale-payload gate verdict looks exactly like an unfixed body, and the next person to hit it should not have to re-derive that.
7 tasks
1 task
1 of 3 tasks
6 tasks
4 tasks
Merged
1 task
1 of 9 tasks
This was referenced Nov 14, 2026
1 task
3 tasks
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.