Skip to content

docs(rfc-crew-api): mark accepted amendments, scope memory to recall - #46213

Merged
KiroCrewCaptain merged 1 commit into
mainfrom
crew/headless-crew/signed-sentences-docs
Dec 2, 2026
Merged

KiroCrewCaptain merged 1 commit into
mainfrom
crew/headless-crew/signed-sentences-docs

Conversation

@buluoray

@buluoray buluoray commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Problem / Motivation

Goal: The Crew API contract says which of its 2026-12-01 amendments the maintainer has accepted, and its older sentences about memory no longer read as if they covered a conversation with a Bot.

Two things in the contract are behind what the maintainer accepted on 2026-12-02.

  1. The OpenAPI files mark the amendments of 2026-12-01 as "Proposed amendment(s), 2026-12-01, waiting for a maintainer's sign-off". They came in with feat(crew-api): let the owner cancel a running turn by its id #45463, feat(crew-api): let the owner list and read a conversation turn's tool approvals #45593 and feat(crew-api): serve a Bot's goals and reports to the owner and to an app that holds bots:read #45778. A reader cannot tell whether an app may rely on them.
  2. docs(rfc-crew-api): write the accepted bots:chat amendment into the contract #45845 wrote the accepted bots:chat sentences into the RFC. Five older sentences about memory are worded more widely than they mean, so they now read as if they contradicted those sentences. One example is "no scope can write memory".

Why it matters

The Crew API reference is generated from these files and is what an app developer reads. A sentence marked "proposed" tells that reader the behaviour may still change. Two sentences that seem to disagree about memory leave the reader unable to say what an app can reach.

Not a goal

  • No change to any amended sentence. Only its marker changes.
  • No change to any other proposal marker. The amendments dated 2026-11-19 to 2026-11-27 keep theirs.
  • No sentence about what a Bot's tools may do in a conversation an app opened. That belongs to the PR that opens the route.
  • No change to code or tests.

What changed (motivation → approach → change)

The maintainer (@buluoray) was shown each of these sentences and answered "都同意" ("I agree to all of them") on 2026-12-02. The answer is kept, with his exact words, in the team's sign-off record (signoffs.md, entry of 2026-12-02). This PR writes that answer into the contract and changes nothing else.

Where Before After
crew-public.yaml (5 descriptions), components.yaml (1) Proposed amendment(s), 2026-12-01, waiting for a maintainer's sign-off: Amendment(s), 2026-12-01, accepted by a maintainer on 2026-12-02:
rfc-crew-api.md, status paragraph, 2 phrases "... as proposed amendments, 2026-12-01, that wait for a maintainer's sign-off." "... as amendments, 2026-12-01, that a maintainer accepted on 2026-12-02."
rfc-crew-api.md, entitlement table, memory.global "A third party can read only Global memory, so recall needs both ..." "Recall reads only Global memory, so it needs both ..."
rfc-crew-api.md, "Two gates on sensitive capabilities" "Memory, knowledge, schedules, ..." "Memory recall, knowledge search, schedules, ...", plus one sentence: a conversation with a Bot has no entitlement
rfc-crew-api.md, "Residual risk" "... and no scope can write memory." "... and no scope lets an app write memory directly.", plus one sentence at the end about the memory setting read_write
crew-public.yaml, POST /v1/crew/memory/recall "A third party can read only Global memory, ..." and "A Bot's private memory is never readable." "Recall reads only Global memory, ..." and "Recall never reads a Bot's private memory."

The six marked descriptions are on POST /v1/responses/{response_id}/cancel, GET /v1/crew/approvals, GET /v1/crew/approvals/{approval_id}, GET /v1/crew/bots/{bot_id}/goals, GET /v1/crew/bots/{bot_id}/reports and the Approval object's answerable_by_you. The text after each marker is the same, character for character.

The pages under docs/reference/crew-api/ are regenerated from the spec with python scripts/generate_crew_api_reference.py.

Backwards compatibility

Compatible: documentation only. No route, schema, field or status code changes.

Removes nothing: the spec's operations, parameters and schemas are identical to origin/main; only description text differs.

Tests

No test is added or changed. python scripts/generate_crew_api_reference.py --check exits 0, and test/test_crew_api_reference.py holds the generated pages to the spec.

Manual verification

bash scripts/docs-lint.sh passes. A script loaded the three spec files on origin/main and on this head. Everything outside description is equal. Seven descriptions differ, and each equals the old one with the marker replaced or with the two recall sentences replaced.

The repository's backend and static gates and both local reviews ran on 6ba0b6c5d6b0 (base 179d109c95f8). The head df5dd981e8cc is that commit rebased onto 73576910dd7a: git range-diff reports =, no conflict was resolved by hand, and main's one new commit touches none of this PR's files. On the head, the generator check, the description comparison and docs-lint.sh were run again and pass. The frontend gates were not run: the diff touches nothing under website/.

Real-machine verification

N/A -- the diff changes Markdown and the description text of OpenAPI YAML files; none of it is executed by the gateway.

Related Issues

Closes #46198

Refs #45845

Checklist

  • A Conventional Commits title (feat|fix|docs|style|refactor|perf|test|chore|ci|build|revert: ...); PR Hygiene does not count commits
  • Existing tests pass and new tests added for new functionality
  • Self-review completed; code follows project style guidelines
  • Documentation updated (if applicable)
  • No secrets, credentials, or internal references in the diff

The maintainer accepted, on 2026-12-02, the Crew API amendments dated
2026-12-01. Their marker in the OpenAPI descriptions reads
"Amendment(s), 2026-12-01, accepted by a maintainer on 2026-12-02" in
place of "Proposed amendment(s), 2026-12-01, waiting for a maintainer's
sign-off", and the RFC's status paragraph says the same. The amended
sentences are unchanged. Amendments with an earlier date keep their
proposal marker.

Five older sentences about memory are narrowed to memory recall, which
is what they describe, and two accepted sentences say how a conversation
with a Bot (`bots:chat`) differs: it has no entitlement, and with the
memory setting `read_write` it can become part of the Bot's memory.

The reference pages are regenerated from the spec. No code or test
changes.

Closes #46198
@buluoray
buluoray requested review from a team and KiroCrewCaptain as code owners December 2, 2026 19:46
@buluoray
buluoray requested a review from CrysisDeu December 2, 2026 19:46
@github-actions github-actions Bot added the readiness: checking Automated validation is still running label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

First Principles Review (Opus 5.5) — ⏭️ skipped

Revision df5dd981e8cc61ba4f0b8d2283151da7ccef91db ships no reviewable capability (docs, tests or generated files only), so there is nothing to inventory. Does not block merge.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

UX Review (Opus 5.5) — ⏭️ skipped

Revision df5dd981e8cc61ba4f0b8d2283151da7ccef91db touches no user-facing surface (no changes under website/ or committed screenshots), so the UX review was skipped. Does not block merge.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Design Review (Opus 5.5) — ✅ PASS

Design-level review of df5dd981e8cc61ba4f0b8d2283151da7ccef91db — updated in place on each push. A BLOCK verdict blocks PR readiness; PASS does not.

Design-Verdict: PASS

Nothing blocks: the diff only edits contract prose and regenerates the reference pages from it. No route, schema or code changes.

[DESIGN-REVIEWED] df5dd98

Description read

[DESCRIPTION-READ] 27dbbd4090e6c6b9a8be5c9168f78db10b242fd26ab5e0c9e76a835ccecfb739

That sha256 names everything this verdict read: the PR description, plus the 1 evidence file(s) the workflow collected from it and handed this review. It covers that evidence because the media strip replaces every attachment URL with the same placeholder, so an edit swapping one attachment for another would leave the description's captured text identical while what this review judged changed. Recompute it with .github/scripts/pr-description-capture.sh over the same inputs; if it differs, the description or that evidence changed after this verdict was formed and any finding drawn from either is unproven.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Opus 5.5 Review — ✅ no blocking findings

Reviewed df5dd981e8cc61ba4f0b8d2283151da7ccef91db — this comment is updated in place on each push.

Review details

No findings.

[OPUS-REVIEWED] df5dd98

Verdict parsed from the review's SHA-scoped output markers for commit df5dd981e8cc61ba4f0b8d2283151da7ccef91db.

False positive or not applicable? A repository writer can comment:
/ai-review override fable df5dd981e8cc61ba4f0b8d2283151da7ccef91db false-positive: <reason, 20 to 500 characters>

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

GPT 6.1 Review — ✅ no blocking findings

GPT 6.1 completed its review of df5dd981e8cc61ba4f0b8d2283151da7ccef91db and found no blocking issues.

This comment is updated in place on each push.

Review details

No findings.
[GPT-REVIEWED] df5dd98

False positive or not applicable? A repository writer can comment:
/ai-review override gpt df5dd981e8cc61ba4f0b8d2283151da7ccef91db false-positive: <reason, 20 to 500 characters>

@github-actions github-actions Bot added readiness: passed Eligible automated validation passed for the current revision and removed readiness: checking Automated validation is still running labels Dec 2, 2026
@KiroCrewCaptain

KiroCrewCaptain commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Code change approver deep review: Approve

Approved on commit df5dd981e8: the review says why.

Tier: 2, cleared by a deep review: a design document (waived for its author).

A deep review by the code change approver, not by a person · commit df5dd981e8 · 56 changed lines. If it is wrong, reply here: replies are how the approver is evaluated.

@KiroCrewCaptain
KiroCrewCaptain enabled auto-merge (squash) December 2, 2026 21:12

@KiroCrewCaptain KiroCrewCaptain left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by the code change approver's deep review, not by a person.

Approved. The review read all 8 changed files on this head. The diff changes description text only: no route, schema, field or code changes. All six 2026-12-01 markers now read "accepted", none is left as "Proposed" under docs/, the text after each marker is unchanged, and the markers dated 2026-11-19 to 2026-11-27 are untouched. The two sentences added to the RFC's security section restate rules already on main: the memory setting in section 3.2 (read_write is never a default, and only the user changes it), the eight entitlements with none for bots:chat, and Q12. PR Readiness is green on this head and no check fails.

Done well: the description's table lists every changed sentence, and each count in it matches the diff.

Optional:

  • docs/request-for-change/rfc-crew-api.md:17: the two new "a maintainer accepted on 2026-12-02" phrases link no public record, while the bots:chat sentence beside them links #45825. A short maintainer comment on #46198 or on this pull request, cited from the status paragraph, would let a reader check the acceptance.
  • docs/request-for-change/rfc-crew-api.md:805-807 and :813-815: the same comment could say that the two added sentences were among those accepted.
  • docs/request-for-change/assets/crew-api/crew-public.yaml:1816: "The created Bot has its own private memory, which the app cannot read" is the same kind of wide sentence this pull request narrows elsewhere. Narrow it in a later change, or say it stays on purpose.

Tier: 2, cleared by a deep review: a design document (waived for its author).
Criteria: no merge conflict, no owner block, no change request, the default branch, no security-sensitive path, no design document to agree on, the readiness status, the review lanes, the P0 history, the linked issues' tier, the review lessons, no concern label, the file count, a safe change category, not its own change, the decider.

To overrule it, request changes or dismiss this review.

@KiroCrewCaptain
KiroCrewCaptain merged commit 5a23928 into main Dec 2, 2026
104 checks passed
@KiroCrewCaptain
KiroCrewCaptain deleted the crew/headless-crew/signed-sentences-docs branch December 2, 2026 21:12
@github-actions github-actions Bot removed the readiness: passed Eligible automated validation passed for the current revision label Dec 2, 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.

docs(rfc-crew-api): mark the Crew API amendments the maintainer accepted, and scope three memory sentences to recall

2 participants