session: handover 2026-06-04 -- logging stack complete, mainjan concept ready #126

Closed
opened 2026-06-04 11:23:52 +02:00 by michael · 1 comment
Owner

Session summary 2026-06-04

Completed

  • adapters/log implemented and deployed (DAW/fragjan#118)
  • daw.log.file v0.1.3 installed and working
  • Level filtering working: fragjan.log empty, fragjan.debug.log full
  • core/runner/file.lua: emit_log() routes to both adapters/ui and adapters/log
  • gen-module-map.sh: fixed common submodule discovery (fs/init.lua etc.)
  • core/modules/validator.lua: mod.adapters support (fallback to mod.provides)
  • mainjan-konzept.md v7: concept complete, implementation-ready
  • DAW/fragjan#95 closed (daw.common.log superseded)
  • DAW/fragjan#96 closed (DEBUG is a level, no separate module needed)
  • test/test_log_adapter.lua: 25 tests, passing on Lua 5.1 and 5.4

Open issues from this session

  • DAW/fragjan#123 -- no hardcoded installed module references in adapters
  • DAW/fragjan#124 -- installable modules must be stateless (M.new())
  • DAW/fragjan#125 -- modules must declare M.adapters explicitly
  • DAW/daw-modul-log-file (open) -- M.new() for instantiability
  • DAW/daw-modul-log-file (open) -- M.adapters = { "log" } migration

Next session priorities

  1. mainjan -- start implementation (DAW/daw-lua-mainjan repo)
  2. DAW/fragjan#124 -- stateless module rule (fragjan check)
  3. DAW/fragjan#125 -- module-has-adapters rule
  4. ctx refactor -- build ctx in main.lua, not in adapters/ui.build_ctx()

Architecture decisions made

  • adapters/log uses mod_modules.resolve() -- no hardcoded module names
  • Log backends discovered via capability "log-file", "log-syslog"
  • M.adapters separates adapter validation from capability declaration
  • mainjan: registry + memory, push+pull sync, JSONL export/import
  • mainjan: max 5 hops, first_available policy for v1
  • daw.common.log: not needed -- callers build daw_log/v1 inline

Key files changed

  • adapters/log/init.lua
  • core/modules/validator.lua
  • core/runner/file.lua (emit_log)
  • scripts/gen-module-map.sh
  • test/test_log_adapter.lua (new)
  • docs/projects/mainjan/mainjan-konzept.md (new)
## Session summary 2026-06-04 ### Completed - adapters/log implemented and deployed (DAW/fragjan#118) - daw.log.file v0.1.3 installed and working - Level filtering working: fragjan.log empty, fragjan.debug.log full - core/runner/file.lua: emit_log() routes to both adapters/ui and adapters/log - gen-module-map.sh: fixed common submodule discovery (fs/init.lua etc.) - core/modules/validator.lua: mod.adapters support (fallback to mod.provides) - mainjan-konzept.md v7: concept complete, implementation-ready - DAW/fragjan#95 closed (daw.common.log superseded) - DAW/fragjan#96 closed (DEBUG is a level, no separate module needed) - test/test_log_adapter.lua: 25 tests, passing on Lua 5.1 and 5.4 ### Open issues from this session - DAW/fragjan#123 -- no hardcoded installed module references in adapters - DAW/fragjan#124 -- installable modules must be stateless (M.new()) - DAW/fragjan#125 -- modules must declare M.adapters explicitly - DAW/daw-modul-log-file (open) -- M.new() for instantiability - DAW/daw-modul-log-file (open) -- M.adapters = { "log" } migration ### Next session priorities 1. mainjan -- start implementation (DAW/daw-lua-mainjan repo) 2. DAW/fragjan#124 -- stateless module rule (fragjan check) 3. DAW/fragjan#125 -- module-has-adapters rule 4. ctx refactor -- build ctx in main.lua, not in adapters/ui.build_ctx() ### Architecture decisions made - adapters/log uses mod_modules.resolve() -- no hardcoded module names - Log backends discovered via capability "log-file", "log-syslog" - M.adapters separates adapter validation from capability declaration - mainjan: registry + memory, push+pull sync, JSONL export/import - mainjan: max 5 hops, first_available policy for v1 - daw.common.log: not needed -- callers build daw_log/v1 inline ### Key files changed - adapters/log/init.lua - core/modules/validator.lua - core/runner/file.lua (emit_log) - scripts/gen-module-map.sh - test/test_log_adapter.lua (new) - docs/projects/mainjan/mainjan-konzept.md (new)
michael added this to the Basic Version milestone 2026-06-04 11:29:36 +02:00
Author
Owner

Closing: handover of 2026-06-04 is superseded

The logging stack from this handover is done (DAW/fragjan#117, DAW/fragjan#118). The remaining items are tracked in their own issues:

## Closing: handover of 2026-06-04 is superseded The logging stack from this handover is done (DAW/fragjan#117, DAW/fragjan#118). The remaining items are tracked in their own issues: - DAW/fragjan#124 -- stateless modules rule - DAW/fragjan#125 -- module-has-adapters rule - DAW/fragjan#123 -- hardcoded module references (code done, rule open) - DAW/fragjan#128 -- mainjan integration - DAW/fragjan#149 -- build ctx in the host (replaces "ctx refactor")
michael 2026-11-21 16:15:53 +01: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#126
No description provided.