Skip to content

Provide exact completion report shape#173

Merged
chubes4 merged 1 commit into
mainfrom
fix/172-nested-completion-report
Jul 20, 2026
Merged

Provide exact completion report shape#173
chubes4 merged 1 commit into
mainfrom
fix/172-nested-completion-report

Conversation

@chubes4

@chubes4 chubes4 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • generate a complete lane-specific v1 completion-report example from the caller source delta
  • require compact valid JSON with explicit serialization rules
  • preserve caller IDs and source refs while directing the model to replace evidence and diff-dependent values

Root cause

Both hosted acceptance runs reached completion validation but emitted syntactically invalid JSON because the model-facing prompt listed fields without a concrete nested object shape.

Reproductions:

How to test

  1. Run php tests/validate-docs-agent-packages.php.
  2. Run php tests/validate-docs-agent-completion-contract.php.
  3. Run php tests/validate-external-native-package-sources.php.
  4. Check out WP Codebox a6fe2d208e990a8d04104aa74aacbb8d1539fbc1 and run WP_CODEBOX_DIR=/path/to/wp-codebox php tests/validate-wp-codebox-run-agent-task-contract.php.
  5. Run actionlint .github/workflows/*.yml.

Compatibility

This strengthens only the generated model prompt. The v1 completion schema, validator semantics, workflow inputs, package bytes, and consumer contracts are unchanged.

Closes #172

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode with GPT-5.6-sol
  • Used for: Diagnosed hosted report failures and added the deterministic JSON shape and assertions with Chris reviewing and owning the change.

@chubes4
chubes4 merged commit f887e39 into main Jul 20, 2026
3 checks passed
@chubes4
chubes4 deleted the fix/172-nested-completion-report branch July 20, 2026 12:26
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.

Provide an exact valid completion-report JSON template

1 participant