Repository navigation
Commit 7f00d0e
fix(subagents): let encrypted-task recovery run before the synthesized native chain (#3240)
#3239 synthesized a DEFAULT_SUBAGENT_MODELS chain for an unreadable encrypted
spawn when the operator configured none. That chain fires in the first
fallback pass, before recoverEncryptedAgentTask, so with agentTaskRecovery
enabled the spawn was rerouted to native gpt-5.5 and recovery was skipped
along with its caller-auth, proxy-secret and token-validity gates.
tests/agent-task-recovery-security.test.ts went 13/13 -> 2/13 on dev.
Synthesize the chain only when recovery is not enabled. An operator who
enabled recovery chose to decrypt and stay routed; a configured chain keeps
its precedence either way.
Regression: recovery enabled + no chain + nativeFallbackOnly -> no fallback
(red without the guard); the 13 recovery security cases are green again.
Co-authored-by: jun <[email protected]>1 parent 744d12d commit 7f00d0e
2 files changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
617 | 624 | | |
| 625 | + | |
618 | 626 | | |
619 | 627 | | |
620 | 628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1079 | 1079 | | |
1080 | 1080 | | |
1081 | 1081 | | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1082 | 1109 | | |
1083 | 1110 | | |
1084 | 1111 | | |
| |||
0 commit comments