fix(adapters/ui): dispatch loop discards all but last provider error #43
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
M.dispatchinadapters/ui/init.luaonly keeps the last error:If multiple providers fail, earlier errors are silently lost.
Fix
Collect all errors and return them combined, or fail fast on the first error.
Decision needed: fail-fast vs collect-all.
Acceptance criteria
Scope expanded to core/loader.lua:
Both should collect all errors and continue, so all problems are visible at once.
A broken rule/pack should produce [ERROR] output but not stop other rules from running.
Scope expanded to core/runner.lua:
The entire run-loop fails fast on the first error (primitive not found,
adapter.run failure, file read error, suppressor error, collect_files error).
All remaining rules and files are skipped silently.
Runner should collect errors and continue so all problems are visible.
Scope expanded to core/validator/init.lua:
M.pack(): first failing rule schema check aborts -- remaining rules never validated.
M.primitives(): first missing primitive aborts -- remaining primitives never checked.
Both should collect all errors so all problems are visible at once.
Scope expanded to core/modules.lua:
scan(): first module load or validation failure aborts -- remaining modules never checked.
validate_interfaces(): first failing interface check aborts -- remaining interfaces never checked.