Skip to content

docs(workflows): add team and project memory workflow - #4

Closed
PsiACE wants to merge 2 commits into
scope-sharing/base-2611from
scope-sharing/2611-h-team-project-memory
Closed

PsiACE wants to merge 2 commits into
scope-sharing/base-2611from
scope-sharing/2611-h-team-project-memory

Conversation

@PsiACE

@PsiACE PsiACE commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Which issue or RFC does this PR close?

RFC: oceanbase#2611

Runtime base ad0d02061eee0e9fee38c202b60f421216b06dd9; targets scope-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 refuses
    to claim success on any step whose documented behavior did not hold, and treats a legitimate no_change
    reassessment 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 a
    reader 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 a
second 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.

Command Result
uv run pytest tests/e2e/test_team_project_memory.py tests/e2e/test_team_project_memory_example.py -q exit 0, 2 passed
uv run pytest tests/e2e/test_team_project_memory.py -q (three consecutive runs) exit 0, 1 passed each
uv run prek run -a exit 0, all hooks passed
uv run ty check exit 0
make docs-test exit 0, 1118 public pages verified
uv run pytest tests/test_api_contract.py -q exit 0, 61 passed
uv run pytest tests/e2e/test_blog_site.py -q exit 0, 6 passed
uv run python examples/team_project_memory/scenario.py without configuration exit 2, reports the missing variables

No 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.

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.
@PsiACE

PsiACE commented Nov 17, 2026

Copy link
Copy Markdown
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.

@PsiACE PsiACE closed this Nov 17, 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