Skip to content

Rebuild JV Agent on native Pydantic AI and official Harness - #260

Draft
eldonm wants to merge 230 commits into
mainfrom
feat/pydantic-harness-rebuild
Draft

eldonm wants to merge 230 commits into
mainfrom
feat/pydantic-harness-rebuild

Conversation

@eldonm

@eldonm eldonm commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

JV Agent currently owns overlapping legacy and pilot execution machinery. This draft rebuild makes Pydantic AI core and the official Harness the execution foundation. JV supplies declarative configuration, modular Action and skill adapters, authenticated host policy, jvspatial storage and channel transport. Qualified native workflows run without importing superseded engines. Existing Orchestrator deployments remain transitional until migration and deletion gates pass.

The native path connects official skills, providers, tools, delegation, streaming and execution persistence to JV services. Evidence covers conversation and research, interviews, selected Actions, scripts and artifacts, MCP reads, accounting, identity/access, and bounded recovery. The progress record and qualification matrix distinguish qualified workflows from the remaining gates.

The latest increment maps qualified legacy global/channel tool_call_timeout into public SDK function tool deadlines and FastMCP client RPC deadlines. Tighter Action and service limits remain effective; SDK loader/output controls keep their run clocks, and MCP initialization keeps a separate clock. No JV timer or tool dispatcher is added. Annotated writes stay uncertain on timeout and block subsequent model execution. An explicitly unannotated pre-intent mutation or read-only child retry now gets a terminal failure receipt through the existing public SDK hook adapter (jvagent/harness/read_retries.py:54, jvagent/harness/native.py:468).

Validation:

  • Seven real GPT-4.1 jvchat turns against an isolated PostgreSQL app and a separately identified frozen frontend: MCP and Action read fallback, accepted writes with unconfirmed results, zero-call retry refusals and cold continuation. Two explicit independent intents create one local marker each. Cold and cached reload readbacks preserve rows, conversations and run registrations exactly.
  • Thirteen requests, 8,445 provider-reported tokens, USD 0.018372 estimated cost, zero unknown-cost calls. Usage reconciles with the persisted conversation journals. The first four turns and final three turns are recorded with distinct backend source epochs.
  • Final native/host/PostgreSQL/Docker lanes pass 939 tests per Python 3.11/3.12. Migration lanes pass 226 per version. Transitional tests pass 5,139 with 73 skipped. Removing actual MCP timeout enforcement fails both real RPC regressions; removing pre-intent repair reproduces the unsettled receipt. Restored affected tests and all-file repository hooks pass.

Deadline qualification and evidence record the clock contract, per-turn receipts, frontend hashes and test limits. The reference migration still requires reviewed script image/resource policy and resolution of model-service callers/provider declarations. Actual channel transports, broader recovery and deployment, retained-state cutover, deletion of legacy and pilot execution, and comparative performance remain open. The draft is not ready for merge or enterprise qualification.

Parent 915854e5 has all nine remote checks green. CI for the new head is tracked separately.

Milestone 50b6c737 (author eldonm) was pushed to feat/pydantic-harness-rebuild after the normal full-suite pre-push hook passed.

Eldon Marks added 30 commits October 3, 2026 10:27
Introduce the pilot driver, typed skill capabilities, persisted continuation context, evaluation fixtures, and migration guidance. Preserve legacy runtime as the default and report bounded replies when guarded turns cannot produce an answer (jvagent/action/orchestrator/loop.py:1788).
Add a bounded conversational output alongside evidence-backed ResearchBrief so generic Messenger prompts do not fail the research schema and consume retries. Preserve Action-receipt citation checks for research (jvagent/action/orchestrator/pilot/contracts.py:64; jvagent/action/orchestrator/pilot/runtime.py:138).
The initial Messenger research failures reached Pydantic AI's request and tool-call limits. Raise bounded defaults, expose per-action overrides, include budgets in the compiled run digest, and report the limit category to the user. Record the successful-but-irrelevant browser retest in the pilot evidence.

Refs: jvagent/action/orchestrator/orchestrator_interact_action.py:369, jvagent/action/orchestrator/pilot/contracts.py:37
Skip non-flow capability pilot tasks when abandoning a failed legacy flow. Cover same-owner isolation with a graph-backed continuation regression and record the Messenger length-limit diagnosis and smoke evidence in the qualification review.

Refs: jvagent/action/orchestrator/continuation.py; tests/action/orchestrator/test_continuation.py
Evidence: jvagent/scaffold/skill_resolve.py:387 misclassified built-in research/__init__.py as executable bundled skill code, rejecting the configured capability-pilot skill before any provider call. Exclude Python package markers while retaining rejection of actual helper scripts; cover the distinction in tests/action/orchestrator/test_skill_channel_gating.py:80.
Evidence: .planning/reviews/2026-10-04-pydantic-inspired-pilot-evidence.md records the initial zero-call failure, its package-marker root cause, and the successful current-branch Messenger retry with provider usage and persisted completed TaskStore state.
eldonm added 29 commits November 7, 2026 03:43
Publish and account for the successor before retiring the bound prior root in pageindex_google_drive_sync_action.py:768.
Assert exact prior-root retirement on retry and record browser fault injection before retirement.
Enforce native execution ownership before model resolution in pageindex_action.py:560.
Prevent direct legacy ranking fallback in pageindex_action.py:381.
Refuse a second legacy model call at reply_action.py:546 while keeping literal response-bus publication.
Refuse legacy model-driven selection before tool discovery on native agents in mcp_action.py:656.
Report removed setting names and preserve modular Action policy in harness_migrate.py:625.
Compare declared defaults and preserve the provider request timeout in harness_migrate.py:294.
Verify a converted provider candidate with a fresh graph and actual GPT-4.1 browser delivery.
jvagent/cli/harness_migrate.py:315 separates alternate providers from Actions awaiting consumer review.
jvagent/cli/harness_migrate.py:38 admits reviewed script, file and speech services independently of the selected chat provider.
jvagent/cli/harness_migrate.py:45 preserves the external voice delegation declaration during legacy chat provider retirement.
jvagent/cli/harness_migrate.py:46 preserves the provider-independent channel transport declaration.
jvagent/action/pageindex/native_callback.py:30 binds caller validation and native provider accounting to the host-selected model.
jvagent/cli/harness_migration_skills.py:260 reports Action-base admission separately from skill format.
@Tharickv75
Tharickv75 force-pushed the feat/pydantic-harness-rebuild branch from 09620ef to 1605c00 Compare November 23, 2026 12:57

This branch has not been deployed

No deployments
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