Repository navigation
docs: add command hygiene & context discipline rules - #21
Conversation
The harness runs commands with SIGPIPE ignored, so `grep <pat> <huge> | head -N` floods output with `grep: write error: Broken pipe` (grep never dies on the closed pipe) and truncates the response — a recurring self-inflicted context-waste failure. Add mandatory rules: `grep -m N` instead of `grep | head`, redirect large outputs to files before reading, bound every command's output, delegate output-heavy investigation to subagents, and never re-issue the same diagnostic command in a loop.
Review — PASSHead SHA: Security screen: PASS — docs-only diff; no secrets, no scope mismatch, no weakened guardrails; the rulebook addition (command-hygiene guidance) strengthens rather than loosens discipline and contains no embedded directives. Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — docs-only rulebook diff (+25/−0, Change class: documentation (rulebook) — 1 file, +25/−0, no runtime path. Non-runtime standards only; bed/R10/R8/R9 correctly N/A. Attribution tier Comments considered:
Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
* chore: sync gitlinks for the check-bed RunEnv cutover Record the merged check-bed-roster cutover gitlinks (plan §4.2 / F8): - charly: the pin bump adopting spec/sdk/plugin-check/plugin-fleet (#663) - plugin-check #58, plugin-fleet #21, sdk #287, spec #159 All five are at their merged default-branch HEAD (policy-B clean). Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated) * docs: re-freeze the PR body against the final head --------- Co-authored-by: atrawog <[email protected]>
…duced (#561) (#570) The pin was `behind` its remote: a leaf (`upstream:main`), so no other repo had to move first and nothing was waiting on a producer. Advanced with `charly task sync` (the pin verb's MODE=bump) in this session's own worktree. layer-strata fb75a53f9e -> 1a12cbc82a The commit it lands is the repo's own `fix(skills)!: the two skill bodies move to the repo root` (#21), which is what makes this a leaf advance and not a wave: one repo, one gitlink. `task sync` reported rc=1 and that is the charly#864/#917 guard, not this change: 427 of 431 pins have no checkout in a session worktree, so the verb advances what it can and refuses to claim success. What it advanced is what matters (4 submodules rolled, 2 pins differed from HEAD), and the one this branch keeps is the single line below. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated) Co-authored-by: Andreas Trawoeger <[email protected]>
… releases land (#1274) `charly task sync` on a tree current with origin/main (7f11b25): 74 leaf submodules rolled to their default-branch HEAD (11 moved), 321 leaf pins advanced in the index (11 moved) — 22 pins total. The five distro-* pin_map edges were re-pinned from charly's own gitlinks and did not move. Two of the moves are what this wave is for (#1273): sdk 2bfea23e -> dd87eb2c sdk#640 — a unit never runs as container root plugin-deploy-pod c87f056c -> c10caae #97 — a CDI device rides a keep-id unit via a derived devices-only spec; #95 writes the deploy entry's image before any overlay write The other 20 travelled on the same mechanism, each a merged upstream PR: charly #1275, layer-cdi #20, layer-vectorchord #13, marketplace #652, plugin-enc #11, pod-charly-mcp #15, pod-immich #23, pod-qwen3-tts #15/#13, spec #440, plus eleven unmaterialized paths advanced in the index (layer-devops-tools #8, layer-ollama-cuda #11, layer-ollama-rocm #9, layer-pre-commit #9, layer-versatiles-style #7, pod-airflow #15, pod-android-emulator-layer #21, pod-appium-server #9, pod-dbus #8, pod-jupyter-ml #15, pod-pmtiles-viewer #7). The plugin-deploy-pod advance moved engineDefaultRuntime from engine_ops.go:139-146 to 129-136, out from under the citation DESIGN A.13 records for "containerd namespace per deployment" (design/dulling.tsv). The row is re-anchored to the construct's new range and design/cite-baseline.tsv regenerated for that one row; the construct read at the new pin is the same one, and the regenerated baseline changes no other row. Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926` Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
Summary
Add a Command hygiene & context discipline section to the umbrella
AGENTS.md— the recurring self-inflicted context-waste failure wheregrep <pattern> <huge-file> | head -Nfloods output withgrep: write error: Broken pipe(the harness runs commands with SIGPIPE ignored, so grep never dies on the closed pipe and prints EPIPE per failed write) and truncates the response.The new rules are mandatory:
grep -m Nfor "first N matches" — nevergrep | head(grep terminates itself; no closed pipe; deterministic everywhere)grep -m N/sed -n 'a,bp'How tested
Docs-only change class. The rules are prose in the rulebook; no runtime path changed. The failure mode they address was reproduced live (hundreds of
grep: write error: Broken pipelines fromgrep | headon a multi-MB build log) and the fix (grep -m N) verified to produce clean bounded output.Rulebook compliance
grep -m N), not a workaroundChange classification
documentation reviewedAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (documentation reviewed)