Repository navigation
Conversation
Team and project memory is delivered by composing existing primitives on ordinary Scopes rather than by adding a team or project entity. Document and exercise that composition so the user-facing workflow is real: - Bilingual workflow doc (en/zh) covering Scope mapping via external references and durable bindings, per-role grants, contributing authorized inputs, one reviewed official Profile, member readback with its exact address, separate evidence authority, correction and stale-proposal refusal, and a project Skill independent of personal memory. - A runnable example that performs the workflow against the public HTTP API. - Two acceptance tests: the workflow story over an Access-enforced Server, and a guard that keeps the example runnable as the contract evolves. The docs state plainly which steps still depend on unaccepted cross-Scope capabilities instead of implying they work.
The previous text offered an unsupported workaround for maintainer handover and overstated what a project role grants. Replace both with the verified behavior: - Remove the "Dream review / Profile policy with the new maintainer identity, or recreate the Artifact" workaround. Executed against the enforced Server, a successor holding contributor, reviewer, and admin is refused: replace 403, recreate 409 because the singleton exists, and flush 403 because reviewed generation against an existing Profile requires the same artifact.write. State that correction follows the single owner and that no workaround is offered. - Describe role grants as governing the project Scope only. scope.viewer no longer implies opening cited evidence; that needs a separate grant at each origin. - Qualify the opening summary so it does not imply multi-maintainer support. - Add a regression test pinning the one-owner limit and the absence of a handover route, so the docs and behavior change together if this is resolved.
Owner
Author
|
Closing the duplicate delivery path for RFC oceanbase#2611. The team/project workflow changes are carried by PR #11 in the dependency stack. The source branch is retained. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
RFC: oceanbase#2611
Runtime base
ad0d02061eee0e9fee38c202b60f421216b06dd9; targetsscope-sharing/base-2611.Rationale for this change
The RFC asks for usable team and project memory, not new infrastructure. A team or a project needs four things: a
Scope the group agrees owns its collective record, a way for contributors to keep supplying authorized material,
one official conclusion members can read, and a path to correct that conclusion when facts change. PowerContext
already provides all four, so the deliverable is the workflow that composes them, plus acceptance that proves the
composition works.
No team or project entity, membership directory, workflow engine, or wrapper service is introduced. Teams and
projects are application mappings onto ordinary Scopes through existing external references and durable bindings.
What changes are included in this PR?
docs/en|zh/docs/workflows/team-and-project-memory.md: the workflow, in both locales, with real requests.Scope mapping, per-role grants, authorized input contribution, a reviewed official Profile, member readback
with its exact address, evidence authority as a separate check, correction and stale-proposal refusal, and a
project Skill independent of personal memory. A closing section states which steps still depend on capabilities
that are not implemented, rather than implying they work.
examples/team_project_memory/scenario.py: a runnable demonstration using only public HTTP routes. It refusesto claim success on any step whose documented behavior did not hold, and treats a legitimate
no_changereassessment as an outcome rather than a failure.
tests/e2e/test_team_project_memory.py: the workflow story over an Access-enforced Server (ASGI + SQLite +real Runtime + real persistence): two contributor work Scopes, a reviewed official project conclusion, a
designated member reading it with its exact address, a member without a grant refused, a later fact producing a
stale Candidate that cannot be approved but can be rejected, the immutable revision history, and a project Skill
read independently of a personal Profile that stays empty.
tests/e2e/test_team_project_memory_example.py: exercises the example's own functions, so the documentation areader copies cannot drift from the contract.
Are there any user-facing changes?
Documentation only; no API, schema, or persisted-format change. The new pages are added to the workflow navigation
in both locales.
The docs deliberately record two current limits instead of hiding them: an official conclusion is owned by the
Principal that created it (
artifact.owner, one per resource, not grantable through the Access binding API), so asecond maintainer cannot take over an existing conclusion; and automatic discovery of new contributor material
belongs to cross-Scope sharing and is not available, so contributing a record to the project Scope is the
supported input path.
How was this change tested?
Model generation is a local deterministic fixture. These tests establish that evidence reaches generation, that
review and commit behave as documented, and that authority is enforced. They do not establish real-model output
quality, a real deployment, a real membership provider, or OceanBase.
uv run pytest tests/e2e/test_team_project_memory.py tests/e2e/test_team_project_memory_example.py -quv run pytest tests/e2e/test_team_project_memory.py -q(three consecutive runs)uv run prek run -auv run ty checkmake docs-testuv run pytest tests/test_api_contract.py -quv run pytest tests/e2e/test_blog_site.py -quv run python examples/team_project_memory/scenario.pywithout configurationNo deployment, no merge, no gateway change, no credential change.
AI usage statement
Implemented with an AI coding agent (bub / magpie:group/deepseek-flash) under human direction. All commands above
were executed; the acceptance story was run against the real Server, Runtime, and persistence with Access
enforced, and the Profile generator is a local fixture as described.