One folder, one bounded contextLLM view

Flutter

Possible, with the weakest built-in guard. A context is three packages in one folder: contract, src and tests. The API layer is screens and controllers.

The files

Explorer
  • pubspec.yamlworkspace, found by pattern
  • gen.dart
  • boundaries.dartthe guard
  • pubspec.yamlgeneratedlists every context, not committed
  • main.dart
  • contexts.g.dartgenerated
  • context.yaml
  • pubspec.yaml
  • pubspec.yaml
  • register.dart
  • pubspec.yaml
  • policies.yaml
  • flags.yaml

What the tools allow

QuestionAnswerTag
Tests inside the folderyes: 22 passMEASURED
A planted failing testfailsMEASURED
A misnamed test fileskipped silently; our checker catches itMEASURED
Tests or docs in the web build0 foundMEASURED
Hot reload after an edit0.55 sMEASURED

An import the compiler lets through

billing imports orders (real output, shortened)
$flutter analyze
info • The imported package 'orders_ctx' isn't a dependency of the importing package.
$
1 / 2

What changes

ChangeCountTag
Template files moved0 of 559 (no features in it)REASONED
alcohol.neon files that change folder180MEASURED
Package files per context3MEASURED
alcohol.neon merge conflicts in 90 real merges0MEASURED

What does not work cleanly

  • Two generated files are not committed. If they are stale, every Flutter command fails until task gen. MEASURED
  • An undeclared import compiles and its tests pass. MEASURED
  • Tests on a device were not run. NOT TESTED