Skip to content

fix: Remote template.path and --config load through the VFS (#219 #198 #213) - #231

Merged
jrosskopf merged 5 commits into
mainfrom
fix/gh-213-219-198-remote-vfs
Nov 21, 2026
Merged

jrosskopf merged 5 commits into
mainfrom
fix/gh-213-219-198-remote-vfs

Conversation

@jrosskopf

@jrosskopf jrosskopf commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • A remote template.path (s3://, gs://, az://, http(s)://) is kept as a URL instead of being normalised into <cwd>/s3:/bucket/.... Endpoint YAMLs are listed by recursive glob, or by a manifest.txt at the root (plain http(s), and the fallback when a glob finds nothing). Templates are read through the VFS, and --validate-config checks them.
  • --config http(s)://... boots: remote files are read through a private in-memory DuckDB (httpfs, environment credentials) that exists before DatabaseManager.
  • DuckDBVFSProvider keeps no FileSystem pointer (dangling after a database reset), works without a DatabaseManager, runs its calls inside a transaction, and FileExists works for http(s).

Test plan

  • test/integration/test_remote_templates.py (red before, green after): http template dir + manifest validates and serves, missing manifest names what to add, s3:// is not mangled, --config http://... boots
  • Provider lifetime unit tests in test_vfs_adapter.cpp
  • ctest serial 999/999, integration 1397 passed / 18 skipped
  • Not tested against a real S3/GCS/Azure bucket (glob listing)

Closes #219
Closes #213
Refs #198 (remote --config boot)


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

- http.server stands in for the object store; manifest.txt for plain http listing
…#213)

- DuckDBVFSProvider keeps no FileSystem pointer: each call resolves one, from DatabaseManager or a bootstrap in-memory DuckDB with httpfs, inside a transaction
- FileExists opens the file (httpfs answers false for every URL otherwise)
- template.path in s3/gs/az/http(s) is no longer joined to the config dir and normalised
- Endpoint YAMLs under a remote path are listed by glob, or by manifest.txt (plain http)
- Remote-aware existence, traversal and syntax checks in --validate-config
…213)

- CONFIG_REFERENCE, cloud-storage guide, config-system spec, plugin reference, CHANGELOG
- test: provider works without DatabaseManager and survives a reset
- Delete .beads/, its .gitattributes merge driver and .gitignore entries
- Drop the beads/bd sections and bd commands from AGENTS.md (CLAUDE.md links to it)
- GitHub issues are the only tracker
- The CI run read the server log mid-write and json.loads failed on the last line
- Skip undecodable lines and poll briefly for the Request: line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant