13. Risks
The risks to the project and how each one is mitigated. Ordered by how much of the project each one takes with it.
Adapter Abstraction Is a Guess Until a Second Adapter Exists
An interface with one implementation is a description of that implementation wearing a costume.
Every Next-shaped assumption will leak into the contract. Nobody will notice until the second adapter is attempted, and by then the contract is load-bearing everywhere.
Mitigation: the throwaway Hono adapter in M0 ran:
- 200 lines, never shipped, serving the same controllers
- it found Next-shaped leaks
- D26 revised write routes and views so they're transport-neutral
The risk remains for any later adapter.
20 Green Packages That Don't Compose
The specific failure mode of fleet execution:
- every package passes its own tests
- every contract is satisfied on paper
- the vertical slice doesn't work
Mitigation:
- conformance suites were written before implementations, by someone other than the implementer
- contract freeze at S2, with no local edits permitted
- S4 and Gazette exist because composition isn't an assumed byproduct
Ward Compiler Correctness
A predicate that compiles to the wrong policy is a data leak with no error message. Tests pass, the page renders, and the wrong rows are visible to the wrong people.
This is the only part of the framework where paranoia is proportionate.
Mitigation:
- live driver suites compare client-side scoping against database enforcement on identical fixtures
- a published list of predicate shapes the compiler refuses outright instead of approximating (
refusedWardShapes) ward:checkin CI
Contract Churn Breaks the Ecosystem
A contract published in v1 and changed in v1.1 breaks every third-party driver written against it.
The first time that happens, the driver ecosystem stops growing, because writing one stops being worth it.
Mitigation:
- implement 7 contracts in v1 instead of 16
- mark unimplemented contracts
unstablein their package names until a real driver exists - version contracts independently of the framework
Next.js Convention Churn
The thing that stalled Blitz and pushed Redwood off Next entirely.
Mitigation:
- generated files contain no logic, so a router change is a codegen change instead of a rewrite
- all logic lives in
@avelonjs/* - the adapter layer means a sufficiently hostile Next release is survivable by shipping a different adapter rather than by dying
Server Actions Are the Least Stable Surface in Next
The entire write path depends on them.
Mitigation: the .api() escape hatch generates route handlers for the same controllers. The fallback path is already built and tested.
PostgREST Ceiling Frustrates People in Week 2
No client-side transactions, and shallow joins. Somebody hits it early, writes a post about it, and that becomes the framework's reputation.
Mitigation:
@avelonjs/postgresships in v1 (D15), so the answer to "no transactions" is "change one config line" rather than "wait for v2"- honest docs about the Supabase driver's limits, stated up front instead of discovered
Bailiff Is Intolerable if It's Wrong
A linter with a false positive and no escape hatch gets disabled wholesale, and then the entire thesis is gone.
This risk is larger than it looks, because the failure is silent. Nobody files an issue, they just add the plugin to their ignore list.
Mitigation: every rule has:
- a documented reason
- an autofix where possible
- an inline disable that requires stating why
A bare disable with no reason is itself an error. That turns the suppressions into a searchable list of everywhere the framework wasn't good enough.
Bun and Platform Drift
Bun is the default for install, dev, build, and test. D27 makes Node the deployed function runtime. A disagreement between Bun and a deployment platform could strand the project.
Mitigation:
no-bun-in-core- CI running the full suite on both runtimes
- a documented Node fallback that's tested rather than claimed
The Audience Is Smaller Than It Looks
Most Next developers are used to inventing their own lib/. A framework that fails the build when you do that is a narrower sell than "TypeScript on Vercel."
Mitigation: Gazette and the docs app shipped as the first thing a visitor sees. If nobody reads them, that's a cheap answer to an expensive question.
Scope
Vigil, Peal, Moot, Banner, and Lantern are named in these docs and aren't built. Named things feel owed.
Mitigation: say publicly which are deferred and which shipped. A roadmap with dates you miss is worse than a list of things you haven't started.
Trademark
Avelon collides with an existing building-automation software vendor in the same goods class. See 14-naming.md.
Mitigation:
- a paid clearance search before printing anything or filing
- the npm scope and GitHub org can be secured now at near-zero cost
- the decision to commit publicly can wait for the search