Story 3.19 — уведомления об изменении Resource/Prompt каталога MCP (FR-19) #101
Closed
bsodfather
wants to merge 0 commits from
delivery/epic3-story-3.19 into main
pull from: delivery/epic3-story-3.19
merge into: bsodfather:main
bsodfather:main
bsodfather:delivery/rmcp107-progress-peer
bsodfather:delivery/rmcp107-subscriptions
bsodfather:delivery/rmcp107-logging-handler
bsodfather:delivery/rmcp107-notification-handlers
bsodfather:delivery/rmcp107-negotiation-handlers
bsodfather:delivery/rmcp107-tools
bsodfather:delivery/rmcp107-completion-handler
bsodfather:delivery/rmcp107-prompts-handlers
bsodfather:delivery/rmcp107-resource-handlers
bsodfather:delivery/rmcp107-responses
bsodfather:delivery/rmcp107-dispatch
bsodfather:delivery/rmcp107-initialized
bsodfather:delivery/rmcp107-ping
bsodfather:delivery/rmcp107-initialize-input
bsodfather:delivery/rmcp107-negotiation
bsodfather:delivery/rmcp107-envelopes
bsodfather:work/rmcp107-signals
bsodfather:delivery/rmcp107-progress-cancel
bsodfather:work/rmcp107-logging
bsodfather:fix/rustix-rustsec-2026-0486
bsodfather:delivery/rmcp107-completion
bsodfather:fix/rmcp-security-0462
bsodfather:delivery/rmcp107-prompts
bsodfather:delivery/rmcp107-resources
bsodfather:delivery/rmcp107-tools-responses
bsodfather:feat/rmcp107-tools-runtime
bsodfather:fix/trivy-runner-cache-20261108
bsodfather:fix/trivy-asset-api-20261108
bsodfather:fix/release-db-source-20261107
bsodfather:fix/release-resume-20261107
bsodfather:feat/rmcp106-tools-adapter
bsodfather:feat/story-4.5-input-continuation
bsodfather:delivery/epic4-story-4.4
bsodfather:delivery/ui-npm-tls12-cap
bsodfather:delivery/epic4-story-4.3
bsodfather:delivery/epic4-story-4.2
bsodfather:ops/separate-production-deploy
bsodfather:delivery/epic4-story-4.1
bsodfather:delivery/epic3-story-3.5
bsodfather:delivery/epic3-story-3.4
bsodfather:delivery/epic3-story-3.18
bsodfather:delivery/ui-image-security-fix
bsodfather:delivery/epic3-through-3.17
bsodfather:ops/ui-scope-20261025
bsodfather:ci/delivery-20261025
bsodfather:wip/hermes-checkpoint-20261025t100022z
bsodfather:wip/hermes-checkpoint-20261025t080537z
bsodfather:fix/epic2-external-uri-parity
bsodfather:maintenance/reconcile-20261003
bsodfather:master
bsodfather:fix/review-story-1-2
bsodfather:fix-review-story-1-2
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
feature-ready
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Фича/эпик собраны: выполнить необходимые полные интеграционные/E2E проверки CI.
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
bsodfather
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: bsodfather/crank#101
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Что получает пользователь
MCP-клиент, подключённый к опубликованному Agent, узнаёт об изменении доступного ему каталога сразу после commit публикации, а не только при следующем чтении:
2025-11-25: после commit опубликованных привязок Resource/Prompt в уже открытый поток уведомлений приходятnotifications/resources/list_changedи/илиnotifications/prompts/list_changed— без параметров, без URI/имени/содержимого.2026-07-28:subscriptions/listenоткрывает поток, первый кадр —notifications/subscriptions/acknowledgedс id подписки и только с теми типами, на которые клиент реально подписался; дальше идут те же list-change кадры с этим id.resources/list,resources/templates/list,resources/read,prompts/list,prompts/getостаются авторитетными — потерянное уведомление восстанавливается обычным чтением каталога.resources/subscribe/unsubscribeостаются-32601,resources.subscribeв объявлении остаётсяfalse,notifications/resources/updatedне отправляется.Как собран коммит
Только semantic delta Story 3.19, перенесённая на принятый head Story 3.18
47a6e54(PR #99), а не копия cumulative worktree:protocol/signals.rs(482) +protocol/signals_tests.rs(411, 17 unit oracles) и ATDDtests/integration/mcp_signals.rs5 сценариев (1 manual stand ignored);subscriptions/listenкак modern-only dispatch registration, честныеlistChanged: true, legacy GET producer / DELETE retire, modern listen stream;10ca3538…, frozen-проекцияb90b59f3…и provenance для обеих revisions;scripts/ci-story-checks.sh: добавлены 3.19-проверки, записи 3.18 сохранены.Принятая правка code-health
206ca78сохранена:app/endpoint.rs402 строки (split не переписан),app/legacy_dispatch.rs731 без изменений. Новый ATDD-файл превышал лимит 1000 строк, поэтому его сценарии механически вынесены вmcp_signals/scenarios.rsбез изменения проверок.Наследованный дефект tooling-гейта (тест
test_validate_capability_inventory.pyтребовал, чтобы прогон tooling unit tests шёл раньше проверки inventory, а шаг стоял в условном feature-job) исправлен переносом шага в обязательныйrustjob — ни одна проверка не отключена.Проверки на этом коммите
scripts/ci-story-checks.sh— exit 0: 4 / 9 / 1 / 12 / 10 / 3 / 5(+1 manual ignored) / 17 passed.cargo test -p crank-community-mcp --lib— 102/0;transport_protocol20/0;mcp_prompts15/0;revision_matrix::negotiation23/0;era_isolation5/0.cargo fmt --checkиcargo clippy -p crank-community-mcp -p mcp-server --all-targets -- -D warnings— чисто;scripts/check-rust-code-health.sh— pass; capability inventorystatus=valid protocol_items=50 revisions=2;python3 -m unittest discover -s tests/unit— 305 OK.t_c90edc21round 2 (реальный MCP Inspector 2.12.0, обе revisions) и приёмка TLt_0ac7531c— на исходном candidate; здесь перенесён тот же semantic delta.Честно NOT_RUN (не PASS)
Полный
just verify, межкомпонентная интеграция, нагрузка и квалификация ≥3 реальных клиентов остаются на собранной фиче 3.20 поvalidation-policy.md.Не входит в этот PR
Merge в
mainне выполняется: он запускает protected productionDeploy, для которого нужен отдельно одобренный владельцем target/runbook с backup и rollback. PR содержит принятый объём 3.18 (PR #99, ещё не влит) плюс 3.19.Правка по факту Required CI: run 887 на
a965bc4уронил шагCheck Capability Baseline(CHECKSUM_MISMATCH pointer=/artifacts/0/sha256) — Story 3.19 меняетdocs/capability-inventory.json, значитdocs/capability-baseline/manifest.jsonдолжен ссылаться на новый SHA-256. Добавлен отдельный коммит49c8af2(только этот указатель, без содержательных изменений).Локально после правки:
validate-capability-baseline.py→baseline_version=2026.08.24.1 flows=35,validate-capability-inventory.py→status=valid protocol_items=50 revisions=2, community scope 1263 файла, runtime-config/config/metrics/rust boundaries,check-rust-code-health.shи OpenAPI compatibility guard — все exit 0; tooling unit tests 305 OK на том же head. Новый head:49c8af24ed17e4cc4df8904056174c5dd74d55a9, ожидается Required CI run 888.Публикация завершена (release v0.4.0-rc.7)
49c8af24ed17e4cc4df8904056174c5dd74d55a9; Required CI run 888 = success (Rust Checks8m5s,UI Checks31m50s,Required Checkssuccess на этом SHA).v0.4.0-rc.7(object242f80c8…) → peeled commit49c8af2✔prerelease: true, id 376).up --wait, миграцииfrom_version 0 → 23 applied, image scan gatepass (0 blocking, 1 excepted)×2 иpass (0 blocking, 0 excepted), push образов.Скачанные ассеты и проверка целостности (
sha256sum -c):crank-community-admin-api-v0.4.0-rc.7.tar.gz— OKcrank-community-mcp-server-v0.4.0-rc.7.tar.gz— OKcrank-community-ui-v0.4.0-rc.7.tar.gz— OKcrank-community-v0.4.0-rc.7-checksums.txt,crank-community-v0.4.0-rc.7-sbom.spdx.json(SPDX-2.3, syft 1.45.1)Образы в registry (index digest, прочитан после публикации;
:latest= те же digest'ы):sha256:c40e059662fc4c162746ce1202b65a3a01147bfaa6e5a726eace43c7eb60f4b1sha256:9e0d017d…sha256:ec835960…sha256:d37729a8e982415fbe1e381e47f48f043cf2f563d8b27295d98189312ee52fdfsha256:ced00fbf…sha256:51d44707…sha256:3175cc1120a2fa11d5bf1da35086184c2ce71f516daad4fa3b5e6ba59c41535fsha256:c895e3c6…sha256:83834eb3…Проверка на опубликованном артефакте: в
mcp-serverиз release-архива и из образа присутствуютsubscriptions/listen(3),notifications/resources/list_changed,notifications/prompts/list_changed,notifications/subscriptions/acknowledged,mcp.signals.read_failed;notifications/resources/updatedотсутствует (scope option A). UIdistсодержитhtml/resources.html.Merge в
mainи Deploy: NOT_RUN — для них нужен отдельно одобренный владельцем target/runbook с backup/rollback. Полныйjust verify/ интеграция / нагрузка / ≥3 клиента — NOT_RUN до 3.20 (validation-policy.md).Интеграция выполнена объединяющим PR #105, main
599dc1867b. Head этого PR полностью входит в main. Закрываю заменённую заявку; исходные ветки и теги сохраняются. Production deploy отделён от merge и не запускался.Pull request closed