Skip to content

chore(deps): upgrade dart_agent_core to 2.1.6 - #465

Merged
sparkleMing merged 1 commit into
mainfrom
codex/upgrade-dart-agent-core-2-1-6
Sep 16, 2026
Merged

sparkleMing merged 1 commit into
mainfrom
codex/upgrade-dart-agent-core-2-1-6

Conversation

@sparkleMing

Copy link
Copy Markdown
Collaborator

What changed

Upgrade dart_agent_core from 2.1.5 to 2.1.6, the latest stable release returned by the pub.dev API on 2026-09-16. Update the minimum compatible constraint to ^2.1.6 and regenerate the lockfile; no other locked dependency changes.

Add a child-runtime regression verifying that an empty model response can retry with one committed turn remaining and that the successful response survives Memex state persistence. Extend the existing failed-child test to verify that the failure diagnostic is persisted and restored through loadOrCreateAgentState.

Why

The upstream patch release fixes shared cancellation propagation, failure lifecycle/state reporting, retry turn accounting, content-only responses, and several provider/MCP edge cases. Memex's existing agent APIs remain compatible. The added regressions exercise retry accounting and persisted error diagnostics through the actual Memex child runtime with a scripted LLM and temporary workspace.

Type of change

  • Enhancement
  • Tests

Risk areas

  • Agent orchestration, skills, or background tasks

This updates the shared agent runtime used by multiple agents and providers. No application implementation, UI, schema, permissions, or authentication configuration changes are included.

Screenshots or recordings

Not applicable: no UI changes.

Test plan

  • Added/updated unit/integration coverage in test/agent/super_agent_child_test.dart for retry-budget preservation and persisted child failure diagnostics.

  • Widget tests not added: no UI or interaction changes.

  • flutter pub get — resolved 2.1.6; only dart_agent_core changed in the lockfile, with the published archive checksum.

  • Targeted tests: 55 passed, using this exact command:

    flutter test --no-pub --reporter expanded test/agent/super_agent_child_test.dart test/agent/super_agent_harness_test.dart test/agent/agent_tool_error_result_test.dart test/agent/state_util_test.dart test/data/services/super_agent_chat_turn_resume_test.dart
  • flutter analyze --no-pub --no-fatal-infos --no-fatal-warnings --no-congratulate --write /tmp/memex-core-upgrade-analyze.txt — exit 0, no errors; 157 warning/info findings, matching the local baseline count before this upgrade. GitHub CI performs the exact base/head comparison.

  • git diff --check.

  • Full flutter test: delegated to the repository's PR Flutter Quality CI. Local elevated full-suite execution was rejected earlier in this session by automatic approval review; narrowly scoped tests and static analysis are permitted. No local full-suite pass is claimed.

  • Manual iOS/Android checks: not run; this patch-level dependency upgrade was validated with scripted clients and temporary files, not a device or live model service.

Contributor checklist

  • I read CONTRIBUTING.md.
  • I kept this PR focused on one change.
  • I did not edit generated *.g.dart files manually.
  • I did not add telemetry, hidden network calls, secrets, or signing keys.
  • No docs or localization updates are needed for this dependency upgrade.

@github-actions

Copy link
Copy Markdown

PR AI Review / PR AI 语义预检

中文

  • 风险等级:高风险
  • 需要人工审核:是
  • 黄金链路影响:可能
  • 置信度:high
  • Workflow run:35050768213

AI 语义预检未得到可解析结果,需要 maintainer 人工审核。

影响范围

  • unknown

黄金链路

  • none
  • 说明:Claude Code Action 未产出结构化 JSON,AI 语义预检结果不可用。

风险项

  • high AI review 结果不可用。证据:Claude Code Action structured_output was empty or invalid.。
    建议:检查 Claude Action 日志和模型网关配置后重新运行 workflow。

测试缺口

  • 未发现新的测试缺口。

English

  • Risk level: HIGH
  • Human review required: YES
  • Golden path impact: POSSIBLE
  • Confidence: high
  • Workflow run: 35050768213

AI semantic review did not return a parseable result; maintainer review is required.

Affected Areas

  • unknown

Golden Path

  • none
  • Rationale: Claude Code Action did not produce structured JSON, so the AI review result is unavailable.

Findings

  • high AI review result unavailable. Evidence: Claude Code Action structured_output was empty or invalid..
    Recommendation: Check Claude Action logs and model gateway configuration, then rerun the workflow.

Test Gaps

  • No new test gap was reported.

AI review is advisory. Maintainers should verify the result before merging.

@github-actions github-actions Bot added ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review labels Sep 16, 2026
@github-actions

Copy link
Copy Markdown

PR Preflight Summary / PR 预检汇总

中文

  • 统一结论:低风险:两个预检均已完成,质量预检通过,可走普通手动合并流程。
  • Policy preflight:低风险。未命中打回或高风险规则。
  • Flutter quality:通过。Analyzer 和 test baseline 均未发现新增问题。
  • PR head:12bcfb5f4386ddbf2223367ef19efbe8dddbc8b6
  • Policy run:35050768209
  • Flutter run:35050768251

English

  • Combined result: Low risk: both preflights completed and quality passed; use the normal manual merge flow.
  • Policy preflight: LOW RISK. No blocking or high-risk policy signal was found.
  • Flutter quality: PASS. Analyzer and test baselines found no newly introduced issue.
  • PR head: 12bcfb5f4386ddbf2223367ef19efbe8dddbc8b6
  • Policy run: 35050768209
  • Flutter run: 35050768251
PR Policy Preflight / PR 规则预检

PR Policy Preflight / PR 规则预检

中文

  • 判定:低风险
  • 变更文件数:3
  • 变更行数:47
  • Diff 是否截断:false

未发现确定性规则问题。

English

  • Decision: LOW RISK
  • Changed files: 3
  • Changed lines: 47
  • Diff truncated: false

No deterministic policy findings.

PR Flutter Quality / Flutter 质量预检

PR Flutter Quality / Flutter 质量预检

中文

  • 总体:通过
  • Analyzer baseline:通过
  • Test baseline:通过

English

  • Overall: PASS
  • Analyzer baseline: PASS
  • Test baseline: PASS

Flutter Analyzer Baseline

  • Base issues: 161
  • PR issues: 161
  • New issues: 0

No new analyzer issues introduced by this PR.

Flutter Test Baseline

  • Base failures: 0
  • PR failures: 0
  • New failures: 0

No new Flutter test failures introduced by this PR.

@sparkleMing
sparkleMing merged commit 4401c41 into main Sep 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant