docs(agents): distill #147 learnings (poll deadlines, test-file split scheduling)
CI / ci (push) Canceled after 0s

This commit is contained in:
AlexKucera committed 2026-11-03 13:49:26 +01:00
1 parent 4606fd4628
commit 084847cd7d
1 file changed
+2
+2
View File
@@ -185,6 +185,8 @@ This project is indexed by GitNexus as **museion** (5849 symbols, 24595 relation
- A wrapped condition list gets its brace pushed to its own line by swiftformat, which swiftlint's opening_brace then flags — avoid the wrap (nested ifs / a hoisted helper), don't fight the formatter (#142)
- swiftformat's self-remove strips a load-bearing `self.` when a local hoists a property for a detached capture (`let x = self.x` becomes the self-referential `let x = x`) — rename the local so nothing shadows (#143)
- A `//` note sitting between a `///` doc block and its declaration detaches the doc (swiftlint orphaned_doc_comment) — fold such notes into the `///` block (#143)
- Sequential bounded-poll loops each arm their OWN deadline — a shared one starves the later loop, which then fails on the earlier flush's stale observable (zeros, never nil) (#147)
- A pure test-file split changes Swift Testing's parallel schedule — a green-by-luck timing test can fail ~50% idle; fix the test's timing assumptions, not the split (#147)
### Trust boundaries
- A guard defending against a downstream validation must mirror its EXACT emptiness/shape semantics — FixCardStore validates TRIMMED emptiness, so an `isEmpty` guard passes whitespace-only phrases through and the whole-call failure silently kills the entire submit (#6)
- A trust gate matches its SINK's grammar, not just its own format check — `trustworthyURL` (built for line-bounded frontmatter) passed URLs whose `)` injects a live link once the sink became markdown; gate at the sink (angle-form destination), never trust the reused gate (#34)