session/handover: v0.2.10 -- filecorrelation, reimpl rules, toward AST scanner #106

Closed
opened 2026-05-31 20:35:27 +02:00 by michael · 2 comments
Owner

Session Summary 2026-05-31 (continued)

Completed this session

  • DAW/fragjan#78 -- filecorrelation primitive spec and implementation
  • DAW/fragjan#105 -- fragjan-check-filecorrelation 0.1.0 module
  • DAW/fragjan#77 -- reimpl rules (no-raw-sha256-popen, no-raw-base64-impl, no-raw-uuid-impl)
  • fragjan-check-pattern 0.1.8 -- match_type regex support

Key insight

filecorrelation covers file-level correlation but cannot detect
reimplementations alongside legitimate requires. Real semantic
analysis requires AST-level understanding.

Codebase scan showed bare return nil is often intentional
("not found") -- distinguishing error cases from optional returns
requires function context, not line patterns.

Next session priorities

  1. DAW/fragjan#93 -- semantic nil-err check (needs AST scanner first)
  2. feat(primitive): lua structure scanner (luascan) -- contextual
    scanning of functions and return statements, foundation for
    anagild data export
  3. anagild concept -- first implementation steps

Architecture direction

fragjan (static) --> hailjan (runtime) --> anagild (learns)

AST scanner in fragjan is the first primitive that produces
structured data for anagild, not just pattern matches.

Current version

v0.2.10 (no code changes this session, rules and modules only)

## Session Summary 2026-05-31 (continued) ### Completed this session - DAW/fragjan#78 -- filecorrelation primitive spec and implementation - DAW/fragjan#105 -- fragjan-check-filecorrelation 0.1.0 module - DAW/fragjan#77 -- reimpl rules (no-raw-sha256-popen, no-raw-base64-impl, no-raw-uuid-impl) - fragjan-check-pattern 0.1.8 -- match_type regex support ### Key insight filecorrelation covers file-level correlation but cannot detect reimplementations alongside legitimate requires. Real semantic analysis requires AST-level understanding. Codebase scan showed bare `return nil` is often intentional ("not found") -- distinguishing error cases from optional returns requires function context, not line patterns. ### Next session priorities 1. DAW/fragjan#93 -- semantic nil-err check (needs AST scanner first) 2. feat(primitive): lua structure scanner (luascan) -- contextual scanning of functions and return statements, foundation for anagild data export 3. anagild concept -- first implementation steps ### Architecture direction fragjan (static) --> hailjan (runtime) --> anagild (learns) AST scanner in fragjan is the first primitive that produces structured data for anagild, not just pattern matches. ### Current version v0.2.10 (no code changes this session, rules and modules only)
michael added this to the Basic Version milestone 2026-05-31 20:40:28 +02:00
Author
Owner

Session 2026-06-01

Completed this session

  • ecosystem architecture clarified: fragjan writes, hailjan adds
    .finding, anagild reads and mirrors to server
  • core/scanner concept finalized: Core library (not a primitive),
    used by primitives for structural context
  • anagild_snapshot/v1 format defined and reviewed by team
  • DAW/anagild docs/anagild-snapshot-format.md committed
  • DAW/fragjan#107 created: feat(core): scanner -- structural
    analysis and anagild snapshot export

Key decisions

  • .anagild/ directory mirrors repo tree (like .git)
  • fragjan is the sole writer of .anagild files
  • .finding files written by other programs (hailjan etc.)
  • history references source file hash, not snapshot hash
  • anagild mirrors .anagild files to server (UUID per instance)
  • scanner API takes lang parameter for future extension (c, shell, ...)

Next session priorities

  1. DAW/fragjan#107 -- core/scanner implementation (Lua first)
  2. DAW/fragjan#93 -- nil-err semantic check (blocked by #107)
  3. anagild -- first implementation steps
## Session 2026-06-01 ### Completed this session - ecosystem architecture clarified: fragjan writes, hailjan adds .finding, anagild reads and mirrors to server - core/scanner concept finalized: Core library (not a primitive), used by primitives for structural context - anagild_snapshot/v1 format defined and reviewed by team - DAW/anagild docs/anagild-snapshot-format.md committed - DAW/fragjan#107 created: feat(core): scanner -- structural analysis and anagild snapshot export ### Key decisions - .anagild/ directory mirrors repo tree (like .git) - fragjan is the sole writer of .anagild files - .finding files written by other programs (hailjan etc.) - history references source file hash, not snapshot hash - anagild mirrors .anagild files to server (UUID per instance) - scanner API takes lang parameter for future extension (c, shell, ...) ### Next session priorities 1. DAW/fragjan#107 -- core/scanner implementation (Lua first) 2. DAW/fragjan#93 -- nil-err semantic check (blocked by #107) 3. anagild -- first implementation steps
Author
Owner

Session Handover

Completed this session

All fragjan self-check findings resolved -- from 1 error + 67 warnings
to 0 errors + 0 warnings + 24 conscious suppressions.

Changes made:

  • main.lua: fix assert() -> nil, err in module searcher, rename locals to DAW naming conventions
  • core/config.lua: protect require() calls, suppress checked fallback
  • core/detect.lua: protect require() calls, add _check_deps(), propagate all discarded errors, detect_version() returns nil, err
  • core/loader.lua: protect require() calls, suppress optional field fallbacks
  • core/reporter.lua: rename ambiguous counters (errors->count_errors etc.), simplify summary strings
  • core/commands/init.lua: protect newout() require, suppress pending DAW/fragjan#90
  • core/commands/code.lua: protect all lazy requires with inline pcall
  • core/commands/article.lua: protect all lazy requires, replace /tmp/ with fs.tmpdir()
  • core/runner/file.lua: protect requires, route debug via mod_sys, suppress pending DAW/fragjan#90
  • core/runner/project.lua: protect requires, route debug via mod_sys, suppress pending DAW/fragjan#90
  • core/runner/init.lua: split into init + glob + collect, protect all requires
  • core/modules.lua: split into modules/init + modules/loader + modules/validator, protect all requires
  • core/validator/init.lua: protect require() calls, add _check_deps()
  • core/validator/requirements.lua: suppress optional primitives fallback
  • adapters/ui/init.lua: protect require(), add _contracts declaration
  • adapters/primitive/init.lua: add _contracts declaration
  • docs/meta/meta-lua-naming-essenz.md: new standard for Lua naming conventions

New issues created:

  • DAW/fragjan#109: detect and report missing core command modules at startup
  • DAW/fragjan#110: no-direct-sys-new fires on string literals containing module name
  • DAW/fragjan#111: adapter checks fire outside target scope for single-file runs
  • DAW/fragjan#112: feat(suppressor): add suppress:silent variant visible only with --verbose
  • DAW/daw-lua-common#32: feat(fs): add fs.tmpdir() and fs.tmpfile() -- already done in v1.1.0

Open / next session

  • DAW/fragjan#90: output routing via adapters/ui (large, blocks several suppressions)
  • DAW/fragjan#109: missing core command module detection at startup
  • DAW/fragjan#110: false positive on string literals in pattern rules
  • DAW/fragjan#111: single-file target scope bug in runner
  • DAW/fragjan#112: suppress:silent implementation
  • Next priorities from previous handover: luascan primitive, issue #93 semantic nil-err check, anagild first steps
## Session Handover ### Completed this session All fragjan self-check findings resolved -- from 1 error + 67 warnings to 0 errors + 0 warnings + 24 conscious suppressions. Changes made: - main.lua: fix assert() -> nil, err in module searcher, rename locals to DAW naming conventions - core/config.lua: protect require() calls, suppress checked fallback - core/detect.lua: protect require() calls, add _check_deps(), propagate all discarded errors, detect_version() returns nil, err - core/loader.lua: protect require() calls, suppress optional field fallbacks - core/reporter.lua: rename ambiguous counters (errors->count_errors etc.), simplify summary strings - core/commands/init.lua: protect newout() require, suppress pending DAW/fragjan#90 - core/commands/code.lua: protect all lazy requires with inline pcall - core/commands/article.lua: protect all lazy requires, replace /tmp/ with fs.tmpdir() - core/runner/file.lua: protect requires, route debug via mod_sys, suppress pending DAW/fragjan#90 - core/runner/project.lua: protect requires, route debug via mod_sys, suppress pending DAW/fragjan#90 - core/runner/init.lua: split into init + glob + collect, protect all requires - core/modules.lua: split into modules/init + modules/loader + modules/validator, protect all requires - core/validator/init.lua: protect require() calls, add _check_deps() - core/validator/requirements.lua: suppress optional primitives fallback - adapters/ui/init.lua: protect require(), add _contracts declaration - adapters/primitive/init.lua: add _contracts declaration - docs/meta/meta-lua-naming-essenz.md: new standard for Lua naming conventions New issues created: - DAW/fragjan#109: detect and report missing core command modules at startup - DAW/fragjan#110: no-direct-sys-new fires on string literals containing module name - DAW/fragjan#111: adapter checks fire outside target scope for single-file runs - DAW/fragjan#112: feat(suppressor): add suppress:silent variant visible only with --verbose - DAW/daw-lua-common#32: feat(fs): add fs.tmpdir() and fs.tmpfile() -- already done in v1.1.0 ### Open / next session - DAW/fragjan#90: output routing via adapters/ui (large, blocks several suppressions) - DAW/fragjan#109: missing core command module detection at startup - DAW/fragjan#110: false positive on string literals in pattern rules - DAW/fragjan#111: single-file target scope bug in runner - DAW/fragjan#112: suppress:silent implementation - Next priorities from previous handover: luascan primitive, issue #93 semantic nil-err check, anagild first steps
michael 2026-06-01 13:35:15 +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#106
No description provided.