AGENT SKILL

odylith-casebook-bug-preflight

暂无简介

License 许可
MIT
所属仓库
odylith/odylith
最近更新
2026-10-25
Stars
★ 36
Forks
3

03 SKILL.md 正文

odylith-casebook-bug-preflight

CLI-First Non-Negotiable

  • CLI-first is non-negotiable for both Codex and Claude Code. Remove all hand-authoring for places where Odylith CLI should be doing the heavy-lifting. When an Odylith CLI command exists for an operation, you must call the CLI command and you must not hand-edit governed files the CLI owns. Hand-authoring governed truth where a CLI exists is a hard policy violation, not a stylistic preference. The authoritative policy, CLI surface enumeration, allowed hand-edit surfaces, and failure-mode handling live in odylith/agents-guidelines/CLI_FIRST_POLICY.md, anchored by Casebook learning CB-104. The rule travels through routed spawn_agent leaves on Codex and Task-tool subagents on Claude Code, so delegated work inherits the same contract.

Use before any substantive fix, debug loop, or governed closeout slice that might need durable failure memory so the relevant bug history, workstream links, component links, and validation surfaces are grounded first.

Canonical Commands

./.odylith/bin/odylith context-engine --repo-root . governance-slice --working-tree
./.odylith/bin/odylith context-engine --repo-root . impact <paths...>
./.odylith/bin/odylith sync --repo-root . --check-only --check-clean

Rules

  • Check existing Casebook entries before opening new bug work.
  • Governance-learning: treat preflight as fail-closed for durable learning if a named failure mode, escaped defect, failed mechanism, failed simulation, live repro, bad generated artifact, semantic drift, quality-gate failure, latency breach, validator miss, or repeated-debug loop is present, the slice must link to existing Casebook truth or capture/update it before continuing.
  • Read prior failed mechanisms, failed fix attempts, rejected approaches, guardrails, and validation history before editing. Do not repeat a fix path that already failed; update the governed record with the new hypothesis and mechanism-level learning instead.
  • Search the related workstream, components, diagrams, and validation obligations alongside the bug history so you can decide whether to update an existing bug, reopen it, or capture a genuinely new failure mode.
  • Carry related bug ids or explicit no related bug found evidence into the active plan or handoff.
  • If the slice already has a named failure mode or repeated-debug loop, escalate into casebook-bug-capture in the same turn instead of deferring durable bug memory.
  • Before invoking casebook-bug-capture, gather the minimum intake evidence the backend now requires: component, reproducibility, impact, environment, detected by, failure signature, trigger path, ownership, blast radius, SLO/SLA impact, data risk, security/compliance, and invariant violated.
  • Keep reproducibility to one compact token such as High, Medium, Low, Always, Intermittent, or Consistent. Put repro commands and evidence in trigger path, failure signature, environment, or description.
  • Run odylith casebook validate --repo-root . when checking source truth without rendering; odylith casebook refresh is expected to stop before generated writes when source validation fails.
  • If that evidence is still missing, keep the slice in investigation mode instead of creating a new bug record with partial or placeholder truth.

04 同仓库更多 Skills