Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
7df3db5
feat(node): add model hosting config and schema
beardthelion Nov 19, 2026
fc84e88
feat(node): add content-addressed BlockStore with fs and S3 backends
beardthelion Nov 19, 2026
74209f4
feat(core): add content-defined chunking and reconstruction format
beardthelion Nov 19, 2026
1ba7e05
feat(core): add signed model release manifest format
beardthelion Nov 19, 2026
259f7a1
fix(core): pack new chunks into full blocks across reused runs
beardthelion Nov 19, 2026
03e5558
perf(core): rebuild files from chunk ranges, not whole blocks
beardthelion Nov 19, 2026
b794a7c
fix(node): fsync the block directory after linking
beardthelion Nov 19, 2026
d7d744d
style(core): apply rustfmt to the seal call sites
beardthelion Nov 19, 2026
16d0a30
style(core): satisfy clippy in packing and rebuild
beardthelion Nov 19, 2026
26e577d
refactor: simplify model hosting foundation
beardthelion Nov 19, 2026
6c5431b
fix(node): align S3 range reads with the BlockStore contract
beardthelion Nov 19, 2026
31140ff
feat(node): add model upload sessions, release claims, and reclamation
beardthelion Nov 19, 2026
440a7cf
fix(node): cap the first claim's quota reservation too
beardthelion Nov 19, 2026
20fb3c3
fix(node): hide release refs from clone advertisement
beardthelion Nov 19, 2026
b263075
fix(node): stop block ingest when a repo leaves full publicity
beardthelion Nov 19, 2026
4ed781e
style(node): apply rustfmt to the quota test
beardthelion Nov 19, 2026
e2607f9
fix(node): rebuild releases with async range reads
beardthelion Nov 19, 2026
bb394dc
refactor(node): exit model workers on node shutdown
beardthelion Nov 19, 2026
2d29e93
fix(node): refund the admission on post-store failures
beardthelion Nov 19, 2026
690b062
feat(cli): add twigpine model publish
beardthelion Nov 19, 2026
ee8f61a
test(node): add HTTP coverage for model routes
beardthelion Nov 19, 2026
97c4d9b
refactor(node): tighten model publishing after the simplify pass
beardthelion Nov 19, 2026
0e7fb3c
fix(node): harden model publishing after the review pass
beardthelion Nov 19, 2026
9207ee2
chore(cli): annotate model publish's local git spawns
beardthelion Nov 19, 2026
236728e
fix(node): refuse mirror rows for model publishing
beardthelion Nov 19, 2026
27e971c
fix(node): fail closed on mirror rows at every model publicity check
beardthelion Nov 19, 2026
7a792f0
fix(node): stream model packing, make the block store durable, tighte…
beardthelion Nov 20, 2026
c301982
Merge origin/main into feat/model-hosting-foundation
beardthelion Nov 20, 2026
85e4124
fix(node): pin model.rs on the read_json gate, expire open sessions o…
beardthelion Nov 20, 2026
2973f3e
fix(node): fail closed on hostile reconstruction metadata, clean up c…
beardthelion Nov 21, 2026
c122683
Merge origin/main into feat/model-hosting-foundation
beardthelion Nov 21, 2026
8d6cae2
fix(node): ignore expired sessions in cap sums, refund dedup of relea…
beardthelion Nov 21, 2026
6586831
Merge origin/feat/model-hosting-foundation into feat/model-hosting-pu…
beardthelion Nov 21, 2026
b518cad
fix(node): refund and skip the session link only for blocks the owner…
beardthelion Nov 21, 2026
2a3497c
docs(node): state that a rejected release is final for its commit
beardthelion Nov 21, 2026
9d90186
fix(node): dedupe packed block rows and harden reconstruction range m…
beardthelion Nov 22, 2026
a3edf07
fix(node): check sealed blocks against prior layouts and restore the …
beardthelion Nov 22, 2026
4806c29
Merge origin/feat/model-hosting-foundation into feat/model-hosting-pu…
beardthelion Nov 22, 2026
5902079
fix(node): fsync the publish resume file through a writable handle an…
beardthelion Nov 22, 2026
c2c6fc1
Merge pull request #622 from Twigpine/feat/model-hosting-publish
beardthelion Nov 23, 2026
f654f58
Merge origin/main into feat/model-hosting-foundation
beardthelion Nov 23, 2026
f72024b
test(node): assert owner claim POST on a private repo returns 400
beardthelion Nov 23, 2026
9beba13
fix(cli): exit non-zero when publish is still verifying past the poll…
beardthelion Nov 23, 2026
2ef2b63
fix(node): reject a release after five consecutive verify failures
beardthelion Nov 23, 2026
0b919dd
style: cargo fmt
beardthelion Nov 23, 2026
c1c6c40
fix(cli): isolate release staging, literal pathspecs, remote push che…
beardthelion Nov 23, 2026
bca662b
fix(node): digest replay before parent check, admit lock in claim, ca…
beardthelion Nov 23, 2026
bcf17f0
fix(node): flush before sync, fsync chain on retry and delete, bound …
beardthelion Nov 23, 2026
51d47a8
fix(node): sweep session links by state, grace recheck on delete, ses…
beardthelion Nov 23, 2026
b422501
docs(node): model routes gated on hosting and store, s3 lifecycle note
beardthelion Nov 23, 2026
02a89fd
fix(cli): sync released paths in the real index back to HEAD after co…
beardthelion Nov 23, 2026
7ddab0a
fix(node): map a relative blockstore root's top parent to the current…
beardthelion Nov 23, 2026
7eb976a
fix(node): read committed paths with ls-tree -z so non-ASCII names ve…
beardthelion Nov 23, 2026
ac93b89
style: cargo fmt
beardthelion Nov 23, 2026
aaa000a
fix(node): upload bookkeeping survives a dropped request and never de…
beardthelion Nov 23, 2026
e0ffc62
fix(node): charge blocks to their payer and reconcile quota on releas…
beardthelion Nov 23, 2026
69c3e6a
fix(node): publish only while the repo is still fully public and drop…
beardthelion Nov 23, 2026
dccec6d
style: satisfy clippy in the payer ledger tests
beardthelion Nov 24, 2026
9c7432b
fix(node): remove a rejected release's hidden pin on every reject path
beardthelion Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ jobs:
- name: cargo test (real-node deny harness)
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/gitlawb_test
run: cargo test --locked -p twigpine-node --features test-harness --lib --test deny_harness
run: cargo test --locked -p twigpine-node --features test-harness --lib --test deny_harness --test models_api

build-release:
name: build --release
Expand Down
3 changes: 2 additions & 1 deletion crates/twigpine-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ alloy = { version = "1", default-features = false, features = [
"rpc-types-eth",
] }

ed25519-dalek = { workspace = true }

[dev-dependencies]
mockito = "1"
tempfile = "3"
tokio = { workspace = true }
ed25519-dalek = { workspace = true }
19 changes: 19 additions & 0 deletions crates/twigpine-cli/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,25 @@ impl NodeClient {
self.send_signed("PUT", path, body).await
}

/// PUT raw bytes with no signature and caller-supplied extra headers.
/// Used only for the model block upload, where the session id IS the
/// bearer credential and the body is too large to buffer for signing.
/// Content-Length is set by reqwest from the body, which the route
/// requires. Every other write goes through `put`/`post`/`delete`.
pub async fn put_unsigned(
&self,
path: &str,
body: Vec<u8>,
headers: &[(&str, &str)],
) -> Result<reqwest::Response> {
let url = format!("{}{}", self.node_url, path);
let mut req = self.inner.put(&url).body(body);
for (name, value) in headers {
req = req.header(*name, *value);
}
req.send().await.with_context(|| format!("PUT {url}"))
}

/// DELETE with RFC 9421 signing + transparent iCaptcha solve/retry.
pub async fn delete(&self, path: &str, body: &[u8]) -> Result<reqwest::Response> {
self.send_signed("DELETE", path, body).await
Expand Down
8 changes: 8 additions & 0 deletions crates/twigpine-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ mod ipfs_cmd;
mod issue;
mod mcp;
mod mirror;
mod model;
mod name;
mod node;
mod node_stake;
Expand Down Expand Up @@ -140,6 +141,12 @@ enum Commands {

/// Print your current identity (DID) and optional node info
Whoami(whoami::WhoamiArgs),

/// Publish open-weight model releases
Model {
#[command(subcommand)]
cmd: model::ModelCmd,
},
}

/// The command was `gl` before the rename and still answers to it. Say so
Expand Down Expand Up @@ -236,6 +243,7 @@ async fn run() -> Result<()> {
Commands::Bounty(args) => bounty::run(args).await,
Commands::Ucan(args) => ucan_cmd::run(args).await,
Commands::Whoami(args) => whoami::run(args).await,
Commands::Model { cmd } => model::run(cmd).await,
}
}

Expand Down
Loading
Loading