Compare commits
base: mosaicstack:f068a54a8dbff0c5a5997fb32a5085bc3e33359b
mosaicstack:main
mosaicstack:mos-comms-live
mosaicstack:docs/heartbeat-framework-layering-ms-lead
mosaicstack:feat/869-c4-version-coupling
mosaicstack:feat/869-c2-install-ordering-guard
mosaicstack:feat/869-c5-doctor-activation-check
mosaicstack:feat/per-agent-gitea-identity
mosaicstack:fix/875-belongs-case-insensitive-slug
mosaicstack:fix/ci-queue-wait-404-branch-absent
mosaicstack:feat/869-c1-activation-probe
mosaicstack:feat/869-c3-broker-supervisor
mosaicstack:fix/865-tea-cli-comment-invocation
mosaicstack:feat/glpi-skills
mosaicstack:fix/860-deflake-mutator-lease-gate
mosaicstack:fix/850-detect-platform-port-normalization
mosaicstack:fix/856-worktree-deps-preflight
mosaicstack:fix/835-pr-review-approve-reject-comment-flag
mosaicstack:fix/848-truthful-evidence
mosaicstack:fix/812-pr-review-comment
mosaicstack:fix/849-recovery-runtime-fixture-race
mosaicstack:docs/758-ledger-m5-001-sync
mosaicstack:feat/834-tc-server-side-doc
mosaicstack:feat/833-constrained-recovery-command
mosaicstack:feat/827-gate0-probe
mosaicstack:governance/gate0-probe3-amendment
mosaicstack:fix/795-codex-pr-diff
mosaicstack:fix/795-ci-base-jq
mosaicstack:fix/795-ci-base-git
mosaicstack:feat/791-pr3-fleet-regen
mosaicstack:feat/791-pr2-snapshot-restore
mosaicstack:fix/807-glpi-206
mosaicstack:fix/808-agent-send-false-sender
mosaicstack:feat/791-upgrade-config-protection
mosaicstack:feat/790-mosaic-yolo-claudex-pr2
mosaicstack:feat/790-mosaic-yolo-claudex
mosaicstack:feat/758-v1-v2-migrator
mosaicstack:fix/766-exact-fleet-comms
mosaicstack:test/758-reconciler-lifecycle-gates
mosaicstack:docs/771-kbn101-db-role-split
mosaicstack:test/758-example-profile-dispositions
mosaicstack:feat/758-shared-role-resolution
mosaicstack:feat/mos-logical-identity-fencing
mosaicstack:feat/769-kbn100-unified-schema
mosaicstack:docs/753-kbn010-threat-gate
mosaicstack:feat/758-roster-v2-compiler
mosaicstack:feat/756-official-discord-plugin
mosaicstack:docs/758-fleet-config-management
mosaicstack:fix/mos-option2-qualification-format
mosaicstack:docs/issue-758-m0
mosaicstack:docs/mos-option2-qualification
mosaicstack:mos-comms
mosaicstack:feat/tess-interaction-agent
mosaicstack:fix/tess-docs-format
mosaicstack:next
mosaicstack:draft/mosaic-platform-prd
mosaicstack:fix/installer-provider-gate-and-local-gateway-redis
mosaicstack:release/mosaic-cli-0.0.37
mosaicstack:feat/framework-constitution-alpha
mosaicstack:fix/git-wrapper-repo-detection
mosaicstack:fix/woodpecker-wrapper-legacy-mosaic
mosaicstack:fix/t-a292e96f-gitea-pr-metadata
mosaicstack:fix/gitea-pr-metadata-login-t-a292e96f
mosaicstack:fix/t_a292e96f-pr-metadata-gitea
mosaicstack:fix/t_3a368a52-gitea-usc-login
mosaicstack:fix/bootstrap-hotfix
mosaicstack:fix/populate-known-packages-list
mosaicstack:fix/idempotent-init
mosaicstack:v0.0.39-alpha
mosaicstack:mosaic-v0.0.31
mosaicstack:fed-v0.2.0-m2
mosaicstack:fed-v0.1.0-m1
mosaicstack:mosaic-v0.0.29
mosaicstack:mosaic-v0.0.28
mosaicstack:mosaic-v0.0.27
mosaicstack:mosaic-v0.0.26
mosaicstack:mosaic-v0.0.25
mosaicstack:mosaic-v0.0.24
mosaicstack:v0.2.0
mosaicstack:v0.1.0
mosaicstack:v0.0.8
mosaicstack:v0.0.7
mosaicstack:v0.0.6
mosaicstack:v0.0.5
mosaicstack:v0.0.4
..
compare: mosaicstack:4b472a22425692cf8d60d94e6b46a7533ed7c113
mosaicstack:mos-comms-live
mosaicstack:main
mosaicstack:docs/heartbeat-framework-layering-ms-lead
mosaicstack:feat/869-c4-version-coupling
mosaicstack:feat/869-c2-install-ordering-guard
mosaicstack:feat/869-c5-doctor-activation-check
mosaicstack:feat/per-agent-gitea-identity
mosaicstack:fix/875-belongs-case-insensitive-slug
mosaicstack:fix/ci-queue-wait-404-branch-absent
mosaicstack:feat/869-c1-activation-probe
mosaicstack:feat/869-c3-broker-supervisor
mosaicstack:fix/865-tea-cli-comment-invocation
mosaicstack:feat/glpi-skills
mosaicstack:fix/860-deflake-mutator-lease-gate
mosaicstack:fix/850-detect-platform-port-normalization
mosaicstack:fix/856-worktree-deps-preflight
mosaicstack:fix/835-pr-review-approve-reject-comment-flag
mosaicstack:fix/848-truthful-evidence
mosaicstack:fix/812-pr-review-comment
mosaicstack:fix/849-recovery-runtime-fixture-race
mosaicstack:docs/758-ledger-m5-001-sync
mosaicstack:feat/834-tc-server-side-doc
mosaicstack:feat/833-constrained-recovery-command
mosaicstack:feat/827-gate0-probe
mosaicstack:governance/gate0-probe3-amendment
mosaicstack:fix/795-codex-pr-diff
mosaicstack:fix/795-ci-base-jq
mosaicstack:fix/795-ci-base-git
mosaicstack:feat/791-pr3-fleet-regen
mosaicstack:feat/791-pr2-snapshot-restore
mosaicstack:fix/807-glpi-206
mosaicstack:fix/808-agent-send-false-sender
mosaicstack:feat/791-upgrade-config-protection
mosaicstack:feat/790-mosaic-yolo-claudex-pr2
mosaicstack:feat/790-mosaic-yolo-claudex
mosaicstack:feat/758-v1-v2-migrator
mosaicstack:fix/766-exact-fleet-comms
mosaicstack:test/758-reconciler-lifecycle-gates
mosaicstack:docs/771-kbn101-db-role-split
mosaicstack:test/758-example-profile-dispositions
mosaicstack:feat/758-shared-role-resolution
mosaicstack:feat/mos-logical-identity-fencing
mosaicstack:feat/769-kbn100-unified-schema
mosaicstack:docs/753-kbn010-threat-gate
mosaicstack:feat/758-roster-v2-compiler
mosaicstack:feat/756-official-discord-plugin
mosaicstack:docs/758-fleet-config-management
mosaicstack:fix/mos-option2-qualification-format
mosaicstack:docs/issue-758-m0
mosaicstack:docs/mos-option2-qualification
mosaicstack:mos-comms
mosaicstack:feat/tess-interaction-agent
mosaicstack:fix/tess-docs-format
mosaicstack:next
mosaicstack:draft/mosaic-platform-prd
mosaicstack:fix/installer-provider-gate-and-local-gateway-redis
mosaicstack:release/mosaic-cli-0.0.37
mosaicstack:feat/framework-constitution-alpha
mosaicstack:fix/git-wrapper-repo-detection
mosaicstack:fix/woodpecker-wrapper-legacy-mosaic
mosaicstack:fix/t-a292e96f-gitea-pr-metadata
mosaicstack:fix/gitea-pr-metadata-login-t-a292e96f
mosaicstack:fix/t_a292e96f-pr-metadata-gitea
mosaicstack:fix/t_3a368a52-gitea-usc-login
mosaicstack:fix/bootstrap-hotfix
mosaicstack:fix/populate-known-packages-list
mosaicstack:fix/idempotent-init
mosaicstack:v0.0.39-alpha
mosaicstack:mosaic-v0.0.31
mosaicstack:fed-v0.2.0-m2
mosaicstack:fed-v0.1.0-m1
mosaicstack:mosaic-v0.0.29
mosaicstack:mosaic-v0.0.28
mosaicstack:mosaic-v0.0.27
mosaicstack:mosaic-v0.0.26
mosaicstack:mosaic-v0.0.25
mosaicstack:mosaic-v0.0.24
mosaicstack:v0.2.0
mosaicstack:v0.1.0
mosaicstack:v0.0.8
mosaicstack:v0.0.7
mosaicstack:v0.0.6
mosaicstack:v0.0.5
mosaicstack:v0.0.4
2 Commits
f068a54a8d
...
4b472a2242
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
4b472a2242 |
fix(tools/git): restore executable bit on new per-agent-identity scripts
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
core.filemode=false in this worktree meant the initial commit recorded git-credential-mosaic, test-git-credential-mosaic.sh, and test-gitea-token-identity.sh as 100644. git invokes a path-configured credential.helper directly (exec, not `sh <path>`), so git-credential-mosaic must carry the executable bit; the two test scripts match the 100755 convention already used by the other test-*.sh harnesses in this directory. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|
|
9d7038d325 |
feat(tools/git): per-agent Gitea identity (git-credential-mosaic + get_gitea_token)
Adds an opt-in per-agent Gitea identity so a fleet agent can push/commit/open
PRs under its own token instead of the single shared account, giving
cryptographic author-!=-reviewer separation (Gate-16).
Resolution priority (both tools): MOSAIC_GIT_IDENTITY env > git config
mosaic.gitIdentity (per-worktree, persists on disk) > git-supplied username
(git-credential-mosaic only). If the resolved identity has a token file at
~/.config/mosaic/secrets/gitea-tokens/gitea-{usc,mosaicstack}-<id>.token, that
identity is used; otherwise both tools fall through to the existing
shared-account path unchanged, so this is a no-op on any host without
per-slot tokens configured.
- tools/git/git-credential-mosaic: new git credential helper (get verb).
- tools/git/detect-platform.sh: get_gitea_token() gains the same identity
resolution, prepended ahead of the existing shared-token logic, so API
tooling (pr-create.sh, issue-create.sh, ...) authors under the same
identity as git push/fetch.
- install.sh: explicit chmod +x for git-credential-mosaic (it ships without
a .sh suffix, so the existing *.sh glob does not cover it); tools/** is
already framework-owned so the file syncs automatically.
- tools/git/README.md: documents the feature, the one-time
`git config credential.helper` registration step (deliberately not
auto-wired — see README for why), and the PowerShell-parity decision
(detect-platform.ps1 authenticates via tea logins, not a raw-token
function, so there is nothing to port there).
- tools/git/test-git-credential-mosaic.sh,
tools/git/test-gitea-token-identity.sh: new regression harnesses (red
verified against the pre-patch code) covering identity-resolution
priority, per-host token path selection, and shared-account fallback.
Wired into package.json's test:framework-shell.
Upstreams Mos host-local tooling-patch kit (2026-07-23), Patches 1+2.
Closes #873
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|