Skip to content

fix(agentic-wiki-writer): replace push-wiki batching with single-call pattern#357

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/agentic-wiki-writer-batching-bug-fix
Draft

fix(agentic-wiki-writer): replace push-wiki batching with single-call pattern#357
Copilot wants to merge 2 commits into
mainfrom
copilot/agentic-wiki-writer-batching-bug-fix

Conversation

Copilot AI commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

push-wiki is a custom safe-output hard-capped at 1 invocation per run. The prompt instructed the agent to split pages into batches of ≤4 and call push-wiki once per batch — every call after the first was silently rejected, dropping all pages in those batches and leaving dead [[wiki-links]] from Home.md and _Sidebar.md.

Changes (workflows/agentic-wiki-writer.md)

  • Step 3d constraints: removed the 4-pages-per-call limit, 30 KB payload-split rule, and retry-with-smaller-batches guidance
  • Step 3f push procedure: replaced the 6-step batching algorithm with a single-call instruction — one JSON object containing every page plus _Sidebar.md, passed to push-wiki exactly once; added an explicit note explaining the 1-invocation cap so future edits don't reintroduce batching
{
  "Home.md": "...",
  "Architecture.md": "...",
  "Getting-Started.md": "...",
  "_Sidebar.md": "..."
}

The `push-wiki` safe-output is hard-capped at 1 invocation per run.
The previous instructions told the agent to split pages into batches
of ≤4 and call `push-wiki` once per batch, causing all batches after
the first to be silently rejected with "Too many items of type
'push_wiki'. Maximum allowed: 1."

Replace both batching passages (Step 3d constraints and Step 3f
procedure) with a single-call pattern: build one JSON object with
every page including `_Sidebar.md` and call `push-wiki` exactly once.

Fixes #351

Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix push_wiki batching bug to avoid silent page drops fix(agentic-wiki-writer): replace push-wiki batching with single-call pattern Jun 24, 2026
Copilot finished work on behalf of dsyme June 24, 2026 18:47
Copilot AI requested a review from dsyme June 24, 2026 18:47
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.

2 participants