Repository navigation
chore: sync public mirror from internal - #1611
Conversation
|
Resolved 0 review-bot thread(s) on this generated public mirror PR. Review of mirrored code belongs on the mono source PR. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 27e7bc08e6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| while blocks.len() > 1 | ||
| && fixed + blocks.iter().map(|b| b.len() + 2).sum::<usize>() > RECAP_BYTES | ||
| { | ||
| blocks.remove(0); | ||
| dropped += 1; |
There was a problem hiding this comment.
Preserve earlier user constraints in fallback recaps
When enough turns make the rendered recap exceed RECAP_BYTES, this removes the oldest turn blocks even when they contain durable constraints such as “never publish without approval.” Because Threshold::plan_at now automatically uses this recap whenever model summarization fails or times out, the ensuing compaction deletes the original entries and the next model request has only the generic “thread log keeps them” note, with no way to recover the omitted instruction. Preserve user constraints separately or decline compaction when they cannot fit.
Useful? React with 👍 / 👎.
| for entry in entries.iter().rev() { | ||
| if let Message::User { attachments, .. } = &entry.message { | ||
| for attachment in attachments { | ||
| let reference = attachment.to_string(); | ||
| bytes += reference.len() + 4; | ||
| if bytes > FALLBACK_REFERENCE_BYTES { | ||
| break; | ||
| } | ||
| kept.push(reference); | ||
| } |
There was a problem hiding this comment.
Retain stored-output references in fallback compaction
When material_with_evidence returns None—for example because the reference manifest exceeds its 16 KiB limit or image evidence cannot be located—the fallback collects only a bounded subset of Message::User attachments and collects no Output::Ref or image locators at all. The resulting compaction still covers all source entries, so follow-up turns permanently lose the identifiers needed to retrieve those stored results; mentioning that the thread log keeps them does not make them available to the model. The fallback must retain every reference or refuse to compact.
Useful? React with 👍 / 👎.
Summary
dx-corp/monodx-corp/codeas a generated public mirror of the private source of truthd3c1c044b2524f5b3653e8f9a178ce23bd30b2dc39815461e95c7026ce0e129ed587ec60cc4336a117file(s) to copy/update and0stale file(s) to delete0sync-holdlabel to this PR; the sync workflow skips every push while it is setSource-of-truth status
Projection: deixic-code
Source: dx-corp/mono@d3c1c044b2524f5b3653e8f9a178ce23bd30b2dc
Prior destination base: 3981546
Content SHA-256: 3c4e36d92e6fefd2b456a67de73fd116e594e2c6e42a3d92829b9674a9b86e53
Result: drift_detected; 17 changed, 0 deleted
Destination-owned content is preserved. Destination CI is a separate health signal.
copy/update .repository-projection.json
copy/update vendor/dex-loop/src/context/compaction.rs
copy/update vendor/dex-loop/src/context/evidence_contract.rs
copy/update vendor/dex-loop/src/context/recap.rs
copy/update vendor/dex-loop/src/context/recap_tests.rs
copy/update vendor/dex-loop/src/context/summary.rs
copy/update vendor/dex-loop/src/contracts/event.rs
copy/update vendor/dex-loop/src/execution/engine/mod.rs
copy/update vendor/dex-loop/src/lib.rs
copy/update vendor/dex-loop/src/safety/chat_style.rs
copy/update vendor/dex-loop/tests/authorized_tools.rs
copy/update vendor/dex-loop/tests/interaction_mode.rs
copy/update vendor/dex-loop/tests/model_binding.rs
copy/update vendor/dex-loop/tests/scenarios.rs
copy/update vendor/dex-loop/tests/scenarios/capacity_controls.rs
copy/update vendor/dex-loop/tests/scenarios/compaction_fallback.rs
copy/update vendor/dex-loop/tests/tool_deadline.rs
Drift sample
Public-only commits since last generated sync
Validation
Test Plan
maestro-sync-public-release-mirrorworkflow inpublic-treemoderequire-internal-prconfirms internal source PR lineageStaged Rollout
dx-corp/mono@d3c1c044b2524f5b3653e8f9a178ce23bd30b2dc, including existing hidden/evaluation surfaces, and keeps public package parity behind the established public-source-provenance gate.