Skip to content

docs: align release materials and fix doc-vs-code drift - #33

Merged
Zhoujie628 merged 3 commits into
project-openan:mainfrom
Zhoujie628:main
Sep 1, 2026
Merged

Zhoujie628 merged 3 commits into
project-openan:mainfrom
Zhoujie628:main

Conversation

@Zhoujie628

Copy link
Copy Markdown
Contributor

Follow-up to the merged architecture PRs (#29, #32): a release-material alignment pass plus a doc-vs-code drift fix.

1. Release-material alignment (b4e05c3)

  • Terminology: unify on host agent / dispatched agent (宿主智能体/被调度智能体) across the README, guides, and diagrams; scenario-bound wording (workbench, OMC, WAIMO, city names) is gone from the release branch.
  • Structure: drop the three Chinese-only scenario documents; their reusable content now lives in the README and the five bilingual guides; docs/en and docs/zh converge to the same five documents with matching heading structure.
  • API reference factual fixes: agentCards defaults to an empty list rather than being required; the negotiation metadata contract is templateUri plus negotiationContext; package-private ContextBuilder is no longer presented as public API.

2. Doc-vs-code drift fixes (7f0e763)

Found by a six-dimension alignment audit (env keys, config builder, callback contracts, facade methods, all method calls in examples, template URIs):

  • .env.example carried two keys that nothing reads: A2AT_PROMPT_COMPLIANCE_GUARDRAIL_PROVIDER (no such key in the engine or the A2A-T SDK) and A2A_SSL_VERIFY (LoadPsop takes sslVerify as a method parameter).
  • The AgentExecutor example returned an ExecuteResult built via addTextPart — neither exists in the A2A Java SDK. The example now shows the real void execute(RequestContext, AgentEmitter) contract with updateStatus / addArtifact.
  • The event example and common-type list named AGENT_STATUS_UPDATE / AGENT_REQUEST / AGENT_RESPONSE, which the engine never emits; replaced with the actually-emitted TASK_* set, including the previously missing NEGOTIATION_FAILED, ROUTE_DECISION, and WORKFLOW_COMPLETE.

Everything else the audit checked (remaining 20 env keys, ControlPoint callback signatures, WorkflowEngineClient interface, config builder methods, accessor styles, template URIs, NegotiationRequest fields) is verified aligned.

Test plan

  • Documentation-only change; no Java sources touched
  • Full-repo forbidden-term scan on the release branch: 0 hits
  • zh/en heading-structure comparison: 5/5 pairs aligned
  • Six-dimension doc-vs-code audit with bytecode-level accessor verification

Terminology and structure pass over the published materials:

- Unify on host agent / dispatched agent (宿主智能体/被调度智能体)
  across the README, guides, and diagrams; scenario-bound wording
  (workbench, OMC, WAIMO, city names) is gone from the release branch.
- Drop the three Chinese-only scenario documents (business flow,
  scenario-specific integration guide, A2A-T dependency note); their
  reusable content now lives in the README and the five bilingual
  guides.
- Converge docs/en and docs/zh to the same five documents with matching
  heading structure.
- Fix factual drift in the API reference: agentCards defaults to an
  empty list rather than being required; the negotiation metadata
  contract is templateUri plus negotiationContext (the stale private
  negotiation-key description is gone); package-private ContextBuilder
  is no longer presented as public API.

Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
Three factual mismatches between the release materials and the actual
implementation:

- .env.example carried two keys that nothing reads:
  A2AT_PROMPT_COMPLIANCE_GUARDRAIL_PROVIDER (no such key in the engine
  or the A2A-T SDK) and A2A_SSL_VERIFY (LoadPsop takes sslVerify as a
  method parameter, not an environment variable).
- The API reference's AgentExecutor example returned an ExecuteResult
  built via addTextPart - neither exists in the A2A Java SDK. The real
  contract is void execute(RequestContext, AgentEmitter) with progress
  and results delivered through the emitter; the example now shows
  updateStatus and addArtifact.
- The integration guide's event example and common-type list named
  AGENT_STATUS_UPDATE / AGENT_REQUEST / AGENT_RESPONSE, which the
  engine never emits. The example now switches on TASK_STATUS_CHANGED
  and the list matches the actually-emitted set, including
  NEGOTIATION_FAILED, ROUTE_DECISION and WORKFLOW_COMPLETE.

Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
@Zhoujie628
Zhoujie628 requested a review from a team as a code owner September 1, 2026 04:41
The documented-callback compile test extracts the code block starting
at the 'MetadataContent generated =' marker, so the example must not
rely on a variable declared above that marker. Inline the standard
template constant instead of the undefined configuredTemplateUri
placeholder; the prose reference follows suit.

Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
@Zhoujie628
Zhoujie628 merged commit d6503e9 into project-openan:main Sep 1, 2026
3 checks passed
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