Skip to content

[spec-extractor] Update package specifications for agentdrain, cli, console, constants#27796

Merged
pelikhan merged 1 commit intomainfrom
spec-extractor/update-agentdrain-constants-2026-04-22-583eac4f30fb4a95
Apr 22, 2026
Merged

[spec-extractor] Update package specifications for agentdrain, cli, console, constants#27796
pelikhan merged 1 commit intomainfrom
spec-extractor/update-agentdrain-constants-2026-04-22-583eac4f30fb4a95

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Package Specification Updates

This PR fixes inaccuracies found during round-robin spec extraction for the first 4 packages (agentdrain, cli, console, constants).

Package Status Changes
agentdrain Updated Removed non-existent ClusterCount(), added Train() method docs
constants Updated Added OpenCodeEngine + 3 missing env var constants
cli Verified No changes needed
console Verified No changes needed

What Changed

pkg/agentdrain/README.md

  • Removed miner.ClusterCount() call from usage example — this function does not exist in the source; the correct method is miner.Clusters() which returns a slice
  • Added miner.Train(rawLogLine) to the usage example — this exported method was missing from the docs

pkg/constants/README.md

  • Added OpenCodeEngine ("opencode") to the engine names listing — it is present in engine_constants.go but was omitted from the spec
  • Updated AgenticEngines comment from ["claude", "codex", "copilot", "gemini", "crush"] to ["claude", "codex", "copilot", "gemini", "opencode", "crush"] to match the actual slice value
  • Added EnvVarModelAgentOpenCode ("GH_AW_MODEL_AGENT_OPENCODE") to the model env vars section
  • Added EnvVarModelDetectionOpenCode ("GH_AW_MODEL_DETECTION_OPENCODE") to the model env vars section
  • Added OpenCodeCLIModelEnvVar ("OPENCODE_MODEL") to the CLI model env vars section
  • Updated EngineName semantic types table to include OpenCodeEngine and CrushEngine examples

Extraction Method

  • Source code analysis of exported symbols (functions, types, constants)
  • Cross-referenced README claims against *.go source files
  • Verified function existence with grep -n "^func"

Round-Robin State

  • Packages processed this run: agentdrain, cli, console, constants (indices 0–3)
  • Next packages in rotation: envutil, fileutil, gitutil, logger (indices 4–7)
  • Total packages: 20
  • Coverage: 4/20 packages verified this run

Note: Cache-memory write was skipped — the /tmp/gh-aw/cache-memory/ directory was read-only in this environment. Rotation state will be re-initialized on the next run.


Auto-generated by Package Specification Extractor workflow — run §24773832167

Generated by Package Specification Extractor · ● 4.1M ·

  • expires on Apr 25, 2026, 10:50 AM UTC

- agentdrain: remove non-existent ClusterCount() method, add Train() docs
- constants: add OpenCodeEngine and related env var constants (OpenCode engine added)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added automation documentation Improvements or additions to documentation pkg-specifications labels Apr 22, 2026
@pelikhan
Copy link
Copy Markdown
Collaborator

/q ensure the round robin through cache-memory is working . The cache should have entries.

@pelikhan pelikhan merged commit 348d918 into main Apr 22, 2026
@pelikhan pelikhan deleted the spec-extractor/update-agentdrain-constants-2026-04-22-583eac4f30fb4a95 branch April 22, 2026 13:20
@github-actions
Copy link
Copy Markdown
Contributor Author

github-actions Bot commented Apr 22, 2026

🎩 Mission equipment ready! Q has optimized your workflow. Use wisely, 007! 🔫

Caution

Security scanning requires review for Q

Details

The threat detection results could not be parsed. The workflow output should be reviewed before merging.

Review the workflow run logs for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant