Skip to content

feat(contract): role watch and capability cmd.exchange - #40

Merged
frahlg merged 1 commit into
mainfrom
feat/watch-registry
Oct 14, 2026
Merged

frahlg merged 1 commit into
mainfrom
feat/watch-registry

Conversation

@frahlg

@frahlg frahlg commented Oct 14, 2026

Copy link
Copy Markdown
Member

Step 2 of srcfl/ftw ADR 0009. protocol/registry.yaml is copied byte for byte from srcfl/ftw-webapp#84, which adds:

  • Role watch: ftw.live.read, ftw.plan.read, ftw.events.read and ftw.dispatch.write. An owner phone adds the watch and is its parent.
  • Capability cmd.exchange: the box can take a watch.

Contract.swift gains roleWatch with its scopes and label, cmd.exchange in capabilities, and capCmdExchange, so ContractTests still matches. Nothing reads them yet. Step 9 offers Add watch only when a box says cmd.exchange and the phone is an owner.

Paired pull requests. All three carry the same file, byte for byte.

This repository's CI does not compare its copy with the other two, so I compared them by hand (below).

Tests

cd appleApp/FTWKit && swift test        293 tests in 48 suites passed
cmp protocol/registry.yaml against the ftw-webapp and ftw branches      identical
cmp protocol/push-catalogue.yaml against both                           identical

🤖 Generated with Claude Code

ADR 0009 step 2: the shared registry copied byte for byte from
srcfl/ftw-webapp. Contract.swift gains the role and the capability, so
ContractTests still matches. Nothing uses them yet; step 9 offers Add
watch only when a box says cmd.exchange.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T08:17:59.469214Z aecbaba PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit cc8ea5a into main Oct 14, 2026
1 check passed
@frahlg frahlg mentioned this pull request Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant