Skip to content

fix(tools): align model admission and preserve atomic edit batches - #432

Merged
lg2m merged 5 commits into
mainfrom
fix/truthful-tools
Oct 23, 2026
Merged

lg2m merged 5 commits into
mainfrom
fix/truthful-tools

Conversation

@lg2m

@lg2m lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Completes task #4 in docs/plans/README.md.

Model discovery, delegation, and audits now use the same advertised catalog snapshot, including run-selected models and roster routes. Admission still checks current policy and credentials. Warm discovery cache hits avoid repeated credential-store and network access, and unknown model requests cannot manufacture catalog entries.

Edit batches track every replacement and insertion, reject overlapping or ambiguous matches before writing, and retain unrelated edits. Regression cases cover replace_all conflicts, shifted spans, insertion tails, and whole-batch rollback.

Verification: formatting, lint, strict Clippy, and 2,399 affected-package tests passed (15 skipped). Isolated real CLI/server scenarios passed for edit recovery, model discovery, delegation, and roster admission. cargo xtask check initially stopped at stale sleep-inventory line numbers; those were corrected and remaining stages ran separately. An earlier concurrent test run hit a summarizer timeout; its isolated rerun and the final full suite passed.

Compatibility: RuntimeLoader::validate_spawn_model now receives the advertised routes. No wire protocol change. Overall unattended reliability also depends on the remaining stabilization tasks.

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T23:17:05.874148Z 7681b8f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lg2m

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 7681b8f1cf

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lg2m
lg2m merged commit 08bb1de into main Oct 23, 2026
7 checks passed
@lg2m
lg2m deleted the fix/truthful-tools branch October 23, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant