Repository navigation
docs: cover the BYO harness path in the UI (#539) - #723
Conversation
|
CI note: all code checks pass (Static + content checks, linkChecker, DCO). The only red check is the Preview deploy — it fails at the external "Upload preview version" step (cloudflare/wrangler-action, Worker version upload) after the Hugo build succeeds, so it looks like a transient Cloudflare-side issue rather than a docs problem. A re-run of the deploy job should clear it if maintainers have the access to trigger one. |
|
Heads up: the |
|
The |
941ef4a to
08e269e
Compare
|
Update on the new head (08e269e): the deploy check re-ran and still fails at the same step — "Upload preview version" (cloudflare/wrangler-action) aborts with 'In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable'. All other checks pass (Static + content checks, linkChecker, DCO, Framework tests). This confirms it is the missing CLOUDFLARE_API_TOKEN secret on the Actions side, not anything in the docs change. |
There was a problem hiding this comment.
@boxcee-interview hey sorry, was out for 3 weeks but reviewed now!
Thanks for adding the UI route. A few changes, mostly style, plus one that's specific to the main copy.
|
|
||
| ## Create a BYO Harness in the UI | ||
|
|
||
| The [kagent UI]({{< link path="ui/launch-ui" >}}) is another route to the same contract, not a separate feature. On the **Agents** page, **New Harness** opens the Harness form; pick `byo` under **Runtime adapter**. |
There was a problem hiding this comment.
In main, the Agents page no longer has a New Harness button; kagent#3633 replaced the create buttons with one Create button that opens a picker, and the Harness form now submits with Create rather than Create harness. Update the main copy to Create > Harness and Create, and keep the current wording in latest, which matches v1.0.1.
|
|
||
| ## Create a BYO Harness in the UI | ||
|
|
||
| The [kagent UI]({{< link path="ui/launch-ui" >}}) is another route to the same contract, not a separate feature. On the **Agents** page, **New Harness** opens the Harness form; pick `byo` under **Runtime adapter**. |
There was a problem hiding this comment.
"not a separate feature" restates the clause before it, and the semicolon joins two sentences. Suggest: "The kagent UI is another route to the same contract. On the Agents page, select New Harness, and then select byo under Runtime adapter." (Applies to the main copy too.)
|
|
||
| The [kagent UI]({{< link path="ui/launch-ui" >}}) is another route to the same contract, not a separate feature. On the **Agents** page, **New Harness** opens the Harness form; pick `byo` under **Runtime adapter**. | ||
|
|
||
| The form asks for the two fields [The A2A contract](#the-a2a-contract) says a `byo` Harness must satisfy: **Workload image**, pinned by `sha256` digest, and **Command**, which overrides the image entrypoint. Enter each part of the command and press Enter. **Arguments** is optional. **Create harness** stays disabled while the form reports a problem, so a `byo` Harness with no command cannot be submitted from the UI either. The rule is the same as the API's `BYO harnesses must specify workload.command` rejection; only the moment it is enforced differs — authoring instead of apply. |
There was a problem hiding this comment.
A link can't be the subject of a verb in these docs, so "the two fields The A2A contract says a byo Harness must satisfy" should become "the two fields that a byo Harness must set, as described in The A2A contract". The closing "; only the moment it is enforced differs — authoring instead of apply" also needs splitting, because the style guide avoids semicolons and dashes between clauses, for example "The UI enforces the rule when you author the Harness, and the API enforces it when you apply it." (Applies to the main copy too.)
Signed-off-by: Moritz Schmitz von Hülst <mschmitzvonhuelst@gmail.com>
The deploy check on this branch ran under the pre-guard preview.yaml and failed with a missing CLOUDFLARE_API_TOKEN (fork PRs cannot read repo secrets). The guard that skips the deploy job for fork PRs is already on main (2856a4a); this empty commit re-triggers the suite so it picks up the updated workflow. No code change. Signed-off-by: Moritz Schmitz von Hülst <mschmitzvonhuelst@gmail.com>
Address the three review points on the added section: - main copy: kagent#3633 replaced the create buttons with one Create button opening a picker; use Create > Harness and Create there, keep the v1.0.1 wording in latest. - Split the New Harness sentence per the style suggestion. - Reword the link-as-subject clause and drop the semicolon/dash ending per the style guide. Signed-off-by: Moritz Schmitz von Hülst <mschmitzvonhuelst@gmail.com>
59457d6 to
4c4b633
Compare
|
Thanks for the review! Addressed all three points in 4c4b633:
Also rebased onto the current |
Closes #539
agents/bring-your-own-agent.mddocumented only the CLI and YAML path. Since kagent#2935 the UI authors abyoHarness directly, so a reader working in the UI had no route through the feature.Adds a Create a BYO Harness in the UI section to the page, written as another route to the same A2A contract rather than a separate feature, as the issue asks:
byounder Runtime adapter; the form asks for Workload image (digest-pinned) and Command, mirroring the fields the contract table already names.workload.commandrule the API enforces at apply time is enforced at authoring time. Verified againstharnessDraftProblemsin kagent'sui/src/components/harness-form/harnessDraft.ts.byo(runtimecolumn inHarnessesTab.tsx).byoagent; the Agent form asks for a model configuration only for non-byoharnesses (AgentFormPage.tsx).Applied to both
mainandlatest, which currently carry identical copies of this page. No matching line was needed inagent-harness.md: itsworkload.commandrow already states the requirement.Screenshots omitted — no capture environment available here; happy to add them if you can point me at the fixture workflow.
How to Test
make build-docs(Hugo v0.160.1, the version CI pins) → HUGO_EXIT=0, 956 pages, no ERROR lines. The new section renders on both version copies with the internalui/launch-uilink resolving.