Parallel fleet audit (2 background agents) + direct work: - src/commands/memory.mjs: `memory put --allow-secrets` was read as `flags.allowSecrets` (camelCase) but the CLI parser only emits kebab-case keys, so the flag was always undefined/false. Fixed to `flags['allow-secrets']`. - Docs: `lh graph --brief` was referenced 14x across 5 agent.md files, harness.instructions.md, 4 SKILL.md files, onboard.prompt.md, and README, but `lh graph` has no --brief flag (terse output is already the default, --json/--severity are the only flags). Corrected every reference to match actual CLI surface. - .github/workflows/ci.yml: run npm install/validate/test on node 20+22. - Self-dogfooded `lh init --yes` in this repo, producing .agents/ (harness.config.json, architecture.md, conventions.md, memory shards). `lh doctor` now reports all required checks green. - Deduped .gitignore harness block against init's auto-managed block. Verified: 53/53 tests pass, validate 0 errors, doctor all-green. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1.6 KiB
1.6 KiB
applyTo, description
| applyTo | description |
|---|---|
| ** | Always-on lean harness behavior, token discipline, style, self-documenting rules, and scope guardrails. |
Lean Harness Rules
Token discipline
- Prefer
lh index --budget <N>over raw tree reads. - Prefer
lh graphover verbose diagnostics. - Load only
.agents/memory/INDEX.mdby default. - Pull memory shards only on demand with
lh memory get. - Return summaries, tables, and paths instead of file dumps.
- Keep skill bodies short. Use agents and
lhcommands for detail.
Imperative style
- Write commands as actions.
- Use short lines.
- Avoid motivational prose.
- Avoid generic LLM advice.
- State inputs, outputs, gates, and stop conditions.
Self-documenting work
- Write decisions to
.agents/specs/<slug>/decisions.md. - Write specs to
.agents/specs/<slug>/spec.md. - Write DAGs to
.agents/specs/<slug>/plan.dag.json. - Write run events to
.agents/runs/<id>/events.ndjsonthroughlh run event. - Write journals to
.agents/runs/<id>/journal.md. - Keep ADRs inside
.agents/architecture.md. - Keep durable conventions in
.agents/conventions.md.
Scope rule
- Respect lane scope globs exactly.
- Create write lanes with
lh lane createbefore editing. - Work inside the assigned worktree for write lanes.
- Never create files outside the lane scope.
- Stop and escalate when required scope is missing.
- Run
lh graphbefore claiming done.
Pipeline rule
- Design before plan.
- Require user gate after design.
- Plan before build unless fast track applies.
- Run Ralph loop for every write lane.
- Merge lanes sequentially.
- Run one full verify after integration.