Commit Graph
5977 Commits
Author SHA1 Message Date
morluto 11a75a5c19 fix(guidance): direct workflow errors to the scoped inventory (#13321)
* fix(guidance): direct workflow errors to the scoped inventory

* fix(mcp): type the progressive catalog registration boundary
2026-11-22 04:26:57 +00:00
5b1bc26c37 test(hopper): queue bridge reconnects before closing the previous client (#13325)
The reconnect probe closed its client and then connected again while the
bridge waited 0.2 s for the next accept. A probe stalled past that window
saw the listener closed (ConnectionRefusedError on main run 44855978833,
FileNotFoundError with an injected stall). Queue the successor connection
and its first request before ending the previous one, as the probe
already does for the first client, so neither the reconnect nor the
unauthenticated-idle budget depends on probe scheduling. A rejected
connection keeps its idle budget, so its successor is queued before the
probe reads the rejection.

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-22 12:22:36 +08:00
morluto ae4e0c83dd test(guidance): consolidate search and locator contracts (#13312) 2026-11-22 04:08:28 +00:00
morluto 27181314cb test(evidence): consolidate input admission and schema examples (#13322) 2026-11-22 04:01:42 +00:00
morluto 87243c0c0e perf(schemas): eliminate generator/clone overhead in schema compaction and compact union projections (#13313) 2026-11-22 03:57:03 +00:00
morluto 4485912fd8 fix(evidence): bound omitted validation issue locations (#13309)
* fix(evidence): bound omitted validation issue locations

* fix(evidence): keep diagnostic locations that fit
2026-11-22 03:53:11 +00:00
morluto ac4f655858 perf(native): pre-screen IL2CPP slots and reuse ObjC/PE indices (#13314) 2026-11-22 03:51:45 +00:00
morluto ed234b2016 perf(hopper): eliminate full name-inventory rebuilds in analyze_function, list_names, and caller reconciliation (#13307)
Refs #13277
2026-11-22 03:47:15 +00:00
morluto 264c398c0d perf(sqlite): reuse stateless TextDecoder codecs and skip redundant truncation scan on short pages (#13274)
* perf(sqlite): reuse stateless TextDecoder codecs and skip redundant truncation scan on short pages

* test(sqlite): verify short-page probe skip and shared decoder malformed-cell isolation
2026-11-21 22:31:55 -05:00
morluto f7355b1b61 perf(kuna): avoid per-line Buffer.concat allocations in KunaProjectFiles.scanLines (#13270)
* perf(kuna): avoid per-line Buffer.concat allocations in KunaProjectFiles.scanLines

* test(kuna): cover single-chunk UTF-8 and length refusals in scanLines
2026-11-21 22:31:44 -05:00
morluto 7269165323 perf(il2cpp): fix 8x yields and hoist opcode checks before BigInt math in executable scans (#13272)
* perf(il2cpp): fix 8x yields and hoist opcode checks before BigInt math in executable scans

* test(il2cpp): type codegen module fixtures without as-never casts
2026-11-21 22:31:33 -05:00
morluto c34bdabeae fix(setup): keep incomplete Windows roots unresolved (#13298)
* fix(setup): keep incomplete Windows roots unresolved

* fix(setup): qualify Kilo roots before appending directories
2026-11-22 03:20:23 +00:00
morluto e9b0f0b68c test(setup): consolidate registration status contracts (#13303) 2026-11-22 03:16:16 +00:00
morluto e726f89bcb fix(setup): preserve Goose configuration root selection (#13297) 2026-11-22 03:07:46 +00:00
morluto 625bd4b70a fix(setup): refuse Hermes profiles with an unreadable deletion marker (#13296) 2026-11-22 03:03:56 +00:00
morluto 560e2ef267 perf(setup): index YAML alias bindings in document order (#13295) 2026-11-22 03:03:29 +00:00
morluto 825afe019c test(setup): consolidate TOML client preservation checks (#13294) 2026-11-22 02:58:25 +00:00
morluto 2af8248a44 fix(uninstall): report verified removal after staging cleanup failure (#13293) 2026-11-22 02:51:55 +00:00
Deepak Jain (DJ) fd40fd9ab2 fix(mcp): accept discover_tools in exact-name discovery batches (#13288)
With REA_MCP_TOOL_CATALOG_PROFILE=hot-cold, discover_tools is listed in
tools/list, yet an exact-name request that named it failed with "Unknown
or excluded tool names. No tools were loaded." Exact names load
atomically, so a batch such as ["inspect_sqlite_database",
"discover_tools"] also left the valid cold tool unloaded.

The catalog validated names against the domain registrations it was
built from, and the server registered the adapter only after building
it. The server now registers discover_tools first and passes that
registration to ProgressiveToolCatalog. Exact-name lookup, the returned
entries and both counts read one inventory that includes the adapter,
which replaces the two "+ 1" adjustments. Search and reset still cover
only domain tools, so a query never spends a page slot on the adapter
and reset never hides it. Unknown or excluded names are still rejected
before anything loads.

Signed-off-by: Deepak Jain <deepujain@gmail.com>
2026-11-21 21:37:07 -05:00
morluto d0cbb20a6c test(setup): consolidate configuration transaction and recovery checks (#13289) 2026-11-21 21:29:44 -05:00
morluto a06e04b4df fix(cli): preserve doctor routing with empty output values (#13262)
* fix(cli): preserve doctor routing with empty output values

* fix(cli): keep configuration precedence before malformed readiness commands
2026-11-22 02:12:45 +00:00
morluto 2dfe4754ac test(cli): consolidate MCP registration admission and policy checks (#13264)
* test(cli): consolidate MCP registration admission and policy checks

* test(cli): assert MCP registration option facts without fixed prose
2026-11-21 20:59:51 -05:00
morluto 411e78ea64 fix(ci): check the MCP SDK validator option in its constructor slot (#13266) 2026-11-22 01:54:17 +00:00
morluto 3102d18bfc test(mcp): consolidate artifact verifier catalog and schema checks (#13260) 2026-11-22 01:40:30 +00:00
morluto d6c4776e65 fix(setup): unify OpenCode layer resolution and alias ownership (#13226) 2026-11-22 01:35:37 +00:00
morluto 6dbd86847e test(mcp): consolidate default HTTP input capacity checks (#13258) 2026-11-22 01:33:13 +00:00
morluto 87889b8729 fix(mcp): retain doctor initialization when catalog requests fail (#13255) 2026-11-22 01:23:35 +00:00
morluto 0209d3e1b5 fix(mcp): keep doctor launches target-free on Windows (#13250) 2026-11-22 01:14:11 +00:00
morluto 0299413e86 perf(mcp): filter prompt completions before sorting (#13251) 2026-11-22 01:09:10 +00:00
morluto 61eabd25dc test(mcp): distinguish schema recursion from instance data (#13249) 2026-11-22 01:01:01 +00:00
morluto 00974e5a61 test(mcp): consolidate progressive catalog wire checks (#13248) 2026-11-22 00:43:59 +00:00
morluto 051658daa1 test(mcp): consolidate deferred runtime and recorder cleanup (#13247) 2026-11-22 00:34:45 +00:00
morluto eacbd2522a fix(verification): distinguish MCP probe refusals from local deadlines (#13246) 2026-11-22 00:31:34 +00:00
morluto 8d591e38f9 test(mcp): consolidate shutdown settlement and admission checks (#13243) 2026-11-22 00:12:16 +00:00
morluto 34c69f606d fix(verification): require Gemini native answer and skill provenance (#13241) 2026-11-22 00:00:18 +00:00
morluto 63ff46e9ee fix(verification): read back Qwen skill output before analysis (#13240) 2026-11-21 18:53:53 -05:00
morluto e3ce2b53d4 fix(verification): bind DeepSeek skill evidence to its installed directory (#13238) 2026-11-21 18:41:30 -05:00
morluto 4f640064a4 test(verification): consolidate fixture retry and process lineage checks (#13237) 2026-11-21 18:35:04 -05:00
morluto a7b195d0e1 fix(browser): refuse partial HTTP source-map responses (#13236) 2026-11-21 23:31:49 +00:00
morluto 1f3703f6f1 test(browser): consolidate source-map coordinates and wire deadlines (#13235) 2026-11-21 18:22:38 -05:00
morluto 2e83fbd394 test(mcp): consolidate browser source boundary checks (#13234) 2026-11-21 18:14:25 -05:00
morluto 190395eade fix(browser): retire detached WebMCP frame descendants (#13233) 2026-11-21 23:12:06 +00:00
morluto 04d399d675 fix(electron): preserve inspection frame identity and diagnostics (#13232) 2026-11-21 23:04:46 +00:00
morluto eba41afd6c fix(browser): retain passive coverage and failure identity (#13231) 2026-11-21 23:03:00 +00:00
morluto cfa04985c2 test(browser): consolidate runtime window and request contracts (#13230)
* test(browser): consolidate runtime window and request contracts

* test(browser): distinguish reused request producer fields
2026-11-21 22:55:15 +00:00
morluto 39ccb1d3b8 fix(browser): preserve terminal verifier startup outcomes (#13228) 2026-11-21 22:45:18 +00:00
morluto 60e099848d perf(browser): wake the bundle worker on observed events (#13225) 2026-11-21 22:35:15 +00:00
morluto 6e300622e9 test(browser): consolidate bundle admission and retained facts (#13227) 2026-11-21 22:32:34 +00:00
morluto e94eb2cb64 test(browser): consolidate local artifact provenance checks (#13221) 2026-11-21 17:24:00 -05:00
Harsh Asalkarandmorluto 63c50ecfc0 feat(setup): discover project-scoped MCP registrations in doctor and … (#7283)
* feat(setup): discover project-scoped MCP registrations in doctor and uninstall

* fix(setup): preserve OpenCode layer fields, user launcher provenance, and user fallback

* fix(setup): restore working directory in tests and refine replacement and launcher provenance

* fix(setup): bound OpenCode discovery to worktree and enforce Pi project trust

* fix(setup): preserve Pi project trust failures in doctor and prevent skipping project registrations in uninstall

* fix(setup): defer cross-setting environment validation and decouple OpenCode launcher ownership

* fix(setup): separate OpenCode readiness schema from launcher ownership and fix cross-setting test

* fix(doctor): include project remediation when disabled project registration inherits outdated user launcher

* fix(setup): scope status properties to project-scoped registrations

Omit scope and launcher_scope when no project-level configuration was discovered or evaluated, ensuring user-level registrations retain their exact unextended status contract in isolated environments without project files.

* fix(setup): prevent activating unowned launchers during uninstall and align array normalization

Prevent activating unowned or foreign launchers hidden in lower-precedence configurations during project-scoped uninstall, normalize array command arguments uniformly in OpenCode ownership parsing without appending separate args, and clarify field inheritance in client configuration documentation.

* fix(setup): check effective remaining launcher on uninstall and preserve cleanup failure

* fix(uninstall): preserve user configuration path in project client to check fallback ownership

* fix(uninstall): scope fallback configuration paths only to project-scoped clients

* fix(doctor): validate effective merged Pi flags and preserve MSIX selection during uninstall

* fix(uninstall): preserve surviving OpenCode project registrations across complete configuration layers

* fix(uninstall): require surviving OpenCode server to carry a launcher when checking layered activation

* fix(uninstall): rely on full layered check for OpenCode instead of lower-only fallback

* fix(doctor): preserve source paths for inherited environment failures

When a trusted Pi project partial override or an OpenCode project registration inherits an invalid REA environment value from user configuration (or an ancestor configuration), attribute the resulting doctor invalid registration error to the contributing configuration source rather than the winning project file. Preserves source evidence provenance across merged configuration layers so doctor remediation points the user to the file that actually requires repair.

* test(doctor): exercise effective cross-setting merge failure in inherited environment tests

Replace scalar validation errors with cross-setting constraints (REA_GHIDRA_PROGRAM_NAME without REA_GHIDRA_PROJECT_PATH) in inherited environment regression tests so individual fragments pass and the failure is only triggered during effective layer merge, directly protecting contributingEnvironmentSource provenance lookup.

* fix(uninstall): allow cleaning up owned entries in untrusted Pi projects

Evaluate Pi project trust in unownedLowerLayerFallback so owned entries in untrusted Pi projects can be cleanly removed without falsely claiming that removal would activate an unowned user launcher.

* fix(uninstall): require confirmed untrusted decision to skip Pi fallback check

Only skip the unowned lower-layer fallback check when Pi project trust is confirmed untrusted (trust.ok && !trust.value). When Pi trust reading or parsing fails (!trust.ok), preserve the unresolved state and conservatively inspect the lower layer so that an unowned user launcher is not inadvertently exposed if the project was trusted.

* fix(doctor): track activation provenance across layers and normalize platform path identity

- Track activation source provenance (activationScope, activationConfigPath) across Pi and OpenCode configuration layers so activation drift remediation points to the exact file contributing the disable/enable flag rather than nearest fragment.
- Normalize path identity case-insensitively on Windows and macOS when deduplicating user configuration from OpenCode hierarchy and Pi project candidates.
- Qualify Pi project registration docs with trusted projects prerequisite and fallback semantics.

* fix(doctor): isolate platform casing tests and restore cwd mocks

* fix(doctor): use filesystem identity for path normalization and verify present files in case tests

* fix(doctor): preserve inherited schema provenance and include activation in project package remediation

* fix(doctor): report the contributing registration and activation sources

* test(doctor): exercise combined Pi activation and launcher repairs

* fix(doctor): honor OpenCode activation by config dialect

* fix(doctor): share project registration activation and provenance

* fix(setup): plan project removals before writes and isolate provider probes

* fix(doctor): preserve OpenCode registration and launcher provenance

* fix(doctor): use shared registration error and path provenance

* fix(doctor): gate desktop probes on registration authority

* fix(uninstall): skip absent project configuration candidates

* fix(uninstall): compare effective project registration before removal

* fix(doctor): guide project package launcher migration

* test(doctor): verify OpenCode project launcher migration advice

* fix(uninstall): separate project load order from write targets

* fix(doctor): preserve OpenCode directory alias precedence

* fix(uninstall): preserve unchanged remote project registrations

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-21 22:19:56 +00:00