Skip to content

Item 34 loop 1: house rule + dedupe cross-file duplication in auto-loaded docs - #429

Merged
mixmansoundude merged 3 commits into
mainfrom
claude/bootstrapper-execution-branches-ox2izi
Aug 9, 2026
Merged

Item 34 loop 1: house rule + dedupe cross-file duplication in auto-loaded docs#429
mixmansoundude merged 3 commits into
mainfrom
claude/bootstrapper-execution-branches-ox2izi

Conversation

@mixmansoundude

Copy link
Copy Markdown
Owner

Summary

  • First loop of CLAUDE.md Active Backlog Item 34, the follow-up to Item 30 (PR Item 30: second compression pass on agent-interconnect.md and agent-lessons-learned.md #428). Item 30's
    compression pass found that further sentence-level trimming was a saturated lever on
    docs/agent-interconnect.md (~0.2% word reduction) — the file's bulk is chronological
    incident-log narrative ("bug found via review, first fix was wrong, second fix was wrong, third
    fix confirmed via CI run N") wearing reference-doc clothes, not restated prose. This loop tackles
    the cheapest, zero-information-loss slice of the structural fix.
  • Adds a "distill to the load-bearing rule; move the narrative to
    docs/agent-closed-backlog.md"
    house rule to the top of all three auto-loaded knowledge docs
    (agent-interconnect.md, agent-lessons-learned.md, agent-ndjson.md).
  • Dedupes the two confirmed cross-file duplications:
    • The cmd.exe %-pairing sanitizer saga, previously told at length in both
      agent-interconnect.md's DLL-bundling section and agent-lessons-learned.md's ":log echoes
      UNQUOTED" entry. Canonical home is now agent-lessons-learned.md (it's a standalone cmd.exe
      hazard, matching that file's own categorization principle); agent-interconnect.md keeps only
      the DLL-bundling-specific consequence plus a pointer.
    • The self.dll_bundle.recover NDJSON row's mechanism, previously fully re-explained in both
      agent-interconnect.md and agent-ndjson.md. Canonical home is now agent-ndjson.md (its
      whole job is documenting row semantics); agent-interconnect.md keeps only the
      cross-component fact (a new repair loop needs a matching emitter + registered row) plus a
      pointer.
  • Net effect: agent-interconnect.md drops from 1981 → 1918 lines (20991 → 20224 words, ~3.7%
    reduction) — a real structural cut, not sentence-shaving. No fact was deleted, only moved to its
    single correct home with a pointer left behind.
  • Adds CLAUDE.md Active Backlog Item 34 itself (this PR closes only its first of three sub-loops;
    loops 2 — relocate CLAUDE.md's "Known Findings" section to agent-closed-backlog.md — and 3 —
    distill CLAUDE.md's dependency-strategy essay — remain open).

Test plan

  • tools/run_sanity_sweep.sh CLAUDE.md docs/agent-interconnect.md docs/agent-lessons-learned.md docs/agent-ndjson.md — all checks pass (compileall, pyflakes, delimiters, yamllint, actionlint, ASCII sweep, PowerShell AST parse sweep, pytest 515 passed / 3 skipped).
  • Verified no dangling references (e.g. renumbered "fifth/sixth/seventh bug" labels) were left orphaned by the interconnect.md trim.
  • Prose-only diff confirmed via git diff --stat — no code/test files touched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01A4iE1BRSkUETwz237XeuTW


Generated by Claude Code

Files CLAUDE.md's Active Backlog Item 34 (the docs-restructuring follow-up
to Item 30, which found interconnect.md's sentence-level compression was
saturated -- its bulk is chronological incident-log narrative wearing
reference-doc clothes, not restated prose).

This loop:
- Adds a "distill to the load-bearing rule; move the narrative to
  docs/agent-closed-backlog.md" house rule to the top of all three
  auto-loaded knowledge docs (agent-interconnect.md, agent-lessons-learned.md,
  agent-ndjson.md).
- Dedupes the cmd.exe %-pairing sanitizer saga: previously told at length in
  both agent-interconnect.md's DLL-bundling section and
  agent-lessons-learned.md's ":log echoes UNQUOTED" entry. Canonical home is
  now lessons-learned.md (it's a standalone cmd.exe hazard, matching that
  file's own categorization principle); interconnect.md keeps only the
  DLL-bundling-specific consequence and a pointer.
- Dedupes the self.dll_bundle.recover NDJSON row's mechanism: previously
  fully re-explained in both agent-interconnect.md and agent-ndjson.md.
  Canonical home is now agent-ndjson.md (its whole job is documenting row
  semantics); interconnect.md keeps only the cross-component fact (a new
  repair loop needs a matching emitter + registered row) and a pointer.

Net effect: agent-interconnect.md drops from 1981 to 1918 lines (20991 to
20224 words, ~3.7% reduction) -- a real structural cut, unlike the prior
sentence-level pass's ~0.2%. No fact was deleted, only moved to its single
correct home with a pointer left behind.

Loops 2 (relocate CLAUDE.md's Known Findings) and 3 (distill the
dependency-strategy essay) remain open under Item 34.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A4iE1BRSkUETwz237XeuTW

Copy link
Copy Markdown
Owner Author

@coderabbitai review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

@mixmansoundude I will review pull request #429.

⚠️ Action not completed

Already reviewed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@mixmansoundude
mixmansoundude enabled auto-merge (squash) August 9, 2026 11:42
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

No new commits to review since the last review.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 68a716db-8801-4812-a391-7dcc663c32c6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Restructured guidance around concise, current, actionable rules.
    • Consolidated incident histories and debugging narratives in a dedicated closed-backlog resource.
    • Clarified DLL recovery documentation, including safe log-only sanitization and machine-readable outcome reporting.
    • Added standards for maintaining concise NDJSON registry definitions and gating information.
    • Added a backlog item for further documentation cleanup and consolidation.

Walkthrough

The PR adds documentation-governance rules, records Active Backlog Item 34, and updates DLL-bundling documentation for PowerShell sanitization and NDJSON outcome emission.

Changes

Documentation governance

Layer / File(s) Summary
Knowledge-document rules
CLAUDE.md, docs/agent-interconnect.md, docs/agent-lessons-learned.md, docs/agent-ndjson.md
Adds Item 34 and requires concise current-state guidance. Detailed narratives and provenance move to docs/agent-closed-backlog.md.
DLL recovery documentation
docs/agent-interconnect.md
Documents the shared PowerShell sanitizer, log-only sanitized values, raw functional values, and self.dll_bundle.recover NDJSON rows for recovery outcomes.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: claude

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the first Item 34 loop: adding a documentation house rule and deduplicating auto-loaded documentation.
Description check ✅ Passed The description directly explains the documentation restructuring, deduplication, scope, and verification results.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/bootstrapper-execution-branches-ox2izi

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CLAUDE.md`:
- Around line 545-562: Update the three loop entries under Active Backlog Item
34 in CLAUDE.md to use bullet markers instead of literal numbered markers,
preserving their identifiers in prose such as “Loop 1:”. Run markdownlint-cli2
against CLAUDE.md and resolve any resulting issues.

In `@docs/agent-interconnect.md`:
- Around line 302-310: Remove the incident narrative, failed-fix history, review
provenance, and former console-only behavior from the affected documentation
sections around the :log hazard. Retain only the current-state consequence,
NDJSON contract, and stable pointers to canonical details in
docs/agent-lessons-learned.md and docs/agent-closed-backlog.md.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b8b9ff38-b2c1-4c96-ba4e-a83aceaa1eeb

📥 Commits

Reviewing files that changed from the base of the PR and between 28139c7 and dfe72b5.

📒 Files selected for processing (4)
  • CLAUDE.md
  • docs/agent-interconnect.md
  • docs/agent-lessons-learned.md
  • docs/agent-ndjson.md
📜 Review details
⏰ Context from checks skipped due to timeout. (9)
  • GitHub Check: auto_merge
  • GitHub Check: Batch syntax/run check (conda-full)
  • GitHub Check: Batch syntax/run check (cache)
  • GitHub Check: Batch syntax/run check (contract-uv)
  • GitHub Check: Batch syntax/run check (uv-dl-fallback)
  • GitHub Check: Batch syntax/run check (real)
  • GitHub Check: Batch syntax/run check (justme-test)
  • GitHub Check: Batch syntax/run check (contract-uv-fail)
  • GitHub Check: Batch syntax/run check (uv)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{md,bat,cmd,ps1,py,sh,yml,yaml,json}

📄 CodeRabbit inference engine (AGENTS.md)

Keep text ASCII-only and do not manually change line endings; follow .gitattributes.

Files:

  • docs/agent-ndjson.md
  • docs/agent-lessons-learned.md
  • CLAUDE.md
  • docs/agent-interconnect.md
**/*.md

📄 CodeRabbit inference engine (AGENTS.md)

Cite run_setup.bat locations by stable label or subroutine name rather than exact line number in documentation.

Files:

  • docs/agent-ndjson.md
  • docs/agent-lessons-learned.md
  • CLAUDE.md
  • docs/agent-interconnect.md
CLAUDE.md

📄 CodeRabbit inference engine (AGENTS.md)

Run markdownlint-cli2 CLAUDE.md; only MD029 is intentionally enforced, and new Active Backlog entries must use bullets with the identifier in prose rather than literal ordered-list markers.

Files:

  • CLAUDE.md
🧠 Learnings (1)
📓 Common learnings
Learnt from: CR
Repo: mixmansoundude/Python_vs_Windows

Timestamp: 2026-08-09T11:43:04.913Z
Learning: Freeze scope for the current iteration loop; defer new requirements to the backlog, implement exactly one missing feature slice, and add exactly one missing test per loop.
Learnt from: CR
Repo: mixmansoundude/Python_vs_Windows

Timestamp: 2026-08-09T11:43:04.913Z
Learning: When a change teaches or invalidates a lesson, update the relevant knowledge document in the same commit; move fully resolved backlog items to `docs/agent-closed-backlog.md`.
🔇 Additional comments (6)
CLAUDE.md (2)

543-553: Mark the completed loop as complete.

The PR objective states that loop 1 is complete and loops 2 and 3 remain. The Active Backlog preamble defines this section as future work, but these lines still present loop 1 as pending. Mark loop 1 complete or remove it from the active work list. This prevents agents from repeating the completed deduplication pass.

The PR objective states that this PR completes loop 1 and leaves two loops remaining.


563-566: LGTM!

docs/agent-interconnect.md (2)

28-40: LGTM!


312-327: LGTM!

docs/agent-lessons-learned.md (1)

22-30: LGTM!

docs/agent-ndjson.md (1)

13-20: LGTM!

Comment thread CLAUDE.md Outdated
Comment thread docs/agent-interconnect.md Outdated
…trim remaining narrative

- CLAUDE.md: converted Item 34's three loops from a literal numbered list
  (1./2./3.) to bullets with "Loop N:" spelled out in prose, matching this
  repo's own AGENTS.md convention for Active Backlog entries (avoids any
  future collision with markdown's own ordered-list renumbering, the same
  reasoning MD029 already backstops for top-level item markers). Also marked
  Loop 1 as DONE inline so a future agent doesn't redo the completed dedupe.
- agent-interconnect.md: CodeRabbit correctly caught that my own dedupe in
  the previous commit was inconsistent with the house rule it was
  demonstrating -- the DLL-bundling section still repeated a compressed
  summary of the %-sanitizer saga's three failed-fix rounds, and still
  carried "found via review"/"companion CodeRabbit finding on the same
  review round" provenance for the self.dll_bundle.recover NDJSON row.
  Trimmed both down to pure current-state facts (which values need
  sanitizing and why, the final fix, the NDJSON contract) with bare pointers
  to agent-lessons-learned.md and agent-ndjson.md for the full mechanism and
  history -- no restatement of what each fix attempt got wrong.

Net: agent-interconnect.md now 1902 lines / 20012 words (was 1918/20224
after the first dedupe pass, 1981/20991 before this PR).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A4iE1BRSkUETwz237XeuTW

Copy link
Copy Markdown
Owner Author

@coderabbitai review


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

@mixmansoundude I will review pull request #429.

⚠️ Action not completed

Already reviewed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

…erived

The trimmed DLL-bundling paragraph claimed "all three values" (HP_DLL_DETECTED/
HP_NEXT_DLL/HP_NEXT_DLL_PATH) are derived from PyInstaller's build-log warning
text, but the very next sentences correctly say HP_NEXT_DLL_PATH is actually a
real, os.walk()-confirmed filesystem path -- a genuine internal contradiction.
Scoped the warning-text claim to just the two values it actually applies to.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A4iE1BRSkUETwz237XeuTW

Copy link
Copy Markdown
Owner Author

@coderabbitai review


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

@mixmansoundude I will review pull request #429.

⚠️ Action not completed

Already reviewed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@mixmansoundude
mixmansoundude merged commit cc9257b into main Aug 9, 2026
16 checks passed
@mixmansoundude
mixmansoundude deleted the claude/bootstrapper-execution-branches-ox2izi branch August 9, 2026 13:52
mixmansoundude added a commit that referenced this pull request Aug 9, 2026
…list (#431)

* Item 34 loop 3: distill dependency-strategy essay, table-ify payload list

Closes CLAUDE.md Active Backlog Item 34's final loop (follow-up to Loops 1-2,
PR #429/#430).

- Distilled three "essay" sections (pipreqs pin rationale, pipreqs invocation
  rationale, the warnfix SKIP-set walkthrough) down to a 2-4 sentence
  load-bearing rule per topic, moving the full multi-paragraph justification
  verbatim to docs/agent-closed-backlog.md's new "Dependency Strategy
  Rationale" reference section -- zero information loss, same pointer
  pattern Loops 1-2 already established.
- Trimmed the 6 Bootstrap Architecture Principles in place (wording-only;
  there was no separate narrative to move out, just redundant clauses to
  cut while keeping all 6 principles and their concrete examples intact).
- Table-ified "run_setup.bat Rules"'s 7-payload paragraph list into a
  4-column table (payload / decodes-to / purpose / canonical source).
- Item 34 itself is now fully resolved -- moved from CLAUDE.md's Active
  Backlog to docs/agent-closed-backlog.md's Closed Active Backlog Items
  (keeping its number, summarizing all 3 loops), and CLAUDE.md's Active
  Backlog reset to the explicit "Nothing here." empty marker.

Net: CLAUDE.md drops from 775 to 687 lines (6496 to 5573 words, ~14.2%
further reduction) -- combined with Loops 1-2, CLAUDE.md is now 687 lines
versus the pre-Item-34 baseline of 916 (~25% total reduction across the
three loops), with zero information loss (every fact moved, not deleted).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A4iE1BRSkUETwz237XeuTW

* Fix PR #431 CodeRabbit finding: pipreqs CI gate note read as contradicting the pin directive

The compression pass moved "the pipreqs.flags CI gate validates invocation
flags, not the version, so the pin is free to change" into the same sentence
group as "do not upgrade this pin", making a pre-existing narrow technical
note (the CI gate doesn't assert an exact version string) read as directly
contradicting the strong prohibition right above it. Reworded to state
plainly that the gate's flag-only scope does not authorize changing 0.4.13.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A4iE1BRSkUETwz237XeuTW

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants