Skip to content

chore(deps): bump the Effect RCs from rc.112 to rc.115 - #284

Merged
allisonmahmood merged 8 commits into
mainfrom
deps/effect-rc-115
Sep 19, 2026
Merged

allisonmahmood merged 8 commits into
mainfrom
deps/effect-rc-115

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Dependabot opened five PRs for the Effect 4 RC bump (#273, #275, #277, #278, #279), one per package, and each fails alone because the RCs ship in lockstep. This PR lands rc.112 → rc.115 for effect, @effect/platform-node, @effect/sql-pg, @effect/sql-pglite and @effect/vitest together through the pnpm catalog, and fixes what the three RCs broke.

What the RCs changed for us

  • @effect/sql-pg replaced pg with a native client. Rows now decode int8 as bigint and timestamps as epoch milliseconds, PgClient.fromPool is gone, and the extended protocol takes one statement per query. @patchy/sql now owns a types registry that keeps int8 as a decimal string and timestamps as Date, so no row schema moved and PGlite still answers the same shapes; @patchy/company-database builds its pools on it and drops its direct pg dependency. Migration records are ddl(...statements), one statement per string. A plain timestamp is read as UTC wall time on both Postgres and PGlite, with a parity assertion in the inventory contract.
  • Pools tick on the wall clock. The native pool runs an idle sweep on the Effect clock; a test that calls TestClock.setTime on a far date replays that timer millions of times and never returns (OrphanSweep, Pages, DeviceLogins all hung). Sql.pool provides the live clock to the pool only, so virtual time still drives domain timestamps.
  • PascalCase constructors. Config.string/int/redacted → Config.String/Int/Redacted, mapOrFail → mapEffect; CLI Flag, Argument, Prompt and GlobalFlag constructors likewise (choice → Literals, float → Finite, Prompt.text → Prompt.String). Parsing behavior is unchanged.
  • FileSystem.Size → ByteSize for HttpServerRequest.MaxBodySize.
  • parseOptions annotations no longer affect parsing. The now-inert annotations are removed and every decoder that must reject unknown fields passes onExcessProperty: "error" at the parser: the publish manifest, the runtime envelope, operation arguments and principal, and the shell broker. POST /api/sdk/generate now reads its body raw and decodes it strictly, since the HttpApi payload decoder would strip unknown fields; a raw HTTP test covers it. Nothing on the wire loosened.
  • onExcessProperty: "preserve" was removed. patchy.json reads use Schema.StructWithRest so a rewrite still keeps keys the repo added.
  • HttpServer.address is a NetAddress.SocketAddress; socket tests check for a Unix path instead of a TcpAddress tag.
  • msgpackr left @effect/platform-node, so its allowBuilds entry is gone from the workspace file.
  • Connection URLs. The native client resolves dbname and user parameters differently from pg, and reads no ssl= or statement_timeout= at all. Company pools pass the placement's database and the validated login as explicit options, so neither a dbname parameter nor an empty user= can redirect them. A URL carrying a parameter the client does not read fails at startup with UnsupportedUrlParameters (and the company URL schema refuses it) rather than silently connecting without TLS; ask for TLS with sslmode=.

Not in this PR

Verification

  • pnpm lint, pnpm typecheck pass.
  • pnpm test: 939 of 939 pass after the review fixes (the first run had two 5-second load timeouts that passed in isolation; nothing was relaxed).
  • pnpm test:postgres-concurrency: 7 of 7 pass.

Rebased onto main after the portal stack landed.

Model: Claude Fable 5.1. Harness: Claude Code.

@github-actions github-actions Bot added area:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area size:l 501-1,000 changed lines labels Sep 16, 2026

@allisonmahmood allisonmahmood left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed only git diff origin/portal/cleanup-portal-router...HEAD, commit 81708b6. No repository edits.

Standards

P2: The strict manifest contract was not carried through to its server consumer. packages/api/src/schemas.ts:404-420 removes GenerationManifest's strict annotation, but packages/sdk/src/SdkApi.ts:52-55 still uses default HttpApi payload decoding. This misses the root agent instructions' “Hit every surface” rule that wire changes follow through to the server handler. Restore strict decoding at the generation request boundary. This is the same defect examined under Spec below, not another independent bug. No separate smell finding.

Spec

  1. P2: The new SQL splitter rejects valid PostgreSQL scripts. packages/sql/src/index.ts:102-107 stops block comments at the first */ and strings at the next quote, ignoring nested comments and escape-string backslashes. I ran SELECT E'it\'s; valid' AS value; and /* outer /* inner */ ; still comment */ SELECT 1 AS value; against disposable Postgres. Both execute directly; both fail through Sql.ddl with SQLSTATE 42601. The promised split “on statement ends” is incomplete. Track block-comment depth and PostgreSQL escape-string quoting, with regression cases. All eight current migrations do pass; this affects valid scripts beyond those fixtures.

  2. P2: Timestamp-without-zone parity changes outside UTC. packages/sql/src/index.ts:49-58 maps timestamp and timestamptz identically. Under TZ=America/New_York, '2024-02-29 12:34:56.123'::timestamp becomes 12:34:56.123Z through the new registry but 17:34:56.123Z through company-database's configured PGlite parsers. Timestamp arrays diverge identically. The PR's claim that PGlite retains matching results is therefore incomplete. Preserve the previous local-wall-time interpretation for OID 1114, or explicitly normalize both adapters to UTC and document that change. Keep timestamptz as an instant. Add a non-UTC parity case; no current application query using plain timestamp was found.

  3. P2: SDK generation silently discards invalid manifest fields. packages/api/src/schemas.ts:420 removes the annotation without migrating /api/sdk/generate to an explicit strict parser. Reproduced with the actual GenerateRequest schema: columns.title = { kind: "text", optionall: true } succeeds and becomes { kind: "text" }; strict decoding rejects it. SdkApi.ts:52 receives this already-stripped payload. This contradicts the PR's “manifest ... decoders ... already pass” claim and the release instruction to move annotation settings to parser APIs. Decode the original request body strictly before generation, and cover a raw HTTP request so client encoding cannot erase the malformed field first.

Verification and remaining requested checks

  • Correct the PR body's runtime claim: production /api/runtime/call uses handleRaw, strict RuntimeEnvelope decoding, and strict operation-handler decoding. PostgresShape extras are rejected there. The broker's request and route decoders are also strict. The direct RuntimeCall schema is permissive, but it is not the server admission decoder.
  • Exercised rows, values, raw, streaming and unprepared SQL paths; one-dimensional int8/timestamp arrays, null elements, inferred large integers/Dates and explicit PgTypes parameters round-trip. Native multidimensional arrays and infinite timestamps differ from PGlite; I found no current callers and am not treating those as additional blockers.
  • Pool creation, queries and transactions retained TestClock time, including a jump to 2100. No live-clock leakage into DateTime.now observed.
  • CLI help still labels wait as number and choices as choice; invalid choice, Infinity and integer arguments exit 1 with local JSON errors. ADR-0004 already permits usage on stdout for parse failures. No CLI README/ADR change needed for these renames.
  • Project.readRepo preserved nested object/array/null unknown values and rejected malformed known fields; both rewrite paths spread the decoded object. No type weakening found.
  • Migration spreads match server, dev runner and test template. SQL README and ADR-0009 were updated; no vocabulary, package layout, seed, dev-loop interface or rendered-page changes require further mirrored edits. No additional applicable release-note omission found. Current PR CI is green; I did not rerun the full suite.

Standards: 1 finding, worst is the unmigrated generation boundary. Spec: 3 findings, worst is silently weakened generation validation. I am not happy for this to merge until these are fixed.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review disposition for the first Astra pass (commit 5831f45):

  • SQL splitter rejects escaped strings and nested comments — fixed by removing the splitter. ddl(...statements) takes one statement per string; the eight migrations and the three tests that ran scripts are written out statement by statement.
  • Plain timestamp parity outside UTC — fixed. Both adapters now read a plain timestamp as UTC wall time (the registry keeps the native codec; PGlite gets a 1114 parser), documented in the sql README and ADR-0003, with a parity assertion in the inventory contract that runs over Postgres and PGlite.
  • /api/sdk/generate stripped unknown manifest fields — fixed. The route reads its body raw and decodes GenerateRequest with onExcessProperty: "error", answering the documented 400 { ok, error }; a raw HTTP test posts a manifest with an unknown column field and asserts the refusal.
  • Runtime claim in the PR body — corrected; the body now says nothing on the wire loosened. The runtime principal decoders (header and envelope) also pass the option explicitly now, which the Spec pass had flagged.
  • From the Standards pass: the company-database pool comment, the recursion guard note on the codec wrapper, types renamed to a private rowCodecs, layer/layerFromUrl ordered as consts, ADR-0003 wording.

Not taken: a shared tcpBaseUrl helper for the socket tests (the guard shape predates this PR).

@allisonmahmood allisonmahmood left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second pass at 5831f45, scoped to git diff origin/portal/cleanup-portal-router...HEAD. No repository files edited.

Previous findings

  • SQL splitter — fixed. packages/sql/src/index.ts now accepts explicit ddl(...statements); no SQL parsing remains. Migrated callers preserve statement boundaries. All eight migrations applied, a rerun applied none, and both escaped-string/nested-comment reproductions now pass.
  • Timestamp parity — fixed. PGlite’s OID 1114 parser now interprets plain timestamps as UTC, matching native Postgres; the SQL README documents this. Both inventory contracts passed under TZ=America/New_York. A separate probe confirmed scalar and timestamp-array parity, including null elements.
  • SDK strict manifest decoding — fixed, on both Standards and Spec axes. SdkApi uses handleRaw and strictly decodes the untouched GenerateRequest. The raw HTTP regression returns 400 for nested optionall; authenticated valid generation still succeeds.
  • Runtime strictness — confirmed. The existing envelope/operation boundaries remain strict. Both principal decoders now explicitly reject excess properties. Actual-route probes rejected extra header and body principal fields with 400 invalid_request, while the valid principal succeeded. Public admission’s intentional ordering is unchanged.

New issue

Standards P2 — document the new generation size boundary. packages/sdk/src/SdkApi.ts:31–34,75–80 introduces a 1 MiB request cap, but packages/api/src/api.ts:479–482 and docs/API.md:284 omit it. I sent a schema-valid oversized manifest: it returned 400, “Request body must be a JSON generate request.” Root instructions require wire behavior to be described in the API source and mirrored docs. Declare the cap and overflow response there; otherwise agents cannot distinguish this limit from invalid JSON/schema input.

Six focused existing tests passed; additional DDL, array-parity, principal and size-boundary probes completed. No full-suite rerun; current CI still has pending jobs.

Standards: 1 remaining finding, the undocumented cap. Spec: 0 unresolved original findings or new blockers. I am not yet happy to merge: document this new request boundary and wait for green CI.

@allisonmahmood allisonmahmood left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 09c989b against git diff origin/portal/cleanup-portal-router...HEAD. No repository files edited.

Standards

The missing declaration is fixed: the endpoint and generated docs name the 1 MiB cap, 413 response and strict unknown-field handling. PayloadTooLarge is in the error union.

Spec

P2: The overflow promise remains too broad. packages/api/src/api.ts:483 says larger bodies answer 413. Against the actual SDK socket handler, a schema-valid 1,048,775-byte request with Content-Length returned 413 {ok:false,error:"Request body is too large."}. The identical body streamed without Content-Length instead closed the socket, producing a transport error and no HTTP response.

packages/api/src/respond.ts:84–89 only emits BodyTooLarge for declared lengths; streamed overflow follows the body-reader failure path. Document declared overflow separately from streaming cutoff, as other endpoints do, or make both paths return 413. This is a remaining contract mismatch, not an additional observed code regression.

The existing unknown-field and valid-generation tests passed, as did the declared-overflow probe; the streamed-413 probe failed.

Standards: 0 findings. Spec: 1 response-contract mismatch. Not yet happy to merge once CI is green; reconcile that promise first.

@allisonmahmood allisonmahmood left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 62a8144 against git diff origin/portal/cleanup-portal-router...HEAD.

Standards

Fixed. The endpoint description and regenerated docs/API.md agree: the cap is 1 MiB, a declared larger length answers 413, and streaming bodies are cut off at the cap.

Spec

Fixed. This now matches both actual-socket outcomes verified in the preceding review, without promising a 413 response for streamed overflow. No new findings in this documentation-only correction. No runtime tests rerun or files edited.

Standards: 0 outstanding findings. Spec: 0 outstanding findings. I am happy for PR #284 to merge once CI is green.

@allisonmahmood
allisonmahmood force-pushed the portal/cleanup-portal-router branch from ada4f7f to 82c40d5 Compare September 16, 2026 18:34
Base automatically changed from portal/cleanup-portal-router to main September 16, 2026 18:42
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Astra review

Reviewed origin/main...HEAD, base 9ce778c and head d119224, against this PR description, #273/#275/#277/#278/#279, the Effect RC bump policy, and the rc.113-115 release notes. One pass, no subagents or file edits.

Standards

No merge-blocking method or YAGNI findings.

Spec

  1. [P1][intent] Keep the company placement authoritative over the database name. PgCompanyDatabases.ts:82-89

    ADR-0009 requires that "the placement replaces its database name." The switch to the native client breaks that for an accepted URL such as postgresql://user:pass@host/template?dbname=template. databaseUrl changes only the pathname; the native parser then lets dbname override it. After the same pathname rewrite to /patchy_company_probe, I captured database=template in the native startup packet. The previous parser selects patchy_company_probe. Provisioning and company queries therefore target the wrong database, and different company pools can target the same database despite distinct placements. Pass the placement as the native client's explicit database option, which outranks the URL, or remove the overriding query parameter when constructing every company URL.

  2. [P1][intent] Do not silently discard URL-requested TLS. packages/sql/src/index.ts:76-82

    The stated intent is to "fix what the three RCs broke"; ADR-0009 also says the data URL supplies "server connection options." Previously, ?ssl=true enabled TLS through pg. The native client ignores that parameter, and these URL-only pool constructors supply no explicit SSL setting. I captured a plaintext StartupMessage with ?ssl=true; the control using ?sslmode=require emitted an SSLRequest. Existing configurations can therefore connect without encryption when the server permits it, or fail against TLS-only servers. Translate the previously supported TLS setting to the native client's explicit ssl option, or reject it with a clear migration error. Do not silently downgrade it.

Verification used the published rc.115 PgConnection implementation with an in-memory transport to inspect startup bytes, and the previous [email protected] parser for comparison. No database or credentials were accessed. Full project suites were not rerun because this worktree has no installed dependencies.

Summary: Standards 0 blockers; Spec 2 blockers, worst being the silent TLS downgrade.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Disposition for the Astra review of 2026-09-17 (fixed in 23ed310, rebased onto main):

  • Placement database vs dbname on the URL — fixed. Company pools now pass the placement's database as the native client's explicit database option, which outranks the URL's path and any dbname parameter; the URL-rewriting helper is gone.
  • ?ssl=true silently ignored — fixed. Sql.pool translates the pg-era ssl=true|false URL parameter to the native client's ssl option when no explicit ssl is set; sslmode keeps working natively. Documented in the sql README.

Kept as is: nothing.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Opus review

Reviewed origin/main...HEAD at 23ed310 (rebased onto main, including #283's CLI refactor). First reviewer standing in for grok build. No files edited.

Blocking

1. legacySsl still silently downgrades TLS — the thing it was added to prevent. packages/sql/src/index.ts:75-82

value === "true" || value === "1" maps every other value to false, and rc.115's resolveConfig (ssl: options.ssl ?? url.ssl ?? false) lets that explicit false outrank sslmode. [email protected] only coerces true/1 → true and 0 → false; any other value stays a truthy string, and pg's Client does this.ssl = params.ssl || false. So ?ssl=no-verify, ?ssl=require and ?ssl=yes all used TLS under pg and now connect in the clear, and ?ssl=no-verify&sslmode=require is downgraded from TLS to plaintext by the shim itself.

Either make the mapping right — 0/false off, anything else on, or fail on a value you do not recognize — or delete the shim. Nothing in this repo sets ?ssl=; twelve lines are worth it only if they are correct, and as written they are a new footgun rather than the removal of one.

Non-blocking

2. The body no longer describes the branch. It still ends "Stacked on portal/cleanup-portal-router (#282); merge after that branch" while the base is main, and says nothing about 23ed310. The placement database option and the ?ssl translation are the two riskiest behaviour changes here and would merge undocumented.

3. packages/patchy/src/Project.ts:82-87 widens the repo type. StructWithRest intersects { readonly [x: string]: unknown } into the decoded value, so repo.instnce now compiles (as unknown) at all four readRepo call sites. Keep the rest for the rewrite spread, hand consumers repoSchema.Type.

4. Three CLI manifest decoders quietly lost strictness when Manifest's annotation went: repoBuild.ts:29, devPreparation.ts:32, primitiveReminders.ts:12. All three read internally built values or a Patchy-generated file and I could not make one misbehave, but the body claims every decoder that must reject unknown fields now passes the option. Say these deliberately do not, or give it to them.

5. Import order. ByteSize was dropped into FileSystem's old slot: respond.ts:12, DevicePages.ts:4, PortalPages.ts:3, UserLifecyclePage.ts:2 each now read Effect, ByteSize, … against the alphabetical convention used everywhere else.

6. packages/sql/README.md:17 — "a Date, by way of types" names nothing in the code; the registry is rowCodecs, passed as the client's types option.

7. packages/sql/src/index.ts:51 — mapCodec<bigint, string | bigint>: decode always yields a string, the union exists only for the encode side, so Codec<B> overstates what a row holds.

Verified

  • Every migration compared statement-by-statement against git show origin/main:<file>: concatenated SQL is identical after whitespace normalisation in all six files. The only deltas are two SQL comment blocks (patches 0008, integrations 0007) that became TS comments. Nothing dropped, reordered or renumbered.
  • Sql.pool is the single construction seam — layer, layerFromUrl, both testing layers, the admin pool, the platform clone and every company pool. That is the right shape, and the wall-clock provision is scoped to it.
  • The placement fix is correct: rc.115 resolves options.database ?? url.database, so the explicit option beats a dbname parameter or the path.
  • rc.113's "plain object parameters are no longer inferred as JSON" does not bite: every JSONB write (Patches.ts:1790, SqlConnectionStore.ts:209,236) already encodes through Schema.fromJsonString.
  • Post-rebase grep is clean: no lowercase Config/Flag/Argument/Prompt/GlobalFlag constructor, no mapOrFail, FileSystem.Size, PgClient.fromPool or TcpAddress left anywhere.
  • packages/sql/CONTEXT.md needed no edit; README, ADR-0003, ADR-0009 and docs/API.md all moved. CI is green on 23ed310.

I would merge once the ssl mapping is fixed or dropped and the body is refreshed.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Astra review, second pass

Reviewed origin/main...HEAD at 23ed310, base 9ce778c. The rebase preserves #283's refusal allowlist, shared atomic repo writer, and canonical definition comparison.

Standards

Two P2 gaps under the focused-test rule:

  • No regression coverage for conflicting placement/dbname.
  • No regression coverage for URL TLS translation/precedence.

Spec

Original findings:

  • Placement P1 fixed. Explicit database wins; rc.115 startup bytes name the placement despite conflicting URL path/dbname.
  • ?ssl=true P1 fixed. HEAD emits SSLRequest and fails closed when TLS is refused.

New findings:

  • P1: The TLS bridge makes ?ssl=0&sslmode=verify-full plaintext. Both the old parser and bare rc.115 request TLS. ?ssl=no-verify also loses encryption. This contradicts "sslmode keeps working natively." Preserve legacy semantics or explicitly reject unsupported/conflicting settings.
  • P2: Company pools send an empty login for accepted ?user=, violating ADR-0009's "when nonempty" override rule. Pass the normalized username.
  • P2: The native cutover silently drops ?statement_timeout=1000, previously present in startup, violating ADR-0009's "server connection options" contract. Preserve it or reject it explicitly.

Verified with published rc.115, HEAD SQL code, an in-memory transport, and [email protected]/[email protected] comparisons. No database access, repository edits, or full-suite rerun.

Standards: 2 findings, worst missing TLS coverage. Spec: 3 findings, worst silent TLS downgrade. Not happy to merge yet, even with green CI.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Disposition for the Opus review and Astra's second pass (713fb88):

  • legacySsl mapped unknown values to plaintext; ?ssl=0&sslmode=verify-full and ?ssl=no-verify lost TLS; ?statement_timeout= silently dropped — fixed by removing the translation. Sql.pool refuses any URL parameter the native client does not read (UnsupportedUrlParameters, naming them and pointing at sslmode), and the company URL schema refuses the same list at startup. Nothing is emulated, nothing is dropped silently. Focused test in packages/sql/src/sql.test.ts.
  • Empty ?user= sent an empty login — fixed; company pools pass the validated login (last nonempty user, else the authority) as the explicit username option.
  • No regression coverage for placement vs dbname — added in CompanyDatabases.test.ts: a data URL with ?dbname=postgres&user= still lands in the placement database.
  • PR body stale — refreshed: base is main, and the URL semantics are described.
  • readRepo widened the repo type — fixed; consumers get repoSchema.Type, the rewrite spread still carries unknown keys.
  • Three CLI manifest decoders lost strictness — they pass onExcessProperty: "error" again.
  • Import order, README wording — fixed.

Kept as is: mapCodec<bigint, string | bigint> for int8; the union is what the codec's encode side receives from inferred parameters, and rows are typed by their row schemas, not by the codec.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Astra review, third pass

Reviewed origin/main...HEAD at 713fb88 against published @effect/[email protected].

Standards

Both prior coverage findings are fixed. The new tests cover unsupported TLS/timeout parameters and placement-vs-dbname with an empty user.

Two new findings under the service conventions:

  • P2: UnsupportedUrlParameters exposes arbitrary query-key text in its attributes/message. A percent-encoded newline survives decoding; an 8 KiB key appears unbounded. Bound and sanitize diagnostics while retaining useful parameter names.
  • P2: The company pool uses expressly forbidden catchTag. Use catchTags({ UnsupportedUrlParameters: Effect.die }).

Spec

  • TLS P1 fixed: ssl=0&sslmode=verify-full and ssl=no-verify now fail with UnsupportedUrlParameters before transport. Supported sslmode still emits SSLRequest and fails closed when TLS is refused.
  • Empty-login P2 fixed: startup packets contain the validated authority login for user=; nonempty final overrides still work.
  • Timeout P2 fixed: statement_timeout, including an empty value, is explicitly rejected. Both company URL settings reject unsupported keys during configuration.
  • Placement remains fixed: explicit database wins over URL path and dbname.

No new Spec findings. Verified HEAD SQL/config code with published rc.115 and an in-memory transport. No database access or repository edits; project suites were not rerun.

Standards: 2 findings, worst unbounded diagnostics. Spec: 0 outstanding findings. Not happy to merge until those Standards issues are fixed, then CI is green.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Disposition for Astra's third pass (1107377): the parameter names in UnsupportedUrlParameters are reported as printable ASCII, at most 64 characters and 8 names; the company pool catches by catchTags. Kept as is: nothing.

@github-actions github-actions Bot added area:primitives Patch tables and files area:integrations Company connections and integration implementations area:ui Portal and first-party browser pages, shared rendering and styles size:xl Over 1,000 changed lines; review in multiple passes and removed size:l 501-1,000 changed lines labels Sep 19, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Astra review, fourth pass

Reviewed origin/main...HEAD at 1107377.

Standards

Both prior P2s are fixed: diagnostic names are printable ASCII, capped at 64 characters and eight names; the company pool uses catchTags.

One new P2: the focused-test rule requires backend regression coverage. The committed URL test uses only two short printable names. Add one hostile-URL case covering control-character replacement and both caps.

Spec

No new findings. Adversarial probes of HEAD SQL code with published rc.115 passed, including encoded controls, 8 KiB keys and excess names. No repository files edited; full suite not rerun.

Standards: 1 P2, missing regression coverage. Spec: 0 findings. I am not yet happy to merge; add that regression case, then wait for green CI.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Disposition for Astra's fourth pass (d06594b): added the hostile-URL case to packages/sql/src/sql.test.ts (control character replaced, 64-character and 8-name caps). Kept as is: nothing.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Astra review, fifth pass

Reviewed origin/main...HEAD at d06594b.

Standards

Fixed. The committed regression asserts control-character replacement, the 64-character cap, and the eight-name cap.

Spec

No outstanding findings.

Both committed URL-diagnostic tests passed in an isolated run against the unchanged SQL module and pinned rc.115 dependencies. Full suite not rerun; CI is still running. No repository files edited.

Standards: 0 findings; Spec: 0 findings. I am happy for this to merge once CI is green.

allisonmahmood and others added 8 commits September 19, 2026 15:27
The Effect 4 RCs ship in lockstep, so the five Dependabot PRs fail one by one. Move the pnpm catalog to rc.115 for effect, @effect/platform-node, @effect/sql-pg, @effect/sql-pglite and @effect/vitest, and fix what the RCs broke: the native sql-pg client (row codecs kept as string/Date through a shared PgTypes registry, one statement per query for migrations, pools on the wall clock), PascalCase Config and CLI constructors, ByteSize for the body limit, inert parseOptions annotations, the removed "preserve" option, and the new socket address type.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Migration records list statements instead of running a script through a home-grown splitter, plain timestamps read as UTC on both Postgres and PGlite with a parity check, the runtime principal decoders and the SDK generate route decode strictly again, and the pool module names its codecs and documents the recursion guard.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The strict generate route reads its body under a 1 MiB cap; declare the cap, the 413 overflow and the unknown-field 400 on the endpoint, mirrored into docs/API.md.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ative client

Company pools pass the placement's database as the client's explicit option, so a dbname parameter on the data URL can no longer override it. Sql.pool translates the pg-era ?ssl=true|false URL parameter to the native client's ssl option instead of silently connecting in the clear.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
pg accepted ?ssl=, ?statement_timeout= and other parameters the native client silently drops, so a URL could lose its TLS. Sql.pool now fails with UnsupportedUrlParameters naming them, and the company database URL schema refuses them at startup. Company pools also pass the validated login explicitly, so an empty ?user= keeps the authority's name. The CLI manifest decoders that lost the strict annotation pass the parser option again, readRepo hands consumers the declared repo type, and the ByteSize imports sit in order.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@allisonmahmood
allisonmahmood merged commit 170ca25 into main Sep 19, 2026
8 checks passed
@allisonmahmood
allisonmahmood deleted the deps/effect-rc-115 branch September 19, 2026 13:35
allisonmahmood added a commit that referenced this pull request Sep 19, 2026
Dependabot's #276 bumps posthog-node to 5.52.1 against `main`; the range
now resolves to 5.52.4, so this lands the bump on top of the Effect RC
bump (#284) instead.

posthog-node 5.52 adds experimental distributed tracing (`startSpan`,
`withSpan`, a `traces` option), honours `Retry-After` for refused log
and metric batches, and drops oversized batches client-side.
`@patchy/analytics` uses only the client constructor, `capture` and
`shutdown`, none of which changed.

## Verification

- `pnpm typecheck` passes; `packages/analytics` tests pass (6 of 6).

Stacked on `deps/effect-rc-115` (#284); replaces #276.

Model: Claude Fable 5.1. Harness: Claude Code.

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
allisonmahmood added a commit that referenced this pull request Sep 19, 2026
Dependabot's #280 bumps the CLI's Vite to 8.3.0 against `main`. This
lands it on top of the Effect RC bump (#284) and moves the `patchy init`
scaffold's pin with it, so a scaffolded repo builds with the same Vite
major the CLI's dev loop is typed against.

Vite 8 replaces Rollup and esbuild with Rolldown and Oxc. The CLI only
calls `vite.build` in watch mode and reads the emitted `index.html`
asset (`packages/patchy/src/devWatch.ts`); that contract held.
`vite-plugin-singlefile` 2.3.3 declares Vite 8 support. Vitest stays at
4.1.11, whose peer range includes Vite 8, so the test runner now
resolves Vite 8 as well. No config in the repo uses a removed Vite
option.

## Verification

- `pnpm lint`, `pnpm typecheck` pass.
- `packages/patchy` and `packages/sdk` tests pass (305 and 11).
- `pnpm test:packed-cli-e2e` passes on Vite 8, including the scaffold
build and dev loop; the scaffold resolves its own ranges from the
registry with a fresh store, so it built on Vite 8 from its declared
pins.

Stacked on `deps/effect-rc-115` (#284); replaces #280.

Model: Claude Fable 5.1. Harness: Claude Code.

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
allisonmahmood added a commit that referenced this pull request Sep 19, 2026
`@effect/vitest` rc.115 declares a peer on vitest 5, which the Effect
bump (#284) left as a warning. This moves every package's vitest
devDependency to 5.0.1, which clears the peer warning and lands the
runner major on its own.

Checked against the Vitest 5 migration guide: the repo uses none of the
changed surfaces. No pool or worker id math, no `sequential` API, no
removed entry points, no reporter or coverage config, no nested
`vi.mock`, no `toThrow("")` or `expect.poll`; `inject`, `provide` and
`globalSetup` are unchanged. Mocks now clear before each test by
default, which the one fake-timer suite tolerates.

## Verification

- `pnpm lint`, `pnpm typecheck` pass.
- `pnpm test`: 939 of 939 pass, no deprecation output.
- `pnpm test:postgres-concurrency`: 7 of 7 pass.

Stacked on `deps/vite-8` (#286), since vitest 5 requires Vite 6.4 or
later.

Model: Claude Fable 5.1. Harness: Claude Code.

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area area:integrations Company connections and integration implementations area:primitives Patch tables and files area:server Touches the server area area:ui Portal and first-party browser pages, shared rendering and styles size:xl Over 1,000 changed lines; review in multiple passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant