Skip to content

refactor(agent): remove obsolete host declaration gates - #1323

Merged
wzh1994 merged 1 commit into
LazyAGI:mainfrom
Yuang-Deng:dya/host-authorization-cleanup
Sep 17, 2026
Merged

wzh1994 merged 1 commit into
LazyAGI:mainfrom
Yuang-Deng:dya/host-authorization-cleanup

Conversation

@Yuang-Deng

Copy link
Copy Markdown
Collaborator

Summary

Remove the obsolete require_host_file_access and require_host_file parameters introduced in #1320, including their declaration prechecks and documentation. Authorization remains owned by the caller's policy; undeclared tools can receive ALLOW, ASK, or DENY, and ready calls default to ALLOW when no policy is supplied.

Consolidate selected-index range, uniqueness, and execution authorization checks in _execute_prepared_batch(). Preserve batch ownership checks, ready-ASK approval validation, preparation snapshot isolation, dispatch selection, and existing public execution entry points.

Validation

  • 74 tests passed across tool runtime, host-file lifecycle/security, scheduling, and Agent events.
  • Flake8 passed for changed Python files.

This deliberately removes both new parameters without compatibility aliases. Follow-up cleanup for #1320; paired with LazyAGI/LazyMind#710.

@Yuang-Deng
Yuang-Deng requested review from a team as code owners September 16, 2026 10:01
@wzh1994
wzh1994 merged commit 8cf9e61 into LazyAGI:main Sep 17, 2026
4 of 5 checks passed

This branch is waiting to be deployed

1 waiting deployment
protected 47a43df9 Waiting Sep 16, 2026 by Yuang-Deng via wait_approve #5452
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.

2 participants