Skip to content

fix(online-eval): correct --agent help to runtime-only - #2065

Merged
notgitika merged 1 commit into
refactorfrom
fix/online-eval-agent-help
Aug 21, 2026
Merged

fix(online-eval): correct --agent help to runtime-only#2065
notgitika merged 1 commit into
refactorfrom
fix/online-eval-agent-help

Conversation

@jariy17

@jariy17 jariy17 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the online-insight PR (#2063), applying the same one-line fix to online-eval.

Change

add online-eval --agent help text: "harness/runtime name …""runtime name …".

Why

Only runtimes are valid online-eval targets end-to-end, so the old wording promised harness support that no layer implements:

  • ProjectSpecSchema superRefine builds agentNames from spec.runtimes only — a harness name always raises "references unknown agent".
  • The CDK construct resolves config.agent against a runtime-only environments map and derives the monitored log group from a runtime id.

Adding harnesses to the validation set would be worse (it'd pass CLI validation, then fail at CDK synth). Real harness support is a construct-level feature tracked separately.

Related: aws/agentcore-l3-cdk-constructs#335

Verification

tsc --noEmit 0 errors · prettier --check clean · online-eval suite 16/16 (help-text change is test-neutral — no test asserts the string).

Only runtimes are valid online-eval targets end-to-end: the project
superRefine builds agentNames from spec.runtimes, and the CDK construct
resolves config.agent against the runtime-only environments map, so a
harness name always fails. Correct the help text to match.

Related: aws/agentcore-l3-cdk-constructs#335
@github-actions github-actions Bot added agentcore-harness-reviewing AgentCore Harness review in progress and removed agentcore-harness-reviewing AgentCore Harness review in progress labels Aug 21, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.11%. Comparing base (e99b413) to head (f29c5ee).

Additional details and impacted files
@@            Coverage Diff            @@
##           refactor    #2065   +/-   ##
=========================================
  Coverage     97.11%   97.11%           
=========================================
  Files           384      384           
  Lines         22725    22725           
=========================================
  Hits          22069    22069           
  Misses          656      656           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@notgitika
notgitika merged commit 7dfc584 into refactor Aug 21, 2026
11 of 12 checks passed
@notgitika
notgitika deleted the fix/online-eval-agent-help branch August 21, 2026 18:47
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.

4 participants