docs: document +dbug =depth, |eyre/clean, and missing test-library arms - #273
Open
sigilante wants to merge 1 commit into
Open
docs: document +dbug =depth, |eyre/clean, and missing test-library arms#273sigilante wants to merge 1 commit into
sigilante wants to merge 1 commit into
Conversation
Developer tooling corrections against urbit/docs.urbit.org@08026c84b2. Everything below was run on a fake ship booted from urbit-408k-rc1.pill. +dbug =depth (dojo-tools.md, examples/dbug.md, app-school/3): The generator gained a named `depth=@ud` argument (gen/dbug.hoon), which wraps the poke as `[%skip depth poke]`. /lib/dbug's `+$ poke` gained a matching `[%skip depth=@ud =poke]` case, and its +on-poke unwraps one layer per hop, decrementing as it passes the poke down. This lets you address an agent running underneath a wrapper agent. examples/dbug.md is a line-by-line walkthrough of both files, so its quoted source was stale in three places: the generator's named-argument slot, the `+$ poke` union, and `+on-poke`. Note the file quotes +on-poke TWICE -- once in the full library listing and once in its own <details> section -- and both copies are updated. Each refreshed block was then checked against upstream by script. Documented the caveat that =depth only makes sense for a nested agent; verified that sending it to an ordinary one fails: > :azimuth +dbug, =depth 1 "unexpected poke to %azimuth with mark %dbug" |eyre/clean (dojo-tools.md) -- NEW ENTRY. Added 2025-06, undocumented. Deletes stale incoming HTTP channel subscriptions. `dry=?` bunts to `%.y`, so it runs as a DRY RUN by default and only reports a count; `=dry |` actually deletes. `=veb` takes `%1` (print each stale subscription) or `%2` (print each surviving one). Verified: > |eyre/clean "#0 stale incoming subscriptions" +dbug examples referenced agents that do not ship: `:graph-store +dbug` fails with "gall: not running %graph-store yet" -- that agent lives only in frozen pkg/landscape. Same for the `:settings`/`:contacts` suggestions in App School 3. Replaced with agents present on a bare ship (verified against %base's desk.bill: azimuth, spider, hood), using real captured output: > :azimuth +dbug [%state 'whos'] {} /lib/test.hoon (unit-tests.md): the doc described "four functions"; the library exports seven. Added +expect-success, +expect-fail-message (which asserts on the error text, not merely that a crash occurred) and +run-chain, including the source note that chained arms must not begin with `test-` or `-test` will also run them individually. Incidental: fixed two pre-existing broken anchor links to `#claycancelautocommit`; the heading anchor is `#claycancel-autocommit`. The remaining broken `#vat` link in this file is deliberately left alone -- it is already fixed in the mechanical-corrections PR, and fixing it twice would create a conflict. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eighth PR from the audit against
urbit/urbit@08026c84b2. Developer tooling. Everything below was run on a fake ship (urbit-408k-rc1.pill).Companion PRs: #266, #267, #268, #269, #270, #271, #272.
+dbuggained=depthThe generator has a named
depth=@udargument (gen/dbug.hoon) which wraps the poke as[%skip depth poke]./lib/dbug's+$ pokegained a matching[%skip depth=@ud =poke]case, and its+on-pokeunwraps one layer per hop, decrementing as it passes the poke down. This lets you address an agent running underneath a wrapper agent.examples/dbug.mdis a line-by-line walkthrough of both files, so its quoted source was stale in three places: the generator's named-argument slot, the+$ pokeunion, and+on-poke.Worth flagging for review: that file quotes
+on-poketwice — once in the full library listing and once in its own<details>section. My first patch attempt asserted a single occurrence and aborted before writing, which is how I caught it; both copies are now updated. Each refreshed block was then checked against upstream by script.Documented the caveat that
=depthonly makes sense for a nested agent — verified that sending it to an ordinary one fails:|eyre/clean— new entryAdded 2025-06, undocumented. Deletes stale incoming HTTP channel subscriptions.
dry=?bunts to%.y, so it runs as a dry run by default and only reports a count;=dry |actually deletes.=vebtakes%1(print each stale subscription) or%2(print each surviving one).+dbugexamples referenced agents that don't ship:graph-store +dbugfails withgall: not running %graph-store yet— that agent lives only in frozenpkg/landscape. Same for the:settings/:contactssuggestions in App School 3. Replaced with agents present on a bare ship (checked against%base'sdesk.bill:azimuth,spider,hood), using real captured output:/lib/test.hoonexports seven arms, not fourunit-tests.mddescribed "four functions". Added the three missing ones:+expect-success— the converse of+expect-fail+expect-fail-message— asserts on the error text, not merely that a crash occurred+run-chain— runs a sequence, stopping at first failure; includes the source's note that chained arms must not begin withtest-, or-testwill also run them individuallyIncidental
Fixed two pre-existing broken anchor links to
#claycancelautocommit; the heading anchor is#claycancel-autocommit.The remaining broken
#vatlink in this file is deliberately left alone — it is already fixed in #266, and fixing it twice would create a conflict. Verified in a combined test-merge that the result has zero broken#vatand zero broken autocommit links.Test-merged against the seven open companion PRs — all clean, including the three that now touch
dojo-tools.md.🤖 Generated with Claude Code