Skip to content

chore: strip process artifacts from source comments - #275

Merged
i386 merged 1 commit into
Mesh-LLM:mainfrom
iamthesvn:chore/strip-process-artifacts
Dec 1, 2026
Merged

i386 merged 1 commit into
Mesh-LLM:mainfrom
iamthesvn:chore/strip-process-artifacts

Conversation

@iamthesvn

Copy link
Copy Markdown
Contributor

chore: strip process artifacts from source comments

Original problem

Source comments across 32 files still described how the code came to be — reviewer handles, PR-review notes, labels pointing at planning docs that aren't in the repo — instead of what the code does. Seven tests also carried a review_ prefix that names nothing in the API.

Fix

I reworded the comments to present tense and dropped the review_ prefix from the seven test names. Every constraint and number survives (the ryg_rans goldens with both SHA-256s, the slots=16 → find_slot → HTTP 502 chain), as do the ~85 site issue citations and payload strings. docs/** prose, the llama_cpp patch queue, and generated bindings are deliberately out of scope. No behavior change: the diff is comments plus the seven renames, verified line by line.

Validation

  • cargo fmt --all -- --check: clean.
  • cargo check on all eleven touched crates: clean.
  • Renamed anthropic_contract suite 18/18; doc tests pass.
  • Every changed line is a comment or one of the seven renames.
  • No model or hardware qualification; no production code changed.

Acceptance criteria

  • I ran the relevant local checks, or explained why they do not apply.
  • I agree to license my contributions under the Apache License, Version 2.0.

Forty-one comments narrated the development process instead of the
code: reviewer handles used as plain words (scama x8, michaelneale x1);
PR review framing ('per the review of PR #1752', 'PR #2651 review',
'Regression (PR #1718 review)', 'Review blocker (PR #1719)', 'see PR
#1011 review', 'the review concern', 'the double-submit bug in the
--republish review', 'the exact hole from the review'); orphaned review
labels ('symmetric half of the blocker', 'review defect D1', 'review
defect D10' with dangling .omo/plans pointers x2, 'Finding A' x3,
'Gap A/B' x3); citations to an untracked planning document ('plan task
12, 8.7/8.11' x4, 'Task 11's OpenAI observer'); time-bound plan-progress
clauses ('#2112 workstream 5's last step', 'workstream 5' locator x2);
change-history narration ('#2260 moved it', 'Promoted out of the
environment', thirteen 'used to'/'previously' past-bug framings); and
seven test names prefixed review_ with nothing review-specific in their
bodies (prefix dropped).

Every reword keeps the constraint, failure mode, measurement, and
number the attribution carried: the NaN-calibration refusals,
bounded-normalization contract, 4096x128 measured shape, C-reproduced
ryg_rans goldens with both SHA-256s, forged-total CDF seeding refusal,
install-id/first-run independence, sidecar-cache mtime/ctime
regression, same-ref re-pointing rule, in-flight republish skip,
stale-buffer reset on model load, single-bounded-deadline stall
rationale, O_NONBLOCK shared-description failure,
wall-clock-vs-per-request rate rationale with the 0.15/~8% history,
slots=16 VRAM math with the find_slot/HTTP 502 effect, Windows
job-object wait hang, out-of-range-id C-ABI throw, lane-index wedge,
zero-cap rejection, reporter ring design constraints, SWA-width
fallback crash mode, native-MTP accept-and-skip contract, native-
context OOM headroom math, graph-reuse counter visibility, and the
evidence-marker overclaim failure all survive verbatim or tightened to
present tense.

Kept deliberately: the repo's issue-citation convention (~85 sites) -
(#1650 first slice), (#1652), (#1750 format), (#2218) frame budgets,
(#1538) Windows socket constraints, (#2112)/(#1581)/(#1037)/(#1935)
measurement provenance with the numbers in-comment, mesh-llm#1166,
issue #1162 TODOs, #3067, #2232 pre-migration golden provenance - and
all payload data (fix#123 fixture, pilot.jianyang.cloud hostnames,
'maintainer' login, HF pull-request API docs). Ordinary-English 'used
to'/'previously' ('used to bound', 'previously submitted') kept as-is.

Left for a separate pass: process narration in docs/** prose,
llama_cpp/patches/** (editing patch content breaks the queue), and
generated skippy-ffi bindings. The repo skill
.agents/skills/process-artifact-scan/SKILL.md documents the scan;
this commit's additions to it (untracked) record the orphaned-label,
plan-doc-citation, and workstream families the first sweep missed.

Diff is comment-only plus the seven test-name identifier renames
(verified mechanically via git diff -U0; zero other non-comment lines).
cargo fmt --check clean; cargo check clean on all eleven touched
crates; renamed anthropic_contract suite passes 18/18; doc tests
pass. Two fresh-eyes adversarial review rounds run; every finding
fixed.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 059a9d38-d0de-40e6-adfa-9a01cb10d33f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@i386 i386 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤖 Reviewed at b55fc22. Verdict: behavior-neutral as claimed — approve-ready once CI lands green at this head.

Verified mechanically, against the merge base 1f3b033 (the branch predates main's #265/#270 llama-upgrade landings; the PR merges cleanly):

  • Stripping all comments from every changed file and diffing base against head leaves exactly two kinds of delta: comment rewordings (dropping reviewer handles, "Finding A"/"Gap B"/"per the review" and plan-task references) and the seven declared review_ renames in anthropic_contract.rs. 25 of the 32 files are byte-identical after comment-stripping — no hidden code changes anywhere.
  • Zero references to the old test names anywhere on main outside the renamed file, so the renames can't break callers or string-matched inventories.
  • Scope exclusions stated in the description (docs prose, patch queue, generated bindings) hold.

One scope observation, not a merge blocker: main moved after this branch was cut (the llama-upgrade machinery and the b12843 LoRA/expert-scaling fix landed), so comments introduced by those commits are outside this sweep. A rebase onto current main before merge would let the same pass cover them.

CI note: both fork runs sat unapproved since open; approved at this head, lanes in flight.

@i386
i386 merged commit 5506087 into Mesh-LLM:main Dec 1, 2026
71 checks passed
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