CI / UI Checks (pull_request) Successful in 9s
CI / Rust Checks (pull_request) Failing after 4m10s
CI / Rust Feature Validation (pull_request) Skipped
CI / Frontend E2E (pull_request) Skipped
CI / Community Image Smoke (pull_request) Skipped
CI / Required Checks (pull_request) Failing after 1s
CI / Deploy (pull_request) Skipped
Story 3.19 / FR-19 на принятой базе Story 3.18 (`47a6e54`, PR #99): после commit опубликованного каталога Agent клиент получает `notifications/resources/list_changed` и/или `notifications/prompts/list_changed`, обе pinned revisions, а обычное чтение каталога остаётся авторитетным при потере сигнала. Scope ограничен list-change: `resources/subscribe`/`unsubscribe` остаются `-32601`, значение `resources.subscribe` остаётся `false` (одобренный владельцем вариант A). Публикация переносит только semantic delta Story 3.19 из `/home/codex/code/crank-worktrees/story31-worktree` (`1b6db09` + cumulative overlay) на принятый head 3.18, а не копирует worktree: - новый `protocol/signals.rs` (watcher, отпечаток каталога, bounded filter, revision-correct encoders, bounded legacy stream registry) и `protocol/signals_tests.rs` (17 unit oracles); - `subscriptions/listen` (modern-only dispatch registration) + честные `listChanged: true` объявления; `app/endpoint.rs` получает legacy GET producer/DELETE retire, `app/dispatch.rs` — modern listen stream; - ATDD `mcp_signals` 5 сценариев на реальном endpoint/PostgreSQL/artifact store; capability inventory и frozen/provenance проекции обновлены (`b90b59f3…`, inventory `10ca3538…`); - `scripts/ci-story-checks.sh`: добавлены 3.19-проверки, записи Story 3.18 сохранены (гейт не ослаблен). Принятая правка code-health `206ca78` сохранена: `app/endpoint.rs` 402 строки (было 381), `app/legacy_dispatch.rs` 731 без изменений, т.е. split не переписан. Новый ATDD-файл `mcp_signals.rs` до 1138 строк превышал лимит `scripts/check-rust-code-health.sh`, поэтому его сценарии механически вынесены в `mcp_signals/scenarios.rs` без изменения проверок. Наследованный дефект tooling-гейта: `tests/unit/test_validate_capability_inventory.py` требует, чтобы `Run tooling unit tests` шёл раньше `scripts/validate-capability-inventory.py`; в принятом `ci.yml` (3.18) шаг оказался в условном feature-job. Шаг перенесён в обязательный `rust` job перед проверкой inventory — исполняемый tooling-гейт теперь проверяется там же, где применяется; ни одна проверка не отключена и не ослаблена. Проверки на этом коммите: `ci-story-checks.sh` exit 0 — 4/9/1/12/10/3/5(+1 manual ignored)/17 passed; `crank-community-mcp --lib` 102/0; transport 20/0, mcp_prompts 15/0, revision_matrix::negotiation 23/0, era_isolation 5/0; `cargo fmt --check` и `cargo clippy -p crank-community-mcp -p mcp-server --all-targets -D warnings` — 0; `check-rust-code-health.sh` — pass; capability inventory `status=valid protocol_items=50 revisions=2`; `python3 -m unittest discover -s tests/unit` — 305 OK. NOT_RUN (честно, не PASS): полный `just verify`, межкомпонентная интеграция, нагрузка и квалификация ≥3 реальных клиентов — остаются на собранной фиче 3.20 по validation-policy.md.
57 lines
1.8 KiB
Rust
57 lines
1.8 KiB
Rust
//! Story 3.14 pre-build acceptance tests: discover and render the bound Published Prompts through
|
|
//! MCP (AT-3.14-01..04).
|
|
//!
|
|
//! Oracles: `docs/acceptance-test-plan.md` AT-3.14-01..04 and `_bmad-output/.../epics-source.md`
|
|
//! Story 3.14. Every request travels through the real HTTP endpoint built by `build_test_app` against
|
|
//! a real PostgreSQL registry; the bound versions are produced through the production registry path.
|
|
|
|
mod composition;
|
|
mod fixtures;
|
|
mod get;
|
|
mod latency;
|
|
mod list;
|
|
|
|
use serde_json::json;
|
|
|
|
use fixtures::*;
|
|
|
|
/// AT-3.14-04: the advertised capability equals the implemented surface on both revisions.
|
|
#[tokio::test]
|
|
async fn advertisement_declares_prompts_on_both_revisions() {
|
|
let endpoint = prompt_endpoint().await;
|
|
|
|
let discover = endpoint.modern("server/discover", json!({}), None).await;
|
|
assert_eq!(
|
|
discover["result"]["capabilities"]["prompts"],
|
|
json!({"listChanged": true}),
|
|
"the modern advertisement must declare the prompts capability: {discover}"
|
|
);
|
|
|
|
let initialize_response = endpoint
|
|
.client
|
|
.post(&endpoint.mcp_url)
|
|
.header(
|
|
reqwest::header::ACCEPT,
|
|
"application/json, text/event-stream",
|
|
)
|
|
.header(
|
|
reqwest::header::AUTHORIZATION,
|
|
format!("Bearer {}", endpoint.api_key),
|
|
)
|
|
.json(&json!({
|
|
"jsonrpc": "2.0",
|
|
"id": 11,
|
|
"method": "initialize",
|
|
"params": {"protocolVersion": LEGACY_REVISION, "capabilities": {}}
|
|
}))
|
|
.send()
|
|
.await
|
|
.unwrap();
|
|
let initialize = json_body(initialize_response).await;
|
|
assert_eq!(
|
|
initialize["result"]["capabilities"]["prompts"],
|
|
json!({"listChanged": true}),
|
|
"the legacy advertisement must declare the prompts capability: {initialize}"
|
|
);
|
|
}
|