Skip to content

fix: combined sweep of open issues (#192 #198 #212–#218 #220 #221) - #230

Merged
jrosskopf merged 45 commits into
mainfrom
fix/combined-issue-sweep
Nov 21, 2026
Merged

jrosskopf merged 45 commits into
mainfrom
fix/combined-issue-sweep

Conversation

@jrosskopf

@jrosskopf jrosskopf commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Combines the seven batch PRs (#223–#229) into one branch, merged and tested together. Conflicts were limited to CHANGELOG.md, test/cpp/route_precedence_test.cpp and cli/src/commands/cache/index.ts (kept both sides).

Not in this PR: #208 (deferred), MCP listChanged, and batch F (#219 remote template.path, #213 VFS segfault, #198 remote --config).

Test plan

  • make release builds
  • ctest serial: 999/999 (AWS Secrets Manager test skipped)
  • make integration-test-ci: 1397 passed, 18 skipped
  • cd cli && npx tsc --noEmit clean; CLI unit tests 76/76
  • CI green on this PR

Supersedes #223 #224 #225 #226 #227 #228 #229. Refs #192 #198 #212 #213 #214 #215 #216 #217 #218 #220 #221


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

- Add a typecheck script (tsc --noEmit) and a cli-typecheck job
- Currently red: 37 pre-existing type errors, fixed in the next commit
- Type the cache/templates spinners as optional
- Console.error takes one string; interpolate the details
- Add @types/lodash.kebabcase, the yaml base-url key, role on Gemini contents
- Build GeminiAuthConfig whole instead of from {}, drop unused google import
- Fix enquirer prompt option types and a few unknown/Buffer casts
…, populate lock, DECIMAL (red)

- hyphenated ducklake alias / cache schema must boot, refresh and serve (#198)
- debug log must not print a connection password (#198)
- session TimeZone defaults to UTC regardless of host TZ (#212)
- SQLite write during a slow populate must wait for it (#216)
- DECIMAL wider than a double is serialised exactly (#217)
- Real-binary tests: %37 into an int validator, %20, %2F stays one segment,
  + stays a plus, bad escapes and %00 are 400, decoded once
- Path values cannot be overridden by query or body
- A body field is not satisfied by the query string, nor a query field by the body
)

- Unquoted, quoted and LIKE sites; typed literals and enum identifiers stay literal
…nce triple-brace binds) (#217)

- Guards the triple-brace forms inside AT(...) and the bare date/int binds that already work
…e never shadows (red) (#221)

- Plaintext vs PBKDF2 hash of one password, OIDC preset vs spelled-out issuer, and
  an open literal under an allowed open middle route must start (refused today)
- Guards: different password/issuer/user, uncovered literal, unprovable re-salted hashes stay refused
- Pin that flapi_create_endpoint ignores allow-shadowing in any spelling
- Route still matches the raw path, so %2F stays inside one segment
- Each captured value is decoded once before validation; + stays a plus
- Malformed escapes, %00 and invalid UTF-8 are 400
- A declared field is read only from its source (path, query, body, header)
- Route parameters are path-only and cannot be overridden by query or body
- Undeclared names keep the any-source behaviour so unknown-param checks still work
…er (#192)

- '{{{x}}}' and {{{x}}} become ?, '%{{{x}}}%' becomes ('%' || ? || '%')
- Stays raw inside sections, comments, enum identifiers, typed literals (DATE '...'),
  names after FROM/JOIN/BY, and identifier-glued tags
- An absent quoted value still binds '' as it used to render
- Tags in SQL comments are no longer turned into placeholders
…_warming (red) (#198 #217)

- Tight-poll /health and /cached from first bind across restarts
- Replica of a never-built table must answer cache_not_built immediately
- Log line on initializeReadiness so the single-init invariant is observable
#198 #217)

- warmUpCaches/warmUpCachesAsync no longer re-run initializeReadiness (it clear()ed live state)
- Read-only replicas set Ready/Unbuilt at DatabaseManager startup, before the HTTP thread
- Correct the /health expectation in the replica test; document in caching.md
…a populate attaches (#218)

- A populate template's ATTACH runs on refresh only; an uncached endpoint reading that alias never sees it, or a rename-published update of it
- The hook also passes the server's stale-alias validation warning on
- DuckLake resolves AT before parameters are bound, so a triple-brace value
  there (also inside quotes and CAST) is rendered, never turned into a ?
…192, #217)

- CONFIG_REFERENCE 4.2, 5.9 and 9.x, REQUEST_LIFECYCLE, security, query-execution, rest-endpoints guide
- CHANGELOG upgrade notes
- POST /mcp/jsonrpc initialize, tools/list, tools/call and a malformed body
  must all answer with X-Request-Id; today none do
- Text and JSON formats, and exactly one Request: line per request
- A task queued behind a busy worker must show its queue wait in an mcp_task series
…ams (red, #215)

- two bad templates are both listed, params.nope fails validation
- a template using path/header/body fields, sections, conn/env/cache/context is not flagged
…one, lock source for populate, exact wide DECIMAL (#198 #212 #216 #217)

- sql::QuoteIdentifier/EscapeSqlLiteral live in sql_utils; the DuckLake ATTACH/DETACH,
  CREATE SCHEMA, audit table/insert and the audit REST query quote alias and schema,
  so my-lake / my-schema boot and serve (#198)
- Debug logging no longer dumps the template context (conn.* secrets) and scrubs
  connection credentials from the rendered SQL line (#198)
- DuckDB TimeZone is set GLOBAL to UTC (or the user's duckdb.TimeZone, any key case)
  after the engine opens and logged; per-connection SET fallback if ICU is not loadable (#212)
- A cache populate takes the source connection's serialize-access lock after the
  catalog write lock (fixed order) via ICacheDatabaseAdapter::lockSourceAccess (#216)
- DECIMAL with more than 15 significant digits is an exact JSON string instead of a
  rounded double; documented as a type change (#217)
- Docs: CONFIG_REFERENCE, caching, query-execution, CHANGELOG; Catch2 cases for quoting
- Delete data_manager_ducklake_test.cpp (near-duplicate, never compiled)
- Register database_manager_ducklake_test.cpp in test/cpp/CMakeLists.txt
- Use hyphenated metadata-path/data-path keys, drop the unread server-name key
- information_schema does not exist on a DuckLake catalog; assert via duckdb_databases()/duckdb_schemas() counts
- RAII teardown (shutdown + reset + remove temp dir) that runs on failed REQUIRE
…reports a stale alias (red) (#218)

- Slow populate plus two concurrent refreshes: the second answers 200 already_running today
- Two cached tables on one catalog: GC for the first reports nothing_to_expire / 0 bytes, no pinned_by
- Populate validation after an atomic rename of the attached file: bind error, no stale warning
- A plaintext password and the hash of it are one user (verified); salted hashes
  of one password cannot be proven equal and stay refused
- OIDC is compared with the provider preset applied; email-claim, jwks-cache-hours,
  enable-client-credentials and enable-refresh-tokens are not identity
- An overlap is judged against the endpoint that actually answers: a literal
  covered by an equivalent-auth, allow-shadowing middle route needs no flag
- flapi_create_endpoint never opts into shadowing (pinned and documented)
- EndpointRepository takes a shared_mutex; the false locking comment is fixed
Refs #198
…nned files, stale alias in validation (#218)

- A refresh skipped because one of the same table is running answers 409 + Retry-After instead of 200 already_running
- GC names the other cached tables whose retained snapshots pin this table's old files and reports pinned_bytes, instead of nothing_to_expire / 0 bytes (pin holder text shared with drop-table)
- Populate validation against an alias the server attached before an atomic rename of its file reports a stale warning (Linux: the open file is unlinked from its path) instead of a bind error against the old file
…published sources (#218)

- CLI: cache refresh reports the 409 already_running answer and exits non-zero
- Caching guide: small cached stats endpoint whose populate re-attaches
- API reference, plugin API reference and spec updated
- patch changed keys into the existing text instead of re-emitting the file
- verified by re-parsing; falls back to the re-emit for layouts it cannot patch
# Conflicts:
#	test/cpp/route_precedence_test.cpp
# Conflicts:
#	cli/src/commands/cache/index.ts
…ows nine)

- The wrap regex had 17 groups; CMake 3.21 (Linux CI image) fails to compile it
- Output is byte-identical to before
@jrosskopf
jrosskopf merged commit 0673f46 into main Nov 21, 2026
27 checks passed
@jrosskopf
jrosskopf deleted the fix/combined-issue-sweep branch November 21, 2026 03:24
This was referenced Nov 21, 2026
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