Skip to content

feat: autonomous docs compiler workflow and perfected content plan#23

Draft
jmanhype wants to merge 1 commit intoagentjido:mainfrom
jmanhype:feat/autonomous-docs-infra
Draft

feat: autonomous docs compiler workflow and perfected content plan#23
jmanhype wants to merge 1 commit intoagentjido:mainfrom
jmanhype:feat/autonomous-docs-infra

Conversation

@jmanhype
Copy link
Copy Markdown
Contributor

Summary

  • Add GitHub Actions workflow (.github/workflows/autonomous_docs_compiler.yml) that triggers on content plan push, nightly cron, and manual dispatch
  • Update counter-agent content plan with correct repo specs (agentjido/jido:jido, agentjido/jido_action:jido_action), add kino to ecosystem packages for interactive embedder, add DemoAgent visualizer assignment, and fix cmd/2 API references to use YourModule.cmd/2

What this enables

When merged, pushing any .md file to priv/content_plan/docs/ will automatically:

  1. Spin up a Sprite sandbox
  2. Clone source repos and ground the writer against real source code
  3. Generate a Livebook via the writer/critic loop
  4. Compiler-verify all Elixir code blocks in the sandbox
  5. Append an interactive Kino "Try It Live" playground
  6. Open a PR with the compiler-verified .livemd

The nightly cron run catches API drift when upstream source code changes.

Test plan

  • Verify workflow triggers on push to priv/content_plan/docs/**/*.md
  • Verify workflow_dispatch with force_regen: true runs full regeneration
  • Verify content plan parses correctly via ContentPlan.parse_file!/1

🤖 Generated with Claude Code

- GitHub Actions workflow triggers on content plan push, nightly cron,
  and manual dispatch. Processes changed plans incrementally or does
  full regeneration. Auto-opens compiler-verified PRs.
- Content plan updated with correct repo specs, ecosystem_packages
  including kino for interactive embedder, DemoAgent visualizer
  assignment, and corrected cmd/2 API references.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3def307977

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

run: |
if [ "${{ github.event_name }}" = "schedule" ] || [ "${{ github.event.inputs.force_regen }}" = "true" ]; then
echo "Running full regeneration of all content plans..."
mix jido_lib.github.docs.generate_all priv/content_plan/docs \
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace undefined Mix task namespace in workflow

This workflow invokes mix jido_lib.github.docs.generate_all/mix jido_lib.github.docs.pipeline, but this repository defines its Mix tasks under lib/mix/tasks/*.ex (e.g. content.plan.generate) and has no jido_lib dependency in mix.exs/mix.lock; in CI that means the docs step will fail with “task could not be found” before any generation happens. As written, every scheduled or push run is likely to fail at this command.

Useful? React with 👍 / 👎.

Comment on lines +68 to +69
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} \
| grep '^priv/content_plan/docs/.*\.md$' || true)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle workflow_dispatch diff base before filtering changes

When this workflow is started via workflow_dispatch with the default force_regen: false, the else branch runs git diff --name-only ${{ github.event.before }} ${{ github.sha }} even though workflow_dispatch events do not provide a before SHA; that collapses to a single-commit diff against the checked-out HEAD and returns no files, so the job exits early with “No content plan changes detected.” In practice, manual runs are a no-op unless users remember to force full regeneration.

Useful? React with 👍 / 👎.

@mikehostetler mikehostetler marked this pull request as draft March 3, 2026 15:46
@mikehostetler mikehostetler added needs-work Submitter must revise before this can move forward parked Worth keeping open, not worth acting on now and removed needs-work Submitter must revise before this can move forward labels Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parked Worth keeping open, not worth acting on now

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants