dry-run
Dry-run the Senzing Bootcamp plugin to find defects that reading it cannot: phase 1 verifies every MCP call against the live Senzing MCP server, phase 2 executes the hooks and bundled scripts against
SKILL.md.claude/skills/dry-run/SKILL.md
GitHubDry Run
This is a maintainer tool for developing the Senzing Bootcamp Claude Plugin (SBCP). It is never invoked during a bootcamp. It is a test-gate action before publishing.
Why this exists
Three full audits and 399 passing tests all read the plugin. Then one dry run found
that Module 5's mapping workflow could not execute at all — mapping_workflow
requires a workspace_dir parameter the plugin never passed, and five of its eight
documented action names were payload field names rather than actions. The
instructions were coherent, internally consistent, well cross-referenced, and wrong
about the tool they called.
That is the defect class this skill exists for, and it has a shape:
Static analysis can only confirm the plugin agrees with itself. It cannot see where the plugin disagrees with the world — the MCP server's real schemas, the filesystem, a rendered artifact, or a human being answering questions.
Each phase points at one of those. Run them in order; each is independently useful and each has found real defects.
| Phase | Checks the plugin against | Needs |
|---|---|---|
| 1 — MCP call contracts | the live Senzing MCP server's schemas | MCP access |
| 2 — Hooks and scripts | a real filesystem and real artifacts | python3 |
| 3 — Conversational layer | a human answering questions | the maintainer, or a simulated Bootcamper (--simulated) |
Phase 1 is the highest yield per minute — it targets the plugin's hard dependency and its entire factual foundation. Start there unless the maintainer says otherwise.
Before you start
Ask which phases to run if the maintainer did not say, including when there is no argument. Present them as a numbered list (1, 2, 3, or all three); do not assume, and do not read "dry-run the plugin" as "all three". Phase 3 costs the maintainer's time in a way 1 and 2 do not, so it is never implied by "dry-run the plugin". (INV-333) An argument naming phases is the answer to this question: start at the lowest one.
⛔ If phase 3 is among them, ask a second question before anything else runs: which module the analysis starts at. A trailing module name in the argument answers it. Otherwise list the eleven modules in order, numbered, and mark which ones this environment can actually reach (step 3 below is that check). Everything before the chosen module is walked as a Bootcamper sees it with the analysis off; the analysis begins when that module does. This is not a refinement — a walk that analyzes from the top runs out of context around Module 1 every time, which is why no phase-3 run has ever reached the later modules. Full rules, including what the fast-forward may and may not do, in phase3-conversational.md.
⛔ (INV-369, INV-333) Then a third: who answers as the Bootcamper. The maintainer-answered walk is the default, so offer it first: (1) the maintainer, or (2) a simulated Bootcamper, with a persona.
--simulated [persona]in the argument answers it, and a phase-3 argument without it answers it as the maintainer. With no argument every question is asked: whether to run phase 3, the start module, and who answers; nothing is assumed. The simulated walk spends tokens, and the human walk costs the maintainer's time, so neither is inferred from silence. The procedure is phase3-conversational.md → "A simulated Bootcamper".Work outside the repo. Phase 2 and 3 create a bootcamp project. Put it in
$HOME/senzing-bootcamp-dryrun(or-phase3), never inside the repo and never under/tmp— a maintainer hook blocks system-temp writes, and the plugin's own file-placement rules assume a project directory.scaffold_project.pyrefuses both. Its--run-root DIRis for/auto-testalone, which passes themkdtemprun root it created: a target inside that root is built, and any other/tmptarget is still refused (#840).Note the environment's limits up front, so the report can state them rather than imply coverage it did not have. Check and record: is the
senzingPython package importable? islibSz.sopresent? isfpdf2installed? isdockeravailable? is there a headless browser? Missing pieces are fine — silently skipping the paths that need them is not.Run the coverage reports to choose where to look. Two blind spots have hidden real defects — an invariant no test cites, and a spec file a ledger entry never recorded changing. Both are reports rather than tests, because a hit in either is usually legitimate; they tell you where a conformance sweep is unguarded:
python3 .claude/skills/dry-run/coverage_reports.py bothinvariantslists invariants no test mentions by ID — INV-060 and INV-097 both sat there while standing unimplemented for weeks. It splits its hits three ways so the actionable number is visible: fully superseded (filtered — a retired rule needs no test, and the list comes from the index's own "Fully superseded" entries, not a grep, because a partly superseded invariant such as INV-040 still binds), bootcamp outcome invariants (the first 50 ids — banners, questions, "the SDK is installed", which no offline suite can assert, so they are phase 3's business rather than test debt), and the development rules that remain.shippedis its mirror on the other side of the contract: invariants that name a shipped artifact (a path, module, step or bundled script) and that no file undersource/,hosts/ortools/bootcamp_build/cites, so the rule binds a step the guide cannot look it up from (INV-183). It is the questionconformance.py rulescannot ask — that scan is satisfied by anyINV-NNNin a section, which is how it reported 0 on 2026-08-13 while INV-212 was named nowhere near the step it was registered from. Development-environment rules are exempt via theINVARIANTS.mdindex group that declares itself the exemption, and invariants stating a general property with no artifact are not reported at all — both filters exist so the output stays short enough to read.affectedlists ledgered specs whose## Affected filespredicted a path the entry'sFiles changed:never recorded — which is how the graduation half of INV-097 went missing. Its rows are classified, most actionable first: names a real current file, then path no longer exists, bare filename (an artifact, not a repo path) and glob, the last three being predictions the scan structurally cannot match. Within the first class, ★ marks the rows whose spec's## Acceptance criterianame the file — the discriminator INV-097's defect actually had, since an## Affected filesentry alone is only a prediction.negativeslists every dated "this MCP tool does not contain X" claim, oldest server version first — that one is phase 1's worklist, not just a report, because a negative is the single claim shape the offline suite can never notice going stale. Read-only, stdlib-only, exit 0 whatever it finds. Theauto-testskill can call it the same way.unmarkedisnegatives' complement and the newer half of phase 1's worklist: dated tool-absence claims in shipped prose (the plugin andhosts/) that carry no marker, whichnegativescannot see because it only lists what is already tagged. The date is the discriminator — undated prose explaining how a tool behaves is not a re-checkable claim and is not reported. A hit needs judgment (it may be prose about behavior), which is why this reports rather than gates, and the vocabulary is a phrase list, so a miss is weak evidence. ⛔ Never mark one of these by stamping today's date on it — re-ask the owning route first; if the server has moved, the fix is to correct the prose, not to certify it.negativesalso readsspecs/DECLINED.md— the only file underspecs/it scans, added 2026-08-13. The rest ofspecs/is a frozen archive (INV-307): a spec body there is a record that is never re-verified, so its negatives are history, not claims.DECLINED.mdstays live, and a negative in aRevisit if:clause is re-read as authority whenever the decline is revisited, with nothing else re-verifying it. Give those markers the same weight as a shipped claim: a wrong one sends the next revisit check to the wrong answer, which is exactly what a phase 1 sweep found there.Exclude the walk's own docs from any Markdown-lint hook you run, if your
~/.claude/settings.jsonhas one. APostToolUsehook matchingWrite|Editthat enforces CommonMark will reject the guide's writes todocs/bootcamp_recap.mdat every module close, for MD022/MD032 — rules the bootcamp defers on purpose.bootcamp-onboarding/ground-rules.mdtells the guide to write these files plain and leave prettification to graduation, which runs one normalization pass before the recap PDF renders.⛔ Neither side is wrong, and the plugin is not what needs changing. It ships no
PostToolUsehook on Write or Edit — its onePostToolUsehook,failed-run-net.py(#910), matches Bash only and never blocks — so this is host configuration, no Bootcamper can encounter it, and it is friction in your walk rather than a defect in the product. ⛔ Do not "fix" it by relaxing the defer-to-graduation rule or by adding a hook to the plugin: both push a maintainer's environment into behavior every Bootcamper carries, to solve a problem none of them has.What to exclude: top-level
docs/*.md. ⚠️ Take that set from whatsource/scripts/normalize_docs_markdown.pyglobs rather than maintaining a file list — it globsdocs/*.mdnon-recursively, sodocs/feedback/SENZING_BOOTCAMP_FEEDBACK.mdis out of scope structurally (INV-015) instead of by an exclusion someone has to remember, anddocs/REVISIT_BOOTCAMP.mdis in scope because it is a top-leveldocs/*.md. A hand-kept list drifts the moment the normalizer's scope changes; this one cannot.The same goes for your
~/.claude/CLAUDE.md. A user-level instruction file is read by everyclaudeprocess this machine starts, the bootcamp's included, so a rule such as "end every response with a 👉 Suggested next step: line" is obeyed by the guide and then scored against the plugin. One walk filed 13 BREAKINGINV-251-multi-questionfindings that way, every one of them the host's rule rather than the plugin's text, and whether a given run was contaminated was not visible in its report (#733).⛔ (INV-379, INV-417) A host response rule is never a plugin defect, and never a plugin change. The shipped plugin contains "Suggested next step" nowhere; the rule is your configuration and no Bootcamper carries it, so writing the host's response style into the plugin would push one maintainer's environment into every bootcamp to solve a problem none of them has. Neither side is wrong here, any more than it is for the hook above. A simulated walk now keeps it out for you —
walk.pyruns both of its processes with--setting-sources project,local, andautotest.pynames any host instruction file the run could still read as acoverage_limitsline (auto-test→ the sandbox). A maintainer-answered phase 3 walk runs in your own session, where yourCLAUDE.mdstill applies: read a two-👉 turn there as your own rule until you have ruled it out.
Absolute rules
⛔ Nothing leaves the machine except two outward acts, each under INV-314's gate: show
the maintainer the exact text and get a yes, given out of character, one record at a time. For
issues and comments it may instead be one yes for the whole list shown in one message (INV-314,
2026-10-13 note), under the conditions in
.claude/skills/feedback-to-issues/drafts.py → "The batch yes".
- A GitHub issue, or a comment on an existing one, in this repository.
submit_feedback, only for a finding whose verdict ismcp-server: certain that the defect is the server's and that nothing in the Senzing Bootcamp needs to change. Certain means re-verified live against the server, with any absence claim carryingowner-checked:naming the route that owns the fact (INV-194, INV-213). ⛔ Abothfinding does not qualify: it gets a GitHub issue with the drafted upstream message inside it, for the maintainer to send. The send follows/feedback-to-issuesStep 8: a self-contained technical report, everything identifying stripped (INV-321),category='bug'or'feature', and ⛔ nevercategory='license_request'.
A yes given in character, while answering as the Bootcamper, never authorizes either act, and
neither does a yes from a simulated Bootcamper: the walk blocks both tools by flag
(auto-test → Guardrails).
A dry run must not file junk upstream or transmit a name and email. Verifying a tool's
schema sends nothing; download_resource on anything large stays forbidden.
⛔ (INV-369) Never answer as the Bootcamper in the session that runs or grades the bootcamp.
That is self-play, and phase 3 cannot be self-played: the plugin forbids simulating the
Bootcamper's response (INV-007), and an assistant grading its own 👉 discipline proves
nothing. A simulated walk (--simulated) is not self-play and not
fabrication: a separate process that has never seen the plugin answers, the process
running the bootcamp is never told it is under test, and this session grades only the saved
transcript, afterwards. This session never writes, edits or adds an answer to that walk. If
the maintainer is unavailable and no simulated walk was chosen, say phase 3 is untested
rather than approximating it.
⛔ Commit or copy aside before mutating the tree. This one cost real work twice
in the session that produced this skill. git restore cannot tell your fix from a
defect you injected to test a guard — it reverts both. Either commit the fix first,
or back the file up with cp and restore with mv.
⛔ Clear __pycache__ after any same-size revert. "…" and "..." are both
three bytes; a restored file with the same size and a same-second mtime lets Python
reuse bytecode compiled from the mutated source, so the suite keeps failing on
already-correct code. find . -name __pycache__ -type d -exec rm -rf {} +.
⛔ A pgrep -f guard matches its own command line.
while pgrep -f "unittest discover -s tests"; do sleep 15; done never exits: -f
matches the full command line, and the watcher's own bash -c argument contains the
pattern, so it finds itself. Bracket the first character — "[u]nittest discover" — or
match the process rather than the string (pgrep -f "python3.*unittest"). Four such
watchers spun for 27 hours after a phase-2 run here, and they kept each other alive:
killing three would not have freed the fourth, because it still matched them.
⚠️ The second half is why this is a rule and not a footnote. Two later "is anything
still running?" sweeps reported nothing while all four were spinning — the sweeps
searched for unittest|until grep and these used while, so the cleanup check missed the
thing it was written to find. When verifying a scratch run left nothing behind, list the
session's own shells (pgrep -a bash) rather than grepping for the idiom you remember
using.
What to do with a finding
A dry-run finding is only half done when the plugin is fixed. Follow this for each:
⛔ (INV-317) Draft each finding into the run's dated
specs/IMPLEMENTED.mdentry as you find it, marked not yet filed, before fixing anything — never into a new file underspecs/, which is a read-only archive (INV-307). A finding that exists only in the conversation is not recorded, it is remembered, and it dies at session end or the next compaction. This is not a filing preference; it is the difference between a durable improvement and a good afternoon. How the draft becomes a GitHub issue is the finding lifecycle below.- Shape:
../feedback-to-issues/issue-template.md— the same body the issue will carry. Citefile:line, and date every MCP claim with the server version that produced it. - When: immediately for phase 3, because a walk stops on whatever turn the maintainer stops it; by the end of the phase at the latest for phases 1 and 2. Do not defer to the final report — the report is the last thing that happens and the first thing lost.
- Even when you fix it the same session. The issue is what the
IMPLEMENTED.mdentry names, what makes the finding legible to whoever reads it next, and what survives if the fix has to be reverted; the fix can close it. Filing the issue is not made redundant by also fixing it. - Grouping: one issue per root cause. Several small prose corrections from one walk may share an issue when each is a few lines in the same file or two — give each its own acceptance criteria so they stay independently implementable — but two unrelated defects never share one.
- Where not to put it. Not the session scratchpad: the maintainer's global
write-location-gate.pyblocks system-temp paths, so a/tmp/...note fails outright. Not repotmp/either — it is not gitignored, so it becomes untracked clutter that "leave the repo with only intended changes" then tells you to delete.
Phase 3's collapsed test-notes blocks are working notes — the running observation channel for a walk in progress. They are never the record.
- Shape:
Fix the class, not the instance, where the class is cheap to remove. The
_clipellipsis defect had three call sites; changing the suffix to ASCII inside_clipmade the ordering hazard unreachable instead of fixing three callers.Write a test in the repo-level
tests/— stdlib only, nosource/(INV-108). A dry run you cannot repeat cheaply is a one-off; a test is the durable half.⛔ Negative-control the test. Reintroduce the defect, confirm the test fails, revert. A guard whose docstring claims more than its assertion checks is worse than no guard, because it certifies what it never tested. This is not optional: in the originating session, one existing test had pinned the wrong premise, which is how the defect it covered survived three audits.
Record the outcome in the same
specs/IMPLEMENTED.mdentry step 1 drafted into, naming the issue each finding became, and either queue the invariant it establishes or state that it establishes none —tests/test_spec_ledger_invariants.pyenforces this for entries dated on or after its cutoff. ⛔ (INV-365) Route it through/review-invariants; never editspecs/INVARIANTS.mdhere: write aDEFERRED INVARIANTblock in the run'sspecs/IMPLEMENTED.mdentry, asreview-invariants→ "Writing one" shows (INV-300), then tell the maintainer to run/review-invariants. Two homes, two purposes: the issue is the finding as pending work, the ledger is what was done about it and where each finding went. A finding you did not fix has an open issue (or a draft marked not filed) and a ledger line saying it is open, which is exactly right — it stays visible as outstanding rather than looking handled.Propose a correction when the invariant itself is wrong. INV-132 asserted the MCP reference could not answer parameter shapes; the server answers them. The correction is a dated note explaining what was verified and when. ⛔ (INV-365) Route it through
/review-invariants; never editspecs/INVARIANTS.mdhere: write aPROPOSED AMENDMENTblock in the run'sspecs/IMPLEMENTED.mdentry, asreview-invariants→ "Writing one" shows (INV-300), then tell the maintainer to run/review-invariants. An invariant that encodes a false premise is worse than a missing one.
⛔ Do not end a run with unwritten findings. Before reporting, list what you found and
confirm each one is drafted in the run's ledger entry and has reached the end of the
lifecycle below. "I described it in the report" is not recorded — the report is a message,
and messages are not durable. This rule exists because a phase-3 walk reached eight turns
with four findings held only in conversation, and it took the maintainer asking "are you
keeping notes that might lead to improvements / specs?" to surface it.
Under --draft, a finding's drafts.py record counts as recorded, and the caller writes the
ledger (INV-317's 2026-10-13 note).
The finding lifecycle
Where a drafted finding goes, from step 1's ledger draft to its GitHub issue:
⛔ (INV-368) With --draft <run-dir>, this run files nothing, fixes nothing and sends nothing, and writes
nothing outside <run-dir> but its scratch project. A simulated walk's is autotest.py's
sandbox, and its reports go to <run-dir>/walk/ (phase 3, "A
simulated Bootcamper" step 3). Each finding and upstream message becomes a
drafts.py add record as it is found, in place of steps 1, 3
and 5 below; What to do with a finding steps 2–6 are not run, and the
run ends with drafts.py list. --draft is the release cycle's interface (#573), and the caller records
unresolved drafts (INV-317). With --file <run-dir>, file what drafts.py file-plan prints,
after a yes for each record or one yes for the whole list shown in one message (INV-314,
2026-10-13 note), under the conditions in .claude/skills/feedback-to-issues/drafts.py → "The batch yes",
then report; an upstream draft is never sent by --file and keeps its own yes. Both stages, the
manifest and its statuses are stated once in drafts.py (INV-300).
Draft — on sight. The run's dated entry is a
## dry-run-<YYYY-MM-DD>heading inspecs/IMPLEMENTED.md, marked Not a spec as theproduction-readiness-audit-<date>entries are, and opened at the first finding. The ledger is a live record (INV-182), so the draft is durable at once and the walk never stops for it. Write no new file underspecs/(INV-307): it holds live records only, the table inspecs/README.mdis the list of the files that belong there, and the frozen archive of the spec files is in the repositoryspecs/README.mdnames. The 2026-09-24 run that followed the pre-freeze instruction wrote four new files there and turned the suite red.Search open and closed issues before filing, as
/feedback-to-issuesStep 4 does (gh issue list --state all --search "<terms>"). A finding already tracked points at that issue instead of opening a duplicate; a comment adding what the issue lacks goes under the same gate as an issue. A duplicate of a closed issue references it and says what is new, and re-filing it needs a reason that answers the earlier decision.File at the end of phase 1 or 2, and when a phase 3 walk pauses or ends — never mid-walk: a filing question inside a bootcamp turn adds a second 👉 and changes what is being tested. Then, one issue at a time:
⛔ (INV-314) Show the maintainer each title and body and get a yes, one issue at a time, or one yes for the whole list shown in one message (INV-314, 2026-10-13 note), under the conditions in
.claude/skills/feedback-to-issues/drafts.py→ "The batch yes". Any other "yes to all" is not assent to each. Filing is outward-facing and immediate: the issue is visible the moment it exists and its notifications have gone out; it can be edited or closed but never un-filed.gh issue create --title "<the defect, not the symptom>" --body-file <file>⛔ (INV-319) Never pass
--repo— this repository only, as/feedback-to-issuesStep 7 says. Then replace the draft's marker with the issue number.⛔ (INV-318) Never apply
unattended-okto an issue the run files. Choosing what runs unattended is the maintainer's decision alone, and a run that labels its own findings lets/unattended-issue-loop(user level) execute work it generated with nobody in between.The two outcomes that file nothing.
- No maintainer present: file nothing (INV-314). The draft stays marked not filed — needs the maintainer to file it.
- Declined: recorded as declined, with the maintainer's reason if one was given. A declined finding is a decision, not a gap.
Upstream — only under the outbound rule in Absolute rules. Put each qualifying
mcp-servermessage to the maintainer out of character, after the phase or the walk, on its own. ⛔ (INV-314) A yes given in character never authorizes it — graduation Step 0's upstream offer included (phase3-conversational.md). When the server is unreachable and certainty cannot be re-established, nothing is sent upstream: the finding is filed as a GitHub issue with the upstream draft inside it. Record the outcome on the finding's ledger line: sent (date and category), declined, or carried in an issue.
Reporting
Report to the maintainer with the severity ordering the findings deserve, and:
- ⛔ (INV-317) Name the issue each finding became, or its ledger draft and the lifecycle marker it carries, and say plainly which findings are fixed and which are recorded-but-open. A report that lists findings without naming where they live reads as though the work is captured when it is only described.
- Lead with anything that breaks a documented path, not with the longest list.
- If phase 3 ran, say which module the analysis started at, and that everything before it was walked rather than tested.
- ⛔ (INV-369) If phase 3 ran with a simulated Bootcamper, a clean run reads "no regression detected
(simulated Bootcamper, persona
<p>)", never "phase 3 passed" or "the bootcamp works", and the report lists phase 3 with the maintainer as not yet done. Findings count; a clean simulated run is weak evidence (auto-test→ "What it is for, and what it cannot do"). Say where the walk stopped and why, from itswalk_stopevent, and if it stopped before the start module, name the module it reached and leave the rest untested. - Say what you verified as correct, briefly. "The routing table is right, the
opaque-state contract is handled, no
add_data_sourceconfabulation" is information, and it stops the next audit re-checking the same ground. - ⛔ State the coverage limits explicitly. "No
libSz.so, so the live server and every SDK-dependent path went unexercised" is the difference between a report and a false clean bill of health. - Report your own mistakes. If a probe was wrong, or a fix was under-specified,
or a
git restoreate work, say so — the methodology's value depends on the reader trusting the parts that did work.
Cleaning up
Remove the scratch project when the run is done (rm -rf $HOME/senzing-bootcamp-dryrun)
and clear __pycache__. Leave the repo with only intended changes: git status
should show the fixes, the new tests, and the run's specs/IMPLEMENTED.md entry — no
new file under specs/, and nothing else.
⛔ (INV-317) The scratch project is disposable; the issues and the ledger entry are the run's actual
output. Deleting the project is cleanup. Deleting or never writing the ledger drafts loses
the run. If a run produced no issue and no ledger entry, it produced nothing durable, however
good the conversation was. Under --draft, a finding's drafts.py record counts as recorded,
and the caller writes the ledger (INV-317's 2026-10-13 note). git status then shows no entry.
Scope note
.claude/ is not propagated to the public repo (python3 -m tools.bootcamp_build promote
publishes the built packages, each assistant's catalog, site/ and public/ only), so this
skill and its scaffold_project.py helper never ship to bootcampers.