Skip to content

feat: figure Tool/CLI/Agent adapters with offline UI - #155

Merged
lostlight530 merged 23 commits into
mainfrom
agent/20261019-tool-cli-agent-console
Oct 19, 2026
Merged

lostlight530 merged 23 commits into
mainfrom
agent/20261019-tool-cli-agent-console

Conversation

@lostlight530

Copy link
Copy Markdown
Owner

Purpose

Adds local allowlisted figure_audit and communication_transfer adapters, JSON-first CLI, TTY and offline HTML status presentation, tests, active contracts and usage docs. This PR is STACKED ON #154. Figure auditing is pre-render only, not backend execution or WCAG/publisher certification. Do not merge until upstream base is resolved.

Delivery surfaces

  • agent_tools.py: stable allowlisted JSON Schema declarations and structured result/errors
  • tool_cli.py: list / describe / invoke, JSON default, text for TTY, offline HTML with auto light/dark UI and escaped content
  • tests/test_tool_cli.py: registry, invalid input, CLI, escaped HTML, repo-native integration calls
  • MANIFEST.yaml, AGENTS.md, README.md, Makefile, docs/02-examples-and-contracts/TOOL_CLI_AGENT.md

Review and evidence boundary

Source diff available; full checkout and CI have not yet been verified for this PR HEAD. Running a tool is not a scientific verdict; no shell execution or automatic repository writes. Preserve original existing PR review/approval boundaries. Re-read base and HEAD before merges.

Manual verification

python3 -m unittest tests.test_tool_cli -v
python3 tool_cli.py list
python3 tool_cli.py list --format html --output output/tools.html
make test

Rollback

Revert only the integration files in this stacked PR. Do not rewrite existing Stage/research artifacts.

Copy link
Copy Markdown
Owner Author

INTEGRATION_RECONCILIATION_2026_10_19_eac82ce671ed

Observed: 2026-10-19 UTC. Reviewed exact PR HEAD: eac82ce671edce1247178954d02aa12f1b995111. GitHub Actions: Tool CLI Agent smoke run 39274008349 — completed / success, local-tool-contract success.

The job steps include checkout of the PR revision, Python setup/dependencies, compile checks, native tool/CLI/offline HTML tests, make test for the existing repository suite, and JSON/HTML catalog generation. Logs show the relevant test_tool_cli and test_agent_plan assertions succeeded. The invalid-recipe Schema exception has been corrected in agent_tools.py to return a structured EXECUTION_FAILED rather than an uncaught jsonschema.ValidationError; the added test_invalid_recipe_schema_is_structured_cli_failure passes in the exact-HEAD CI logs.

Authority and scope: this is an automated test-run observation for the exact PR revision, not independent scientific reproduction, a deployment, interactive browser/screen-reader usability verification, MCP protocol certification, provider authentication, or publication acceptance. The integration PR remains Draft, stacked on its matching base algorithm PR. Existing Stage A–L and annual research documents are not changed by this PR.

Reconciliation: a separate unmerged experimental branch agent/20261019-native-tool-cli-agent-interface was created in parallel and overlaps Tool/CLI/Agent surfaces. Treat this stacked PR as the active integration proposal; avoid merging both overlapping implementations without an explicit diff/authority review. Historical branches are not silently deleted.

Stop boundary: keep human review of authorization semantics, known local file access permissions, and UI interactive accessibility before merging. Success on this feature branch is not evidence of a merged-main release.

Base automatically changed from agent/20261019-expanded-redundant-styles to main October 19, 2026 15:12
@lostlight530
lostlight530 marked this pull request as ready for review October 19, 2026 15:19
@lostlight530
lostlight530 merged commit a995348 into main Oct 19, 2026
1 check passed
@lostlight530
lostlight530 deleted the agent/20261019-tool-cli-agent-console branch October 19, 2026 15:19

Copy link
Copy Markdown
Owner Author

MERGED_MAIN_TREE_VERIFIED_2026_10_19_a995348a265c

Post-merge verification — 2026-10-19

Evidence boundary: git tree identity establishes equivalence of repository file contents at the tested PR HEAD and merged main; it is not a separate main-triggered CI execution, independent scientific reproduction, real model/provider integration, full browser UI/assistive-technology QA, MCP conformance, or publisher certification.

Operational state: MERGED_MAIN_TREE_EQUIVALENT_TO_CI_PASS_HEAD / RESIDUAL_LIMITS_DISCLOSED.

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