feat(cmd): article command -- validate markdown articles against live system #24

Closed
opened 2026-05-24 17:09:59 +02:00 by michael · 0 comments
Owner

Goal

New article subcommand in adapters/ui/init.lua.
Validates Markdown articles -- analogous to the existing code command.

Usage

fragjan article /path/to/article.md --pack=daw-article

Workflow

1. Extract all commands from bash blocks (markdown primitive)
2. Safety check: flag dangerous commands (rm, dd, mkfs, fdisk...)
3. Output shell script: /tmp/fragjan_check_<article>.sh
4. Human reviews and approves script
5. Human runs script on OpenBSD VM, captures output
6. fragjan article output.txt --pack=daw-article-results
7. Pattern matching on output: "not found", "unknown option", "usage:"
8. Report per article

Phase 2 (later, not now)

Automate step 4-6 via SSH once trust is established.

Acceptance criteria

  • article command registered in adapters/ui/init.lua
  • --pack argument accepted
  • Delegates to runner with markdown primitive
  • Script generation with safety check output
  • Tests in test/
## Goal New `article` subcommand in `adapters/ui/init.lua`. Validates Markdown articles -- analogous to the existing `code` command. ## Usage ``` fragjan article /path/to/article.md --pack=daw-article ``` ## Workflow ``` 1. Extract all commands from bash blocks (markdown primitive) 2. Safety check: flag dangerous commands (rm, dd, mkfs, fdisk...) 3. Output shell script: /tmp/fragjan_check_<article>.sh 4. Human reviews and approves script 5. Human runs script on OpenBSD VM, captures output 6. fragjan article output.txt --pack=daw-article-results 7. Pattern matching on output: "not found", "unknown option", "usage:" 8. Report per article ``` ## Phase 2 (later, not now) Automate step 4-6 via SSH once trust is established. ## Acceptance criteria - [ ] `article` command registered in adapters/ui/init.lua - [ ] `--pack` argument accepted - [ ] Delegates to runner with markdown primitive - [ ] Script generation with safety check output - [ ] Tests in test/ ## Related - DAW/fragjan#23 (markdown primitive -- required) - DAW/fragjan#25 (daw-article pack -- uses this command)
michael added this to the Basic Version milestone 2026-05-30 16:05:10 +02:00
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#24
No description provided.