feat(minder): reuse the GitLab session recorded for each project
Description
The session record now stores the project ID and GitLab session ID of each part of a session. Later syncs and completion post to that GitLab session without looking up the project, registering the agent identity, or asking GitLab to create the session again, which GitLab rate-limits.
When GitLab no longer has a recorded session, for example because it is past its retention, posting to it answers 404 and glab creates it again under its key. That create answers 404 only while AI governance is off, which tells the two cases apart.
Only a part with a recorded GitLab session counts as an upload. A part recorded by an earlier glab has none, so it still depends on the sync position.
Related to https://gitlab.com/gitlab-org/cli/-/work_items/8722
How has this been tested?
Unit tests against a fake GitLab cover posting to and completing a stored GitLab session without creating it again, and creating it again when GitLab no longer has it, on both the hook path and the --all path. They also check that the new session ID is recorded, and that glab minder doctor does not then report governance as off.
go test ./internal/commands/govern/..., the race detector on the sync package, and golangci-lint run ./internal/commands/govern/... pass.