AGENT SKILL

odylith-security-hardening

暂无简介

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

03 SKILL.md 正文

Security Hardening

Governance-Learning Default

Before acting on a durable error, escaped defect, failed mechanism, failed simulation, bad generated artifact, semantic drift, quality-gate miss, latency breach, architecture decision, validation result, or release-risk learning, search Casebook and related governance truth first. Read prior failed mechanisms, failed fix attempts, rejected approaches, guardrails, and validation history; do not repeat a fix path that already failed. Capture new mechanism-level learning in Casebook or Compass, and update Radar or plans, Registry, and Atlas when the learning changes planned work, component contracts, or flows.

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 this skill when a task changes Odylith's runtime trust boundary, release-asset verification, workflow supply-chain posture, daemon/process lifetime, or the documented security contract across consumer, dogfood, and detached source-local lanes.

Lane Boundary

  • Consumer lane:
    • keep ./.odylith/bin/odylith on a verified managed runtime
    • do not rely on insecure local-release or Sigstore-bypass env vars
  • Product-repo maintainer mode:
    • pinned dogfood proves the shipped runtime
    • detached source-local is the explicit live-source development posture
    • local hosted-release overrides are allowed only for bounded maintainer rehearsal

Default Flow

  • identify the active lane and the exact trust boundary first
  • inspect the launcher, runtime trust anchor, release-asset verification, and long-lived process paths before editing
  • harden code and docs together so the written contract matches the enforced boundary
  • preserve the narrow 0.1.0/0.1.1 upgrade-escape compatibility path without weakening the modern trusted-runtime contract
  • update Casebook, Radar, Registry, and Security Posture truth when the security contract changes materially
  • verify no Odylith-owned Python processes remain after the command or timeout path finishes

Canonical Commands

./.odylith/bin/odylith version --repo-root .
./.odylith/bin/odylith doctor --repo-root . --repair
./.odylith/bin/odylith reinstall --repo-root . --latest
./.odylith/bin/odylith context-engine status --repo-root .
pytest tests/unit/install/test_runtime.py tests/unit/install/test_release_assets.py tests/integration/install/test_manager.py -q
pytest tests/unit/runtime/test_odylith_context_engine_daemon_hardening.py tests/unit/runtime/test_auto_update_mermaid_diagrams.py tests/unit/runtime/test_sync_cli_compat.py -q

Rules

  • Fail closed on ambiguous runtime or release trust.
  • Prefer immutable workflow/action pins over floating tags.
  • Do not describe detached source-local as a secure immutable lane.
  • Keep process-lifetime fixes honest: no retry loop or timeout path is done until the owned Python process exits.

04 同仓库更多 Skills