Repository navigation
Separate metadata and fact publication from ACP transport startup - #4902
Merged
Merged
Conversation
|
debt-tools at ae737f4 blocks on 26 lines: |
|
debt-src at ae737f4 blocks on 26 lines: Warn-only, never blocks (10) |
P279 working checkpoint, not a completed cold-client fix. NRA relocate_symbols_to_new_module: simulate then apply to the complete nine-class observation/consumer family and the five spawned worker functions. All original class/function bodies and bases compare unchanged by AST. The cold-import probe still performs its selected import first. Affected controls: 382 passed, 2 skipped, exit 0 (294.69s). Worker family: 4 passed, exit 0 (103.25s) at a two-core test quota. Two earlier bounded worker runs timed out before metadata writes; the captured diagnostic run passed in 54.12s and exposed conftest -> goal fixture -> ACP -> served tools -> installer imports in each spawned child. Workers no longer import the test controller and its fixture stack. Registry attachment still reaches backend/transcript implementations. P279 remains open; no installed or overall CPU saving is claimed.
Delete repeated envelopes; keep fact encoding and no-controller validation below text routing. NRA plans applied with explicit owned source roots. Affected publication controls are running; original import-cycle failure retained.
The Nov 12 field-to-method change left eight callers testing bound-method truthiness. Migrate all eight through the declared method; retain the newly exposed corrupted-store observer failure as unresolved, not a passing run.
trissim
force-pushed
the
perf/runtime-observation-boundary
branch
from
November 18, 2026 21:53
de0cb9c to
862bed0
Compare
trissim
marked this pull request as ready for review
November 18, 2026 22:27
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.
Results and limits
One fact-publication contract, transport-owned envelopes
Move nine complete runtime observation declarations, then explicitly replace NativeMetadataObservation's optional path representation as described below, and five spawned concurrency workers without importing pytest's fixture graph. AgentCommsUpdate, UpdateBatch and encode_updates now live below text routing. SessionUpdateSink encodes original facts once; AcpUpdateSink owns the empty ACP SDK envelope. NoController remains transport-free and validates before declining publication.
Migrate all original runtime/socket/session sink implementations and fact producers together: failures, queue state, started input, turn changes, compaction, session identity and transcript replay. Preserve publication bools, ordering, original failed text and worker-side transcript encoding. SessionInfoUpdate and text-bearing updates stay distinct. No encoder compatibility aliases or new guarded imports.
Native session-path observation
Unobserved and reported paths are distinct immutable values. A reported empty path retains its identity and the original no-attachment effect. Only a nonempty report invokes the existing captured turn attachment; that owner retains fence validation and publication. StateData.agent_info is the sole production conversion boundary; TurnProgress delegates attachment without a null/type case. Native wire output and persisted runtime-info values are unchanged.
113 focused checks passed, exit 0, including null/empty/nonempty identity, real turn attachment fencing, native payloads and runtime metadata. The gate's independent NoneAbsence count for runtime_observations is now zero. Current AST comparison confirms the nine declarations retain every other original field, method and base.
Verification repairs
DrainObservation.holds_event_current is a method, not a boolean field. The broken-store control now creates genuinely absent/consumed schemas, uses the existing SQLite snapshot owner instead of copying only the main file, closes raw connections and restores through SQLite plus its change notification. The original tests could initialize their supposedly broken schema or restore an incompatible WAL. No production observer repair is claimed.
NRA declaration-selected plans, simulations, applications, independent AST comparisons and every failed run are retained in named scratch. Toad's companion changes migrate its test consumers and repair the warm-helper descriptor range and stale UI controls; no physical user-window test is claimed.
Still open
P279's backend-free installed activity client is not achieved by this partial batch; fresh installed delivery is verified. Merged as e7dfecb, with companion Toad #2140 merged as e5eff11109a2. Installed in runtime core-e7dfecb09-lock-83386afa894a8c9f; native reply b54dd9cdac47 explicitly answers fresh probe91f01d07c590. No whole-machine CPU saving is claimed. Existing guarded-import debt remains.
The two NRA relocation defects are now repaired separately in NRA #479: implicit sibling discovery and its competing text writer are deleted. 87 focused controls, 72 repository guards and 14 installed-package controls passed in separate overlapping groups. Earlier unsafe simulations remain unapplied. P279 still needs a backend-free activity-client import; it remains open.