Repository navigation
Preserve retained callable history and measure bounded MCP retention (#169, #131) - #208
Conversation
|
Catalog review at published PR #208 head
Linnaeus is the active revision owner and has received these exact witnesses. This stays draft pending the corrected diagnostic and the continuous source/live history acceptance. No leak/no-leak verdict follows from the code or this review alone. |
Architectural review: two diagnostic consumers bypass existing authoritiesReviewed
Add a child-launch regression with PYTHONPATH absent and a different working directory, and verify both diagnostic and OpenHCS source paths against the selected head. Health PID equality alone does not establish source identity. These are small source/launch regressions, not requests to rerun the scientific workloads. |
|
Both returned authority bypasses are fixed and published in d69d65a, following the normal merge of main283b21275 (including #212).
Actual evidence: 15 focused diagnostic/import-authority tests pass in 4.34s. Real diagnostic children launched using the server spec from a competing cwd pass with PYTHONPATH absent and hostile; both diagnostic and OpenHCS paths must equal the selected source. Either foreign receipt path is rejected. Source CLI with PYTHONPATH absent passes in 0.16s, 53,500 KiB peak RSS, zero swaps. Focused AST guard reproduces all three old bypasses at dd5f177 and passes both corrected modules; Ruff correctness/diff checks pass. Pattern/new-case and detailed command/resource evidence: validation receipt. This is focused source/launch evidence, not a full NRA proof. Minimal provenance inspection does not import the application-client/scientific dependency graph. Still pending: real MCP retention slopes and installed continuous declaration/history restore/undo journey. Confucius retains the heavy runtime lock and frozen installed baseline; no new MCP/GUI/JVM/large environment startup, install or skill change. PR208 and ArrayBridge PR1 stay draft; neither #131 nor #169 gets a Closes claim. Separate #217/BaSiCPy source work is preserved, not replaced. |
|
Parent integration checkpoint: independently reviewed ArrayBridge 06837ec and ran the three dependency cases plus the real ObjectState/document history journey: 4 pass, 3.030s, zero skips. Original packaged ArrayBridge ratchet passes all 38 metrics with zero deltas. I am shipping ArrayBridge PR1 as a source checkpoint without optional CI wait. Your PR208 tree remains untouched; current-main integration and actual installed desktop capture/restore plus MCP retention measurements remain pending. The history test clears/loads the registry in the SAME process: this is not fresh-process or live GUI restart evidence. Issues169/131 remain open. Swap14.6GiB still gives resource-check exit2, so no heavy/native/newparallel run is started. No history-format workaround, filtering or compatibility reader is accepted. |
|
Current-main integration is now published, preserving your original d69 work and source tree: a5f639e integrates main4a9 normally and records merged ArrayBridge409 (tree identical to reviewed068). Parent independently ran 16 focused diagnostic/import/history source tests: pass5.34s; actual source-identity CLI exits0 in0.13s/25312KiB. Missing-native collection failure is retained; passing source harness reuses unchanged real ABI3 modules under original qualified names after checking C++ source equality, with no build/copy/install/product shim. Authoritative RST receipt contains exact scope. Focused ownership guard passes. Original packaged whole-context ratchet DOES NOT pass: 5101metrics, +5 external Linux smaps decoding reads, +2 canonical read_only/optional argparse predicates. Every site read; no guard alteration, new dispatch/roster or bypassed schema owner. These are classified screening leads, not a global-NRA or guard-pass claim. Per owner checkpoint/CI-deferral instruction, shipping the reviewed coherent source checkpoint rather than cosmetically rewriting valid owner/boundary queries to reduce syntax counts. No installed/GUI restart/MCP slope/blind acceptance is claimed; issues169/131 and full archive guard scope remain open. Integration/install/live remain parent-owned; do not duplicate product edits from the older source tree. |
|
MERGED source checkpoint verified: GitHub PR merge and independent git ls-remote agree on OpenHCS main65b2ed1017f36db193b6f48b8f9b46495cc915aa, 2026-09-30T12:07:28Z. Reviewed integration heada5f639e80; paired ArrayBridge main409b1e0 verified earlier. No admin override or hosted-CI wait. Sixteen current-main source checks pass; structural screen findings and source-harness limitations remain explicit in the RST receipt. This supersedes the older draft/current-main notes, not the unperformed acceptance work. NOT installed/live-verified; H002 saved/in-memory state unchanged, issues169/131 remain open, actual MCP slope and desktop restart acceptance pending. Resource assertion still exits2 for swap14.6GiB; no heavy/native/new-parallel run or uncertain input replay. |
|
INSTALLED checkpoint now verified (supersedes the previous not-installed status): main65b2ed101/ArrayBridge409 installed offline serially in existing .venv,5.40s/144420KiB peak, no dependency/Fiji/JDK downloads or extra runtime env. Actual installed skill-sync dryrun+publish report unchanged/success. Sixteen installed checks pass5.47s with PYTHONPATH unset and real newly built native modules, no preloader. Real installed MCP memory journey completes51events/16.41s with flat post-warmup discovery RSS/privateDirty/swap (issue131 has exact limits); process exits cleanly. Still NOT complete live desktop capture/restore or broad leak acceptance. Protected old H002 viewer geometry mismatch is also reproduced against a fresh healthy installed receiver; issue280 updated, no history dropped or peer forcibly restarted. Persistent active installed tree is /home/ts/wt/openhcs-memory-integration-20260930; do not retire it as an inactive merged worktree. |
Summary
References #169 and #131. Paired upstream draft:
OpenHCSDev/ArrayBridge#1.
_thread._localretained-history failure via the recordedArrayBridge gitlink: existing
ThreadGPUContextowns its runtime handle, ratherthan serializing it through decorator globals. No permissive pickle, history
dropping, duplicate registry or saved-file reconstruction.
declarations, earlier snapshots, undo/head navigation and the runtime handle.
python -m openhcs.mcp.memory_diagnosticmeasures a bounded real MCP requestsequence with baseline/before/after/full-GC RSS/PSS/private/swap/thread receipts,
import/library/framework and catalog/custom/history observations. Warm-up is
distinct from repeated-request slopes; no leak conclusion without measurement.
and sole
McpDevToolResult.has_errors()classification remain in place.Independent review corrections
Addresses both findings in
#208 (comment).
AgentCapabilitySpec.read_only, including mutation-onlydeclarations with empty side effects; current Enforce MCP write authority before artifact-plan initialization (#211) #212 artifact-plan inspection is
rejected. No reconstructed mutation predicate or new capability registry.
DiagnosticServerSpecextends normalMcpDevServerSpecarguments, retaining
OpenHCSRuntimeImportAuthorityexactly. Entrypoint is nowinside
openhcs.mcp; old benchmark entrypoint, bare child-m, and ambientPYTHONPATH copying are deleted without aliases or duplicate bootstrap code.
verifies both against its parent import authority, not just health PID.
--source-identityprovides bounded source-provenance inspection without MCPconstruction. Launch declarations are separated from the minimal entrypoint
to avoid importing the application-client/scientific dependency graph there.
Actual evidence
openhcsdev/mainat283b21275fetched and merged normally as32decce9a;recorded submodules retained, existing venv imports verified against this tree.
tests; actual child launches from a competing cwd with absent/hostile PYTHONPATH;
both selected source paths asserted; foreign source receipts rejected;
mutation-only declaration and integrated artifact-plan admission covered.
paths: 0.16s, 53,500 KiB peak RSS, zero swaps, exit 0. No MCP/GUI/JVM started.
dd5f177f, passes thecorrection; changed-source Ruff correctness and diff checks pass. Scope is
focused source/AST/catalog review, not a full NRA proof or global debt claim.
reproduced; repaired minimal callable save/load executes (14,424 bytes);
ArrayBridge 3 tests, initial OpenHCS 12 tests, typed ownership revision
6 tests including continuous native history all passed at their checkpoints.
Remaining scope and readiness
No Closes claim for #131 or #169. Real MCP retention/slope measurements and the
installed continuous desktop capture/restore/history journey remain pending.
Default discovery measurements cannot exonerate untested catalog/compile/custom
source, execution, JVM or GPU routes. No leak/no-leak finding is claimed yet.
PR208 and paired ArrayBridge PR1 remain draft. Confucius owns the heavy live slot
and frozen installed baseline; no worker MCP/GUI/JVM/large environment startup,
merge/install or skill change. Resource guard before lightweight tests reported
11.8 GiB available RAM with historical-swap warning; that is not leak evidence.
Unrelated #217/BaSiCPy work remains preserved in its separate assigned worktree.
Old H001 saved exports, blind inputs/results, dirty main and installed sources
remain untouched.
See
docs/validation/memory-session-20260929.mdfor detailed evidence, pattern IDs,deletion/new-case ownership checks, commands and remaining serialized live gates.