Skip to content

Commit 73b5e2f

Browse files
committed
feat(acp-nats): add load_session handler
- Add load_session handler with session validation and session.ready lifecycle - Add validate_session_id to config for session-scoped subject validation - Add session_load subject for {prefix}.{session_id}.agent.session.load - Add Bridge::validate_session for pre-flight session ID checks - Tests: happy path, NATS failure, invalid JSON, map_*_error branches, metrics Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent af437c6 commit 73b5e2f

13 files changed

Lines changed: 865 additions & 42 deletions

File tree

.github/workflows/ci-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
working-directory: rsworkspace
3636

3737
- name: Run clippy
38-
run: cargo clippy --all-targets --all-features -- -D warnings
38+
run: cargo clippy --all-targets --all-features
3939
working-directory: rsworkspace
4040

4141
- name: Build

.mise.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ depends = ["check:rust"]
1919

2020
[tasks."check:rust"]
2121
dir = "rsworkspace"
22-
run = "cargo clippy --workspace -- -D warnings && cargo fmt --check"
22+
run = "cargo clippy --workspace && cargo fmt --check"
23+
24+
[tasks."rsc"]
25+
description = "Format and check all Rust code (fmt, clippy, all targets, all features)"
26+
dir = "rsworkspace"
27+
run = "cargo fmt && cargo clippy --all-targets --all-features"

rsworkspace/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
resolver = "2"
33
members = ["crates/*"]
44

5+
[workspace.lints.rust]
6+
warnings = "deny"
7+
8+
[workspace.lints.clippy]
9+
all = "deny"
10+
511
[profile.release]
612
lto = "thin"
713
strip = "symbols"

rsworkspace/crates/acp-nats/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "acp-nats"
33
version = "0.1.0"
44
edition = "2024"
55

6+
[lints]
7+
workspace = true
8+
69
[dependencies]
710
agent-client-protocol = "0.9.4"
811
opentelemetry = "0.31.0"

0 commit comments

Comments
 (0)