Commit Graph
69 Commits
Author SHA1 Message Date
dckc 391d9383d1 makefile-style: make for named checkpoints, from the madmode-blog page
From pages/2026/makefile-style.md in madmode-blog, plus the CONFIRM=
guard on destructive targets ("no yolo! makefiles plz", the iPad
restore, 2026-11-25) and the Nix result mtime trap (coffeebox,
2026-11-26).

Generated-by: Claude Opus 5.5
2026-11-26 10:48:53 -06:00
dckc a633aa44da journalism-101: lead with the news; don't write about the document
Dan, 2026-11-26, on a tv-remote intro that began "This page works
toward...": no newspaper story starts with "This newspaper story...".
Avoid "this document..." in general. Don't bury the lede, too.

Generated-by: Claude Opus 5.5
2026-11-26 09:13:07 -06:00
dckc e16e856eca fix(discord-agent-workspace): confine the bot with bwrap in a user unit, not ProtectHome=
Where the user manager can't mount (Ubuntu's
kernel.apparmor_restrict_unprivileged_userns=1), ProtectHome= and
friends are dropped without an error and the service runs unconfined.
Ship a generic unit, as cloros1 runs: tmux for /login, bwrap for the
confinement.

Generated-by: Claude Opus 5.5
2026-11-23 15:41:30 -06:00
dckc cf83169064 hypertext-links: link it into context
A page nothing links to is a bug. Link first, page second, as on a
wiki or the NeXT WorldWideWeb browser (citations TODO). Per TimBL's
"Linking to context" in the W3C hypertext style guide.

Generated-by: Claude Opus 5.5
2026-11-21 22:39:14 -06:00
dckc 53dd9b3b2d watchme: caveat on the recorded shell's cwd vanishing
A merge that empties a directory recreates it; a shell cd'd there is
left in the deleted one until cd "$PWD".

Generated-by: Claude Opus 5.5
2026-11-20 14:23:31 -06:00
dckc 9c75e44fef obsidian-markdown: name notes for their subject, not README
Generated-by: Claude Opus 5.5
2026-11-20 08:20:38 -06:00
dckc 8eaff2bf7a Add typed-remotes skill
A bare Remote is Remote<any>: name what a reference is, declare
buildRootObject with @satisfies so its root type can be exported, and
put the one cast where the kernel loses the type. Fixed twice in vattr97
code and back again, because toybox's CONTRIBUTING called bare Remote
the one place any was fine; so the skill also says to fix the guidance
and add a lint rule.

Generated-by: Claude Opus 5.5
2026-11-18 01:45:20 -06:00
dckc 5118c5c9b0 feat(gh-progress-report): a milestone comment on an issue, as a record
How to write the GitHub issue comment that reports a milestone: an h2
naming it, no date (GitHub dates comments), real commands and their
output, `git log10` back to the last checkpoint as a list, so the hashes
link (`owner/repo@hash` for another repo), and how it's put together,
from where authority enters.

Said in three sessions before it was written down: 2026-11-11 ("I like
to use high-entropy stuff such as git hash... actual commands and their
output"), 2026-11-16 ("start with a ## heading and leave out the date"),
and 2026-11-18 ("did I not make that clear?"; "this style of major
progress report", not every comment; "that's not log10 style"; of a
wiring diagram that began mid-story, "by magic?"; and "git log10 output
in a code block loses the benefit of linked hashes").

Generated-by: Claude Opus 5.5
2026-11-18 01:44:57 -06:00
dckc 2851fe872a feat(no-ambient-authority): designation is not authority; tests' helpers
From reworking toybox's tests: a port or a path, joined to a fetch or fs
the code holds anyway, reaches more than the one resource, so hand out
the object bound to it (a toybox's sockets; a tree rooted at a
directory, as openat reaches it). Swiss numbers belong at the boundary
that can't carry references. A test's I/O is set up once, as a promise
each test awaits, and each helper gets only the powers it uses.

Generated-by: Claude Opus 5.5
2026-11-16 16:24:19 -06:00
dckc 2b8704bdd0 docs(README): mark pattern parts in the text, not as headings
Generic headings (Context, Problem, Forces, ...) waste heading space;
docs-files-api already says headings name the point. Mark the parts as
Alexander did: bold problem, a list of forces, a bold "Therefore:".
TODO: rework the patterns that still use the parts as headings.

Generated-by: Claude Opus 5.5
2026-11-15 21:11:57 -06:00
dckc e13420cd6d disclose-gen-ai: no trailer for a line or two the human approved
An awesome-ocap commit (one talk entry, worded in chat and approved
as-is) got the harness default Co-Authored-By trailer; the operator
had it removed: "you saved me a little typing, but only a very little."
2026-11-15 00:31:08 -06:00
dckc ff600b84f6 no-ambient-authority: tests don't check logs; note DPY010 :memory: bug
Logging is an operational side effect, not output, so tests check
stdout and return values, never log records. This follows from the
style guide's choice to call logging directly rather than inject it.
Moved here from py-doctest, where it was orthogonal.

The checker flags sqlite3.connect(':memory:'), which isn't I/O. Note
it beside "treat each finding as a bug" until the checker learns the
exemption.

Generated-by: Claude Opus 5.5
2026-11-14 15:50:50 -06:00
dckc 5c477151cc feat(py-doctest): Python tests are doctests on the API they test
Docs go stale, and a test is often the clearest statement of what code
does; a doctest is both. Setup goes in private helpers in the module
(a `_MockIO` named after `main`'s parameters, `_shown()` to sort), so
each example is a call and its output. A script's module docstring is
its manual and runs `main(...)` with fakes; otherwise the module
docstring stays brief, per docs-files-api.

The rule had lived only in one workspace's project memory. It came
from qtrx, where agents kept copying test_bld_balance.py: "test_bld_balance
is a bad precedent. I keep running into that." Hence the trigger on
being about to write a test_*.py, and lazy-tdd's step 1 now points
here, since "the project's existing framework and style" is what sent
agents to the neighboring file.

The example script's doctests pass under several PYTHONHASHSEEDs.

Generated-by: Claude Opus 5.5
2026-11-14 15:50:50 -06:00
dckcandClaude Opus 5.5 6adb4bce33 feat(refactor-mercilessly): at each green, shrink what holds authority
From toybox's lend-the-mower example (dckc/vattr97#50): its boot vat
held vatAdmin, bundles, and an ingress, and also rendered the yard page
and routed its requests, all reached only by the Cloudflare test, and
the kernel test re-implemented its wiring. Dan pointed at agoric-sdk's
habit of small vat modules and `*.exo.js` makers, and at security as
extreme modularity; splitting it out gave each piece a fast test.

Peeling the kernel apart one example at a time, for the same PR,
showed the coupling cost: removing one feature took edits across
eight files. Dan's caveat shapes the commits rule: reviewers who knew
the prior state want small diffs as they go, so fold refactors into
history only when the audience changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 15:29:02 -06:00
dckcandClaude Opus 5.5 384a88899c feat(pola): what you hand out includes what its functions return
Add the rule to pola's description and body, and split three skills
out by situation: facet (what crosses a callback boundary),
capability-based-design (Tribble: one object per authority
distinction; narrowing only intersects), and caretaker.

A/B tested with Claude Haiku 5.5 in isolated runs, graded by an
explorer that plays Mallory. On a discord.js-style bot task, every
failure was `post: text => channel.send(text)`, whose implicit return
hands out the Message and so the client's token. Pooled pass rates:
no skills 35/70; pola's old description 36/48; the rule anywhere
139/144; this set 12/12 vs 5/12 for no skills in the same batch, and
21/21 on seven other tasks. Examples use an email SDK; they fixed the
chat-domain mistake anyway. The rule belongs in the description
because agents opened skill bodies in only some runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 00:42:25 -06:00
dckcandClaude Opus 5.5 e62f6ac285 README: tension/resolution patterns; list acls-dont
A skill that resolves a tension is written as a pattern: context,
problem, forces, therefore, resulting context. An anti-pattern takes
the same form, with the tempting answer among the forces. A recipe
with no tension stays plain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 21:20:17 -06:00
dckcandClaude Opus 5.5 b5411466e3 pola: mechanism vs policy as extreme modularity
Frame the API-shaping section with MarkM's "Security as Extreme
Modularity" slide: keeping policy out of a mechanism is modularity,
and in ocap code it's least authority too, since policy is which
references get handed out. The allowlist bullet now points to
acls-dont. The flower bullet gains its distinguishing force: each
step returns a new immutable handle, since a mutable builder passed
along can be widened. The section moves after the test example it had
split from its list, and a sources footer cites the slide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 21:20:17 -06:00
dckcandClaude Opus 5.5 f720e3d341 acls-dont: allowlists as an anti-pattern, in pattern form
Don't check who's asking; hand each party a capability narrowed to
what it may do. Forces include why the allowlist tempts (simple,
every framework's default) and why it fails (the component holds
everyone's authority and chooses whose to use: a confused deputy).
After Tyler Close's "ACLs don't" and Norm Hardy's "The Confused
Deputy".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 21:20:17 -06:00
dckcandClaude Opus 5.5 427a8f4642 README: write a skill's body for the agent; sources in a footer
An agent reads a skill's text, not the pages it links to, and acts on
rules, examples, and reasons. A well-known term is a key into what it
already knows; a bare URL gives it nothing mid-task, and history
changes nothing it does. Links still serve people and back claims
when challenged, so they move to a footer; history moves to commits.

TODOs: revise every skill on these lines, and for flow, since edits
tend to be local.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 21:13:32 -06:00
dckcandClaude Opus 5.5 5e468ef525 pola: shaping an API: attenuate rather than allowlist, flower-shaped handles, mechanism vs policy
From designing a toybox Discord bot (dckc/vattr97#57): access by narrowed
capability, not a checked allowlist; the service hands out and narrows
access while its creator composes policy (a $1-per-user seller); narrow
then fire; narrowings follow the protocol (host patterns for resume URLs);
patterns as data rather than predicates; refs to secrets, redeemable only
where they belong; one timer primitive with schedules as a library.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 20:56:06 -06:00
dckcandClaude Opus 5.5 abde27c130 wiring-diagram: multiplicity, facets, proxies, step-throughs
From drawing E's sugarMint sturdyrefs and reviewing cookie-rotation-wiring:
one pane per maker call and stack only what a scope makes many of;
facets point at shared state; cross-vat references go through a proxy
in the holder's vat; read fields before calling something data; a
step-through format; no PNG deliverables until the diagram is
confirmed. The template's marker id is now "arrow": "head" collided
with an <h2 id="head"> and arrowheads vanished.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 13:21:06 -05:00
dckc e887996105 WIP: citation-needed/SKILL.md 2026-10-31 13:04:09 -05:00
dckc 4221f2d176 citation-needed: writing for publication
Public sources only, dated references, outline References, the
CSL-JSON sidecar, bib: front matter for published posts, and the
Zotero import (which publishes). Moved here from agent memory.

Generated-by: Claude Opus 5.5
2026-10-30 16:08:56 -05:00
dckc fd47da3a98 no-ambient-authority: calibrate POLA for small Python scripts
Python can't enforce a capability boundary, so attenuation that lives
mostly in names is par for the course in a script; robustness against
adversaries means leaving Python.

Generated-by: Claude Opus 5.5
2026-10-30 16:08:56 -05:00
dckcandClaude Opus 5.5 65761a1da5 hypertext-links: applies to Discord messages too
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 20:19:27 -05:00
dckcandClaude Opus 5.5 b1cdb74e75 no-ambient-authority: point Python work at the DisciplinedPython guide and checker
Trigger on any Python script work, and link the awesome-ocap style guide,
attenuation notes, and disciplined_python_check.py, so conventions such as
logging.info for status come from the guide rather than being invented.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 16:38:26 -05:00
dckc d25d46557e pola: the test takes the spontaneous step; actors decide the rest
Replaces the self/puppet split: `alice.tradeWith(bob)` rather than
`alice.pay(to, amount)`, per the actor-sim skill.

Generated-by: Claude Opus 5.5
2026-10-12 17:01:00 -05:00
dckc 8cf472636d pola: split a party's self facet from its puppet facet
From a review of vattr97 #33: a public `pay` method is as good as
handing out the purse.

Generated-by: Claude Opus 5.5
2026-10-12 16:54:34 -05:00
dckc b64b80efd5 pola: organize all code by the flow of authority
From Mark Miller's SOSP panel statement and Navigating the Attack
Surface talk, after a review found two parties' purses in one test
scope.

Generated-by: Claude Opus 5.5
2026-10-12 16:22:32 -05:00
dckc 237b470be8 wiring-diagram: who holds what, drawn like MarkM's ERTP slides
A capability wiring diagram as a self-contained HTML/SVG page plus a
headless-Chromium PNG. Every arrow has to point to something in the
code, and a Mallory holding what's likeliest to leak shows what that
doesn't reach. template.html has the drawing helpers, adapted from
capsite's cookie-rotation-wiring.

README: a TODO to consider adapting agoric-sdk's
sequence-diagram-actor-sim as its companion.

Generated-by: Claude Opus 5.5
2026-10-11 14:22:44 -05:00
dckc 9538b4ea0a discord-agent-workspace: set someone up with a Discord-driven Claude Code workspace
Drafted for a friend of Dan's who isn't a developer, so their Claude can
walk them through it.

Generated-by: Claude Opus 5.5
2026-10-11 12:32:34 -05:00
dckc 581e8af605 disclose-gen-ai: the draft caveat is for PRs posted as the human
Generated-by: Claude Opus 5.5
2026-10-10 14:51:18 -05:00
dckc f115f6eda3 disclose-gen-ai: unreviewed agent PRs are drafts with a caveat
Generated-by: Claude Opus 5.5
2026-10-10 14:49:00 -05:00
dckcandClaude Opus 5.5 a4308a5722 hackmd-deck: drop the no-questions rule
It came from one deck's revision, not from how these talks go; step 4
returns to the draft's wording.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-09 14:09:46 -05:00
dckcandClaude Opus 5.5 6d150c4450 hackmd-deck: 🎉 marks the TADA, not ✅
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-09 14:08:21 -05:00
dckcandClaude Opus 5.5 2a0815f004 feat(hackmd-deck): add skill
Quick HackMD decks for light talks such as Agoric's engineering show &
tell: a flashback arc (TADA, then how, then challenges), real artifacts
as eye candy, and emoji tags that add up to a retro slide.

In the Portland Pattern Repository form notify-me tried, with an example
skeleton under the h1. The forces come from drafting the Good Fences
deck: the TADA has to be on the talk's own thread; slides show
challenges, they don't pose questions; designed, built in dev, and
deployed must be told apart.

The emoji legend is from the Jun 25 deck; meanings for 🔔 📈 🪄 are
inferred, and 🧱 is new.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-09 12:17:55 -05:00
dckc 4f6e23fdec feat(obsidian-markdown): add skill
Generated-by: Claude Opus 5.5
2026-10-09 02:12:41 -05:00
dckc c5e06ba156 docs-files-api: headings say something
Generated-by: Claude Opus 5.5
2026-10-09 01:25:47 -05:00
dckc 349c6479e1 docs-files-api: two sentences, then getting started, then features
Generated-by: Claude Opus 5.5
2026-10-09 01:25:13 -05:00
dckc 522950dd6e feat(docs-files-api): README sells and gets to TADA; CONTRIBUTING has the rest
AGENTS.md is a symlink to CONTRIBUTING.md.

Generated-by: Claude Opus 5.5
2026-10-09 01:23:08 -05:00
dckcandClaude Opus 5.5 91e6124c37 feat(notify-me): add skill
Notify at the end of any turn long enough that the operator has
probably looked away, asked or not. opencode-web notifies on every
reply, which is too much; silence let a long turn sit unseen. -t 0
keeps a notice up through a walk (tested on MATE: the default notice
expired; the -t 0 one stayed until closed).

An experiment in form: the body is a Portland Pattern Repository
pattern (context, problem, forces, therefore, resulting context),
after Alexander, rather than the usual rules-and-recipe skill.

The tension: forces give an agent reasons to handle cases the rules
don't anticipate, and make the trade-offs visible to whoever edits
the skill next; but the form runs longer, and every word is paid on
each load, with the actionable part buried under the preamble.

The resolution: an example notify-send right under the h1, the
forces cut to one line each, and the description left in matcher
form. The result is shorter than the rules-style draft (459 words vs.
562). Resulting context: if it reads well in practice, judgment-call
skills may adopt the form; recipe skills (retcon, yarn.lock) likely
gain little from it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 23:19:44 -05:00
dckcandClaude Opus 5.5 abb660e327 rename stop-blathering to grice-maxims
A civil name for the same skill; "stop blathering" stays a trigger
phrase in the description, which now leads with replies: they happen
every turn, so they never look like a task that calls for a skill.
The README gloss now covers all four maxims, not just brevity.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 22:52:56 -05:00
dckcandClaude Opus 5.5 d59efbcd16 feat(ibis-design): add argument placement, numbering, and layout guidance
Lessons from IBISing a2030.md's "Good Fences Make Good Agents":
arguments got pinned to the wrong position, a ruling-out comment was
really a con, and several issues were already answered by the design
text. Numbering made terse replies ("2: ...") unambiguous, and one big
fenced block outgrew a screen.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 21:52:39 -05:00
dckcandClaude Opus 5.5 1ecf625427 docs: add README
What's here, and how to add a skill.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 18:36:03 -05:00
dckcandClaude Opus 5.5 20072d1080 feat(ibis-design): add skill
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 18:36:03 -05:00
dckcandClaude Opus 5.5 dd5db1b32d feat(stop-blathering): add skill
From the "be concise" section of ~/.codex/AGENTS.md (Grice's maxims),
citing Strunk's Elements of Style and Payne's Lively Art of Writing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 18:35:03 -05:00
dckcandClaude Opus 5.5 d1a9c88b30 fix: make skill frontmatter valid YAML
A ": " inside a plain-scalar description is a parse error; use a
folded block scalar instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 18:35:03 -05:00
dckcandClaude Opus 5.5 fe9ad200c4 refactor(no-ambient-authority): rename from ocap-discipline
Name the skill for what triggers it. Cite Wikipedia on capability-based
security and ambient authority, and point newcomers to awesome-ocap.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 18:35:03 -05:00
dckc 65199cafa7 Add what-was-i-doing skill
Reconstruct past activity from an artifact's mtime: day-in-repos.sh
lists one day's commits and reflog entries (pulls, checkouts, clones:
local events git log never shows) across every repo locate knows.

Generated-by: Claude Opus 5.5
2026-10-08 07:21:44 -05:00
dckc ab335b3061 Add run-confined skill
Untrusted installers (curl | bash, unvetted npx packages) run in a
transient systemd user unit: $HOME unreadable, only ~/.local writable.
The script is a copy of office-admin/tools/run-confined.sh; it aborts
rather than run unconfined when AppArmor blocks user namespaces.

Generated-by: Claude Opus 5.5
2026-10-08 07:21:44 -05:00