Skip to content

Make user bootstrap execute required workspace writes - #183

Merged
chubes4 merged 2 commits into
mainfrom
fix/182-user-bootstrap-write-gate
Oct 11, 2026
Merged

chubes4 merged 2 commits into
mainfrom
fix/182-user-bootstrap-write-gate

Conversation

@chubes4

@chubes4 chubes4 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Closes #182

Summary

This is the user-lane version of #179. The native user bootstrap package could finish a run on an empty docs/user/** surface without writing anything. It now has the same Agents API completion gate #179 gave the technical bootstrap: require-bootstrap-workspace-write (at least one workspace_write, workspace_edit or workspace_apply_patch call before it can finish).

What changed

It follows #179's two-commit shape, because packages are fetched at an immutable pinned revision:

  1. f3d9657 Require user bootstrap workspace writes adds the tool_call_rules entry to user-docs-bootstrap-agent.agent.json.
  2. Correct user bootstrap package provenance and pin:
    • The user bootstrap source_ref, source_revision and meta.source_version now point to f3d9657.
    • DOCS_AGENT_PACKAGE_REVISION and every revision reference in the workflow, README, recipes, fixture and tests now point to f3d9657.
    • All five package_digest values are recomputed from the bytes at f3d9657. Technical bootstrap and user bootstrap changed, and the other three are byte-identical.
    • The test spec adds required_tool_call_rule for the user bootstrap.
    • tests/native-agent-import.php now runs the gate check for both bootstrap lanes, using docs/user/getting-started.md as the user-lane write.
    • The README says both bootstrap lanes are gated.

Merge with a merge commit, not squash or rebase. That keeps f3d9657 reachable from main. Squash would leave the pinned revision on this branch only.

How to test

AGENTS_API_DIR=<agents-api @78e2dd4> php tests/native-agent-import.php
WP_CODEBOX_DIR=<wp-codebox @a6fe2d2> php tests/validate-wp-codebox-run-agent-task-contract.php
php tests/validate-docs-agent-packages.php && php tests/validate-docs-agent-completion-contract.php && php tests/validate-external-native-package-sources.php && php tests/repair-docs-links-smoke.php && git diff --check

All pass. Native import goes from 39 to 42 assertions: the user bootstrap creates the gate, blocks prose-only completion, and allows completion after a docs/user write.

Hosted evidence

Extra-Chill/extrachill-community runs 38178041178 (gpt-5.5) and 38178640253 (gpt-6-luna, through #181) both ended with an empty docs/user, failing BOOTSTRAP_GLOB_MINIMUM: matched 0; 5 required. Since the result was the same on two models, the cause is the package, not the model.

🤖 Written by Extra Chill Bot (AI agent) for Chris Huber, who will review it.

Point the user bootstrap package provenance, the immutable package
revision, and all five package digests at f3d9657, the commit that
adds the user bootstrap workspace-write gate. Extend the native import
test and README to cover both bootstrap lanes.
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.

User bootstrap makes no writes on an empty docs/user surface (user-lane twin of #177)

1 participant