Skip to content

Fix AGENTS.md: unenforceable rule and unverified deployment claim - #290

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-agents-md
Aug 22, 2026
Merged

Fix AGENTS.md: unenforceable rule and unverified deployment claim#290
TheGreatAxios merged 1 commit into
mainfrom
cl-agents-md

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The old "never assembled by spreading" rule contradicted exactOptionalPropertyTypes: true, which requires ...(x !== undefined ? {k:x} : {}) to omit an optional key. 90+ files already use this idiom (e.g. apps/sidecar/src/workflow-host-wiring/index.ts, which carries a comment apologizing for it). Carved out the exception instead of stating a rule the compiler forbids.
  • "Deployment is explicit via Pulumi (Railway)" isn't backed by anything in this repo — no pulumi dependency, no infra directory — and IMPLEMENTATION.md's own Open Questions section says where that config lives isn't established. Replaced the restated claim with a pointer to IMPLEMENTATION.md.
  • Added two lessons that cost real time in one session: scripts/checks/* are heuristics over source text and can false-positive (a check failure is a claim to verify, not a verdict), and CI green isn't proof the UI works — that's what scripts/e2e/browser/walkthrough.ts is for.
  • Made explicit that only "Conventions a check enforces" is actually enforced; everything else in the file is prose that can drift.
  • Verified docs/DECISIONS.md does not exist in this repo (it shouldn't — owner rulings belong in Linear) and confirmed every doc-map link still resolves.

Follow-up not done here: IMPLEMENTATION.md itself still states Pulumi/Railway deployment as fact in its Deployment section while flagging the config location as an open question two sections later — worth reconciling separately.

Test plan

  • bunx prettier --check AGENTS.md passes
  • Read-through: no remaining claim in AGENTS.md is unverifiable from this repo's own source

CL-6584

- exactOptionalPropertyTypes forces the ...(x !== undefined ? {k:x} : {})
  idiom to omit an optional key; the old "never assembled by spreading"
  rule contradicted this and was ignored in 90+ files. Carve out the
  exception instead of stating a rule the compiler forbids.
- "Deployment is explicit via Pulumi (Railway)" isn't backed by anything
  in this repo (no pulumi dependency, no infra directory) and
  IMPLEMENTATION.md itself lists where that config lives as an open
  question. Point at IMPLEMENTATION.md instead of restating an unsettled
  claim here.
- Add the two lessons that cost real time: scripts/checks/* are heuristics
  over source text and can false-positive, and CI green isn't proof the UI
  works (that's what scripts/e2e/browser/walkthrough.ts is for).
- Make explicit that only "Conventions a check enforces" is actually
  enforced; everything else is prose that can drift.
@TheGreatAxios
TheGreatAxios merged commit d43c560 into main Aug 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant