feat(pack): daw-article -- validate OpenBSD articles against live system #25

Open
opened 2026-05-24 17:10:00 +02:00 by michael · 0 comments
Owner

Goal

Rule pack for validating DAW articles (Markdown) against a live OpenBSD
system. Catches AI hallucinations before publishing.

Background

~70% error rate in AI-generated OpenBSD articles.
Manual review takes ~3 days per article, 40+ articles pending.
OpenBSD 7.9 released 2026-05-19 -- all articles need re-validation.

Workflow

fragjan article artikel.md --pack=daw-article
  -> extract commands
  -> safety check
  -> generate /tmp/fragjan_check.sh

sh /tmp/fragjan_check.sh > /tmp/fragjan_output.txt  (on OpenBSD VM)

fragjan article /tmp/fragjan_output.txt --pack=daw-article-results
  -> report errors per article

Required primitives

  • daw.fragjan.check.markdown (DAW/fragjan#20)
  • daw.fragjan.check.pattern (existing)
  • daw.fragjan.check.contains (existing)

Rule categories

Static (pattern/contains, no VM needed)

  • no-corporate-refs -- no google.com, cloudflare.com, 8.8.8.8
  • no-comparative-language -- no "ersetzt", "statt", "im Gegensatz zu"
  • bash-blocks-tagged -- shell blocks use bash not plain
  • no-sudo-refs -- no sudo (OpenBSD uses doas)

Safety check (before script execution)

  • cmd-safety-check -- flag rm, dd, mkfs, fdisk, newfs, kill -9

Output analysis (pattern on captured output)

  • cmd-not-found -- match "not found", "No such file"
  • cmd-unknown-option -- match "unknown option", "illegal option"
  • cmd-usage-error -- match "^usage:"
  • sysctl-not-found -- match "sysctl: .*: value is not available"

Frontmatter (markdown primitive)

  • frontmatter-author -- author field present
  • frontmatter-tags -- tags field present and non-empty
  • frontmatter-version -- check OpenBSD version references

Acceptance criteria

  • Pack runs against sample articles without crash
  • Static rules fire on known bad patterns
  • Safety check flags dangerous commands
  • Output analysis catches common error patterns
  • Summary shows error count per article
## Goal Rule pack for validating DAW articles (Markdown) against a live OpenBSD system. Catches AI hallucinations before publishing. ## Background ~70% error rate in AI-generated OpenBSD articles. Manual review takes ~3 days per article, 40+ articles pending. OpenBSD 7.9 released 2026-05-19 -- all articles need re-validation. ## Workflow ``` fragjan article artikel.md --pack=daw-article -> extract commands -> safety check -> generate /tmp/fragjan_check.sh sh /tmp/fragjan_check.sh > /tmp/fragjan_output.txt (on OpenBSD VM) fragjan article /tmp/fragjan_output.txt --pack=daw-article-results -> report errors per article ``` ## Required primitives - daw.fragjan.check.markdown (DAW/fragjan#20) - daw.fragjan.check.pattern (existing) - daw.fragjan.check.contains (existing) ## Rule categories ### Static (pattern/contains, no VM needed) - `no-corporate-refs` -- no google.com, cloudflare.com, 8.8.8.8 - `no-comparative-language` -- no "ersetzt", "statt", "im Gegensatz zu" - `bash-blocks-tagged` -- shell blocks use ```bash not plain ``` - `no-sudo-refs` -- no sudo (OpenBSD uses doas) ### Safety check (before script execution) - `cmd-safety-check` -- flag rm, dd, mkfs, fdisk, newfs, kill -9 ### Output analysis (pattern on captured output) - `cmd-not-found` -- match "not found", "No such file" - `cmd-unknown-option` -- match "unknown option", "illegal option" - `cmd-usage-error` -- match "^usage:" - `sysctl-not-found` -- match "sysctl: .*: value is not available" ### Frontmatter (markdown primitive) - `frontmatter-author` -- author field present - `frontmatter-tags` -- tags field present and non-empty - `frontmatter-version` -- check OpenBSD version references ## Acceptance criteria - [ ] Pack runs against sample articles without crash - [ ] Static rules fire on known bad patterns - [ ] Safety check flags dangerous commands - [ ] Output analysis catches common error patterns - [ ] Summary shows error count per article ## Related - DAW/fragjan#23 (markdown primitive -- required) - DAW/fragjan#24 (article command -- required)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#25
No description provided.