Skip to content

Deepen mdo C6: retire divergent test mirror and dead pub surface - #48

Merged
maphew merged 2 commits into
mainfrom
agent/6w5-c6-test-mirror
Oct 7, 2026
Merged

maphew merged 2 commits into
mainfrom
agent/6w5-c6-test-mirror

Conversation

@maphew

@maphew maphew commented Oct 7, 2026

Copy link
Copy Markdown
Owner

C6: Retire the divergent test mirror and dead public surface

Beads mdo-6w5.2 · parent epic mdo-6w5 (PR order 2 of 6; stacked on the C1 branch)

What

  • `tests/cli.rs:618-633` re-implemented `temp_output_for` as a mirror that had already lost stem sanitization. The four `--open` call sites now call `mdo_cli::temp_output_for` directly, so the tests compute precisely the paths production computes. Mirror deleted (plus the `Hash`/`Hasher` imports only it needed).
  • `derived_output` alias (`src/lib.rs:137`, one caller) deleted; `main.rs` calls the real target `input.with_extension("html")`.
  • `SETUP_SAMPLE_FILE_NAME` / `SETUP_SAMPLE_MARKDOWN` (zero external callers) made private.
  • `wrapper.rs'` `empty_path_dir` duplication deliberately untouched — recorded in the issue as having an honest reason.

Gates

fmt --check ✓ · clippy -D warnings ✓ · `cargo test --all-targets --all-features --locked` ✓ (90 tests, including the Linux `--open` suite that now exercises the real path contract)

Recorded byte-identity work from C1 is preserved: no CLI-visible strings changed in this PR.

Signed: kilo-kilo-auto-efficient on behalf of matt (Beads mdo-6w5.2)

maphew added 2 commits October 7, 2026 09:44
C6 / Beads mdo-6w5.2 (epic mdo-6w5, PR order 2 of 6; stacked on the C1
branch).

- tests/cli.rs re-implemented temp_output_for as temp_output_for_test and
  had already lost stem sanitization (diverged from production). The four
  call sites now call mdo_cli::temp_output_for directly, so tests compute
  the same per-source private paths production does, sanitization included.
  The mirror is deleted, along with the Hash/Hasher imports it alone needed.
- The one-line derive_output alias had a single caller; main.rs now calls
  the real target, input.with_extension("html"), and lib no longer exposes
  the alias.
- SETUP_SAMPLE_FILE_NAME / SETUP_SAMPLE_MARKDOWN had zero external callers;
  both are now private. (Windows SetupSample? not referenced: mdo-setup and
  mdo-open never touch them.)
- wrapper.rs's own empty_path_dir duplication is intentionally untouched:
  recorded in the issue as having an honest reason.

Gates: fmt --check, clippy -D warnings, cargo test --all-targets
--all-features --locked (90 tests) all green, including the Linux --open
tests that exercise the corrected temp-output path contract.

Beads-Ref: mdo-6w5.2

Agent-Signature: kilo-kilo-auto-efficient on behalf of matt
The import was only used in #[cfg(target_os = linux)] tests but was unconditional,
causing clippy -D warnings to fail on macOS/Windows with unused_imports.
This is a follow-up to Beads mdo-6w5.2 (C6).

Agent-Signature: kilo-kilo-auto-efficient on behalf of matt
@maphew
maphew merged commit f17e093 into main Oct 7, 2026
3 of 4 checks passed
@maphew
maphew deleted the agent/6w5-c6-test-mirror branch October 7, 2026 16:50
@kilo-code-bot

kilo-code-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • src/lib.rs
  • src/main.rs
  • tests/cli.rs

Reviewed by efficient · Input: 68K · Output: 8.3K · Cached: 318.7K

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.

1 participant