Repository navigation
fix(agents): preserve custom bootstrap onboarding - #196411
Patrick-Erichsen merged 5 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesPreserve custom BOOTSTRAP.md until explicit completion while retaining automatic recovery for current and historical stock templates. Example: A workspace contains “Ask which competitors to monitor before starting research.” in BOOTSTRAP.md and a preconfigured Competitor Watch identity, without a Template receipt.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes premature deletion of custom onboarding instructions that current main still permits; no actionable patch defects remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway workspace preparation reads onboarding files and canonical setup state, recognizes generated templates, and either preserves pending instructions or records completion; Doctor consumes the same template comparison. flowchart TD
A[Gateway workspace preparation] --> B[Workspace reconciliation]
C[Workspace files and setup state] --> B
B --> D[Shared template recognition]
E[Doctor workspace repair] --> D
B --> F[Pending instructions or completed setup]
Technical reviewBest possible solution: Land the existing focused repair through the coordinated stack once its current-head gates qualify. Do we have a high-confidence way to reproduce the issue? Current-main reconciliation visibly deletes an unreceipted custom BOOTSTRAP.md when profiles look configured; the supplied red/green regression exercises that input, and this read-only review ran no target code. Is this the best way to solve the issue? The patch is the smallest complete repair: distinguish custom instructions in the existing completion owner, share existing template recognition, and preserve shipped stock recovery through exact historical fingerprints. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 869bbccf8fb8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +26, Tests +766, Docs +3, Other +4. Total +799 across 16 files. Added test files: 7. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (6 earlier review cycles)
Reviewed November 10, 2026, 11:01 PM ET / November 11, 2026, 04:01 UTC (Revision 7). |
4e759f1 to
eab1f91
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
7bbdaf3 to
612eca6
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Workspace setup treated a provisioned profile or skill as completed onboarding and removed custom BOOTSTRAP.md before the first turn. Restrict automatic profile-based completion to stock instructions so custom onboarding stays pending until consumed. Keep generated-template comparisons with the existing template loader.
The custom onboarding early return mistook the BOOTSTRAP.md seeded by v2026.9.2 for custom content, preventing existing profile-based completion recovery. Recognize its exact published seeded-body fingerprint in the existing template-history owner. Extend the existing native recovery test across current and historical stock content, restart and profile edits. Use the existing error-code guard for the moved file comparison instead of a production assertion. Shrink the original workspace assertion allowance from three to two without adding a replacement allowance. Allocate exactly 14 net regression-test LF lines in a separate record; the shared scalar and inherited test-line debt are unchanged. Retain the 111-line historical stock body as an exact canonical fixture. Validation: historical regression red before the fingerprint, current and historical rows green after; workspace/missing-templates/Template Add 83 tests pass; Doctor caller 16 tests pass; assertion-safety and formatting pass. Test-line check preserves the pre-existing 103-line stack deficit.
Recognize the exact BOOTSTRAP.md body seeded by shipped v2026.7.1 in the existing generated-template history owner. Preserve profile-based completion recovery after a restart and profile edit, while retaining explicit-removal behavior for custom onboarding. Verify the 53-line seeded fixture against canonical tag 2d2ddc4 after canonical frontmatter removal. Extend the existing recovery parameterization with zero net regression-test LF growth and no budget changes. Validation: July recovery row red before the hash and green after; workspace, missing-template, Template Add and Doctor caller suites pass 100/100. Production and agent-test types, scoped lint, formatting, source-size and exact test-line ratchets pass.
Yigtwxx
left a comment
There was a problem hiding this comment.
Follow-up on my earlier review, checked at e263fe1c808.
The four missing cohorts are in, plus June. Each of the seven fixtures under test/fixtures/bootstrap/ hashes to its entry in RETIRED_GENERATED_TEMPLATE_SHA256[BOOTSTRAP.md], and those are the same values I got by hashing docs/reference/templates/BOOTSTRAP.md at the release tags with each release's own frontmatter stripping. The current row pins 0bcb8c91…, which is still the stock body on main (b22f35f7ed7), so the next template edit fails that row instead of quietly turning pending workspaces into custom onboarding. The reworded comment above the map now reads correctly for the BOOTSTRAP.md entry as well.
Nothing further from me on this.
What Problem This Solves
Preserve custom
BOOTSTRAP.mduntil onboarding consumes it. Workspace and Doctor share stock-template recognition, including audited historical shipped bodies, so recovery does not mistake stock instructions for custom onboarding.Evidence
Current layer:
d7d09dcd161ddef09d37a1a1c37749be97479673. Full atomic candidate:db3969bece945c1bd54489c8c142071b6046d8f8. One fixture-only stability repair is carried at bottom; all seven upper patches and41commit subjects/order are unchanged. No full-main refresh.Landing and rollout
Land all eight layers atomically through the tip after exact-head gates permit. Preserve historical template-contract-194b7bea exactly. Seven unchanged upper patches retain their qualified reviews; bottom receives fresh review after final publication.
ClawHub #4502, Competitor Watch #22 and Activity #197058 are merged. Consumer release, manual backend cutover, new registry publication and live Gateway changes remain separate.