Skip to content

Bug: new completion compatibility fixture absent-list rows fail before application during #1769 repair #1771

Open

Description

@JoshuaRowePhantom

New targeted execution red — isolated diagnosis required

During the authorized coupled #1763/#1768/#1769/#1770 implementation, the FIRST targeted managed Core run completed FAILED: 14 executed /12 passed /2 failed. Immediate stop: no further source edits, builds, tests, retries, commits, native or Main execution. This filing does not diagnose the new failure or attribute any older incident.

Candidate: C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545, HEAD f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b, branch batch/1702-1703-startup-first-1117. Incoming three owned #1763 WIP files preserved; current additional changes include the explicit-list production repair and its new compatibility fixture, and replay-continuity repair/regressions. No commits or pushes.

Two failures:

  • Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "absent", diagnostic: True)
  • same method, (listKind: "absent", diagnostic: False).

Original ErrorInfo: Assert.True failure, Expected True /Actual False, RemoteAgentChatCompletionTests.cs:63: Assert.True(json["payload"]!.AsObject().Remove("items"));. Stack continues through line79 disposal. No causal inference or correction is asserted here. Six other new parameter rows and six existing related compatibility/real-gap tests passed; the two absent rows did NOT reach completion application/history/TurnCompleted postconditions.

Original TRX: C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545\Phantom.Workspaces.Llm.Core.Tests\TestResults\jrowe_DAEMON_2026-11-19_02_12_02_net10.0.trx. SHA256 7ED366B580BD3D541DE2F5DBB86E4F4B63B9BAB2DC5FAD47A5113161C9ACA93E,29301bytes. All abnormal host counters zero; overall Failed. Two Error RunInfos identify the failures. Two Warning RunInfos: unrelated discovery non-serializable-data warning; Blame all tests finished/no sequence generated. No new dumps/sequence/attachments; one new artifact (original TRX). No passing-count waiver.

Permanent COPY-ONLY evidence root: C:\dev\Phantom.Workspaces-Skills\worktrees\r1770-g2: original-artifacts (unaltered TRX copy), core-command.txt, core-results.log, core-console.log, core-invocation.json, full-host-health.json (FULL summary/counters/RunInfos/definitions/entries/settings), actual-case-set.json (ALL results/ErrorInfo), new-artifacts.json, historical-result-audit.json (zero old artifact mutations), incoming WIP/index/base archives, stopped-owned.patch, complete tested-source-final.zip and full compiled-image/Core+Main outputs with compiled-files.json hash manifests. Necessary builds eventually succeeded with zero warnings/errors; pre-test compile correction attempts/logs retained. Default scripts\test-results.log remained absent; restored in finally per invocation contract.

Required next action

Parent must route a dedicated isolated diagnose-unrelated-test-failure investigation against preserved source/images/raw artifacts BEFORE further edits/retry/execution. No self-delegation, live candidate retries, schema/compatibility assertion weakening, speculative fix or ordinary owner-UNKNOWN execution. Main targeted selection intentionally NOT run after red; no native/full/stability/qualification. Original #1768 owner NONOBJECTFRAME cause, reconnect timeout attribution, r1768-f1 and r1763-e9 remain UNKNOWN/FAILED respectively; no closure or overall resolution claim.

Activity

  1. JoshuaRowePhantom commented on Nov 19, 2026

    @JoshuaRowePhantom
    OwnerAuthor

    Isolated read-only diagnosis: RELATED fixture defect; no product-runtime failure established by these two rows

    Scope: independently read current source/diff, relevant issue specifications, original raw TRX/logs, ZIP entries in memory, and actual preserved PE/portable-PDB metadata/IL. No implementer handoff/design/reasoning/state notes were used. No files were written, extracted, edited or cleaned; no build, test, test discovery, capture, install, trace, ref operation, active-features checkout or frozen probe was accessed/executed. This comment is evidence, not execution authorization or a green qualification.

    1. Original red remains unchanged

    Original TRX (and its copy under r1770-g2\original-artifacts): pf1117-1545\Phantom.Workspaces.Llm.Core.Tests\TestResults\jrowe_DAEMON_2026-11-19_02_12_02_net10.0.trx, 29301 bytes, SHA256 7ED366B580BD3D541DE2F5DBB86E4F4B63B9BAB2DC5FAD47A5113161C9ACA93E. Both files independently hash identically. Run 265087da-81c8-4bf2-8ff2-c7887fe2b15d, host DAEMON; raw start 2026-11-19T02:11:58.4220268-08:00, finish 02:12:02.6143054-08:00.

    Overall FAILED: total/executed 14, passed 12, failed 2. All other raw counters are zero, including error, timeout, aborted, inconclusive, passedButRunAborted, notRunnable, notExecuted, disconnected, warning, completed, inProgress and pending. Separately, RunInfos contain 2 Errors naming the failures and 2 Warnings: nonserializable discovery data for unrelated CopilotSdkStreamAdapterTests.TranslateCopilotSdkSessionEvents_BenignLifecycleEvent_IsConsumedSilently, and Blame's all-tests-finished/no-sequence-generated message. No result-file/collector attachment entries in raw TRX; logs report no host crash or timeout. This is not a warning-free run or a pass-count waiver.

    Both failed cases are Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences:

    Parameters Execution ID Actual ErrorInfo
    listKind: "absent", diagnostic: False 08f29a7f-c705-4348-9d3e-e36d58f3ec4c Assert.True() Failure; Expected: True; Actual: False, source line63, then disposal line79
    listKind: "absent", diagnostic: True 48b489ea-0bfc-43e1-848c-c94d77797bfc identical assertion/stack locations

    The other six new rows (empty/null/nonempty, each boolean) passed. The six other passes are ProxyGetters_AfterOrderedStreamingFrames_ReturnMirroredState, StreamingUpdates_KeepRunIdentityWithoutClearingActiveToolGroup, ReconnectAsync_ReplayGapMarkedSnapshot_ReplacesCursorThenRequiresContiguousDeltas, ReconnectAsync_ReplayGapSnapshotWithStaleResetCursor_IsRejected, ReconnectAsync_ReplayGapSnapshotWithDifferentEpoch_IsRejected, and ConnectAsync_SequenceGap_ClosesWithProtocolException. Main/native/full/stability selections were not run by this investigation; the original logs contain only the Core invocation.

    2. Exact failed operation, independently bound to compiled source

    All following dirty-source locations refer to current pf1117-1545 and the matching entries of r1770-g2\tested-source-final.zip, not to an imaginary committed new test:

    • Phantom.Workspaces.Llm.Core.Tests\RemoteAgentChatCompletionTests.cs:50-58 creates a completion whose CLR Items is null for BOTH null and absent rows.
    • :60-64 then parses the already serialized frame and executes Assert.True(json["payload"]!.AsObject().Remove("items")); at63. Expected operation result: deletion of an existing member returns true. Actual observed operation result: false. JsonObject.Remove returning false means that member was not there. This is not an assertion about History, a protocol error, or a full captured payload.
    • The actual compiled async MoveNext (method row6939) has PDB sequence point IL_04EA -> source63:17-63:74, followed by IL_050F -> line64 and IL_0529 -> line66. Its IL resolves "payload" -> JsonNode.get_Item -> AsObject -> "items" -> JsonObject.Remove -> Assert.True (memberrefs 0A0001BA/032E/0334/00F2). Thus the raw stack and actual image agree on the exact assertion, not merely a receipt's filename.
    • Completion send is later at66; usage barrier67-68; run/history/TurnCompleted/count assertions72-75. Neither failed row reached those completion postconditions or sent its completion frame. They did reach attachment, streaming start and the pre-completion checks through49. Line79 is await-using disposal propagation, not evidence that line72-75 succeeded.

    3. Serialization and compatibility contract: audit all four representations together

    Phantom.Workspaces.Llm.Core.Tests\RemoteAgentChatTests.cs:271-273 defines Frame using production CreateFrame plus SerializeFrame. This is not default ad-hoc JSON serialization:

    1. Phantom.Workspaces.Llm.Core\Remote\AgentSessionProtocol.cs:259-265: completion has required RunId, required single Item, and optional nullable IReadOnlyList<JsonElement>? Items, no non-null initializer or per-property null override. The actual compiled parameterless DTO constructor does not initialize Items.
    2. :816-827: protocol options copy AIJsonUtilities.DefaultOptions, overriding naming to kebab-case and unknown-member handling to Disallow, but NOT overriding null ignore behavior.
    3. Independent offline IL of the actual archived dependency Microsoft.Extensions.AI.Abstractions.dll (SHA256 AC9812ACECF3ED2CF418044EE6608B00F9820CC49BE57BA4B46EDA4D1FD08108, equal to the original Core output) proves the inherited setting: AIJsonUtilities.CreateDefaultOptions IL_0000-000A copies JsonContext.Default.Options; JsonContext..cctor token 0600081A, IL_0007 ldc.i4.3, IL_0008 calls JsonSerializerOptions.set_DefaultIgnoreCondition (0A000982), i.e. WhenWritingNull. AIJsonUtilities's static initializer installs CreateDefaultOptions. This was metadata/IL reading only, not loading/invoking product code.
    4. Protocol SerializePayload at590-597 first serializes the typed event with those options, strips only type, then serializes a dictionary of surviving JsonElements. A null CLR Items has already been omitted by the first serialization; the dictionary cannot restore it. SerializeFrame481-485 validates and serializes that payload. Empty/nonempty arrays are non-null, so they survive.
    5. On receive, DeserializeFrame488-507 clones the payload and validates; event Deserialize548-587 inserts the type discriminator into cloned members and deserializes the concrete DTO. Absent Items keeps CLR null. An explicit JSON "items":null sets the nullable collection to null (the cloned dictionary value is a JsonElement Null, not a null CLR value silently dropped by null-ignore). [] becomes a non-null empty collection; a list preserves its element order. Null-ignore is a write rule, not null rejection on read.

    Contract-derived matrix (wire shapes below are source/IL-inferred, not full runtime payload captures):

    Intended input What present fixture actually constructs on wire Receiver/intended completion behavior
    absent legacy list Items omitted already; then fixture incorrectly requires successful deletion Items null -> append exactly required legacy Item, retire run, one TurnCompleted, including a real diagnostic Item
    explicit null legacy list Also omitted, because Items=null uses the same typed serializer Same fallback semantics, but the passing rows do not establish explicit-wire-null coverage
    explicit empty list "items":[] Authoritative empty -> append nothing, retire run, no TurnCompleted; do not append fallback Item
    explicit nonempty list array for [first,last,first,equal] Preserve all four ordered occurrences, including repeated positions/value-equal distinct inputs; no fallback substitution

    The last-column oracle comes from #1769's null/empty distinction, required/optional DTO contract and actual owner semantics, not from running the changed receiver to generate its own expected output. RemoteAgentSessionLease.cs:1772-1789 produces Item = owned.LastOrDefault() ?? fallback plus Items = owned.Select(...).ToArray(): zero owned messages is an explicit empty list. Phantom.Workspaces.Llm.Core\AgentChat.cs:1489-1510 completes only actual captured messages, then removes running state. The local diagnostic fallback must not become an extra authoritative history occurrence. Legitimate diagnostic legacy Item must not be filtered by role.

    4. Relatedness and tightly coupled assertions/errors

    RELATED to the current #1769 compatibility fixture addition, specifically its wrong serializer precondition; this is a fixture defect, not evidence that the production null-versus-empty repair failed. New test is untracked and absent from immutable HEAD; current diff changes the receiver at RemoteAgentChat.cs:330 from count-positive fallback to e.Items ?? [e.Item]. That receiver expression is never reached for either failed completion. This is direct operation-order causality, not file-overlap attribution. No baseline rerun was performed; no claim that every possible product behavior is correct follows.

    Preserve RemoteAgentChatCompletionTests.cs:26-35 independent fallback/first/equal/last inputs; :42-49 observed start/baseline/event setup; :70-75 independently stated expected sequence, full initial-plus-expected history, exact TurnCompleted sequence and count. Preserve role variants, duplicate occurrences and order, not just counts. The usage frame is an ordered application barrier, not a completion oracle (RemoteAgentChat.cs:355-363,374-389 chains frame application). Receiver :551-559 must still reject an unknown run before removal, remove running state, add precisely prepared items and emit precisely corresponding completions. PrepareFrame:330-331 and Deserialize:761-763 must still deserialize/validate selected history items; malformed selected payloads must not be hidden by fixture repair. Required RunId/Item and nonblank run ID remain required (AgentSessionProtocol.cs:259-265,663-665); frame envelope/object checks remain at766-782 and unknown members remain disallowed at822. Nothing here justifies accepting malformed frames, filtering diagnostics, deduplicating by value/reference/run ID, or weakening errors/full-history/completion assertions.

    Existing compatibility source audited: AgentSessionProtocolCodecTests.cs:94-100 requires RunId/Item, not Items; :471-486,625-629,648 roundtrips a legacy completion without Items but checks type/sequence/correlation, not all four list shapes or history/completion output. RemoteAgentChatTests.cs:130-162 likewise constructs legacy Item-only completion and checks a mirrored assistant role; it passed in the original Core selection. These do not independently cover explicit-wire-null, nor may their limited assertions replace the new full-history checks. The nonempty notification regression at RemoteAgentChatNotificationPipelineTests.cs:109-116 supplies an explicit complete list; it was source-inspected, not part of this 14-case run.

    5. Provenance: actual images, actual PDBs, source ZIP, originals

    HEAD independently remains f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b; status has exactly the four specified modified files and one untracked completion test. Independently read PE debug directories and portable PDB ID bytes, not just pe-pdb-identities.json/pdb-source-checks.json receipts:

    Archived image DLL SHA256 Actual CodeView GUID / stamp = actual PDB GUID / stamp
    Core.Tests F1C04F5DCCBAD82B69641082B31D39165D82E6F4EF035BA776529645DB6E70BB 04bf559f-6db3-400c-a5a7-6d69e4c969ce / 4073774876
    Core 9DAF05D067C5F2D869DBA271C2A0224E25E578591332B985CDDB36B51C99AD74 24bfa963-2fbd-4af2-afd6-e84df23619db / 4051643285
    Main/product 72CE49474A6C91CA21FBC4A036C8685EE79929EDA06AB40E1444ABC9497CA932 1e86ae64-75f6-a85e-d640-f8a74fd95032 / 2026381316
    Main.Tests FF04646554F4816A6A50638856A51EDC5072A0FEDA6D8C7EE31556649D6EB3AE 9cdb8f53-042f-4942-92ce-6d1c5ab5c449 / 4096687275

    Core.Tests PDB SHA256 9EE14B6E24985562F6A5C792DCE541D4E1871BE9FB94D2B1C79AE646884DE023; Core PDB BE98D874FD6F9A2B2680DD7BB53A219F611B236A5628478E9D612D7A02917940; product PDB 9606A9458B00EE4446CD6A593D3395497D3F44D8530AFBBAB543B1670E8E8426; Main.Tests PDB E6E37D455621C72DA91A6ED59170D725EA2580DBB83559B5E99BAE02846A0D0F. Core/product archived copies under both project directories agree. Original Core output Core.Tests/Core DLL+PDB hashes and dependency DLL hash equal the archived copies; raw TRX storage/codeBase names that original Core.Tests path. No new runtime attestation beyond the original artifacts is claimed.

    Actual portable-PDB document hashes use SHA256 algorithm GUID 8829d00f-11b8-4213-878b-770e8597ac16. For each below, actual PDB document hash = current file byte hash = unextracted tested-source-final ZIP entry byte hash:

    Source SHA256
    completion test F8CC30B8FF7D506278671B281695DF3DF0689A5BE32A395AD9F529D6DECC31AC
    existing RemoteAgentChatTests 01904ABC1F2A43E917F98BE3061A4316F634E600DCBA6FD2FD0779CA15DC0961
    RemoteAgentChat 8B6E275913D82892BC0D051A9E1AA2422A58F4BCCD6C53386AC8AF8DEF96A3C2
    AgentSessionProtocol 68AA3726CB905A83A3592278E67C3320DBEDEF4D20EBB94E75E1E2DF1535DBFB
    RemoteHistoryOwnerTests AC0ED606DF128BF29AD41894347C9451454A282EE0B1E1627BB61B6425B43CCF
    RemoteAgentSessionScenarioTests BAA8AD1579CB2BC7A25A7015C14A55BF61745FA7715746B63D03D3AE667E0A98
    RemoteAgentSessionLease 211F1E6EAD21C4D5DBA38405E4AA2502F9918F2443B6A6A7C80855BCD597A809

    Yes, tested-source-final reflects the compiled bits for these examined documents, including every specified dirty source and the actual failing line. This is not a blanket claim about every ZIP entry. Earlier tested-source.zip does NOT match compiled completion-test source (4069 bytes / 1ECF9E9ADE44F5FD873F0C72013020A389212E8339E97653CF5066AE027E1C85 versus compiled/final/current3971 bytes) or compiled RemoteHistoryOwnerTests (6618D38E49F53D8B85B43A0CFEB6D726B25CB5E8035C55160D80F99D389E6BFF versus final/current/PDB hash above). Do not use the earlier ZIP as the exact compiled source for those files. Binding Main artifacts does not mean Main tests ran.

    6. Minimal coherent repair plan (NOT performed) and Expected Tests

    Repair only fixture construction/pre-send shape assertions unless subsequently authorized evidence establishes another defect. Treat the absent and null rows together: require actual absence for absent; explicitly construct a present JSON-null member for the null row after typed serialization (or independently author the payload). Verify exact presence and JsonValueKind before send. Do not require removal of an already omitted member, merely relabel both rows, drop either representation, change protocol-wide null serialization, or turn the production decoder into the expected-output generator. Retain the expected histories and TurnCompleted sequences from explicit test data/contract. Add codec coverage with independently stated wire shapes. No further failure is predicted as an observed fact.

    Test name / class Required acceptance, not executed here
    StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences / RemoteAgentChatTests All eight existing cases: absent really lacks key; null really contains JSON null; empty contains []; nonempty contains exact ordered inputs. Then retain run retirement, full baseline+expected history, exact count and TurnCompleted assertions for both roles.
    StreamingCompleted_NullOrAbsentItems_PreservesLegacyFallback / AgentSessionProtocolCodecTests (proposed) Independently authored absent/null payloads decode Items=null while preserving required Item; assert typed null serialization intentionally omits Items.
    StreamingCompleted_ExplicitItems_PreservesEmptyAndOrderedOccurrences / AgentSessionProtocolCodecTests (proposed) [] remains non-null empty; nonempty list preserves every repeated/equal occurrence in order; required Item remains present.
    StreamingCompleted_InvalidEnvelopeOrSelectedItem_RejectsMalformedInput / relevant codec/proxy tests (proposed) Preserve current required-field/nonblank-run/envelope/unknown-member/unknown-run and selected-item error behavior; do not weaken protocol acceptance as a fixture workaround.
    Existing ordered proxy, streaming identity, real-gap/stale-reset/different-epoch/sequence-gap cases Preserve their exact existing assertions; the original six passes are narrow evidence, not blanket compatibility or #1770 qualification.
    HistoryPromotion_SnapshotThenRelease_PreservesOrderedOccurrencesAcrossViewers / RemoteAgentSessionScenarioTests Preserve all owner/first/joining full ordered-history, snapshots, CAS barriers, reconnect and cleanup assertions when separately authorized; no Main execution occurred here.

    Independent GitHub searches for exact failing method, StreamingCompleted, completion/null and Remove/items/fixture locate this #1771 fixture issue and #1769 production issue, not a distinct mechanism needing a duplicate filing. No issue created, closed, relabeled, or body edited.

    This diagnosis does not resolve/attribute original #1768 owner NONOBJECTFRAME or reconnect failures, #1754/#1517/#1175, or earlier r1768-f1/r1763-e9 outcomes: retain their separate UNKNOWN/FAILED status. #1764-1766/#1756 are untouched. Original Core 14/12/2 FAILED stays immutable. No executing investigator children/product processes were started; read-only investigation work is complete and its ownership is released. Incoming implementer was already STOPPED/released per task input.

  2. JoshuaRowePhantom commented on Nov 19, 2026

    @JoshuaRowePhantom
    OwnerAuthor

    Design — bounded coupled completion after isolated #1771 diagnosis

    Correct the fixture, not protocol serialization: assert absent Items is absent; construct explicit present JSON null and check its actual kind before send. Preserve all eight role/list rows, independently expected full histories, duplicate occurrences, run retirement and TurnCompleted ordering. Add independently authored codec shapes. Carry forward #1763 worker-owned per-position snapshot/publication ownership and replacement-generation reset, #1769 every non-null list including empty, #1770 returning the retention publication once after the replay cut, plus admitted-attach blocking and replay SAME versus forced-gap NEW running identity fixtures. Only selected managed Core/Main contracts through existing runner; UNKNOWN owner case excluded. No causal claim for original reconnect timeouts or overall #1768 resolution. Original r1770-g2 Core14/12/2 and older reds remain immutable. No native/full/stability/qualification/push/closure. Evidence: worktrees\r1771-h3; exact source baseline is prior tested-source-final.zip, never earlier tested-source.zip.

  3. JoshuaRowePhantom commented on Nov 19, 2026

    @JoshuaRowePhantom
    OwnerAuthor

    NEW RED — STOPPED, parent-routed isolated diagnosis required before edits/retry

    Issue: #1771 (new failure evidence on this coupled fixture work; no root-cause/relatedness diagnosis asserted). Worktree: C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545, branch batch/1702-1703-startup-first-1117, HEAD unchanged f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b.

    First approved managed Core invocation in evidence root C:\dev\Phantom.Workspaces-Skills\worktrees\r1771-h3 finished FAILED:23 executed /17 passed /6 failed. Immediate STOP honored: no source edits, retry, Main/native/full/stability execution or commits after this result. No push/closure/qualification.

    Exact failing cases and actual reached assertions

    • AgentSessionProtocolCodecTests.StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences: all four rows absent, null, empty, nonempty fail at AgentSessionProtocolCodecTests.cs:49. Raw expected {"marker":"legacy"}, actual { "marker": "legacy" }. RunId/type and actual wire presence/kind assertions precede49; decoded-list assertions51-58 are NOT reached. This reports the exact observed string mismatch, not an isolated diagnosis.
    • RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences: two nonempty rows, diagnostic false/true, fail at RemoteAgentChatCompletionTests.cs:75 (new pre-send wire-array equality). Raw mismatch pos5: expected indentation begins two spaces before the object; actual begins six. These rows do NOT send completion or reach history/TurnCompleted postconditions. Await-using disposal propagation at90 is not a completion assertion.
    • Six remaining proxy matrix rows (empty/null/absent x both roles) PASS, including explicit present JSON-null construction/kind assertion, actual absent-member assertion, full initial-plus-expected ordered history, exact count/run retirement and exact TurnCompleted sequence. Eleven selected existing compatibility/notification/required-field/unknown-member/blank-ID/replay-reset/real-gap cases PASS. This is NOT a failed-host waiver.

    Original host and immutable evidence

    Original TRX: Phantom.Workspaces.Llm.Core.Tests\TestResults\jrowe_DAEMON_2026-11-19_03_12_23_net10.0.trx, 53421bytes, SHA256 CC736B3A07AF90AB16F45D8077B56C603FDEE7DA3E9CAB00DD0C7E660EA0498E. Both retained copies hash identically. Run 2a27a882-ed80-428b-82ea-a9356c8cc41b, DAEMON; raw start 2026-11-19T03:12:19.3161734-08:00, finish 03:12:23.6150889-08:00.

    Full raw counters: total/executed23,passed17,failed6; all other counters0, including error/timeout/aborted/inconclusive/passedButRunAborted/notRunnable/notExecuted/disconnected/warning/completed/inProgress/pending. Separately RunInfos has 6 Errors naming test failures and 2 Warnings: unrelated nonserializable discovery-data notice and Blame all-tests-finished/no-sequence notice.23 records/definitions/entries retained; all ErrorInfo and complete original summary retained. No attachment entries, new dump or sequence file; no host-crash/watchdog failure reported. Overall remains FAILED, not warning-free green.

    Both necessary no-restore managed builds succeeded0warnings/0errors before tests. tested-source.zip contains exact current tracked source plus untracked completion fixture; incoming source/index/base/WIP preserved; all four incoming dirty tracked files match prior r1770-g2\tested-source-final.zip, never substituted earlier ZIP.1042 copied execution-image files independently hash-identical; six actual CodeView/portable-PDB pairs match.1336 physical PDB documents match current source using their DECLARED SHA256/SHA1 algorithm;1325 archived-source matches,11 generated documents not in ZIP;56 nonphysical entries explicitly unverified. An initial SHA256-only provenance receipt is preserved alongside corrected declared-algorithm receipt, not silently overwritten. No product runtime instrumentation.

    Exact commands/selectors/times, build logs, original TRX/logs/host structures/cases, hashes, final stopped patch/status under evidence root. Historical artifact baseline rechecked:0 byte/length mutations (including original r1770-g2 Core14/12/2); default candidate log remains its original ABSENCE in finally; index unchanged/empty. Five incoming owned WIP files preserved; additional owned tracked change is the codec regression file. No unrelated scopes changed.

    Parent action required: route a dedicated isolated diagnose-unrelated-test-failure investigation for these six NEW cases before any further candidate edits or execution. No investigator launched by this implementer. Do not waive on an apparent formatting explanation. Original owner NONOBJECTFRAME remains separately UNKNOWN, excluded/not executed; original reconnect-timeout attribution remains UNKNOWN. #1763/#1768/#1769/#1770 are not complete or qualified; #1764/#1765/#1766/#1756 untouched. Exclusive candidate source/build/execution ownership is released after preservation/handoff.

  4. JoshuaRowePhantom commented on Nov 19, 2026

    @JoshuaRowePhantom
    OwnerAuthor

    NEW r1771-h3 occurrence — independent read-only diagnosis: RELATED assertion/oracle defects; full nonempty runtime behavior remains unverified

    This is not the prior absent-fixture diagnosis (comment 7007105717), the frozen-owner probe, or an attribution of #1768's earlier owner/reconnect failures. I independently read current candidate source/diff, issue specifications, original raw TRX/logs, actual archived PE/portable-PDB metadata/IL, and ZIP source entries in memory. No implementer handoff/reasoning/design/state artifacts were used. No file writes/extraction, source edits, builds, tests/discovery/retries, installs, captures, probes, tracing, cleanup, ref moves, pushes, active-features/retained-bind/playspace/container access, or delegation were performed. This comment neither authorizes execution nor qualifies anything green.

    Original evidence and complete host/case accounting

    Candidate C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545, HEAD f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b. Evidence root C:\dev\Phantom.Workspaces-Skills\worktrees\r1771-h3.

    Discovered original TRX: original-artifacts\jrowe_DAEMON_2026-11-19_03_12_23_net10.0.trx, plus its preserved original-artifacts\Phantom.Workspaces.Llm.Core.Tests\TestResults\ copy. Both and the original candidate Phantom.Workspaces.Llm.Core.Tests\TestResults\ file independently hash SHA256 CC736B3A07AF90AB16F45D8077B56C603FDEE7DA3E9CAB00DD0C7E660EA0498E, 53,421 bytes. Raw logs: core-results.log SHA256 E2DC09CD8C2331F8D88B92D12603DBAA0CE72A5CA5C8BEDF2E12782567C55035; core-console.log SHA256 D203A36AA7B9C0269CDA8CA5BE8DB946994C907E6493A237B6FE85D57A9964AA.

    TRX run 2a27a882-ed80-428b-82ea-a9356c8cc41b, DAEMON; start 2026-11-19T03:12:19.3161734-08:00, finish 2026-11-19T03:12:23.6150889-08:00. Overall FAILED: total 23, executed 23, passed 17, failed 6. Every other counter is 0: error, timeout, aborted, inconclusive, passedButRunAborted, notRunnable, notExecuted, disconnected, warning, completed, inProgress, pending. These zero counters must not be confused with RunInfos: six Error entries name the six assertion failures; two Warning entries report (1) nonserializable System.Object[] discovery data for CopilotSdkStreamAdapterTests.TranslateCopilotSdkSessionEvents_BenignLifecycleEvent_IsConsumedSilently, falling back to one test case, and (2) Blame: all tests finished; no sequence file will be generated. The adapter reports .NET 10.0.15, start and Finished normally; log terminates Failed! ... 6/17/23, not a crash/timeout. Raw TRX has 0 ResultFile and 0 Collector entries. Discovered original-artifacts contains only the two identical TRX files; no dump or sequence file found in this occurrence's evidence tree. No crash, dump or host-abort evidence is present; this is not a warning-free run or an explanation of older hosts.

    Exact six failing names/parameters below are from original TRX UnitTestResult + matching TestDefinitions/TestMethod, not filenames or labels. All have class namespace Phantom.Workspaces.Llm.Tests (not the assembly-name namespace).

    Exact fully qualified case Execution ID Observed location/fact
    Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences(listKind: "absent") 3069be61-1e91-4a37-8be9-1dc4e5258638 AgentSessionProtocolCodecTests.cs:49, raw string mismatch position1
    Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences(listKind: "null") be85724f-53a4-4605-ae4e-886d4c23dafe same49/position1
    Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences(listKind: "empty") be8ac18d-4f5a-45be-8bf6-b6fea29478ce same49/position1
    Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences(listKind: "nonempty") 6be8c4bb-cebb-4d68-9ae5-c665cc6fd625 same49/position1
    Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "nonempty", diagnostic: False) 5ac5e827-1f5e-4ec4-bd2a-b3649e68fb2a RemoteAgentChatCompletionTests.cs:75, raw string mismatch position5;90 is disposal propagation
    Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "nonempty", diagnostic: True) 984f01f4-a30f-4b40-bec0-7e5f5655493a same75/position5;90 is disposal propagation

    Six expected/actual facts: for EACH of the four codec rows the complete retained expected JSON text is {"marker":"legacy"} (19 characters), while the complete retained actual text is {\r\n "marker": "legacy"\r\n } (30 characters after decoding the displayed CR/LF). An independent framework JsonDocument parse of each complete pair yields Object, exactly one ordinal property marker, String value legacy; JsonElement.DeepEquals is true in all four. That is a full comparison of this small retained Item, not just its first mismatch.

    For the nonempty False row, raw error retains only expected prefix [\r\n {\r\n "role": "assistant",\r\n "ti and actual prefix [\r\n {\r\n "role": "assistant",\r; both are explicitly ellipsized by xUnit. For nonempty True, expected prefix [\r\n {\r\n "role": "diag",\r\n "timesta and actual prefix [\r\n {\r\n "role": "diag",\r\n " are likewise ellipsized. The first different character is indentation at position5. Neither original TRX nor these raw logs contains the complete nonempty expected/actual array. No full-array semantic equality or absence of additional discrepancies is claimed/reconstructed from those prefixes. diag here is the test's literal custom role; the real owner's synthetic fallback uses diagnostic, a distinct string.

    All other 17 case outcomes are Passed, with their actual scope retained:

    • The same Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences has six passing combinations: (listKind: "empty", diagnostic: False/True), (listKind: "null", diagnostic: False/True), (listKind: "absent", diagnostic: False/True).
    • Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests: Deserialize_EmptyRequiredId_RejectsFrame, Deserialize_UnknownMember_RejectsFrame, RoundTrip_AllServerEventDiscriminators_PreservesSequenceAndCorrelation, ProtocolDtos_RequiredInitProperties_AreMarkedRequired.
    • Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests: StreamingUpdates_KeepRunIdentityWithoutClearingActiveToolGroup, ProxyGetters_AfterOrderedStreamingFrames_ReturnMirroredState, SdkNotification_CoalescedRemoteStreamingPromotionAndSnapshot_PreserveEncounterOrderAndSubagentContext.
    • Phantom.Workspaces.Llm.Tests.RemoteAgentSessionClientTests: ReconnectAsync_ReplayGapSnapshotWithDifferentEpoch_IsRejected, ReconnectAsync_ReplayGapMarkedSnapshot_ReplacesCursorThenRequiresContiguousDeltas, ConnectAsync_SequenceGap_ClosesWithProtocolException, ReconnectAsync_ReplayGapSnapshotWithStaleResetCursor_IsRejected.

    Those 17 do not cancel six reds or stand in for Main. Existing raw build logs record Core and Main build success, 0 warnings/errors, but Main tests and remaining repairs were not run. This diagnosis starts no executors.

    Compiled source identity established independently, before attribution

    Actual archived images were opened as PE/portable-PDB data, never loaded/invoked as executable assemblies. Relevant deployed directory: compiled-image\Phantom.Workspaces.Llm.Core.Tests\bin\Debug\net10.0. Original TRX TestMethod.codeBase and terminal log identify the candidate's corresponding Core.Tests DLL. Its current deployed DLL/PDB and Core DLL/PDB match these archived bytes. This is stronger than accepting version, filename or a receipt, but is not a new process loaded-module attestation.

    Actual image DLL SHA256 PDB SHA256 PE CodeView GUID / age / stamp
    Phantom.Workspaces.Llm.Core.Tests 7DDE40B32D66804BA26DB506ADEC89DA293ACD447A779507AEA33743ED5D6B99 E1CCE4F45F1EE10CAADD3B96C49877D89726AE2DDA91887491A2EF5319501229 00874880-4fc0-4bb8-bb54-505b8b4d1d88 /1/2709017330
    Phantom.Workspaces.Llm.Core 9DAF05D067C5F2D869DBA271C2A0224E25E578591332B985CDDB36B51C99AD74 BE98D874FD6F9A2B2680DD7BB53A219F611B236A5628478E9D612D7A02917940 24bfa963-2fbd-4af2-afd6-e84df23619db /1/4051643285

    Portable PDB IDs are respectively 80488700C04FB84BBB54505B8B4D1D88F25278A1 and 63A9BF24BD2FF24AAFD6E84DF23619DB952B7FF1: their GUID+stamp agree with the PE entries. Independently hashing each PDB with its 20-byte content ID at offset124 zeroed produces exactly its PE PdbChecksum: test 80488700C04FB8CB7B54505B8B4D1D88F25278218504628695B8F7830A7A61C7; Core 63A9BF24BD2FF23A2FD6E84DF23619DB952B7F71297B7F7C4CA962AF79FB83F9 (SHA256). MVIDs: test 0395f4a7-4e5a-43fa-a600-c05c41f13d2c, Core 845e801f-7c0b-4da5-8195-c87331ce4317.

    tested-source.zip SHA256 86089D8BFCD47E1EE0AA00A66ED04C0865FF571DA14C703648F2979DAF19A0EC, 2,676 entries, read without extracting. PDB document hashes use declared SHA256 algorithm GUID 8829d00f-11b8-4213-878b-770e8597ac16. Exact byte agreement PDB = tested-source ZIP entry = current file, including:

    Relevant source SHA256
    Phantom.Workspaces.Llm.Core.Tests\AgentSessionProtocolCodecTests.cs 740A9B1E8F84B0E3850123881C0C4752F5A55D2DF09D68154F5C281836E27F03
    Phantom.Workspaces.Llm.Core.Tests\RemoteAgentChatCompletionTests.cs A617F0B23CDC9913968F86918510D6410791C165B748A3B8C0614CDE9929372B
    Phantom.Workspaces.Llm.Core.Tests\RemoteAgentChatTests.cs 01904ABC1F2A43E917F98BE3061A4316F634E600DCBA6FD2FD0779CA15DC0961
    Phantom.Workspaces.Llm.Core\Remote\AgentSessionProtocol.cs 68AA3726CB905A83A3592278E67C3320DBEDEF4D20EBB94E75E1E2DF1535DBFB
    Phantom.Workspaces.Llm.Core\Remote\RemoteAgentChat.cs 8B6E275913D82892BC0D051A9E1AA2422A58F4BCCD6C53386AC8AF8DEF96A3C2
    Phantom.Workspaces.Llm.Core\AgentChatHistoryItem.cs 0E957455233E387BD31DFBF4ED96168D40BC2905A6B2E444773C4B432129D0AB
    Phantom.Workspaces.Llm.Core\AgentChat.cs B1FBA01B8ED2849A02BAC79E0076BD69678AEABE6E14A6A659FE1E8B66860109

    Scope totals: Core.Tests 238 PDB documents, 234 present in tested ZIP and all234 matching, all238 existing current files matching. The four not archived are test-SDK Program plus three generated obj documents. Core 279 documents, 275 present in ZIP/all275 matching;278 existing current documents matching. Three generated obj documents are not archived; the remaining generated RegexGenerator document is neither archived nor a current disk file. Thus not a blanket whole-build/source/dependency verification. No source reconstruction or build of generated code was attempted.

    Actual test PDB sequence points bind codec method token 06000386, IL_019A to line49:9-49:76; async completion MoveNext token 06001B22, IL_05FE to line75:17-75:79. Next completion send is IL_0622 -> line77, usage send IL_0694 ->78, postconditions IL_07FB/080C/0838/0859 ->83/84/85/86. This independently agrees with raw stacks and source, not a filename-only provenance assertion.

    base-head.zip SHA256 C8F8C28F5D80DE056F0A27646DD4E859FB91E12B95AC58AEEE77C1C8CA7C58E2 contains checkout-format sources, not byte-identical Git blobs: independently read HEAD Git objects for protocol, receiver, codec tests, shared fixture and history DTO use LF while corresponding base ZIP entries use CRLF; their texts agree after that explicit line-ending-only comparison. Tested ZIP/current/PDB agreement above is exact bytes, without normalization. The dirty receiver and added tests must not be described as committed HEAD source.

    Dependency scope: archived/current Microsoft.Extensions.AI.Abstractions.dll both SHA256 AC9812ACECF3ED2CF418044EE6608B00F9820CC49BE57BA4B46EDA4D1FD08108; Microsoft.Extensions.AI.dll both C6A0F61BDCAD21629966414BFEA45BA0F18E3FBDCA87DF74F3C1E594381D7643. Actual deps JSON selects AI.Abstractions10.9.0 (assembly10.9.0.0); metadata/IL, not that version alone, supplies the option behavior below. No SDK source-PDB correspondence, entire transitive graph, testhost/runtime binary set, or original loaded-module identity is claimed independently validated.

    Exact causal chain and coherent contract audit

    Current dirty-source/tested ZIP locations (not immutable-HEAD line links):

    1. RemoteAgentChatTests.cs:271-273 defines Frame with real CreateFrame plus SerializeFrame. Protocol AgentSessionProtocol.cs:259-265 requires RunId/Item, with optional nullable Items. Options at816-827 copy AIJsonUtilities.DefaultOptions, override kebab naming/unknown-member handling, not indentation or null omission.
    2. Offline IL of the actual AI.Abstractions dependency: AIJsonUtilities.get_DefaultOptions returns its static field; CreateDefaultOptions copies JsonContext.Default.Options (IL0000-000A), then changes encoder/resolver/converters, not indentation/null-ignore. JsonContext..cctor token 0600081A: IL0007 ldc.i4.3,0008 set_DefaultIgnoreCondition = WhenWritingNull; IL000E ldc.i4.1,000F set_WriteIndented = true. Its Default context is constructed from those options. No SDK execution was used to discover this.
    3. SerializePayload:590-597 serializes typed event, strips type via a cloned-JsonElement dictionary, serializes again. SerializeFrame:481-485 validates/event-deserializes then serializes the whole frame. Event Deserialize:578-585 parses Payload, clones fields, reinserts type, serializes and concretely deserializes again. Each JSON writer is entitled to format nested values in its current container depth. GetRawText() returns the original substring of that particular element, including contextual indentation; it is not an independent canonical JSON representation. This explains the complete codec Item mismatch and the observed root-vs-nested-array indentation mismatch. Protocol source/specs here do not require byte-for-byte preservation of original JSON whitespace or escape spelling. A deterministic same-codec/same-depth roundtrip assertion elsewhere is not such a wire specification.
    4. New codec test AgentSessionProtocolCodecTests.cs:22-38 independently writes payloads for all four representations, including genuinely explicit JSON null. :40-44 assert actual presence and Null/Array kind; :45-48 decode and check type/run ID. Every row reaches49 and fails comparing the compact literal directly with decoded.Item.GetRawText(). Assertions50-56 about decoded Items null/empty/ordered contents do not run in any of these four cases. The nonempty fallback Item at49 is still marker legacy; this assertion is not comparing its list.
    5. New completion fixture RemoteAgentChatCompletionTests.cs:25-35 establishes fallback/first/last/equal inputs, including repeated same-reference and value-equal distinct entries. :38-44 sends start and observes a running item; :45-49 records initial history/completion callback/barrier. :50-58 creates the completion. :60-65 now independently inserts explicit wire null; :66-72 verifies Items presence and kind. :73-75 compares a root array serialized with AI options (:88-89) against the substring of a nested wire array. For nonempty arrays their indentation differs by construction; empty [] does not expose a nested pretty-printing difference.
    6. Both nonempty rows fail75 before completion send77, usage send78, barrier79, expected sequence81-82, run retirement83, whole-history84, TurnCompleted85, count86. Thus there is no evidence from these two rows that nonempty completion reached PrepareFrame, appended/omitted/reordered any occurrence, emitted TurnCompleted, retired the run, or failed afterward. Line90 reflects async disposal, not successful execution of83-86.

    Contract matrix, distinguishing observed assertions from source-required behavior:

    Input shape Wire/codec checks actually reached Required receiver behavior from #1769/source; not inferred new passes
    Items absent New codec confirms omitted member and decoded event/run ID before failing49. Remote False/True rows pass through86. Nullable Items -> exactly legacy Item, retire run, one completion; diagnostic Item is legitimate.
    Explicit "items":null New codec confirms present Null before failing49. Remote False/True rows now truly confirm explicit null69 and pass through86; unlike the old fixture these are not merely omitted CLR null. Same legacy fallback semantics, while presence/null wire distinction remains explicitly asserted.
    Explicit "items":[] New codec confirms Array before failing49; its decoded-empty assertions never execute. Remote False/True rows pass the pre-send [] check and through86. Non-null authoritative empty -> no History or TurnCompleted occurrence, no fallback appended, run retired.
    Explicit nonempty New codec confirms Array before failing49; marker-order assertions55-56 never execute. Remote False/True stop at pre-send75. Exactly [first,last,first,equal], preserving all four positions/repeated references/value-equal inputs; no fallback substitution/addition. Runtime application for this new pair remains unverified.

    Receiver RemoteAgentChat.cs:321-335 prepares e.Items ?? [e.Item] at330, deserializing each selected occurrence. :551-559 rejects unknown run, removes running item, adds the prepared list and raises one TurnCompleted per entry. There is no role filter or deduplication in that code; no such behavior should be introduced. Real producer source RemoteAgentSessionLease.cs:1772-1789 builds a diagnostic fallback but always supplies the complete owned.Select(...).ToArray() Items list, including explicit empty. Local AgentChat.cs:1489-1510 completes captured messages before removing running state. The sender/local source audit explains the #1769 contract; it is not Main execution coverage.

    Strictness remains: frame envelope/object checks AgentSessionProtocol.cs:766-782, required DTO members259-265, nonblank completion RunId663-665, unknown event members via UnmappedMemberHandling.Disallow822, selected-history deserialization/null rejection RemoteAgentChat.cs:761-763, and unknown-run rejection553-554. Required presence is not synonymous with non-null JSON for every field. Do not invent a blanket invalid-fallback rejection when an authoritative empty/nonempty Items list legitimately excludes fallback selection; do not hide malformed selected items. Existing selected envelope/unknown-member/required-init tests passed, not an exhaustive new error matrix.

    Verdict: the six observed reds are RELATED to the new fixture/assertion work for #1769/#1771, via provably inappropriate raw-text oracles. Four complete retained Items are semantically identical; the other two have a proven pre-send root-vs-nested formatting mismatch but full incident-array semantic correctness is UNKNOWN because output is truncated. This is not a demonstrated production serializer/receiver defect, not proof the entire payload is otherwise correct, not an unrelated environmental failure, and not a baseline-before-branch claim. No production fix is justified by these six failures. #1769's actual null-versus-empty production requirement remains; #1763/#1768's other incidents remain separate, not retrospectively explained.

    Minimal coherent repair plan / Expected Tests (proposal only; no implementation)

    Repair the comparison oracles, not production formatting: independently author the complete expected JSON/typed contract; compare full structure/value semantics while retaining independent shape checks for absent/null/[]/nonempty. Do not generate expected payloads through AgentSessionProtocolCodec or the same production serializer being tested. Do not change SDK/protocol options, remove the pre-send payload assertions, drop unknown fields, compare only marker/count, filter diagnostics, or deduplicate/reorder collections to obtain a pass.

    A suitable independent JSON comparison must cover the entire tree: exact ordinal/case-sensitive property names and complete property inventory (including unexpected/missing fields and explicit null versus absent); token kinds; array length and every ordered position including duplicates; ordinal decoded string values including interior whitespace/newlines/Unicode/escapes; booleans/null; numeric kinds and exact contract values without floating-point precision loss or number-to-string coercion. Object member ordering is not a protocol semantic here, array ordering is. Duplicate object-name handling must be explicit, not silently collapsed by a dictionary. Number formatting/signed-zero distinctions should be pinned if required by the actual payload contract, not silently discarded. Pretty-print whitespace outside tokens and equivalent escape spellings alone are not new wire semantics. Framework structural comparison is appropriate only with those full-property/kind/presence/numeric/duplicate-name checks and independently authored expectations; a serializer-generated/case-insensitive/count-only/string-whitespace-stripping oracle is not.

    Keep independent fallback, first/last, repeated first and equal-but-distinct inputs; assert full wire list contents and full post-application initial+expected History, ordered TurnCompleted list, run retirement and exact counts. Full decoded typed fields must remain checked even when an optional wire field is omitted. Preserve diagnostic role strings exactly: the custom diag pair must not be renamed/ignored, and genuine legacy diagnostic fallback must remain valid. Explicit [] must exclude fallback regardless of role; nonempty must exclude fallback while preserving legitimate diagnostic entries.

    Expected test name Class Coverage required
    StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences AgentSessionProtocolCodecTests Keep all four rows; replace49 with complete independently authored Item JSON comparison; retain/strengthen50-56 to compare every list element/property/kind/value/order, not only marker projection. Verify frame metadata and semantic payload as appropriate.
    StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences RemoteAgentChatTests Keep all eight rows, actual wire presence/null/array checks and independently stated full payloads; replace contextual raw-array comparison75 without dropping its contract; retain83-86 full History/TurnCompleted/run/count assertions. The two nonempty postconditions must actually execute in a later explicitly authorized run before any success claim.
    StreamingCompleted_JsonFormattingAndEscapes_PreservesCompletePayload AgentSessionProtocolCodecTests Independently authored equivalent compact/indented/escaped JSON retains every property, string, number/token kind and occurrence. It must not pass changed case/value, extra/missing members, changed numbers/kinds, or reordered/dropped/repeated array positions. Do not reconstruct expected data using production serialization.
    StreamingCompleted_AuthoritativeItems_ExcludesLegacyFallbackWithoutFilteringDiagnostics RemoteAgentChatTests Empty/nonempty lists never add fallback; valid diagnostic list elements and legacy absent/null diagnostic Item still survive with exact full content/order.
    StreamingCompleted_InvalidSelectedPayloadOrRun_RejectsWithoutCompletingHistory RemoteAgentChatTests Preserve actual required-member, malformed selected payload/null and unknown-run/error contracts, without imposing rejection on an unused optional fallback merely because it was not selected. No relaxed validation or fabricated later failures.
    StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences AgentSessionProtocolCodecTests If a shared semantic assertion is introduced, negative controls cover all-property inventory, null/absent, key/string casing, interior whitespace, number/string and precision changes, role changes and duplicate/ordered occurrence changes; no lossy normalization.

    The missing fact is the complete original nonempty wire-array content and successful completion application for those two failed rows; neither exists in preserved raw output. No new capture/retry is authorized here. After the parent separately authorizes bounded fixture repair and execution, the smallest useful validation is these two theories plus the already selected relevant protocol/streaming/error checks, with independently authored full payload assertions that execute before send and the retained postconditions afterward. Stop and retain any new red under its own original evidence. Main/remaining repairs need their own authorization; no waiver or speculative green forecast.

    Preservation / ownership

    HEAD stays f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b; exactly five modified tracked files plus one untracked test remain: codec tests, receiver, RemoteHistoryOwnerTests, RemoteAgentSessionScenarioTests, lease; untracked RemoteAgentChatCompletionTests. No staged changes; actual index SHA256 ECA3D70B66C7A24F62629CD7D4F88004D386B94C88AAD7FD4EEC2076A76D3C52. Default scripts\test-results.log remains absent. All originals, prior reds and source/index artifacts are untouched. No source/execution ownership was acquired; primary owner is stopped/released as supplied in this task. Parent owns state SQL and any next-action authorization. All six cases remain FAILED, the run remains FAILED, no qualification/waiver is implied by17 passes, and no new issue/body/label/state/comment edit or closure is requested.

  5. JoshuaRowePhantom commented on Nov 19, 2026

    @JoshuaRowePhantom
    OwnerAuthor

    Design — bounded coupled completion (r1771-i4)

    Implementing independently authored complete structural JSON oracles (framework JsonElement.DeepEquals, full expected/actual failure output), keeping absent versus explicit-null versus empty versus nonempty wire assertions and every ordered repeated occurrence. No production serializer/options change is justified by #1771's oracle reds.

    Preserving the pending #1763 publication-worker occurrence-position ownership repair: published snapshots own included positions, capture-only snapshots do not; history replacement resets ownership. Preserve repeated references/equal values. #1769 selects every non-null list including []; null/absent alone selects legacy Item, including legitimate diagnostics. #1770 returns the retention frame allocated after the replay cut exactly once in initial frames, preserving staged activation, receipts, other viewers and generation cleanup. Coupled Main fixtures distinguish covered replay identity from forced-gap replacement identity and block work generated by the admitted attach, not earlier Capacity work.

    Only necessary no-restore builds and approved changed/related managed method selections, excluding the UNKNOWN owner NONOBJECTFRAME case; stop on any new red. Historical failures/nohit remain immutable. No original owner/reconnect causality, overall #1768 resolution, native/full/stability/qualification, integration/push or closure claim. Scope excludes #1764/#1765/#1766/#1756.

  6. JoshuaRowePhantom commented on Nov 19, 2026

    @JoshuaRowePhantom
    OwnerAuthor

    NEW r1771-i4 targeted red — mandatory stop; parent-routed isolated diagnosis required

    Candidate C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545; HEAD remains f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b, branch batch/1702-1703-startup-first-1117. No commits/push, no qualification. All further source/build/test execution stopped immediately after the first approved Core invocation. Main/native/full/stability NOT executed. No owner-UNKNOWN case executed. Coupled #1763/#1768/#1769/#1770 and performance #1702/#1703 remain uncompleted.

    Original run FAILED: 50 executed /49 passed /1 failed. New failing case: Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(payload: "{\"run-id\":\"\",\"item\":{},\"items\":[]}", jsonError: False); execution d56cd4df-57d5-40ea-99b0-973daa966087. ErrorInfo: Assert.Throws exact-type mismatch, expected RemoteAgentProtocolException, actual System.ArgumentException: RunId must be nonblank. (Parameter 'RunId'); test52, production RequireText811 -> event Validate664 -> Deserialize586 -> PrepareFrame323. This records the observed new red, not an isolated causal verdict or permission to change expected exception / production validation. Parent must route dedicated isolated diagnose-unrelated-test-failure BEFORE edits/retry/execution. No self-delegation occurred.

    Raw authority: C:\dev\Phantom.Workspaces-Skills\worktrees\r1771-i4\original-artifacts\jrowe_DAEMON_2026-11-19_04_15_22_net10.0.trx, copied unchanged from candidate Core.Tests TestResults. SHA256 601BCD3AD6C3975A2B2D4C276E62E5E1CA841793CE5ADF0818CA4A52EBC27051. Full summary/counters, all50 records/ErrorInfo, definitions/entries/settings/RunInfos preserved, not just passing count. All other counters zero; host started/finished normally. RunInfos:1 Error (new failure),2 Warnings (nonserializable SDK adapter discovery data; Blame finished/no-sequence). No dump/sequence/attachment or host-abort evidence; only new artifact is the original TRX. Original remains FAILED.

    Reached, not overall green: all four original codec presence rows now pass complete semantic Item/list and metadata checks. All eight original completion rows, including both formerly truncated/pre-send nonempty rows, now pass independently authored complete wire JSON and full actual History/TurnCompleted/run-retirement/cardinality checks. Four genuine diagnostic role rows also pass; custom diag retained. Formatting/escaped-string/large-integer/full-property test and16 negative semantic controls pass. Five other invalid-selected-payload rows and the11 previously selected protocol/streaming/replay-gap/real-gap compatibility methods pass. Exact original50 cases are in actual-case-set.json. This does not explain the old owner NONOBJECTFRAME or original reconnect timeouts.

    Source changes this attempt: only codec tests and incoming untracked RemoteAgentChatCompletionTests were edited; added JsonPayloadAssert.cs uses framework DeepEquals with full expected/actual failure output. Independent full JSON expectations replace formatting-sensitive comparisons; absent/explicit-null/empty/nonempty remain distinct. Added semantic negative/formatting/diagnostic/error regressions. The five incoming modified product/Main files and their known bounded fixes/fixtures were preserved; no change to serializer options or validation. Core/Main builds succeeded0 warnings/errors; first pre-test compile correction/log retained. Every SDK invocation had process-local DOTNET_GENERATE_ASPNET_CERTIFICATE=false.

    Preserved: incoming index/preimages/patch/base ZIP; exact correction patches; complete tested-source-final.zip; full deployed Core/Main compiled-image with610 DLL/PDB hashes rechecked against current outputs610/610; build logs/commands; exact runner command/selectors/times/console/results; raw original TRX and full host/case XML/JSON. Historical-original audit:0 mutations. Index SHA256 remains ECA3D70B66C7A24F62629CD7D4F88004D386B94C88AAD7FD4EEC2076A76D3C52; no staged files. Default scripts\test-results.log remained absent and protected in finally. Five modified tracked +two untracked tests remain; no cleanup/ref moves. All older reds/nohit remain immutable. No original1754/1517/1175 attribution/waiver, no overall1768 resolution. Source/build/execution ownership stopped and released to parent for isolated diagnosis; remaining four scopes untouched.

  7. JoshuaRowePhantom commented on Nov 19, 2026

    @JoshuaRowePhantom
    OwnerAuthor

    NEW independent read-only diagnosis — 04:15 original run: RELATED (fixture exception-boundary contract)

    This is a dedicated isolated investigation of the new r1771-i4 original run, not a continuation of an implementer's reasoning and not a rerun. I independently read current candidate source, the raw TRX, actual archived PE/portable-PDB metadata/IL, ZIP entries and deployed file hashes. No implementer handoff, stop receipt, design/session/causal notes, comment snapshots, state SQL or final-state narrative was used. No delegation. Findings below diagnose this occurrence; they do not erase any older red.

    1. Original authority and actual host/case facts

    Evidence root: C:\dev\Phantom.Workspaces-Skills\worktrees\r1771-i4.

    Raw authority: original-artifacts\jrowe_DAEMON_2026-11-19_04_15_22_net10.0.trx, 91,017 bytes, SHA256 601BCD3AD6C3975A2B2D4C276E62E5E1CA841793CE5ADF0818CA4A52EBC27051, LastWriteTimeUtc ticks 639306873235665820. The second raw file at original-artifacts\candidate\Phantom.Workspaces.Llm.Core.Tests\TestResults\jrowe_DAEMON_2026-11-19_04_15_22_net10.0.trx independently hashes identically and has the same length/ticks. No files copied/extracted/rewritten.

    • Run ID d6919522-bea7-48f0-a86e-2f535f42e6e9; jrowe@DAEMON 2026-11-19 04:15:22; user PHANTOM\jrowe.
    • Raw start 2026-11-19T04:15:19.7789257-08:00, finish 2026-11-19T04:15:23.5363866-08:00. Creation/queuing: 04:15:22.7577768-08:00 / 04:15:22.7577773-08:00.
    • ResultSummary Failed. 50 total / 50 executed / 49 passed / 1 failed. Exactly 50 result records, 50 definitions, 50 entries. Every other raw counter is zero: error, timeout, aborted, inconclusive, passedButRunAborted, notRunnable, notExecuted, disconnected, warning, completed, inProgress, pending. Zero warning counter does NOT mean no Warning RunInfo.
    • Adapter stdout: xUnit VSTest adapter v3.1.5+1b188a7b0a, 64-bit .NET 10.0.15; discovery says 2756 test cases to be run, but that is discovery scope, NOT 2756 executed/passed cases. Actual selected execution is 50. Parallel collections on, 20 threads, stop-on-fail off.
    • Three RunInfos: Warning at 04:15:21.9728280-08:00 about non-serializable System.Object[] for CopilotSdkStreamAdapterTests.TranslateCopilotSdkSessionEvents_BenignLifecycleEvent_IsConsumedSilently and falling back to one test case; Error at 04:15:23.3891494-08:00 naming this failed row; Warning at 04:15:23.4594253-08:00: Blame says all tests finished, sequence file will not be generated.
    • TRX has no ResultFiles or CollectorDataEntries/attachments. Supplied original-artifacts contains the two TRX copies only, no sequence/dump. This is not a claim that no historical dump exists anywhere. No dump analysis/cleanup or new capture was performed.
    • core-results.log independently retains the failed command's console/ErrorInfo and results location; core-console.log retains 50/49/1; core-command.txt is the recorded explicit 17-method targeted run-tests.ps1 -NoBuild -Mode fast selection. These are execution records, not an explanation of cause. Default candidate scripts\test-results.log was absent and remains absent. No passing count waives the host red.

    Exact failed case:
    Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(payload: "{\"run-id\":\"\",\"item\":{},\"items\":[]}", jsonError: False).

    Execution ID d56cd4df-57d5-40ea-99b0-973daa966087; test ID 072bc487-fed9-61e5-31f8-c33a1b5a16bb. Raw duration 00:00:00.0012307; start/end 04:15:23.3796520-08:00 / 04:15:23.3862877-08:00; outcome Failed. Definition names class Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests, method StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects, codeBase C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545\Phantom.Workspaces.Llm.Core.Tests\bin\Debug\net10.0\Phantom.Workspaces.Llm.Core.Tests.dll.

    Expected exact exception: RemoteAgentProtocolException. Actual: System.ArgumentException, message RunId must be nonblank. (Parameter 'RunId'). This is a Throws type mismatch, not failure to reject the payload. Original full ErrorInfo/stack and all 50 raw case names/outcomes are appended below.

    2. Tested-source identity proved before attribution (bounded, not whole-binary/runtime attestation)

    Candidate C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545; HEAD f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b. Current source reads are explicitly authorized. tested-source-final.zip: 9,256,195 bytes, SHA256 16CE58FCF40A284AD165952E69258D081D84926AC1A73FEA53BD6CF2D1542825, UTC ticks 639306872221103171. ZIP accessed by entry streams only, no extraction.

    Actual images below are in compiled-image\Phantom.Workspaces.Llm.Core.Tests\bin\Debug\net10.0:

    Image Actual SHA256 Actual MVID / CodeView
    Phantom.Workspaces.Llm.Core.Tests.dll F604B0590DE5A6295E49CEC0D2F82CD7DC69CB69362ABB9EC565B6949DC5EC19 MVID 583bcb12-962d-435e-a093-ad350b7647a6; CodeView aa8c5f65-fa3c-4871-b0ec-cbb834d0b3ca, age1, stamp4242715441
    Phantom.Workspaces.Llm.Core.Tests.pdb 4541617A4F4FFE31CD35527B9401964D01976B38B3EA154CB116EA4B18B2867A portable-PDB ID bytes 655F8CAA3CFA7148B0ECCBB834D0B3CA31B3E2FC
    Phantom.Workspaces.Llm.Core.dll 9DAF05D067C5F2D869DBA271C2A0224E25E578591332B985CDDB36B51C99AD74 MVID 845e801f-7c0b-4da5-8195-c87331ce4317; CodeView 24bfa963-2fbd-4af2-afd6-e84df23619db, age1, stamp4051643285
    Phantom.Workspaces.Llm.Core.pdb BE98D874FD6F9A2B2680DD7BB53A219F611B236A5628478E9D612D7A02917940 portable-PDB ID bytes 63A9BF24BD2FF24AAFD6E84DF23619DB952B7FF1

    PDB ID GUID/stamp portions match the corresponding actual PE CodeView entries (not filenames/version inference). All four archived image/PDB hashes also equal the current files in the exact deployed codeBase directory from TRX. This associates preserved bits with the named deployed path; it is not a new attestation of what a past process loaded. Historical PDB path strings were not followed as filesystem authority.

    Scoped PDB document hashes were compared by the relevant module AND document handle to the exact current candidate file and exact ZIP entry. All matched. Every listed document declares SHA256 GUID 8829d00f-11b8-4213-878b-770e8597ac16; no SHA1/first-global-path-match substitution:

    Module / document row Candidate/ZIP relative path Matching PDB/current/ZIP SHA256
    Core.Tests /151 Phantom.Workspaces.Llm.Core.Tests\RemoteAgentChatCompletionTests.cs F7E36BA9D829B082EA84FE7E901980ADFAAB345036C8F4F685DF00195DF7AB28
    Core.Tests /156 Phantom.Workspaces.Llm.Core.Tests\RemoteAgentChatTests.cs 01904ABC1F2A43E917F98BE3061A4316F634E600DCBA6FD2FD0779CA15DC0961
    Core.Tests /59 Phantom.Workspaces.Llm.Core.Tests\AgentSessionProtocolCodecTests.cs 0591CDEF972A47B65A4C29763894419A0FCA0B7031C4C24666C83BE26A13BD03
    Core /150 Phantom.Workspaces.Llm.Core\Remote\AgentSessionProtocol.cs 68AA3726CB905A83A3592278E67C3320DBEDEF4D20EBB94E75E1E2DF1535DBFB
    Core /153 Phantom.Workspaces.Llm.Core\Remote\RemoteAgentChat.cs 8B6E275913D82892BC0D051A9E1AA2422A58F4BCCD6C53386AC8AF8DEF96A3C2
    Core /154 Phantom.Workspaces.Llm.Core\Remote\RemoteAgentSessionClient.cs 9CF5A95144C85E50FA202B0C1424D4AAA582C9310B95E8D0F2BB8DD50DFB60DA
    Main /428 Phantom.Workspaces\Services\AgentSessions\AgentSessionReplayBuffer.cs 924221681981DC49800424C36AD7EE57B4F58F0DA84BEBEB319057BC8A261A95
    Main /437 Phantom.Workspaces\Services\AgentSessions\RemoteAgentSessionLease.cs 211F1E6EAD21C4D5DBA38405E4AA2502F9918F2443B6A6A7C80855BCD597A809
    Transport /27 Phantom.Workspaces.Transport\Local\LocalTransport.cs EE325D54F31C0963CF878BFF4B71CC9C6017A9A8F8832163D1AF34441D9A5525
    Transport /11 Phantom.Workspaces.Transport\Http\HttpTransportChannel.cs 3E7CBBCEB691E4FD1DB3C9CF58C61FBA8C7F75295C4669AEB2DC1C5BCB17DF17
    Transport /45 Phantom.Workspaces.Transport\ReverseHttp\MultiplexingChannelWriter.cs E88CBC8264CEF9B86C30E86B762E36533F1D66DD16B4D8BC9934DDF46DF72C2C

    Producer-only Main image in compiled-image\Phantom.Workspaces.Tests\bin\Debug\net10.0: DLL SHA256 72CE49474A6C91CA21FBC4A036C8685EE79929EDA06AB40E1444ABC9497CA932; PDB SHA256 9606A9458B00EE4446CD6A593D3395497D3F44D8530AFBBAB543B1670E8E8426; actual CodeView 1e86ae64-75f6-a85e-d640-f8a74fd95032/age1/stamp2026381316 matches PDB ID 64AE861EF6755EA8D640F8A74FD950320420C878. Main producer audit is source/callsite corroboration, NOT a claim Main tests ran in this host.

    Transport DLL SHA256 D912D3A9B07F017653F7F387511B5926B7685CE7DAFB9BC211A630B4DF0E45C3, MVID 842a7e57-0f22-4df0-bee9-fa4c3e55b778, actual CodeView f18cf47e-cb01-44f1-89c7-af038e37f7a1/age1/stamp2337250209 matches PDB ID 7EF48CF101CBF14489C7AF038E37F7A1A19B4F8B.

    Relevant actual dependency bits, also hash-equal archive/deployed:

    • xunit.assert.dll 2.9.3.0, MVID a840692e-98b7-4557-bc00-5b38213a22c7, SHA256 BCD9711B22D227AC8CD4C1568E72433A0F576D2EC8AAE64AC508081892015B1D. Offline IL of generic Throws 060000A9 calls RecordException then Throws; Throws 060000A5 calls actual.GetType at IL0018, Type.Equals at IL001D, and ForIncorrectExceptionType then throws on mismatch. The assertion really requires exact type; not an assignability guess.
    • xunit.core.dll 2.9.3.0, SHA256 2F7FEEEC8C6DEC7DF684C25FB80AADB292B963D09723460F03D53C5AD2088ACC.
    • Microsoft.Extensions.AI.Abstractions.dll 10.9.0.0, SHA256 AC9812ACECF3ED2CF418044EE6608B00F9820CC49BE57BA4B46EDA4D1FD08108; Microsoft.Extensions.AI.dll 10.5.0.0, SHA256 C6A0F61BDCAD21629966414BFEA45BA0F18E3FBDCA87DF74F3C1E594381D7643.
    • Runtime config requests .NETCore/ASP.NETCore10.0.0; raw adapter reports10.0.15. No shared-framework file/load identity is newly attested. The blank-run failure is the product's explicit ArgumentException throw, not dependent on hypothesizing JSON/framework internals.

    This is 11 bounded documents, selected relevant IL and dependency hashes, not all-document/all-module attestation. All analysis used the already-installed PowerShell framework Reflection.Metadata/PEReader with read streams, never loaded/executed a product assembly.

    3. Exact operation and compiled exception boundary

    The prior lead about Frame = CreateFrame + SerializeFrame must NOT be substituted for what this row did. This row does NOT call the Frame(...) helper or SerializeFrame/DeserializeFrame at all.

    Current RemoteAgentChatCompletionTests.cs:41-46 builds a valid typed StreamingCompletedEvent (RunId="complete", Item {}) through CreateFrame. At47 it parses the independent invalid JSON literal. At52-53 the false branch asserts exact RemoteAgentProtocolException around PrepareFrame(frame with { Payload = document.RootElement }).

    Actual archived IL confirms:

    • Test 06000463: CreateFrame call IL0037; JsonDocument.Parse IL004C; false-branch Assert.Throws IL007B. PDB document151 maps IL006F to52-53. Its generic exception signature resolves to TypeRef 0100016F, Phantom.Workspaces.Llm.Remote.RemoteAgentProtocolException (not ArgumentException).
    • Closure 06001A57 (PDB doc151 line53): clone frame IL0006, get RootElement IL0012, set Payload IL0017, PrepareFrame IL001D. No serialization/helper/transport call or catch.
    • RemoteAgentChat.PrepareFrame 06001450: typed event codec Deserialize call IL0002, PDB doc153 line323; the completion selection/Select is later, lines330-331 (IL00D9 onwards). No exception handler.
    • Typed event codec Deserialize 06001FFE: JsonSerializer.Deserialize IL060C, Validate IL0627, PDB doc150 line586. Its only handler is Finally (JsonDocument disposal), NOT a translating catch.
    • Event Validate 06002000: StreamingCompletedEvent.get_RunId IL044B, RequireText IL0455, PDB doc150 line664. No handler.
    • RequireText 060013D0: String.IsNullOrWhiteSpace IL0002; new ArgumentException IL0017, PDB doc150 line811. No handler. Actual raw exception names ParamName RunId.

    Thus the invalid payload was authored and passed into the test action. JSON required members were present, Item {} is representable as JsonElement, Items is an explicit zero-length list, and blank RunId fails event validation before selected history payload deserialization and before the null-vs-empty selection changed for #1769.

    Reached: valid outer-frame construction; parse literal; replace payload; PrepareFrame entry; typed StreamingCompletedEvent deserialize; required-RunId semantic validation; strict rejection.
    Unreached in THIS failed row: frame SerializeFrame; wire DeserializeFrame; client receive/Pump/AcceptFrame; broker/channel write; history list selection/AgentChatHistoryItem decoding; ApplyFrame; unknown-run lookup/removal; history append; TurnCompleted; run retirement. No chat instance/state is even created by this synchronous test. It does NOT prove no-state-mutation behavior through the real receive/application pipeline.

    4. Responsibility audit — do not confuse ingress, outbound serialization and projection

    • DTO AgentSessionProtocol.cs:259-265: RunId and Item required, Items optional/nullable. Items [] does not waive RunId or the required Item member. Required-member absence is not the same as a present JsonElement whose value is null.
    • CreateFrame:536-546 serializes the payload; it is not the full validated wire boundary. SerializeFrame:481-486 calls ValidateFrame then typed Deserialize/Validate before returning wire JSON. Actual IL 060013C5: ValidateFrame IL0002 then typed Deserialize IL0009. An invalid typed/outbound frame may legitimately be rejected BEFORE any channel delivery.
    • DeserializeFrame:488-509 checks allowed envelope members/type, parses/clones envelope fields, ValidateFrame, then typed event Deserialize/Validate. Actual IL 060013C6: ValidateFrame IL010B and typed Deserialize IL0112. It also has no translating catch. Envelope validation at770-783 requires valid version/type/correlation/epoch/positive sequence/replay-reset and an object payload; it is not selected-history-item validation.
    • RequireText:809-812 explicitly throws ArgumentException for blank text; this is not an implicit runtime accident. Existing checksum-bound AgentSessionProtocolCodecTests.Deserialize_EmptyRequiredId_RejectsFrame:668-675 independently authors empty modal-id into a valid frame's JSON and asserts ArgumentException from DeserializeFrame. Its compiled method 060003AA calls Assert.Throws at IL0087 with a generic signature resolving to System.ArgumentException. That existing contract test is also an actual passed case in this 50-case run. This supports low-level exception identity independently of observing the failing row. No general promise that every invalid codec/projection input becomes RemoteAgentProtocolException was found in the audited contracts/callers.
    • Real receive: RemoteAgentSessionClient.PumpAsync:638-679 calls DeserializeFrame at650 BEFORE AcceptFrame/PublishFrame. It catches generic Exception as failure=ex, disposes channel, faults readiness/pending operations with that same failure, and notifies disconnection. It does not wrap all ArgumentException/JsonException as RemoteAgentProtocolException. AcceptFrameAsync:686+ separately enforces epoch/sequence and initial snapshot; PublishFrameAsync:805-810 invokes projection. The restart-observation malformed-result catch at140-142 is a different API and does not govern this test or normal server-frame ingress.
    • Projection: PrepareFrame:330-331 uses e.Items ?? [e.Item]. Absent/null selects legacy Item; [] selects nothing; nonempty preserves order and every occurrence. Deserialize<T>:761-763 throws RemoteAgentProtocolException for a deserialized null history payload; JsonSerializer shape conversion failures remain JsonException. Unused fallback Item content is NOT selected/deserialized when a non-null Items list exists, but Item must still exist in the typed payload contract.
    • Stateful application: RemoteAgentChat.ApplyFrame:551-560 first requires/removes a known run (unknown => RemoteAgentProtocolException), removes RunningItems entry, appends the fully prepared history array, then raises TurnCompleted per occurrence. Preparing the full list via ToArray precedes admission/application: an invalid selected member anywhere cannot be fixed by partial appends/fallback/catches. Do not equate static preparation with checking a nonblank but unknown run; that check requires a live chat/application boundary.
    • Real producer: RemoteAgentSessionLease:1771-1787 constructs a required fallback Item and explicit Items from owned occurrences, including []; AgentSessionReplayBuffer.Append:38-52 calls SerializeFrame to measure/validate before storing. Lease.SerializeAndQueue:2188-2205 calls SerializeFrame before queueing recipient publications; attachment writer at1532 forwards the already serialized frame. AgentSessionFramePublisher:927-944 likewise does CreateFrame + SerializeFrame before channel.Writer.WriteAsync. These are valid typed outbound APIs, not malformed-wire injection facilities.
    • Transport is not a repair/normalization layer: LocalTransport nested ForwardingWriter 200,212 clones JsonElement and forwards it; HTTP channel ReceiveAsync14 clones; ReverseHTTP writer23,37 clones its wrapper. Neither canonicalizes event RunId nor converts validation exceptions. TestTransport.SendAsync (RemoteAgentChatTests.cs:285) directly writes the JsonElement without codec validation. The shared Frame helper at271-273 does SerializeFrame, so using it with an already-invalid payload in a future wire-negative test could fail during fixture construction and miss ingress entirely. That is a real test-construction hazard, not the failed operation in this original row.

    5. All six tightly coupled negative rows, audited separately

    All use the same valid seed frame and independent payload literal. The five passing rows are not invented later failures:

    Payload distinction Governing boundary / strict identity Original outcome
    run-id:"complete", item:null, Items absent typed event accepted; selected legacy history deserialize returns null => RemoteAgentProtocolException at RemoteAgentChat763 Passed
    run-id:"complete", item:42, Items absent selected legacy AgentChatHistoryItem conversion => JsonException Passed
    item:{}, items:[null], run-id complete explicit list selected; null selected member => RemoteAgentProtocolException at763 Passed
    item:{}, items:[42], run-id complete explicit list selected; member conversion => JsonException Passed
    run-id:"", item:{}, items:[] typed event Validate/RequireText BEFORE selection => ArgumentException/RunId, but boolean false incorrectly groups it with null-history RemoteAgentProtocolException rows Failed
    run-id:"complete", items:[], Item absent required Item missing during typed JsonSerializer.Deserialize, BEFORE selected list => JsonException Passed

    These six validate rejection via static PrepareFrame only; none exercises unknown-run state application or receives malformed wire through the client. The empty-list row's Item {} is intentionally unused and does not authorize weakening required-member validation. Do not incorrectly make malformed unused fallback content an error of the selected-list history contract, or skip mandatory DTO members when Items is[].

    6. Causal verdict, narrow repair and Expected Tests

    RELATED to the current completion regression fixture work tracked in #1771/#1769. Causality is the newly authored test's incorrect grouping of two distinct exception domains at lines32-53: selected null-history failures vs blank required RunId validation. Operation order and actual compiled calls show the guard wins before the #1769 selection expression. This is not inferred from mere diff overlap/timestamps/flaky labels. RemoteAgentChatCompletionTests.cs is a new untracked candidate file; the sole Core production WIP hunk changes non-null-list selection at330. This failed row never reaches that hunk. No baseline rerun is necessary to identify this test's incorrect expected boundary, and none was performed; no assertion that all branch behavior predates the branch is made.

    Fixture/expectation defect proven for this occurrence, not a demonstrated new production contract defect. Blank RunId is correctly rejected; required-member and null-history error identities have distinct existing semantics. Do not change production RequireText, wrap errors globally, remove validation, add catches/silent fallback, or change the #1769 empty-list rule merely to make this row green. A uniform ingress error-translation redesign is not specified/proven necessary here.

    Minimal repair requirements (not implemented): separate blank/missing/shape/null/unknown-run cases by governing API/semantic contract rather than a jsonError boolean. Keep a dedicated blank-RunId case asserting exact ArgumentException and ParamName RunId, and keep exact RemoteAgentProtocolException/message checks for selected null history and unknown run at their appropriate layers. Preserve all required-member/nonblank/unknown-run/selected-payload checks and all positive occurrence/diagnostic/retirement assertions. Merely changing the one expected type without establishing receive/state coverage is not adequate regression evidence.

    Author invalid incoming envelopes from hand-authored JSON (or generic JSON DOM envelope mutation) with fixed literal expected fields. Do not pass an invalid event/payload through production SerializeFrame and then treat its failure as a receive-path rejection, nor use the production serializer to generate expected-output JSON. Valid protocol fixtures may still use the validated outbound serializer. Keep direct codec/preparation tests distinct from real client/channel application tests so each proves the boundary named.

    Expected Tests (requirements only; NO new execution)

    Names follow existing class/method style; equivalent narrowly scoped names are fine.

    Test name Class Strict obligation
    StreamingCompleted_BlankRunId_RejectsBeforeHistoryPreparation RemoteAgentChatTests Independent literal blank/whitespace RunId, required Item present and explicit[]; exact ArgumentException, ParamName RunId; proves early guard rather than selected-history decoder. Keep missing RunId/Item tests distinct with exact JsonException and missing-member identity.
    StreamingCompleted_InvalidSelectedPayload_RejectsBeforeMutation RemoteAgentChatTests All legacy/null vs nonempty authoritative selected null/scalar shapes, including invalid member AFTER a valid member; exact null-payload protocol error vs conversion JsonException. On real attached client/application path verify prior full ordered History, running entries and TurnCompleted callbacks unchanged; no partial append, retirement or completion notification.
    StreamingCompleted_InvalidWire_RejectsAtClientIngress RemoteAgentChatTests / RemoteAgentSessionClientTests Independent raw envelope, known valid prior snapshot/run, correct epoch/sequence; blank RunId caught at DeserializeFrame before projection, missing required member and unknown envelope/payload member rejected at their own exact contracts. Confirm reached receive action, channel failure/error identity at the observable client boundary, no History/TurnCompleted/running mutation. Do not use SerializeFrame on invalid input. No blanket expectation that all ingress errors are RemoteAgentProtocolException.
    StreamingCompleted_UnknownRun_RejectsWithoutHistoryOrCompletionMutation RemoteAgentChatTests Nonblank unknown run + otherwise valid selected payload, through actual admission/application; assert unknown-run RemoteAgentProtocolException/message and original History/running/TurnCompleted retained. Static PrepareFrame alone cannot cover this.
    StreamingCompleted_AuthoritativeItems_IgnoresUnusedFallbackContent RemoteAgentChatTests Explicit[] and ordered nonempty lists are authoritative even if the PRESENT fallback Item is null/scalar; no fallback-history decoding. Missing required Item is STILL a JsonException. Absent/null Items actually select legacy Item and invalid legacy content remains rejected.
    StreamingCompleted_InvalidOutboundFrame_RejectsBeforeChannelWrite AgentSessionProtocolCodecTests Independently invalid typed/raw-payload frame passed deliberately to SerializeFrame/publisher: exact blank-run ArgumentException/RunId; writer invocation count remains0. This protects the outbound contract without pretending to test ingress.
    Existing StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences and StreamingCompleted_AuthoritativeItems_ExcludesLegacyFallbackWithoutFilteringDiagnostics RemoteAgentChatTests Retain [] => run retired/no History or TurnCompleted occurrence; absent/null => exactly legacy Item; nonempty => first,last,first,equal in order; legitimate diagnostics preserved; complete independent literal JSON assertions, not a raw-text/formatting oracle.
    Existing required-member/unknown-member/empty-required-ID/codec wire-presence and real owner scenario regressions Existing classes Preserve DTO schema, strict validation, owner/proxy full occurrence parity, history and completion checks. No weakening to make a subset pass.

    The full real receive/application negative coverage above is not supplied by this original six-row synchronous method. The original host proves 49 passes and this one failure only, not a green qualification, no-state-mutation integration execution, or future Expected Tests. No fresh test/probe is authorized/executed here. If an implementation later changes async error observability, its exact observable assertion must follow that caller's real failure API; do not silently catch/retry or invent a return-path exception.

    7. Duplicate review, unchanged state, ownership and limits

    GitHub mechanism searches (all states) for "StreamingCompleted" returned #1769/#1771/#1763/#1768; "RunId" "ArgumentException" returned #1771. Existing #1771 already tracks this new occurrence series, so no duplicate issue was filed. Specifications #1769/#1763 and occurrence boundary #1768 were read directly, not local implementer notes. This result is distinct from the original absent-items Remove failures and the later 23/17/6 JSON-oracle failures independently documented in #1771 (comment) . It does not attribute or resolve the original owner/reconnect UNKNOWN on #1768, #1754/#1517/#1175, or reopen frozen owner/certificate scopes.

    Before and after investigation: HEAD unchanged f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b; index SHA256 ECA3D70B66C7A24F62629CD7D4F88004D386B94C88AAD7FD4EEC2076A76D3C52, length354133, UTC ticks 639306745706636193, staged diff empty; default log absent. GIT_OPTIONAL_LOCKS=0 used for status/diff. Same existing five modified tracked files (codec tests, RemoteAgentChat, RemoteHistoryOwnerTests, scenario tests, lease) and two untracked files (JsonPayloadAssert.cs, RemoteAgentChatCompletionTests.cs). No source/index/skill/helper/evidence/state-SQL writes, cleanup, ref moves, pushes, installs, builds, restores, tests, discovery, SDK/product execution, tracing/native probes, certificates/private keys, containers/playspaces or retained-bind access. No active features checkout was inspected or fast-forward script invoked. Git worktree metadata index was only read at git's returned index path; no checkout there was accessed.

    Ownership release: no executor started, no product/source/build/execution ownership acquired, implementation remains paused for the parent decision. Only persistent writes are these GitHub evidence comments; all labels, open state, bodies and old comments are preserved. No new missing causal fact blocks this narrow diagnosis. Broader production/network behavior and the proposed additional regressions remain unexecuted, not inferred green.

    Original raw failed ErrorInfo and stack (verbatim text)
    Assert.Throws() Failure: Exception type was not an exact match
    Expected: typeof(Phantom.Workspaces.Llm.Remote.RemoteAgentProtocolException)
    Actual:   typeof(System.ArgumentException)
    ---- System.ArgumentException : RunId must be nonblank. (Parameter 'RunId')
       at Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(String payload, Boolean jsonError) in C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545\Phantom.Workspaces.Llm.Core.Tests\RemoteAgentChatCompletionTests.cs:line 52
       at InvokeStub_RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(Object, Span`1)
       at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
       at Phantom.Workspaces.Llm.Remote.AgentSessionProtocolCodec.RequireText(String value, String name) in C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545\Phantom.Workspaces.Llm.Core\Remote\AgentSessionProtocol.cs:line 811
       at Phantom.Workspaces.Llm.Remote.AgentSessionProtocolCodec.AgentSessionProtocolEventCodec.Validate(AgentSessionServerEvent value) in C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545\Phantom.Workspaces.Llm.Core\Remote\AgentSessionProtocol.cs:line 664
       at Phantom.Workspaces.Llm.Remote.AgentSessionProtocolCodec.AgentSessionProtocolEventCodec.Deserialize(AgentSessionServerFrame frame) in C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545\Phantom.Workspaces.Llm.Core\Remote\AgentSessionProtocol.cs:line 586
       at Phantom.Workspaces.Llm.Remote.RemoteAgentChat.PrepareFrame(AgentSessionServerFrame frame) in C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545\Phantom.Workspaces.Llm.Core\Remote\RemoteAgentChat.cs:line 323
       at Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.<>c__DisplayClass2_0.<StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects>b__1() in C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545\Phantom.Workspaces.Llm.Core.Tests\RemoteAgentChatCompletionTests.cs:line 53
    
    All 50 original raw case names/outcomes/execution IDs (TRX abbreviations preserved)
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.Deserialize_EmptyRequiredId_RejectsFrame | executionId=a304ed52-0cba-44fd-9ad9-5ec98656dce3
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.Deserialize_UnknownMember_RejectsFrame | executionId=33c72c6b-874b-4596-8b13-2ef663db5c06
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.ProtocolDtos_RequiredInitProperties_AreMarkedRequired | executionId=fd914acb-3e00-4f5c-ba08-7808e92f687b
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.RoundTrip_AllServerEventDiscriminators_PreservesSequenceAndCorrelation | executionId=10c7893d-e395-48a5-b68e-1e7036882048
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "[1,2,1]", actual: "[1,1,2]") | executionId=d0bbf9b9-ad32-47f2-a724-38c8a41bf495
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "[1,2,1]", actual: "[1,2,1,1]") | executionId=993cc515-7b2d-4167-a1ee-85db5c4958b7
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "[1,2,1]", actual: "[1,2]") | executionId=fe58da16-2c6f-4763-8ba1-e0a05f179e5d
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"role\":\"diag\"}", actual: "{\"role\":\"assistant\"}") | executionId=ea80668e-8f54-452c-ba21-790127475f5c
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":\"a b\"}", actual: "{\"value\":\"ab\"}") | executionId=eaae8c8f-72ea-4801-adf7-5b4be6c5e86c
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":\"A\"}", actual: "{\"value\":\"a\"}") | executionId=eb251ec8-bc80-431e-bd4a-51671457f0c3
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":\"a\\nb\"}", actual: "{\"value\":\"a b\"}") | executionId=01a12208-da4b-4685-85c7-c1b25eaf9915
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":1,\"value\":2}", actual: "{\"value\":2,\"value\":1}") | executionId=951b8330-8cc1-4cbe-80bc-6d2fdc0ebacd
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":1,\"value\":2}", actual: "{\"value\":2}") | executionId=583207a6-6d1a-4f09-b102-afabf86bb85c
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":1.25}", actual: "{\"value\":1.26}") | executionId=7b2124d2-1d67-4ec1-89a3-1573fc4fef1d
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":1}", actual: "{\"value\":\"1\"}") | executionId=b73bf39e-d3fe-4081-8275-43cc3d0438d0
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":1}", actual: "{\"value\":1,\"extra\":null}") | executionId=aa5bd66d-ab3c-43fb-b307-eaaac9d0d731
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":1}", actual: "{\"Value\":1}") | executionId=db4710a5-fb4f-4fe1-8959-ca534e3660e8
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":9007199254740993}", actual: "{\"value\":9007199254740992}") | executionId=3bc35822-65e7-48f5-8a1d-4047327b38b1
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":null}", actual: "{}") | executionId=f4ed55ff-1dfb-468b-9dae-4ecae48befc8
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonComparison_RejectsMeaningfulPayloadDifferences(expected: "{\"value\":true}", actual: "{\"value\":false}") | executionId=5453b181-24cc-4bf8-b55f-26913bbece37
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_JsonFormattingAndEscapes_PreservesCompletePayload | executionId=18040aee-7e52-4a0b-bf4c-3f678d544587
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences(listKind: "absent") | executionId=8bffd7f2-099b-4ac7-a178-0d822d8ef8bc
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences(listKind: "empty") | executionId=d0268a32-5743-455e-88df-44be780e2e32
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences(listKind: "nonempty") | executionId=229ace5a-5cd1-4b0d-b5c2-4a34a3cae3ad
    Passed | Phantom.Workspaces.Llm.Tests.AgentSessionProtocolCodecTests.StreamingCompleted_WireItems_PreservesPresenceAndOrderedOccurrences(listKind: "null") | executionId=309884d2-ffe4-4f05-b2d0-a64ce89dbe11
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.ProxyGetters_AfterOrderedStreamingFrames_ReturnMirroredState | executionId=0e6efb8a-4546-4350-95f2-42c412a0cf44
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.SdkNotification_CoalescedRemoteStreamingPromotionAndSnapshot_PreserveEncounterOrderAndSubagentContext | executionId=05728daf-8a7e-4e3a-8270-a58684ea0ac7
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_AuthoritativeItems_ExcludesLegacyFallbackWithoutFilteringDiagnostics(listKind: "absent") | executionId=a60a3fe2-63b6-49b2-804d-53d70ca4e24e
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_AuthoritativeItems_ExcludesLegacyFallbackWithoutFilteringDiagnostics(listKind: "empty") | executionId=e830d2f4-ea2e-4e9c-b143-9feda8cee9a0
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_AuthoritativeItems_ExcludesLegacyFallbackWithoutFilteringDiagnostics(listKind: "nonempty") | executionId=8628866d-c05b-48ee-8e98-900b72cf27ee
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_AuthoritativeItems_ExcludesLegacyFallbackWithoutFilteringDiagnostics(listKind: "null") | executionId=523c989b-bd8a-4fc6-b293-b7837503a44a
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "absent", diagnostic: False) | executionId=f77c3274-b056-47b1-a50a-d6693f02e449
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "absent", diagnostic: True) | executionId=cc0ea406-7bd3-4ab8-82e7-653bb5752e8c
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "empty", diagnostic: False) | executionId=a0066a0a-2de4-4ebc-a7b3-e66767b2b742
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "empty", diagnostic: True) | executionId=8d59d508-8fde-48ee-bfa2-466a97878b93
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "nonempty", diagnostic: False) | executionId=8e1d1244-3bdc-42da-9072-2222e1d0bfb7
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "nonempty", diagnostic: True) | executionId=f73e8f40-5923-4c13-89d4-874fc7532e96
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "null", diagnostic: False) | executionId=c83b36d7-1d2f-4c55-8f1f-00509baaa875
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_ExplicitListOrLegacyFallback_PreservesOrderedOccurrences(listKind: "null", diagnostic: True) | executionId=4d76fcdd-efce-4b90-ad26-7984f1c54f70
    Failed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(payload: "{\"run-id\":\"\",\"item\":{},\"items\":[]}", jsonError: False) | executionId=d56cd4df-57d5-40ea-99b0-973daa966087
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(payload: "{\"run-id\":\"complete\",\"item\":{},\"items\":[42"···, jsonError: True) | executionId=f9bc4b8b-edbc-4278-aa92-fbfb7b6a5e98
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(payload: "{\"run-id\":\"complete\",\"item\":{},\"items\":[nu"···, jsonError: False) | executionId=e4d86c04-63cf-41dd-9e82-b98aad2ba9d9
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(payload: "{\"run-id\":\"complete\",\"item\":42}", jsonError: True) | executionId=e10cad51-75a2-4fc1-8791-24e51080b374
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(payload: "{\"run-id\":\"complete\",\"item\":null}", jsonError: False) | executionId=712a67fe-d0fa-4dff-8f4a-4a566b67fa50
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingCompleted_InvalidSelectedPayloadOrRun_Rejects(payload: "{\"run-id\":\"complete\",\"items\":[]}", jsonError: True) | executionId=daec311e-29a4-4122-b58f-cf8f83b57a54
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentChatTests.StreamingUpdates_KeepRunIdentityWithoutClearingActiveToolGroup | executionId=5a25ced5-06cd-442f-a018-7dc14f742a96
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentSessionClientTests.ConnectAsync_SequenceGap_ClosesWithProtocolException | executionId=41892d8c-758e-4e5f-8ec9-bbcc7e93248b
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentSessionClientTests.ReconnectAsync_ReplayGapMarkedSnapshot_ReplacesCursorThenRequiresContiguousDeltas | executionId=2c3c9153-c2ce-4d04-b745-b6d0dda245d2
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentSessionClientTests.ReconnectAsync_ReplayGapSnapshotWithDifferentEpoch_IsRejected | executionId=f556b1b2-2bc8-4648-812c-bf2cc1af1bf2
    Passed | Phantom.Workspaces.Llm.Tests.RemoteAgentSessionClientTests.ReconnectAsync_ReplayGapSnapshotWithStaleResetCursor_IsRejected | executionId=516a94c7-3141-4b32-9842-e558fc7d9435
    
  8. JoshuaRowePhantom commented on Nov 19, 2026

    @JoshuaRowePhantom
    OwnerAuthor

    Design — authorized narrow coupled repair

    Implementing #1771's independently diagnosed test-only exception-domain correction: exact ArgumentException/RunId at PrepareFrame's typed validation; selected-null history retains exact protocol errors, shapes/missing required members retain JsonException. Add distinct actual ingress/no-mutation, unknown-run application/cleanup-error identity, unused fallback, and outbound pre-write guards; preserve complete structural JSON oracles and negative controls. No production validation changes.

    Preserve/complete incoming #1763 position/generation publication ownership, #1769 nonnull-list authority including [], #1770 returning the new retention frame after covered replay. Keep the admitted-attach fixture's original 0/2 assertion and replay Same versus forced-gap snapshot NotSame. Approved existing runner only: combined changed Core selectors, then known Main selectors excluding UNKNOWN owner. No native/full/stability/capture/retries. Any new red stops implementation for parent-routed isolated diagnosis.

    Baseline f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b, five modified tracked/two untracked files, empty index. Incoming preimages/index and further evidence retained at C:\dev\Phantom.Workspaces-Skills\worktrees\r1771-j5. Prior reds immutable. #1768 owner NONOBJECTFRAME and original reconnect timeout cause remain UNKNOWN; #1754/#1517/#1175 unwaived. No push/integration/closure or other-four-scope edits.

  9. JoshuaRowePhantom commented on Nov 19, 2026

    @JoshuaRowePhantom
    OwnerAuthor

    Implementation receipt — known coupled scope only (not batch qualification)

    Candidate C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545, branch batch/1702-1703-startup-first-1117; baseline f3a560c1efb58f1c86c068e3a3dabcf48ac2d56b -> clean HEAD 24a47202ea704cba47872a042680fe665d53af51. Incoming five modified tracked/two untracked files and exact original index were archived before edits; unrelated four scopes #1764/#1765/#1766/#1756 untouched. No push/integration/closure.

    Logical commits:

    Validation: existing approved runner, one combined Core invocation then one known Main invocation, explicit projects/selectors, -NoBuild -Mode fast, external result paths. Core 72 executed/72 passed/0 failed; Main 17/17/0. Both raw ResultSummary Completed; results/definitions/entries exactly72 and17 respectively; every other counter0, no ErrorInfo or Error RunInfos, no attachments/new dumps/sequence. Core has2 Warning RunInfos (unrelated nonserializable discovery-data warning; completed Blame/no sequence); Main1 (completed Blame/no sequence). Discovery counts are NOT executed counts. Default candidate test-results.log stayed absent before/after/finally both calls. No retry/full/stability/native/qualification/capture.

    Raw authorities copied without rewriting:

    • Core jrowe_DAEMON_2026-11-19_04_36_42_net10.0.trx,123031bytes,SHA256 229821028FC912E1C5347F3EC2E549E16DFB2C4CBE1BEB5AF6FC923189AB4B0C,UTCticks639306886029714878.
    • Main jrowe_DAEMON_2026-11-19_04_39_01_net10.0.trx,29894bytes,SHA256 0D3AFA460FB06078076F7E8316A35ECC71F4B7D6633F303D5839B58E8ADDC11D,UTCticks639306887441564688.

    Evidence C:\dev\Phantom.Workspaces-Skills\worktrees\r1771-j5: baseline/index/incoming preimages and deltas, complete tested-source-final.zip, actual compiled DLL/PDB/dependency copies and hashes, exact commands/times/build logs, full original summaries/results/definitions/entries, case sets/artifact manifests and final committed-to-tested source match. Four actual PE/portable-PDB identities checked, nine scoped documents SHA256-matched to current and exact tested ZIP; this is bounded disk/source provenance, not runtime-module attestation. Necessary builds succeeded0warnings/0errors; first Core pre-test compile found unsupported xUnit2 TestContext usage, corrected before execution and retained both logs. All SDK calls process-local DOTNET_GENERATE_ASPNET_CERTIFICATE=false; no certificate/store access.

    Limits: original #1768 ordinary owner NONOBJECTFRAME remains BLOCKING UNKNOWN and was NOT selected. Original three reconnect timeout occurrence causes remain UNKNOWN; new #1770 continuity coverage does not recover their missing trace. All historical reds, including r1771-i4 50/49/1 and its authoritative tested-source-final.zip, remain immutable. #1754 OPEN UNKNOWN, #1517/#1175 causality unwaived; #1722 unresolved/excluded; #1735/#1738/#1739 repairs excluded; #1724 separate ReleaseInstall. Crossrefs #1702/#1703 do not claim performance/batch qualification. Parent owns fresh independent whole-batch review and remaining four scopes.

    Issue-specific assertions actually reached

    Exact blank/whitespace RunId ArgumentException/ParamName RunId is asserted at PrepareFrame typed validation, not serialization. Separate real receive cases assert selected-null protocol message versus JsonException shape/missing-member errors, pending-command original error identity, disposed channel, preserved ordered prior history/repeated references/running identity/items and zero TurnCompleted. Unknown-run actual admitted projection asserts exact protocol message via disposal drain and preserves state. Invalid-member-after-valid proves no partial append; unused null/scalar fallback is ignored for authoritative lists; required Item is still mandatory. The shared structural oracle and all16 meaningful negative controls remain strict.

    Files across coupled commits: AgentSessionProtocolCodecTests.cs; JsonPayloadAssert.cs; RemoteAgentChatCompletionTests.cs; RemoteAgentChat.cs; RemoteHistoryOwnerTests.cs; Scenarios\RemoteAgentSessionScenarioTests.cs; RemoteAgentSessionLease.cs. Diff:7files,+952/-18. All commits include exact Copilot coauthor trailer. No skills/state/SQL/tooling/active-features changes or cleanup. Source/build/execution ownership released to parent after this handoff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions