SILLBEAM HANDBOOK

Troubleshooting

Investigate reported discovery, dependency and integration errors, then verify your corrections.

Overview

First run sillbeam:architecture --format=json with the optional Console adapter. Independent violations are collected; fatal blockers limit further analysis. Inspect rule, severity, context and available remediation. A failed build remains a failure even when other findings are already known.

  • Ambiguous namespace: specify discovery.namespace or a namespace per root; check Composer PSR-4 and composer dump-autoload.
  • Descriptor outside boundary: configure a module/Project root or move the file inside the allowed boundary. A private module needs a Project descriptor as its physical owner.
  • Overlapping areas: separate descriptor directories. Business subdirectories without their own descriptor are allowed.
  • Missing dependency: Check the evidenced direct reference and diagnosis. A declaration is a domain option when activation, ownership and graph are known and neither a cycle nor a private boundary violation results. Rerun analysis afterwards.
  • Inactive target: First distinguish disabled, unassigned and unknown states. Change activation only in the evidenced owner scope; an enabled shared module may require Project assignment. For a private boundary violation, enabling or declaring a dependency grants no access.
  • Missing service: check exclusions, environment attributes and active assignments; native overrides are possible. Multiple implementations require an explicit alias.
  • Unexpected route/entity: explicit native imports can bypass Sillbeam exclusions. With multiple Projects, consider route name prefixes and host filters.
  • Doctrine missing: install/register the bundle or disable Sillbeam integration. The core package does not require Doctrine.
  • Activation change has no effect: build environment variables require a cache rebuild. Development resources monitor source directories; the production cache is rebuilt during deployment.

Without the adapter, reports still fail if container boot fails. With the adapter, architecture reports and Markdown export are available before container boot, but debug:container, debug:router and generators are not. For exit 2, fix configuration, discovery or the fatal blocker first; for exit 1, address the reported architecture rules. Then rerun both reporting and actual container compilation.

Technical reference: published Core tag v0.2.0, commit cf2f4102ad7c15db30ad5c5af21852bc2aaec99a in the Core repository. Historical verification records identify their own source snapshots separately. The unchanged contracts were checked against the published Core v0.3.0.

For code.unknown_class, check imports, class names and application Composer mappings, then regenerate autoloading. External types are excluded from this rule; a wrong service alias or container error is a separate diagnosis. A generic production 503 with a cold cache means: build and warm the release through CLI, rather than enabling debug for visitors.

Installation Doctor (sillbeam:doctor, also with --env=prod --no-debug or --help) statically checks installation files starting in v0.2.0: per-environment bundle registration, actual Core adapter use, conventional kernel configuration loading, YAML routing, overlapping native service imports and discovery/Composer namespace consistency. It checks neither descriptors and activation graphs nor general Symfony container health; use sillbeam:architecture afterwards.

Doctor distinguishes verified (static file evidence), action required (evidenced action needed) and not verified (manual review), and counts all three separately. Exit 0 means all supported static checks have been verified; exit 1 means checks completed with action required; exit 2 means at least one check is unverified or execution is unavailable. Exit 2 takes precedence over 1. A nonzero result is not automatically an architecture violation.

F01 and F02 were corrected before release: conventional Symfony Runtime callbacks are recognized through their returned Application, including imports, aliases and fully qualified names. Standard Symfony 7.4/8.1 MicroKernelTrait kernels, including a literal private getAllowedEnvs(), and unmodified SillbeamKernel subclasses are supported. Unknown routing no longer hides independently evidenced service-import conflicts. Mixed conflicts and unknown service details produce both results; routing itself can remain unverified. The F01/F02 follow-up supplements the unchanged historical acceptance report.

Dynamic or ambiguous Runtime returns, custom kernel hooks, PHP/XML configuration, imported configuration, environment overlays, globs, duplicate service IDs and unknown exclusions require manual review depending on the available static evidence. verified does not certify effective runtime behavior. Doctor does not execute application configuration, boot a kernel itself or change files; there are no repair or output-file options. Without the optional Core adapter, normal Symfony boot can still write cache files before Doctor.

From installation problems to module relationships

1. If boot is blocked, select the Core Console adapter. Use sillbeam:doctor --format=json to check bundle, routing, service exclusions and adapter. Treat not verified as an unresolved check; Doctor repairs nothing.

2. Run sillbeam:architecture --all. Inspect an affected module with sillbeam:inspect:module Billing -v, adding --project=shop where needed. Compare declared and observed relationships; missing observations with incomplete evidence do not justify removing a dependency.

3. Share direct relationships with sillbeam:graph --module=Billing --output=billing.svg or raw Mermaid. Check the exit code even when a file exists. Then decide on the domain correction and rerun architecture validation, a fresh container build and application tests.