Repository navigation
Commit d2cf05c
authored
fix(agents): restore collector output and prepared harness execution (#131739)
* fix(agents): restore prepared collector and harness execution
Carry collector output and noninteractive policy through shared tool
preparation. Register Copilot during discovery, initialize selected direct
credentials, retain canonical session IDs, and preserve failed-turn errors.
Keep retained catalog callbacks bound to their owner generation rather
than an expired publication transaction.
Cover the owner boundaries with failing/passing regressions and real
native, Codex, and Copilot Gateway runs, including credential recovery and
same-process worker-policy reloads. Reuse the native auth test fixture
instead of reloading the complete runner in every case.
Fixes #131552
Fixes #131580
Fixes #131591
Fixes #131699
Fixes #131700
Fixes #131701
Thanks to @tmill313 for the original Codex collector report in #120077.
* test(agents): keep collector proofs on owned boundaries
Move real collector-tool and prepared-registry integration proof to core,
retain independent plugin SDK handoff regressions, and select the host
Copilot integration for plugin-only changes. Run the existing plugin-test
core-import guard in changed-file checks so local validation catches the
same boundary violation as CI.
The replacement regressions fail against their pre-fix owners. All 505
focused tests, the exact import guard, and the changed-file gate pass.
Independent review found no actionable P0-P2 findings. Runtime repair files
are unchanged.
* test(agents): load prepared harness through its public boundary
Evaluate the real Copilot entrypoint through the existing public-surface
loader and module-loader seam instead of importing plugin implementation
into the core typegraph. Remove the synthetic entrypoint and registration
global, while retaining real discovery and lazy-store assertions.
Include the existing core tsgo graph boundary in changed-file checks and
cover its ordinary and live-Docker routing paths.
* test(mcp): seed canonical SQLite session history
Use the installed candidate's public session APIs instead of creating
legacy session files rejected by doctor-only startup. Preserve message IDs,
parent ordering, delivery context, and canonical attachment metadata.
Add a built-SDK fixture regression using real SQLite reads and startup
validation. The full MCP client remains covered by the Docker CI lane.
* test(gateway): preserve queued writes across RPC fixtures
Stop clearing session writer queues before ordinary RPCs. Config fixtures
still synchronize, while canonical writers retain their own cache updates.
Prove queued-write ordering through a real connected Gateway against a raw
WebSocket control, and dispose the custom test database before file removal.
Preserve the underlying cause of the settlement timeout. That CI failure
was not reproduced on the exact synthetic merge locally; the independent
queue-reset defect is not being claimed as its established cause.
* test(agents): keep harness fixture coverage on focused boundaries
* test(imap): await committed watcher initialization1 parent b05213c commit d2cf05c
39 files changed
Lines changed: 1548 additions & 366 deletions
File tree
- extensions
- codex/src/app-server
- copilot
- src
- imap/src
- scripts
- e2e
- lib
- src
- agents
- embedded-agent-runner
- run
- harness
- gateway
- test/scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
636 | 643 | | |
637 | 644 | | |
638 | | - | |
639 | | - | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
640 | 652 | | |
641 | 653 | | |
642 | 654 | | |
643 | 655 | | |
644 | 656 | | |
645 | 657 | | |
646 | 658 | | |
| 659 | + | |
| 660 | + | |
647 | 661 | | |
648 | 662 | | |
649 | 663 | | |
| 664 | + | |
650 | 665 | | |
651 | 666 | | |
652 | 667 | | |
653 | 668 | | |
654 | 669 | | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
| 670 | + | |
660 | 671 | | |
661 | 672 | | |
662 | 673 | | |
| 674 | + | |
663 | 675 | | |
664 | 676 | | |
665 | 677 | | |
666 | 678 | | |
667 | 679 | | |
668 | 680 | | |
669 | 681 | | |
670 | | - | |
671 | | - | |
| 682 | + | |
| 683 | + | |
672 | 684 | | |
673 | 685 | | |
674 | | - | |
| 686 | + | |
675 | 687 | | |
676 | 688 | | |
677 | 689 | | |
| |||
850 | 862 | | |
851 | 863 | | |
852 | 864 | | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
853 | 935 | | |
854 | 936 | | |
855 | 937 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
| |||
291 | 295 | | |
292 | 296 | | |
293 | 297 | | |
294 | | - | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
| |||
508 | 512 | | |
509 | 513 | | |
510 | 514 | | |
511 | | - | |
512 | | - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
513 | 519 | | |
514 | 520 | | |
515 | 521 | | |
| |||
626 | 632 | | |
627 | 633 | | |
628 | 634 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | 635 | | |
651 | 636 | | |
652 | 637 | | |
| |||
675 | 660 | | |
676 | 661 | | |
677 | 662 | | |
678 | | - | |
| 663 | + | |
679 | 664 | | |
680 | 665 | | |
681 | 666 | | |
| |||
0 commit comments