Repository navigation
WIP: compose one complete Turn contract before capture - #7430
Draft
loopx-agent wants to merge 9 commits into
Draft
loopx-agent wants to merge 9 commits into
loopx-agent wants to merge 9 commits into
Conversation
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
…sumers Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ordinary quota admission and native Turn currently expose different projections of the same decision. This unfinished C1 implementation for #7416 composes one complete decision in the existing TypeScript owner before capture and sends it to the actual model-input boundary. The controller/executor architecture and full consumer cutover remain unfinished; this PR is Draft for remaining author work.
Candidate behavior
loopx_turn_envelope_v1with the complete original facts/instructions, actual scheduler binding and integrity hashes. The old envelope is temporarily internal to effect interpretation and recorded-history decoding, not a permanent alternative model input.Current validation
Runtime head:
2a662fbd2ef40c8ae2f341b7129301224c4b73b0; actual PR target:main(inspectede20e4b684d04e4faed8ca3437880c9bbd70070a0).goal_launch_not_allowedrefusal instead of rejecting the complete input. This does not establish earlier unguarded execution. A validly hashed unknown contract is also rejected by final Codex/structured/DSH input paths before runner loading.turn plan, preserving full canonical task text/notes, scoped user gates, changing requirements, missing-source recovery and original observations. The prior 4 passed / 6 failed run stopped on obsolete root-layout assertions. Those checks now use the complete interaction context and reach their downstream semantics without rebinding App input to a native host.Previously qualified boundaries retained
Actual isolated File/SQLite CLI plus synthetic host checks cover original-source stdin delivery, changed/missing-capture refusal, failed-attempt recovery, historical isolation, both replan binding forms and once-only settlement/replay. The inline successor lifecycle uses the complete contract to create work, reject premature spend, settle the original identity once and leave the successor open, without a second guard or staged reader dependency. Its earlier 68-pass selection and 4-pass matrix overlap and are not additive.
Benchmark checkpoint preflight covers File/SQLite, replan/non-replan and context delivery on/off: model-input file and optional full recovery retain the exact source, one admission and read-only recovery. Optional native session capture is disabled in that synthetic test. External-worker recovery/continuity previously passed 70 checks, but an opaque shell wake does not establish delivery to an executor model.
The host-memory suite previously passed 105 checks and four historical modes retained exact prompt equality. This establishes transport/activation boundaries, not model behavior. Markdown source equality, JSON types and arbitrary instruction text are qualified at the CLI; prior renderer, native dual-binding and release-fixture import failures were repaired and remain historical evidence.
Open failures and delivery limits
Before cutover, finish remaining quota/staged/external/optional consumers, resolve the open guidance/cache failures, retire historical effect adapters on their stated compatibility boundary, and qualify native session/full-delta-resume plus packaged App journeys. Preserve independent instruction obligations, supported versions and original settlement identities throughout. No model/benchmark job, installed-host adoption, performance/quality benefit, installation or merge is claimed. C1 remains open; this candidate is not ready for adoption or merge.