Repository navigation
A minor release. The Blazor UI gets a design system with a light and a dark theme and a switch between
them. The repository an agent works in gains three reviewers, hooks that ask before the edits your
conventions reserve, and skills for finishing a change and for upgrading. The --use-redis cache is
Valkey, and e-mail goes out through MailKit. Before this release a cold agent was given a freshly
generated project and one feature to build; every place the template misled it or let a defect through
is fixed here.
Installing this version changes no project you generated earlier: docs/upgrading.md in your project
says how to take what you want from it. Read Security first: one entry changes the unique indexes of
a project with --use-multitenancy, one how a NUL character in a request is answered, and one moves
Aspire past an advisory that fails every build.
Added
- The UI has a design system (
docs/design-system.md, ADR-0032; with--include-ui). The values
live inwwwroot/tokens.css, every colour once as alight-dark()pair in two themes, with the type
scale, the spacing, the radii and the focus ring as tokens;app.cssholds the components and writes
no colour;DesignSystemTestsproves the contrast of every text on its ground in both schemes, that
only the token file writes a colour, and that the doc and the files name the same tokens and classes.
The starting palette is a green ink and accent on near-white, a lime accent on near-black. Two tokens
were renamed for anyone who customised 0.1.x:--fgis--inkand--borderis--line
(docs/upgrading.md, step 7). - The pages are built from the design system's components (with
--include-ui). The invoice
list's status is a pill (Paid a success, Voided a danger, Draft and Issued neutral, the word always
shown), as is the status on the invoice page; the pager's buttons are secondary buttons; one label
strip styles the filter row's label and the table headers. On a phone the tables read as blocks,
each cell led by its header: a table cell carriesdata-thwith its header's text. A link without a
class of its own (a table row's link, the sign-in pages' links) is accent text like the shell's,
where it took the browser's default colour before. Two classes were renamed:.noticeis
.callout successand.error-panelis.callout danger(docs/upgrading.md, step 7).
docs/design-system.mdnames the new components (.label,.secondary,.pilland its variants,
.calloutand its variants). - A theme switch the user keeps (with
--include-ui). The top bar ends with a System, Light and
Dark select, there signed out too: Light or Dark is kept in the browser (localStorage, keytheme)
and written asdata-themeon<html>, which holds that theme over the operating system's; System
lets it go.UI.Common/wwwroot/theme.jssets the attribute from the web host's<head>before the
first paint, so a kept Dark never flashes light, and is a file because the host's
Content-Security-Policy runs no inline script;Layout/ThemeToggle.razorreads and writes it through
IJSRuntime, never during a render. Aselectnow looks like aninput.docs/design-system.md
names the component (.theme,.theme-select) and says how to remove it; a browser flow in the
optionalUiTestsproject proves the choice survives a reload and a link out of the error page and
wins over a light system, and that a host without the script keeps working. - Screenshots at 400 and 1280 px in both themes, kept by CI (with
--include-ui-tests).
DesignSystemProofTestsin the optionalUiTestsproject opens every page (sign-in, create account,
the invoice list and its Overdue filter, a new invoice, an invoice) at both widths in light and dark,
saves a full-page screenshot of each and fails a page that scrolls sideways; one more screenshot has
Dark chosen in the switch over a light system, and one test tabs from the top of the page to the first
top-bar link and checks it shows the system's focus ring, not the browser's own. The screenshots go to
UI_TESTS_SCREENSHOTS(by defaultTestResults/screenshotsunder the test run's working directory),
and theui-testsjob inci.ymluploads them as theui-screenshotsartifact, kept 14 days, passed
or failed. Nothing compares them with a baseline: fonts render differently per machine, so a reviewer
looks (docs/design-system.md, Proof). The browser tests sign in through one helper,
Session.SignInAsAdminAsync, and the proof's protected pages share one signed-in page: the API allows
ten sign-ins a minute from the web host. - The design tokens export as JSON for a design tool or a published design-system page:
./scripts/export-design-tokens.sh [-o tokens.json]writes one object per token intokens.css, in
its order, with its value (a colour as its light and dark pair) and its usage, the token's Role in
docs/design-system.md(Mocks and the export). It needs onlyshandawk, and
DesignSystemTestsruns it and holds every name, value and usage to the token file and the doc. A
project generated with--include-ui falsegets the script too; it says there is nothing to export. - A
ui-reviewersubagent (.claude/agents/, with--include-ui) reads a change to a page, a
layout or a stylesheet against the design system, the UI rules and accessibility, in a browser through
the Playwright MCP when one is running, and reports;.claude/rules/ui.mdasks for it before a UI
change is finished and its accessibility rule now names the page title, the singleh1and colour as
never the only signal; theadd-featureandremove-featureskills name the design system's
components and tests in their UI steps. - Two more reviewers, and every reviewer says what it owns.
test-reviewerreads a change's tests
against.claude/rules/tests.md(the tier, a bug fix's test shown to fail without the fix for the
expected reason,ShouldBeSuccess(), the factories and drivers, time without sleeping, the fixtures,
the narrowed run), andsecurity-reviewerreads a change to authentication, identity, hardening, the
Auth feature or who may call an endpoint againstdocs/threat-model.md. Every reviewer in
.claude/agents/now opens with Owns, Out of scope and Overlap lines, so a change read by
several gets each point once, andAGENTS.mdsays which reviewer a change needs.docs/INDEX.md
gains sections for the reviewers, the hooks and the MCP servers (when to reach for Microsoft Learn,
Context7 and Playwright, and the optionaldotnet/skillsplugins, none enabled);
scripts/check-adr-links.shfails when a reviewer, a hook or a feature doc is missing from it, or
when.claude/settings.jsonruns a hook that does not exist.architecture-guard's dependency
flow now matchesAGENTS.md, and ADR-0014 records all of this in an amendment. - Claude Code asks before the edits your conventions reserve, and commits in style. Three new hooks
in.claude/hooks/:guard-edits.shasks you before an agent hand-edits a migration or
docs/api/openapi.v1.json(the prompt names the command that regenerates it), creates a project or
adds a package, and stays silent for a version bump;guard-commit.shasks when agit commit -m
subject is nottype(scope): subjectand, when gitleaks is installed, refuses a commit whose staged
changes hold a secret;stop-tests.shstops the agent once when it changed code undersrc/or
tools/and ran no test (a subagent's edits and test runs count). The hooks work in the checkout
Claude is in, a worktree included, and from a project path with a space, and a failed hook never
blocks an edit or a command. The docs-drift reminder now speaks once per session for a given report.
AGENTS.mdgains a Commits line (a generated project had no commit convention before) and names
the hook behind each boundary it backs;docs/development.mdgains Agent hooks (what each decides,
how to add one, how to turn them off);scripts/check-hooks.shtests every decision, and CI runs it. - Finishing a change, upgrading the template, and a red build from a package. The
finish-change
skill runs the gates CI runs, in its order (format, the Release build, the tests narrowed then whole,
the OpenAPI snapshot, the docs-drift and link checks), asks for the CHANGELOG line and the reviewers
the change needs, and commits or opens the pull request from.github/PULL_REQUEST_TEMPLATE.mdonly
when asked (/finish-change commit,/finish-change pr)./upgrade-template <version>walks through
docs/upgrading.mdand never starts on its own: the marker, the changelog between the versions, the
target regenerated with the same name and options, take, merge or keep, the schema, the marker last.
.claude/rules/dependencies.mdloads with the package and SDK files: asking before a package, the
license ceilings, central versions and Dependabot groups, the order to answer a NuGetAudit advisory,
and an SDK bump.add-featurepoints at Protecting an endpoint for who may call an endpoint.
docs/upgrading.mdinstalls the template as<package>@<version>, the separator current SDKs expect,
and tells the files you never touched by regenerating the version you started from and diffing it
against your tree: a diff against the target alone cannot tell your edit from the template's. - A check of your machine before the first run, and the running app for an agent to read.
./scripts/doctor.shprints one line per prerequisite,ok,missingwith the fix, orskip: a
.NET SDK onPATHthatglobal.jsonaccepts (or that./scripts/dotnet.shbuilds and tests without
one), Docker and the SDK image, the Aspire CLI, the development certificate, the AppHost's ports, the
engine endpoint the Testcontainers tests get, git, and jq where a script needs it. It changes nothing
and exits 1 only when something a first run needs is missing;--self-testruns every check against
fakes, and CI runs it (docs/development.md, Prerequisites)..mcp.jsongains the Aspire MCP
server (aspire agent mcp): whileaspire runis up, an agent reads the AppHost's resources, logs
and traces through it and can restart a resource. It needs the Aspire CLI 13.5 or later onPATH,
and an interactive Claude Code session asks before using it (docs/INDEX.md, therun-appskill). - An accepted ADR only gains amendments, and CI says so. A new
adr-historyjob inci.ymlruns
scripts/check-adr-history.shon every pull request: deleting or renaming a record underdocs/adr/
fails, and so does any edit to an existing one other than its header's Status, Superseded,
Amended and Refines lines, a Prior art line it gains, and a dated## Amendment (YYYY-MM-DD)
section (an ordinal such as## Second amendment (…)counts) appended at its end (ADR-0001's
amendment of 2026-10-26).
A template upgrade that appends amendments to the template's records passes. For a rewrite that is
truly needed, create anadr-rewritelabel in your repository and put it on the pull request, as
withdocs-not-needed. - More of the rules are tests now (
tests/Trellis.ArchitectureTests). The Domain, the use cases
(event handlers aside) and the endpoints neverthrow; time comes from the registeredTimeProvider
and ids from their type'sNew(), neverDateTime.UtcNoworGuid.NewGuid(); nothing silences RSLT001
(no pragma, bare or naming it,[SuppressMessage],NoWarn, analyzer or warnings-as-errors switched
off, or lowered severity, a bulk one included;.editorconfignow names RSLT001's severity itself, so
no bulk severity line reaches it); tests advance a clock instead of sleeping; every aggregate is
created through astatic CreatereturningResult, with no public static method that hands it back
bare; every project undersrc/is anchored inArchitectureRules.cs, ServiceDefaults included; and,
with--include-ui, no page uses an endpoint[Authorize], anHttpClientof its own, a POST of its
own or an inline script. Each scan has a positive control and an allowlist that names its reason, and
.claude/rules/names the test behind each rule.
AConsolewrite in a library project is now a build warning (S106), so a Release build fails on
one;async voidalready was (S3168). One fix came with
them: aRetry-Afterthe API writes as a date now reads as the wait from the registered clock (the
UI'sTimeProvider), not the machine's. - Every list's paging bounds are checked at the wire, yours included. A query's validator repeats
PagingLimits' bounds as literals (Application cannot see the contracts), so each list re-tested them
by hand.EndpointContractTests.Every_paged_list_holds_its_documented_bounds_at_the_wirereads every
GET the served OpenAPI document gives apageand apageSizeand sends each bound and one past it,
expecting a 200 inside (a 404 too for a nested list, whose route gets a fresh id) and a 400 naming the
field outside: a validator whose literal drifts fails it, and a new list needs no bounds test of its own
(.claude/rules/api.md, List endpoints). The GETs it reads are held to the GETs whose 200 is a
PagedResponse<T>, so a list with a filter of its own beside the paging pair (?status=,?search=)
is never left out unseen, and a list that answers the envelope without both parameters fails.
Changed
- The
--use-rediscache is Valkey (BSD-3-Clause) in place of the Redis server, whose 8.x
releases are RSALv2, SSPLv1 or AGPLv3. The AppHost declaresAddValkey("cache")with the image's
major pinned (valkey/valkey:9), theredisservice ofdocker-compose.ymland the generated CI
start the same image, and the API keeps its Redis client, which speaks to Valkey unchanged; the
option, theUseRedissymbol and thecacheresource keep their names. RedisInsight (SSPL) is
gone, so the cache has no browser tile.ContainerImageTestsholds every image the AppHost
declares, the workflows run and the root compose file starts to an allowlist that names each one's
license, so an image that is not free to ship fails the tests (ADR-0011, amendment of 2026-11-08).
To move a 0.1.x solution:Aspire.Hosting.Valkeyin place ofAspire.Hosting.Redisin the
AppHost,AddValkey(...).WithImageTag("9")in place ofAddRedis(...).WithRedisInsight(), and
valkey/valkey:9with avalkey-cli pinghealth check in the compose file. - E-mail goes out through MailKit, and
aspire runcatches it in Mailpit. The SMTP adapter
(Email:Provider=Smtp) submits with MailKit (MIT) in place ofSystem.Net.Mail.SmtpClient, which
Microsoft no longer recommends for new code; theEmail:Smtpsettings, their boot checks and the
logging contract are unchanged, STARTTLS still fails a send rather than falling back to plaintext,
and a failure is still thrown for the outbox with the relay's reply left out, now as MailKit's
SmtpCommandException(status and error code kept) where it wasSmtpException. In run mode only,
the AppHost starts Mailpit (CommunityToolkit.Aspire.Hosting.MailPit, imageaxllent/mailpit,
both MIT) and points the API at it, so the receipt of a paid invoice lands behind themailpit
resource's Inbox link instead of in the log;aspire publishdeclares no catcher, so a
deployment still configures its own relay. Underaspire runthe AppHost's settings outrank a relay
you put in user secrets: run the API from its launch profile to try a real one. - More packages the build refuses (ADR-0011, amendment of 2026-11-08).
LicenseCeilingPackageIds
gainsHangfire.CoreandHangfire.Pro(LGPL-3.0 or commercial),TickerQandTickerQ.Utilities
(a source-available agreement from 10.5.0),NBomber(not free for organizational use),
Duende.IdentityServer(commercial),NServiceBus(RPL-1.5 or commercial), and
MySql.EntityFrameworkCorewithMySql.Data(GPL-2.0): a direct reference, or one that arrives
under another package, fails the build, Dependabot never proposes them, and the LICENSE CEILINGS
comment inDirectory.Packages.propsgives each its reason. A family is refused through the package
all its members depend on (Hangfire.AspNetCorethroughHangfire.Core). The comment also names a
ceiling the build cannot enforce:Verifyfrom 33.0.0 ships a maintenance-fee agreement in its
package, so pin it below 33 if you add snapshot tests.LicenseCeilingTestskeeps the list, the
comment and Dependabot's ignores naming the same ids. - A record that is edited hands out its version and takes it back on every write. The
add-feature
skill named the ETag andIf-Matchonly as what an endpoint that honours them declares, with no
default, so a new aggregate could ship with noVersionon its DTO, no ETag and noIf-Match, and
two people renaming one record overwrote each other unseen. Its API section now makes them the
default for an aggregate that changes after its create (GetInvoiceand the invoice writes are the
model) and asks for one sentence in the feature doc's Optimistic concurrency paragraph to leave
them out.OpenApiDocumentTestsholds both halves, each with a planted document as its control: each
write under aGET /{id}that answers noETagfails unlessWritesToRecordsWithoutVersionnames
that write with its reason, so a write added to the record later fails again, and a write under a
path whose GET answers anETag(whatever each route names its parameters) that declares no
If-Matchfails unlessWritesWithoutIfMatchnames it with its reason. A feature of yours with an
unversioned record that is edited fails the first until you add the version or a row for each write. - Every unique index is decided on, and the persistence rule no longer goes stale.
.claude/rules/persistence.mdnamed the registered unique constraints "today", so it was wrong after
the first feature with a unique key, and an agent is not always allowed to edit.claude/. The map in
UniqueConstraintErrorsis now the list, andUniqueConstraintTestswalks the model: a unique index
or key that is neither registered there nor named a fault on purpose, with the reason no two requests
can race to it, fails it, and so does a name the model no longer holds. A single-column uuid or
database-numbered primary key needs no row; the walk cannot tell a uuid a request chooses from one
minted for the row, so register or list the key of an aggregate whose id a client supplies yourself. - A list of yours reuses the paged envelope instead of copying it.
ToPagedResponse(map)lived in
the Invoices slice'sContractMappings, so a second list wrote its own copy, passing the envelope's four
counts and two flags by position (a swappedTotalCountandTotalPagescompiles), and removing the
Invoices slice took the original with it. It is nowPagedResponseMappingsin Api.Common
(using Trellis.Api.Common.Http;), written with named arguments; a slice maps only its item.
ConventionTestsfails on anew PagedResponse<…>(…)or a method declared to return one anywhere
else undersrc/. If you copied the old mapping into a feature, delete the copy and call the shared one. - The test helpers a second feature needs are shared.
ShouldAnswerAsync, the status check that
names the request, the problemcodeand the body when an arrange step is refused, was private to
InvoiceHttpDriver; it is nowHttpResponseAssertions.ShouldAnswerAsyncin ApiTests, for every
{Feature}HttpDriver.StronglyTypedIdParsingTestsmoved out ofDomain.UnitTests/Invoices/and became
one theory over everyIStronglyTypedId<>the Domain declares (a version-7New(), the parse round
trip, text that is not aGuidturned down), so your IDs are covered with no test of their own and the
check survivesremove-feature. - Every feature doc has the same headings, and each decision a place in it. The
add-feature
skill asked for a doc "shaped likeinvoices.md" without naming the parts, and for the shapes the
reference slice does not show it said "decide deliberately" without saying where the decision is
written, so a new feature's doc put its endpoints table inside API and recorded ownership only in
the threat model. The skill now names the H2s (The domain in plain words,Try it,
Where the code lives,Domain,Application,Persistence,API,UIwith the UI,Tests,
Endpoints), and a closing box asks for one sentence per shape the feature could have had (owner
or business-wide, cached or not,If-Matchor not, offset or keyset, reactions or none, a page or
none);invoices.mdgains the Ownership paragraph to copy.scripts/check-docs-drift.sh, in CI
and in the edit hook's reminder, fails a feature doc the change touches or owes that lacks one of
those headings, for a feature with an aggregate (aDomain/<Feature>/folder); an integration's doc
keeps its own shape.scripts/check-hooks.shhas the case. - A feature a person uses gets its pages, or a reason it has none. The
add-featureskill's
section was headed "UI (if included)", which reads as "if the request asks for one" as easily as
"if the project has a UI", so a feature could ship API-only in a project with the UI on and say
nothing about why. The section is now## UIand ships only with the UI; its first box asks for the
pages Invoices has (a list, a detail page, a form per write, the typed client, the nav link, the
render tests), or a sentence in the feature doc's UI section saying the feature is API-only and
why, whichui-reviewerreads. - Where the "is this key taken?" lookup lives, and an e-mail key ignores case. The
add-feature
skill's unique-key bullet named the index and its registration but not the lookup a create usually
makes first, and.claude/rules/application.md's "no business rules in handlers" read as forbidding
it. Both now say that the handler may ask the repository port ({Key}ExistsAsync) once the
aggregate is built and answer the sameErrorthe index maps to: the lookup is orchestration, the
index is the rule and decides the race, and aMustAsyncvalidator never does the lookup. The bullet
also says an e-mail key is case-insensitive like Auth's (a nondeterministic ICU collation, or a
normalized column as Identity'sNormalizedUserName), with a test row in another case. - A fix for a reviewer's finding goes back to the reviewer.
/finish-changeasked only for the
gates to run again after a fix, so a blocking finding fixed by changing a shared value object (which
changes what every feature using it accepts) was committed with no second look. Its reviewer box,
AGENTS.mdandadd-feature's review box now send a fix that changessrc/back to the reviewer
that raised the finding, scoped to the fix's diff, and tocode-revieweras well when it touches a
type outside the feature's folders; the box is done when that pass leaves no blocking or should-fix
finding open. - A change to the role grants owes the threat model.
scripts/check-docs-drift.shasked for a
docs/threat-model.mdupdate when authentication, hardening or identity code changed, but not for
Application/Authorization/, whereRoles.Permissionsdecides who may call each endpoint, so granting
a role a new permission went through unasked. That folder counts now, in CI and in the edit hook's
reminder, andAGENTS.mdsays so. - Two ADRs stop listing what your first feature changes. ADR-0006 said
EmailAddressandCurrency
stay complex types, and ADR-0007 that Member holdsinvoices:read; a feature that converts a value
object for its unique index, or grants Member its own read permission, made either false, and an
accepted record only takes amendments. Each gains an amendment of 2026-11-09 pointing at the code:
AppDbContext.ConfigureConventionslists the converted value objects,Roles.Permissionsthe role map.
.claude/rules/persistence.mdsays converting a type is a migration and a line in the feature doc, with
no ADR edit. - The pinned versions moved with the dependency updates merged since 0.1.1: the .NET SDK is
10.0.403 (global.jsonand the SDK image), ASP.NET Core, EF Core (with thedotnet-eftool) and the
Microsoft.Extensionspackages are 10.0.14, OpenTelemetry 1.20.1, Scalar 2.18.7, Playwright 1.64.1,
Microsoft.Testing.Extensions.TrxReport2.5.2 and Meziantou.Analyzer 3.0.320. Aspire's move is
under Security.
Fixed
- A new project passes its own format check, whatever its name. A project generated as
Acme.Shop
failed the Format check of its ownci.ymlon the first push, with an IMPORTS error in nearly every file:
.editorconfigsetdotnet_sort_system_directives_first, which turns ondotnet format's
using-order check, and that order sorts by the full name, so the shipped files were in order only for
a name that sorts where Trellis does (after Shouldly, before Xunit). The key stays in the template's
own source behind theTemplateSourceconditional, so a generated project starts without it: the
IDEs still sortSystemusings first by default, and nothing checks the order until you opt in by
addingdotnet_sort_system_directives_first = trueto.editorconfig, restoring and running
dotnet formatonce (the comment there says how). Template CI runs the generatedci.yml's Format
check on every leg, one of them namedZeta.Journalso a name that sorts after Xunit is covered, and
scripts/test-template.shdoes the same. Thefinish-changeskill formats only the files the change
touches and reports a formatter change anywhere else instead of committing it. ./scripts/ef.shworks on a project nothing has built yet. The first
./scripts/ef.sh migrations add …in a fresh clone failed with NETSDK1004 (project.assets.jsonnot
found): dotnet-ef reads the project's metadata before it builds, and that needs a restore. The script
now restores the solution first, quietly (a failed restore still prints its errors).- Your first migration shows your model change, not the template's EF version. The shipped
InitialCreateand model snapshot were written by EF Core 10.0.12 while the project pins 10.0.13, so
the firstmigrations addin a new project rewrote the version line too.InitialCreateis
regenerated on the pinned EF Core (its id is now20261111173434_InitialCreate, itsUpandDown
unchanged); upgrading a project whose database already applied the old one, keep yours
(docs/upgrading.md, step 5). Template CI now compares every generated migration's[Migration]
attribute with its file name. Theadd-migrationskill now says why a project whose name sorts before
Microsoftsees the snapshot's entity blocks move on its first migration (EF orders them by CLR name),
and that moved blocks are not model changes.migrations removeis written with--forcein
docs/development.md,docs/upgrading.md, theadd-migrationandupgrade-templateskills and the
edit hook's hint: without it the command stops when no database answers its check, as in the SDK
container. With it, a database the design-time connection reaches that applied the migration has it
reverted first (InitialCreate'sDowndrops every table), so the regenerate steps run it as
env -u TRELLIS_DESIGNTIME_DB ./scripts/ef.sh migrations remove --force …, where none answers. - A create that loses a same-key race on a unique business key hears the idempotency answer. Two
concurrent requests under oneIdempotency-Keywere decided by the key's primary key only when both
reached their commit; a feature of yours with a unique business key (an e-mail, a code) let the second
fail on the first one's row before that, so it answered your feature's 409 (an e-mail already in use)
for a create that succeeded.IdempotencyFilternow asks the store again when a keyed request fails
with a 4xx and answers from the first request's reservation: 409Idempotency.InFlight, the replayed
201 or 409Idempotency.Duplicate(ADR-0018, amendment of 2026-11-09). It costs one lookup, on failed
keyed requests only. /finish-changeloads in a headless session, and never commits onmain. Aclaude -prun had
/finish-change commitrefused outright whileadd-featureloaded:finish-changeand
add-migrationwere the two skills that pre-approved commands in anallowed-toolsfrontmatter, and
neither does now (.claude/settings.jsonalready allows the scripts and git commands they listed,
apart from the OpenAPI snapshot run). The Commit box now stops when the branch cannot be created
instead of committing onmain./finish-changetests the Release build, as CI does. Its test boxes ran a plaindotnet test
right after the Release build, which built the solution again in Debug and, with the UI, could stop on
Unable to find a project reference for project configuration item '…UI.Common.csproj'. Every test
box, the OpenAPI snapshot run included, now passes-c Release --no-buildasci.ymldoes, and so
doesadd-feature's last box;docs/development.md(When the build fails) explains the message..claude/hooks/common.shis generated executable. It was the one hook script without the
executable bit, so thechmod +x scripts/*.sh .claude/hooks/*.shthat the template's instructions and
ci.ymlgive left a mode change in a project generated a minute before. It ships executable, the
chmod post-action lists it, andscripts/check-hooks.shchecks its mode like the hooks'.- The reviewer agents read right under your project's name.
code-reviewer,test-reviewerand
security-reviewerdescribed their work as reviewing "a Trellis change", which a project generated as
Acme.Shopgot as "a Acme.Shop change"; they review "a change to Acme.Shop" now, and Template CI
fails a generated project with a sentence that reads "a " after the rename. docs/features/invoices.mdnames the codes a client actually gets. It listed
Invoice.EmptyCustomerName,Invoice.CustomerNameTooLongand the line-description pair as the API's
400s, but the command's validator checks the same Domain constants first, so through the API a blank or
over-long name or description isValidation.Generalnaming the field; the domain codes guard the
callers without a validator (the seeder). The doc says so,ProblemDetailsContractTestspins the
over-long name on the wire, and theadd-featureskill asks a feature doc to list such a rule as
Validation.Generalwith the domain code in brackets.
Security
- With multi-tenancy, a unique business key is unique per tenant. The tenant convention gave every
aggregate root itsTenantIdcolumn, index and filter but left the root's own unique indexes global,
so a key a feature of yours declares unique (a customer's e-mail, a code) disagreed with its own
lookup: the tenant-filtered "is it taken?" query answered free, the index answered taken, and the
create failed with a 409 that told the caller another tenant holds the value. The convention in
AppDbContextnow putsTenantIdfirst in every unique index an aggregate root declares, under the
name the index had, with its filter and per-column settings kept, so a configuration still names no
tenant andUniqueConstraintErrorsmaps the constraint whichever way the option is set; Identity's
indexes stay global (ADR-0022, amendment of 2026-11-12).TenancyTestsfails on a unique index or an
alternate key of an aggregate thatTenantIddoes not lead, with a probe aggregate holding each
shape as its control, and on a unique index or key that another entity type declares in an
aggregate's table (a value mapped withOwnsOne, which the convention never visits), with a probe
root that owns such a value as its control. Declare a business key as a unique index and reference
another aggregate by its id: an alternate key, declared withHasAlternateKeyor made by
HasPrincipalKey, is not rewritten; map a value that needs a unique key as a converted column on the
root, not as an owned type.
A unique constraint the convention does not reach (a child table's that its root's id does not lead,
a primary key a request chooses) is still unique across every tenant, its 409 telling the caller
another tenant holds the value, and the threat model's multi-tenancy gap now says so. A row written
with no tenant (a job that did not setAmbientTenant, an anonymous endpoint) has a NULLTenantId
and is outside these indexes, since PostgreSQL treats NULLs as distinct: two such rows may hold the
same key, which the gap records too, so give such a flow its tenant before it writes. The shipped
InitialCreateis unchanged; a multi-tenant project regenerates it as before, and one that already
has a unique index on an aggregate gets(TenantId, key)from its next migration. - A NUL character in a request is a 400, not a 500. PostgreSQL's
textstores no U+0000, so a body
string holding one ("Acme\u0000Ltd") reached the first query or save that carried it and came back
500Server.Failure: creating an invoice or adding a line, and signing in.AddApiCommonnow
registersNulFreeStringJsonConverterbeside the strongly-typed-id converter, which refuses such a
string while the body binds, on every endpoint, yours included, as 400Request.Malformedwhose
errors[]names the member (Request.InvalidValue); responses are written as before, and so are the
OpenAPI document's string schemas (StringSchemaTransformergivesstringback the type the generator
leaves out for a type with a converter of its own), while itsProblemResponseandFieldError
descriptions now name a string holding U+0000 beside a value of the wrong type.EmailAddressalso
refuses a control character (EmailAddress.Invalid). A body string of a feature of yours needs no NUL
check of its own, and a route value cannot carry one (Kestrel refuses%00in a path before routing,
whichRequestLimitTestspins); a string bound from the query reaches the handler as sent, so a
?search=filter of yours refuses U+0000 in its query's validator, and
EndpointContractTests.Every_query_value_of_a_GET_refuses_a_NULfails on any GET that answers a NUL in
its query with anything but a 400 (.claude/rules/api.md). - Aspire 13.6.5 (
Aspire.Hosting,Aspire.Hosting.AppHostthrough theAspire.AppHost.Sdkpin in the AppHost
project, and everyAspire.*package with them): GHSA-f7vh-h5g3-7jrh (CVE-2026-120006, an elevation of
privilege in Aspire, high) is published against every version below 13.6.5, andNuGetAuditturns it into
NU1903, an error in every Release build, until the graph moves. The floors the new packages set move with
them:Microsoft.Extensions.HostingandMicrosoft.Extensions.Diagnostics.HealthChecksto 10.0.14, and
through the EF health check EF Core itself (Microsoft.EntityFrameworkCore,.Design,
Microsoft.AspNetCore.Identity.EntityFrameworkCore) to 10.0.14, the versiondotnet-efalready had. The
shippedInitialCreateis regenerated on it (under Fixed).