docs(codemode): track thenable assimilation

This commit is contained in:
Aiden Cline 2026-07-06 17:04:03 -05:00
parent 8b53f362e8
commit 0800770b0d

View file

@ -149,8 +149,10 @@ the adapter TODO. Delete entries when completed.
The supported JavaScript subset should grow when common model-generated code improves tool orchestration. These are
current omissions to implement, not intentional product boundaries.
- [ ] Complete promise-pipeline parity: assimilate supported thenables, propagate cancellation through chained promises,
and consider `Promise.any`.
- [ ] Decide whether thenable assimilation belongs in the bounded runtime. Promise resolution currently unwraps only
`SandboxPromise`; arbitrary `{ then(resolve, reject) }` values remain data. Full assimilation requires internal
callable resolver values, first-settlement arbitration, recursive adoption, and cycle detection.
- [ ] Propagate cancellation through chained promises, and consider `Promise.any`.
- [ ] Support async iteration and `for await...of`. Define behavior first for the runtime's supported promise and
collection values, then extend it to bounded host streams when a stream boundary exists.
- [ ] Support callback-bearing standard-library variants that models commonly generate: the mapper argument to