mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 06:23:17 -10:00
A new project skill, .agents/skills/codebase-standards/, curated from
what reviews of devvm's whole history kept finding. A standard stays
only when it recurred or was costly, and a contributor can apply it
while writing or reviewing; what the linters and the structure test
enforce is only in rules.md's guard tables.
- SKILL.md: the checklist of 13 standards in four groups (safety,
failures and processes, changes, tests), a Match the codebase
section (names and files, comments, errors, dependencies as fields,
table tests, scripts in the VM, prose), how to review a change, and
the bar for adding a standard.
- standards.md: one section per standard, with its rule, what the
reviews found and its guard:
- Fail closed, on every path (a weaker mode only when visible,
documented and chosen, as the proxy's warn-and-run without a
sandbox)
- Bound what you don't control (listeners, locks, overflow, a capping
writer that doesn't embed its buffer)
- Treat what a VM can write as hostile (descriptors, signed sources
and re-hashing, escaping, host tools by absolute path)
- Keep secrets and host data on the host (no argv or shared
environment, allowlists into the VM, logs redacted)
- Parse once, with a real parser (IPv6 and its IPv4-carrying forms)
- Never fail silently, and name the real cause
- Give every process an owner that ends it (accept loops included)
- Survive a kill and a second devvm (one good copy, OS file locks)
- Extend the owner, and wait for a third copy (an existing owner is
always extended; a copy of a judge gets one owner at once)
- Mind what's already running and released
- Claim only what the code does, where precision belongs (headline
pages keep their short claims)
- Prove each fix with a test that fails without it (outside oracles,
controls for absence checks, sandboxes proven by attack)
- Write tests that pass on any host, at any load
- rules.md: the rules whose home is AGENTS.md or Contributing, by area,
each with its guard or review only.
- AGENTS.md: a rule line for the skill and its row in the layout, and
the owner rule's wait-for-a-third clause, which Contributing's
structure page explains.
- Contributing's first paragraph links the skill.
- The docs-voice skill's scope, .vale.ini, mise run lint:docs
(markdownlint and Vale) and TestCommandLines cover the new skill.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
31 lines
1.1 KiB
INI
31 lines
1.1 KiB
INI
StylesPath = .vale/styles
|
|
MinAlertLevel = suggestion
|
|
|
|
[docs/content/**/*.md]
|
|
BasedOnStyles = devvm
|
|
# Hugo shortcodes.
|
|
TokenIgnores = ({{[<%].*?[%>]}})
|
|
|
|
[{README.md,SECURITY.md,CONTRIBUTING.md,CHANGELOG.md,assets/oci/README.md,internal/proxy/README.md}]
|
|
BasedOnStyles = devvm
|
|
|
|
# AGENTS.md is terse by design, which none of these rules check, and its
|
|
# readers are agents, so chatbot vocabulary (AIWords) is checked here too.
|
|
# Filler is off because the file names those words in the rule against them.
|
|
# The docs-voice skill's SKILL.md is off for Filler for the same reason.
|
|
[{AGENTS.md,.agents/skills/docs-voice/SKILL.md}]
|
|
BasedOnStyles = devvm
|
|
devvm.Filler = NO
|
|
|
|
# The cli skill is prose for contributors, so it gets every rule.
|
|
[.agents/skills/cli/*.md]
|
|
BasedOnStyles = devvm
|
|
|
|
# The codebase-standards skill is prose for contributors too.
|
|
[.agents/skills/codebase-standards/*.md]
|
|
BasedOnStyles = devvm
|
|
|
|
# Not checked: .agents/skills/docs-voice/tropes.md, whose lists and examples
|
|
# are the very words and quoted phrases every devvm rule flags, and
|
|
# .agents/skills/security-audit/, which is vendored.
|