session-handover: fragjan MVP done -- next: .fragjan config, version handling, exclude rules #6

Closed
opened 2026-05-19 07:50:23 +02:00 by michael · 11 comments
Owner

Session Handover

Status

fragjan MVP laeuft. Erster erfolgreicher Lauf gegen fragjan, merkwerk,
steurjan und openbookregister. Zwei Primitive installiert:

  • fragjan-check-linecount 0.1.0
  • fragjan-check-pattern 0.1.0

Naechste Schritte

Issue #5 -- .fragjan Projekt-Konfiguration
lib/, test/, dist/, var/ werden mitgescannt.
.fragjan Datei analog .merkwerk im Projektroot:

[project]
name = fragjan
type = lua-api

[check]
exclude = lib/, test/, dist/, var/

Runner liest .fragjan wenn vorhanden, sonst Defaults.
Betroffene Dateien: core/runner.lua, core/detect.lua, templates/.fragjan

lib/merkwerk.lua als Vorbild fuer version-Handling
Das Version-Problem (sed-Ersetzung fragil) kann ueber lib/merkwerk.lua
geloest werden -- liest VERSION-Datei zur Laufzeit.
Gleiches Muster gibt es vermutlich auch fuer Shell-Scripte.
Vor naechstem make release anschauen und Issue erstellen.
Betrifft: fragjan-check-linecount, fragjan-check-pattern und alle
kuenftigen Primitive/Module.

Regel: fs.lua ist Ausnahme fuer no-direct-io
daw.common.fs selbst darf io.open nutzen -- ist der Wrapper.
Regel braucht eine Ausnahme-Moeglichkeit:

check:
  primitive: daw.fragjan.check.pattern
  pattern: "io.open"
  exclude_pattern: "daw.common.fs"   # TODO: noch nicht implementiert

Oder eigene Regel-Datei fuer fs.lua.

Issue #4 -- --pack daw-code (Leerzeichen)
Parser unterstuetzt nur --pack=daw-code mit Gleichheitszeichen.
Liegt in berhtjan-cli dispatch.lua.

Bekannte false positives

  • Kommentare die "io.open" als Text enthalten werden gefunden
  • lib/ Submodule werden mitgescannt (-> Issue #5)
  • fs.lua selbst schlaegt an (-> Ausnahme-Regel)
  • var/modules/ Primitive schlagen an (-> Issue #5)

Offene Issues in fragjan

  • #4: --pack ohne = funktioniert nicht
  • #5: .fragjan Projekt-Konfiguration fuer Scan-Ausschluss

Offene Issues in anderen Repos

  • daw-docs #10: Wrapper-Standard aktualisieren
  • merkwerk #34: Lua-Version-Check im Wrapper
  • merkwerk #35: DAW_CONF_DIR im Dev-Modus
  • tool-gitea-workflow #34: --repo Parameter fuer create_issue.sh
  • daw-docs #9: daw-lua-net in Submodul-Dokumentation
## Session Handover ### Status fragjan MVP laeuft. Erster erfolgreicher Lauf gegen fragjan, merkwerk, steurjan und openbookregister. Zwei Primitive installiert: - fragjan-check-linecount 0.1.0 - fragjan-check-pattern 0.1.0 ### Naechste Schritte **Issue #5 -- .fragjan Projekt-Konfiguration** lib/, test/, dist/, var/ werden mitgescannt. .fragjan Datei analog .merkwerk im Projektroot: ```ini [project] name = fragjan type = lua-api [check] exclude = lib/, test/, dist/, var/ ``` Runner liest .fragjan wenn vorhanden, sonst Defaults. Betroffene Dateien: core/runner.lua, core/detect.lua, templates/.fragjan **lib/merkwerk.lua als Vorbild fuer version-Handling** Das Version-Problem (sed-Ersetzung fragil) kann ueber lib/merkwerk.lua geloest werden -- liest VERSION-Datei zur Laufzeit. Gleiches Muster gibt es vermutlich auch fuer Shell-Scripte. Vor naechstem make release anschauen und Issue erstellen. Betrifft: fragjan-check-linecount, fragjan-check-pattern und alle kuenftigen Primitive/Module. **Regel: fs.lua ist Ausnahme fuer no-direct-io** daw.common.fs selbst darf io.open nutzen -- ist der Wrapper. Regel braucht eine Ausnahme-Moeglichkeit: ```yaml check: primitive: daw.fragjan.check.pattern pattern: "io.open" exclude_pattern: "daw.common.fs" # TODO: noch nicht implementiert ``` Oder eigene Regel-Datei fuer fs.lua. **Issue #4 -- --pack daw-code (Leerzeichen)** Parser unterstuetzt nur --pack=daw-code mit Gleichheitszeichen. Liegt in berhtjan-cli dispatch.lua. ### Bekannte false positives - Kommentare die "io.open" als Text enthalten werden gefunden - lib/ Submodule werden mitgescannt (-> Issue #5) - fs.lua selbst schlaegt an (-> Ausnahme-Regel) - var/modules/ Primitive schlagen an (-> Issue #5) ### Offene Issues in fragjan - #4: --pack ohne = funktioniert nicht - #5: .fragjan Projekt-Konfiguration fuer Scan-Ausschluss ### Offene Issues in anderen Repos - daw-docs #10: Wrapper-Standard aktualisieren - merkwerk #34: Lua-Version-Check im Wrapper - merkwerk #35: DAW_CONF_DIR im Dev-Modus - tool-gitea-workflow #34: --repo Parameter fuer create_issue.sh - daw-docs #9: daw-lua-net in Submodul-Dokumentation
Author
Owner

Regel: fs.lua ist Ausnahme fuer no-direct-io

oder als alternative in der fs datei ein -- !fragjan.no-direct-io:file könnte man auch machen ... wie bei anderen lintern auch ... dann ist es unabhängig vom filenamen ... aber nur eine idee zum diskutieren.

Regel: fs.lua ist Ausnahme fuer no-direct-io oder als alternative in der fs datei ein -- !fragjan.no-direct-io:file könnte man auch machen ... wie bei anderen lintern auch ... dann ist es unabhängig vom filenamen ... aber nur eine idee zum diskutieren.
Author
Owner

Session 2026-05-19

  • [OK] Issue #5 implemented: .fragjan config support for scan exclusions
  • [OK] core/detect.lua: read_fragjan_config() + get_project_excludes()
  • [OK] core/runner.lua: prefix-based exclude matching, merges project + rule excludes
  • [OK] templates/config/.fragjan.example added
  • [OK] .fragjan added to fragjan repo root (excludes lib/, test/, var/, .temp/)
  • [OK] Verified against merkwerk: 98 files checked, 1 warning (legitimate)
  • [OK] Issue #9 created: feat(pattern): add skip_comments parameter to pattern primitive

Next:

  • Issue #9: skip_comments in pattern primitive + no-direct-io.yaml anpassen
  • Issue #4: --pack ohne = (Leerzeichen) in berhtjan-cli dispatch.lua
  • version-Handling via VERSION-Datei (analog lib/merkwerk.lua) -- Issue noch offen
## Session 2026-05-19 - [OK] Issue #5 implemented: .fragjan config support for scan exclusions - [OK] core/detect.lua: read_fragjan_config() + get_project_excludes() - [OK] core/runner.lua: prefix-based exclude matching, merges project + rule excludes - [OK] templates/config/.fragjan.example added - [OK] .fragjan added to fragjan repo root (excludes lib/, test/, var/, .temp/) - [OK] Verified against merkwerk: 98 files checked, 1 warning (legitimate) - [OK] Issue #9 created: feat(pattern): add skip_comments parameter to pattern primitive Next: - [ ] Issue #9: skip_comments in pattern primitive + no-direct-io.yaml anpassen - [ ] Issue #4: --pack ohne = (Leerzeichen) in berhtjan-cli dispatch.lua - [ ] version-Handling via VERSION-Datei (analog lib/merkwerk.lua) -- Issue noch offen
Author
Owner

Session 2026-05-19 (2)

  • [OK] Issue #9 implemented: skip_comments parameter in pattern primitive
  • [OK] var/modules/fragjan-check-pattern/init.lua: Lua + Shell comment filtering
  • [OK] var/rules/daw-code/rules/no-direct-io.yaml: skip_comments: true
  • [OK] Verified: fragjan selbst 0 warnings, merkwerk 1 (legitim), daw-module-manager 9 (legitim)
  • [OK] Issue #10 created: rule packs need own repositories and install lifecycle
  • [OK] Issue #11 created: [SUMMARY] tag + double space fix in reporter.lua
  • [OK] Issue #12 created (daw-docs): CLI command check -> code in MVP doc

Next:

  • Issue #11: fix reporter.lua summary output
  • Issue #4: --pack ohne = in berhtjan-cli dispatch.lua
  • Issue #10: rule pack repositories (groesseres Thema, spaeter)
## Session 2026-05-19 (2) - [OK] Issue #9 implemented: skip_comments parameter in pattern primitive - [OK] var/modules/fragjan-check-pattern/init.lua: Lua + Shell comment filtering - [OK] var/rules/daw-code/rules/no-direct-io.yaml: skip_comments: true - [OK] Verified: fragjan selbst 0 warnings, merkwerk 1 (legitim), daw-module-manager 9 (legitim) - [OK] Issue #10 created: rule packs need own repositories and install lifecycle - [OK] Issue #11 created: [SUMMARY] tag + double space fix in reporter.lua - [OK] Issue #12 created (daw-docs): CLI command check -> code in MVP doc Next: - [ ] Issue #11: fix reporter.lua summary output - [ ] Issue #4: --pack ohne = in berhtjan-cli dispatch.lua - [ ] Issue #10: rule pack repositories (groesseres Thema, spaeter)
Author
Owner

Session 2026-05-19 (3)

  • [OK] Issue #11 fixed: [SUMMARY] tag + double space in reporter.lua
  • [OK] Issue #12 created (daw-docs): CLI command check -> code in MVP doc
  • [OK] DAW/daw-modul-berhtjan-cli#2 created: --flag value support in dispatch
  • [BLOCKED] Issue #4: handed off to daw-modul-berhtjan-cli team

Next:

## Session 2026-05-19 (3) - [OK] Issue #11 fixed: [SUMMARY] tag + double space in reporter.lua - [OK] Issue #12 created (daw-docs): CLI command check -> code in MVP doc - [OK] DAW/daw-modul-berhtjan-cli#2 created: --flag value support in dispatch - [BLOCKED] Issue #4: handed off to daw-modul-berhtjan-cli team Next: - [ ] DAW/daw-docs#12: update fragjan-mvp.md check -> code - [ ] Issue #9: push + make upgrade (pattern primitive + no-direct-io.yaml) - [ ] Wait for DAW/daw-modul-berhtjan-cli#2 response
Author
Owner

Session 2026-05-19 (4)

  • [OK] New rules added to daw-code pack: no-os-exit, no-lua-hardcode, no-old-namespace
  • [OK] core/runner.lua: comma-separated file_exclude support
  • [OK] Verified against fragjan, merkwerk, daw-lua-common, daw-module-manager, berhtjan-cli, berhtjan-core
  • [OK] Issue #13 created: require inventory feature

Next:

## Session 2026-05-19 (4) - [OK] New rules added to daw-code pack: no-os-exit, no-lua-hardcode, no-old-namespace - [OK] core/runner.lua: comma-separated file_exclude support - [OK] Verified against fragjan, merkwerk, daw-lua-common, daw-module-manager, berhtjan-cli, berhtjan-core - [OK] Issue #13 created: require inventory feature Next: - [ ] DAW/daw-docs#12: update fragjan-mvp.md check -> code - [ ] Issue #10: rule pack repositories (groesseres Thema, spaeter) - [ ] DAW/daw-modul-berhtjan-cli#2: --flag value support (waiting for team)
Author
Owner

Session 2026-05-19 (5)

  • [OK] Issue #14 implemented: target_type: project support in runner
  • [OK] fragjan-check-exists 0.1.0 primitive: new repo, built, released, installed
  • [OK] module-conf-exists rule: first project-level rule
  • [OK] file_count now from runner.run() -- excludes respected
  • [OK] Verified: kaupapi [ERROR] config/module.conf missing, Exit 2
  • [OK] Issue #15 created: exclude_rules in .fragjan config

Next:

  • Issue #15: exclude_rules support in .fragjan
  • Issue #13: verbose mode
  • DAW/daw-docs#12: update fragjan-mvp.md check -> code
  • Issue #10: rule pack repositories
## Session 2026-05-19 (5) - [OK] Issue #14 implemented: target_type: project support in runner - [OK] fragjan-check-exists 0.1.0 primitive: new repo, built, released, installed - [OK] module-conf-exists rule: first project-level rule - [OK] file_count now from runner.run() -- excludes respected - [OK] Verified: kaupapi [ERROR] config/module.conf missing, Exit 2 - [OK] Issue #15 created: exclude_rules in .fragjan config Next: - [ ] Issue #15: exclude_rules support in .fragjan - [ ] Issue #13: verbose mode - [ ] DAW/daw-docs#12: update fragjan-mvp.md check -> code - [ ] Issue #10: rule pack repositories
Author
Owner

Session 2026-05-19 (6)

  • [OK] Issue #14 implemented: target_type: project support in runner
  • [OK] fragjan-check-exists 0.1.0 released and installed
  • [OK] module-conf-exists rule: first project-level rule
  • [OK] file_count now from runner.run() -- excludes respected
  • [OK] Issue #15 created: exclude_rules in .fragjan config
  • [OK] Issue #16 created: daw-project pack planning
  • [OK] daw-project-standard.md reviewed -- Rules identified

Next:

  • Issue #16: daw-project pack -- exists rules first
  • New primitive: daw.fragjan.check.contains (project-level)
  • Multiple packs support in runner
  • Issue #15: exclude_rules in .fragjan
  • DAW/daw-docs#12: update fragjan-mvp.md check -> code
## Session 2026-05-19 (6) - [OK] Issue #14 implemented: target_type: project support in runner - [OK] fragjan-check-exists 0.1.0 released and installed - [OK] module-conf-exists rule: first project-level rule - [OK] file_count now from runner.run() -- excludes respected - [OK] Issue #15 created: exclude_rules in .fragjan config - [OK] Issue #16 created: daw-project pack planning - [OK] daw-project-standard.md reviewed -- Rules identified Next: - [ ] Issue #16: daw-project pack -- exists rules first - [ ] New primitive: daw.fragjan.check.contains (project-level) - [ ] Multiple packs support in runner - [ ] Issue #15: exclude_rules in .fragjan - [ ] DAW/daw-docs#12: update fragjan-mvp.md check -> code
Author
Owner

Session 2026-05-19 (9) -- final

  • [OK] daw-module pack tested against daw-modul-git
  • [OK] Issue #18 created: lua-metadata primitive for init.lua block analysis
  • [OK] init-has-* rules kept in daw-module pack, known false positives documented

Status fragjan v0.1.5:
Packs: daw-code (7 rules), daw-project (17 rules), daw-module (10 rules)
Primitives: linecount, pattern, exists, contains
Tested against: fragjan, merkwerk, steurjan, daw-lua-common,
daw-module-manager, berhtjan-cli, berhtjan-core,
kaupapi, daw-modul-git

Open for next session:

  • Issue #17: project-level check count in summary
  • Issue #15: exclude_rules in .fragjan
  • Issue #18: lua-metadata primitive
  • Multiple packs support in runner (.fragjan packs = daw-code, daw-project)
  • DAW/daw-docs#12: update fragjan-mvp.md check -> code
  • daw-modul-git: fix LICENSE, add .merkwerk, fix init.lua metadata
## Session 2026-05-19 (9) -- final - [OK] daw-module pack tested against daw-modul-git - [OK] Issue #18 created: lua-metadata primitive for init.lua block analysis - [OK] init-has-* rules kept in daw-module pack, known false positives documented Status fragjan v0.1.5: Packs: daw-code (7 rules), daw-project (17 rules), daw-module (10 rules) Primitives: linecount, pattern, exists, contains Tested against: fragjan, merkwerk, steurjan, daw-lua-common, daw-module-manager, berhtjan-cli, berhtjan-core, kaupapi, daw-modul-git Open for next session: - [ ] Issue #17: project-level check count in summary - [ ] Issue #15: exclude_rules in .fragjan - [ ] Issue #18: lua-metadata primitive - [ ] Multiple packs support in runner (.fragjan packs = daw-code, daw-project) - [ ] DAW/daw-docs#12: update fragjan-mvp.md check -> code - [ ] daw-modul-git: fix LICENSE, add .merkwerk, fix init.lua metadata
Author
Owner

Continued in new handover issue.

Continued in new handover issue.
Author
Owner

./tools/gitea/update_issue.sh 6 --comment "## Session 2026-05-19 (8)

  • [OK] daw-module pack: 10 rules (exists + contains + pattern on init.lua)
  • [OK] runner: exact filename support in file_pattern (init.lua etc.)
  • [OK] adapter: fix nil result propagation from primitive.check()
  • [OK] fragjan-check-contains 0.1.1: skip when file not readable
  • [OK] fragjan-check-contains 0.1.2: skip instead of warn for missing file
  • [OK] v0.1.5 released, all three packs installed

Tested against:
daw-modul-git: 3 errors (LICENSE, .fragjan, .merkwerk missing), 4 skips
fragjan: [OK] all packs clean

Open:

  • Issue #17: project-level check count in summary
  • Issue #15: exclude_rules in .fragjan
  • Multiple packs support in runner
  • DAW/daw-docs#12: update fragjan-mvp.md check -> code
  • daw-modul-git: fix LICENSE, add .fragjan, .merkwerk"
./tools/gitea/update_issue.sh 6 --comment "## Session 2026-05-19 (8) - [OK] daw-module pack: 10 rules (exists + contains + pattern on init.lua) - [OK] runner: exact filename support in file_pattern (init.lua etc.) - [OK] adapter: fix nil result propagation from primitive.check() - [OK] fragjan-check-contains 0.1.1: skip when file not readable - [OK] fragjan-check-contains 0.1.2: skip instead of warn for missing file - [OK] v0.1.5 released, all three packs installed Tested against: daw-modul-git: 3 errors (LICENSE, .fragjan, .merkwerk missing), 4 skips fragjan: [OK] all packs clean Open: - [ ] Issue #17: project-level check count in summary - [ ] Issue #15: exclude_rules in .fragjan - [ ] Multiple packs support in runner - [ ] DAW/daw-docs#12: update fragjan-mvp.md check -> code - [ ] daw-modul-git: fix LICENSE, add .fragjan, .merkwerk"
Author
Owner

Session 2026-05-19 (7)

  • [OK] fragjan-check-contains 0.1.0 released and installed
  • [OK] daw-project pack v1: 17 rules (exists + contains)
    • Mandatory files: LICENSE, Makefile, README.md, .gitignore, VERSION,
      .merkwerk, .fragjan, .version_history
    • .gitignore compliance: .env, .temp, dist/ required; .merkwerk,
      .version_history forbidden
    • LICENSE checks: ISC License, Dragons@Work, year, no edit note
  • [OK] fragjan itself fixed by daw-project pack (LICENSE, .merkwerk)
  • [OK] Issue #17 created: project-level check count in summary
  • [OK] v0.1.4 released, system upgraded

Tested against:
fragjan: [OK] 0 warnings, 0 errors
merkwerk: 3 warnings (LICENSE, .gitignore)
openbooknumber: 2 warnings, 2 errors (not yet migrated)
steurjan: [OK] 0 warnings, 0 errors

Next:

  • Issue #17: project-level check count in summary
  • Issue #15: exclude_rules in .fragjan
  • Issue #16: daw-module pack (lib/, tools/ in .gitignore, init.lua metadata)
  • Multiple packs support in runner
  • DAW/daw-docs#12: update fragjan-mvp.md check -> code
## Session 2026-05-19 (7) - [OK] fragjan-check-contains 0.1.0 released and installed - [OK] daw-project pack v1: 17 rules (exists + contains) - Mandatory files: LICENSE, Makefile, README.md, .gitignore, VERSION, .merkwerk, .fragjan, .version_history - .gitignore compliance: .env, .temp, dist/ required; .merkwerk, .version_history forbidden - LICENSE checks: ISC License, Dragons@Work, year, no edit note - [OK] fragjan itself fixed by daw-project pack (LICENSE, .merkwerk) - [OK] Issue #17 created: project-level check count in summary - [OK] v0.1.4 released, system upgraded Tested against: fragjan: [OK] 0 warnings, 0 errors merkwerk: 3 warnings (LICENSE, .gitignore) openbooknumber: 2 warnings, 2 errors (not yet migrated) steurjan: [OK] 0 warnings, 0 errors Next: - [ ] Issue #17: project-level check count in summary - [ ] Issue #15: exclude_rules in .fragjan - [ ] Issue #16: daw-module pack (lib/, tools/ in .gitignore, init.lua metadata) - [ ] Multiple packs support in runner - [ ] DAW/daw-docs#12: update fragjan-mvp.md check -> code
michael added this to the Basic Version milestone 2026-05-30 16:05:20 +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#6
No description provided.