Skip to content

docs(#6757): document credential context separation in install pkg - #6758

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/6757-credential-context-docs
Open

docs(#6757): document credential context separation in install pkg#6758
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/6757-credential-context-docs

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Documents the credential context separation between the test suite's e2e installation token and dispatch's per-repo GITHUB_TOKEN in the pkg/behaviourtest/drivers/install package. This knowledge gap caused both a human developer (PR #6703) and an autonomous agent (PR #6709) to independently attempt the same incorrect suite-side GetCollaboratorPermission polling approach for #6701.

Related Issue

Closes #6757

Changes

  • Add doc.go with package-level documentation explaining the two-token model: the suite's e2e GitHub App installation token vs dispatch's per-repo GITHUB_TOKEN, their independent permission propagation graphs, and why suite-side permission probing is unreliable
  • Add inline note on awaitCreation in ensure.go warning against adding GetCollaboratorPermission polling, with a pointer to doc.go
  • Add "Credential context separation" paragraph in docs/guides/dev/behaviour-testing.md under the "Repo allocation" section, cross-referencing the package doc and issue behaviourtest: wait for permission propagation after pool repo recreate (dispatch sees no role, matrix empty) #6701

Testing

  • go build and go vet pass on the changed package
  • go test ./pkg/behaviourtest/drivers/install/... passes
  • gofmt produces no changes
  • lychee and lint-docs-links pass on the changed markdown
  • No production code changes — documentation only

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • No secrets or sensitive data in the diff

Closes #6757

Post-script verification

  • Branch is not main/master (agent/6757-credential-context-docs)
  • Secret scan passed (gitleaks — dc0f8e15488fc816f9464c63e644e17de549edd1..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

The test suite's e2e installation token and dispatch's per-repo
GITHUB_TOKEN are distinct credential contexts with independent
permission propagation graphs. After pool repo recreation, the
suite can confirm the repo exists (GetRepo) but cannot observe
or predict when dispatch-side collaborator permissions are ready.
This was empirically validated in #6701: both a human (PR #6703)
and an agent (PR #6709) independently attempted suite-side
GetCollaboratorPermission polling and both failed.

Add a package-level doc comment (doc.go) explaining the two-token
model, an inline note on awaitCreation warning against permission
polling, and a cross-reference in the behaviour-testing guide.

Closes #6757
@github-actions

Copy link
Copy Markdown

Site preview

Preview: https://21773da4-site.fullsend-ai.workers.dev

Commit: 440cfd4d5655194be6326f00b806e695c4b88881

@fullsend-ai-review

fullsend-ai-review Bot commented Aug 29, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:29 PM UTC · Completed 6:43 PM UTC

Commit: 440cfd4 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.59

@codecov

codecov Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Aug 29, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Small documentation-only PR by a bot adding package docs and guide entries with no protected paths, security concerns, or dependency changes; moderate churn history on touched files is the only uplift signal.

@fullsend-ai-review

Copy link
Copy Markdown

Looks good to me


Labels: PR adds documentation for e2e behaviour test credential context separation

@fullsend-ai-review fullsend-ai-review Bot added ready-for-merge All reviewers approved — ready to merge documentation component/e2e End-to-end tests labels Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/e2e End-to-end tests documentation ready-for-merge All reviewers approved — ready to merge ready-for-review Agent PR ready for human review risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document credential context separation in behaviourtest pool repo lifecycle

0 participants