Repository navigation
Description
Related
Docs follow the behavior in:
- #484 —
members/sessions/votes/stats/→teamai-reports(orphan, direct push) - #485 —
learnings/→teamai-learnings(regular branch, direct push, no PR; name still open for comment)
Ship this issue with or immediately after those two, otherwise the usage guide still tells teams that learnings live on main and that independent clones write reports to the default branch.
Problem
Today’s docs describe a split that only exists in self mode, and they still call contribute a direct push to master:
| Surface | What it says now | What #484 / #485 change |
|---|---|---|
docs/usage-guide.md / .zh-CN.md (single-repo table) |
Knowledge includes learnings/ on main; reports on teamai-reports |
Independent git clones get the same reports split; learnings leave main |
Admin checklist after teamai init . |
.teamai/ including learnings is committed to the current branch |
New learnings go to teamai-learnings |
skills/teamai-share-learnings/SKILL.md |
“pushed directly to master in the team repo's learnings/” |
Direct push to teamai-learnings, not master |
README / README.zh-CN (teamai contribute) |
Share to the team repo (unspecified branch) | Need one sentence on the side branch |
docs/providers.md |
teamai push / PR permissions; leftover “push target hardcoded to master” |
Need minimum Git permissions for a protected default branch |
docs/designs/team-intelligence-platform.md |
Git writes reuse pushRepoDirectly() |
Reports/learnings no longer mean “direct to default branch” |
Without this, a team that turns on branch protection will think TeamAI is broken, or will keep granting everyone write-on-main.
Proposal
No CLI changes in this issue. Keep EN/ZH in sync (README / *.zh-CN.md, docs/usage-guide.*). Grep old wording (direct + master, learnings/ on main, reports live alongside knowledge) before merge.
1. Data layout table (usage-guide, both languages; apply to self and independent git, not only self):
| Data | Branch | How it is written | Needs default-branch write? |
|---|---|---|---|
skills/ rules/ docs/ env/ agents/ teamai.yaml |
default (main/master) |
teamai push → PR |
No (create-branch + open PR) |
learnings/ |
teamai-learnings |
teamai contribute direct push |
No |
members/ sessions/ votes/ stats/ |
teamai-reports (orphan) |
init / session save / hooks / pull auto-report | No |
| Machine-local config, tokens, worktrees | not in git | local only | — |
Note: leftover files already on default-branch members/ / learnings/ etc. are not migrated; readers ignore them after the switch (#484 / #485).
2. Minimum Git permissions (usage-guide + a short section in docs/providers.md):
For a protected default branch, a member needs:
- Push to
teamai-reportsandteamai-learnings(create the ref if missing) - Push feature branches used by
teamai push - Permission to open PRs/MRs against the default branch
They do not need:
- Direct push to
main/master - Admin / “bypass branch protection”
provider: git still cannot auto-open PRs; teamai push keeps “push branch, then create the MR by hand”. Contribute does not use that fallback (#485).
HTTP provider: unchanged; say so in one line.
3. Skill + README
skills/teamai-share-learnings/SKILL.md: replace “pushed directly to master”; command staysteamai contribute --file ….- README / README.zh-CN: contribute row mentions the
teamai-learningsbranch.
4. Designs
Update the Git-direct-push row in docs/designs/team-intelligence-platform.md so it does not imply report/learning writes go through pushRepoDirectly() onto the default branch.
Out of scope
- Implementing Route report data (
members/sessions/votes/stats) toteamai-reportsin independent git clones #484 / Writelearnings/to ateamai-learningsbranch (direct push, no PR) #485 - CI
extract-mr --mode write(separate issue) - Changing
provider: gitso it can create PRs - Fixing the old “GitHub push target hardcoded to
master” providers.md note unless it is already false; ifgetDefaultBranch()is current, correct that sentence in the same PR
Acceptance
- A new admin can enable default-branch protection using only this doc and still run
init/pull/contribute/push. - EN and ZH usage-guide tables match.
- Grep for “pushed directly to master” / “learnings on main” in user-facing docs is clean (except historical changelog if any).
- Self-mode “clone = initialized” story still true for skills/rules/docs/
teamai.yaml; learnings sync is described as fetchingteamai-learnings, not as files that arrived withgit cloneof main.
Activity
feat(learnings): write learnings to the teamai-learnings branch (Tenc…
feat(learnings): write learnings to the teamai-learnings branch (Tenc…