Skip to content

Opt tools - #71

Merged
bouillipx merged 3 commits into
mainfrom
opt_tools
Feb 10, 2026
Merged

Opt tools#71
bouillipx merged 3 commits into
mainfrom
opt_tools

Conversation

@bouillipx

Copy link
Copy Markdown
Collaborator

Summary

  • What does this PR change?
  • Why is this change needed?

Scope (One PR One Thing)

  • Primary objective:
  • Out of scope:
  • I confirm this PR handles a single objective only: [ ] Yes

Changed Files (required)

List all touched files and why each file changed.

File Reason
path/to/file reason

If this PR is a large diff (>300 changed lines), explain why split PRs are not possible and provide a split follow-up plan.

Acceptance Criteria

  • Criteria 1
  • Criteria 2

Test Evidence (required)

  • Local commands run:
    • ...
  • CI links or job names:
    • ...
  • Evidence/output summary:
    • ...

If this PR changes high-risk runtime paths (auth/concurrency/execution control), include risk-matrix evidence.

Risk and Rollback

  • Risk level: Low / Medium / High
  • Main risk points:
  • Rollback plan:

Dependency and Lockfile Changes

  • Lockfile changed in this PR: [ ] Yes [ ] No
  • If yes, manifest updated in same PR (requirements.txt/pyproject.toml/package.json): [ ] Yes [ ] No [ ] N/A

Agent Rules Checklist (required)

Reference: docs/agent_rules.md

  • Only task-related files changed; no opportunistic refactor
  • Public interfaces/data structures unchanged unless explicitly required
  • Tests added/updated and evidence attached
  • Any skip/only/exclude usage is explained and reviewed

Fix two P1 tool/runtime robustness gaps and record the related OpenSpec lifecycle updates.

Code changes:
- default edit_line line_number to 1 when omitted so schema/default behavior matches runtime execution.
- harden MCP timeout_seconds coercion: invalid, boolean, or non-positive values now fall back to 30 instead of raising conversion errors.
- add regression tests for both behaviors in v4 file tools and MCP provider coverage.

OpenSpec changes:
- archive fix-tool-capability-listing-contract and refactor-skill-store-builder into changes/archive/2026-02-10-*/.
- apply archived spec updates to interface-layer, component-management, and configuration-management.
- add new change proposal fix-p1-tool-input-defaults with proposal/tasks/spec deltas.

Validation:
- .venv/bin/pytest tests/unit/test_v4_file_tools.py tests/unit/test_mcp_tool_provider.py tests/unit/test_tool_manager.py tests/unit/test_tool_gateway.py -q
- openspec validate --specs --strict
- openspec validate --changes --strict
Prevent explicit null line_number values from being treated as schema defaults in edit_line. The tool now defaults to line 1 only when the field is omitted, while explicit null remains INVALID_LINE, avoiding unintended deletes on malformed input.

Harden MCP timeout parsing by catching OverflowError in addition to TypeError/ValueError so non-finite values (for example float infinity) safely fall back to 30 instead of crashing capability registration.

Add regression coverage for both paths in test_v4_file_tools and test_mcp_tool_provider to enforce the contract around null line numbers and defensive timeout metadata handling.
@bouillipx
bouillipx merged commit 047faea into main Feb 10, 2026
6 checks passed
@bouillipx
bouillipx deleted the opt_tools branch February 10, 2026 04:01
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