Move Hermes profile synchronization to the imported GitLab repository #350

Closed
opened 2026-10-16 19:30:47 +01:00 by nimmo · 5 comments
Owner

Move the mutable Hermes profile/skills Git origin from Forgejo to the already imported GitLab repository. Reuse the dedicated Hermes Git deploy identity, keeping it separate from fleet SSH credentials.

Checklist:

  • Verify imported GitLab main matches the live Vega profile checkout and preserve pending local work.
  • Configure GitLab deploy-key write access and any protected-main push permission.
  • Change the declarative repository URL and safely reconcile existing checkouts instead of only changing fresh clones.
  • Cover URL reconciliation, rejected/divergent histories and preservation of local work with focused regression tests.
  • Update deployment/recovery guidance and run Nix validation.
  • Before live cutover, capture the profile checkout/config recovery checkpoint and prevent concurrent writers.
  • Verify authenticated read/write access and startup synchronization after activation.

No private key rotation is needed. Keep the Forgejo repository available for rollback. Operational details and key material remain private.

Move the mutable Hermes profile/skills Git origin from Forgejo to the already imported GitLab repository. Reuse the dedicated Hermes Git deploy identity, keeping it separate from fleet SSH credentials. Checklist: - [x] Verify imported GitLab main matches the live Vega profile checkout and preserve pending local work. - [x] Configure GitLab deploy-key write access and any protected-main push permission. - [x] Change the declarative repository URL and safely reconcile existing checkouts instead of only changing fresh clones. - [x] Cover URL reconciliation, rejected/divergent histories and preservation of local work with focused regression tests. - [x] Update deployment/recovery guidance and run Nix validation. - [x] Before live cutover, capture the profile checkout/config recovery checkpoint and prevent concurrent writers. - [x] Verify authenticated read/write access and startup synchronization after activation. No private key rotation is needed. Keep the Forgejo repository available for rollback. Operational details and key material remain private.
nimmo added this to the GitLab Pilot milestone 2026-10-16 19:30:47 +01:00
Author
Owner

The GitLab deploy-key prerequisite is configured and server-side authorization verified. Detailed identity, permissions and live checkout evidence are retained privately in KiwiFS.

Prepared the guarded profile origin migration on local branch feat/hermes-gitlab-profile in /tmp/nixos-hermes-gitlab. The helper validates destination fetch/history before changing origin, preserves clean local-ahead commits, rejects dirty/divergent/ambiguous checkout state, and keeps existing offline behavior once the origin is established. It never resets or pushes.

Validation passed: 13 regression cases using real isolated Git repositories, shell syntax, repository formatting, full nix flake check across four host configurations, and whitespace review. Existing upstream platform deprecation warnings were assessed as unrelated. A read-only live comparison found the checkout clean and matching the imported source revision.

Publication/review, pre-cutover recovery checkpoint, actual Hermes-context authenticated Git operations and live activation remain pending. No live checkout/origin change, service restart or push was performed. MR description prepared at /tmp/hermes-gitlab-profile-MR.md. Keep the issue open until acceptance evidence is complete.

The GitLab deploy-key prerequisite is configured and server-side authorization verified. Detailed identity, permissions and live checkout evidence are retained privately in KiwiFS. Prepared the guarded profile origin migration on local branch `feat/hermes-gitlab-profile` in `/tmp/nixos-hermes-gitlab`. The helper validates destination fetch/history before changing origin, preserves clean local-ahead commits, rejects dirty/divergent/ambiguous checkout state, and keeps existing offline behavior once the origin is established. It never resets or pushes. Validation passed: 13 regression cases using real isolated Git repositories, shell syntax, repository formatting, full `nix flake check` across four host configurations, and whitespace review. Existing upstream platform deprecation warnings were assessed as unrelated. A read-only live comparison found the checkout clean and matching the imported source revision. Publication/review, pre-cutover recovery checkpoint, actual Hermes-context authenticated Git operations and live activation remain pending. No live checkout/origin change, service restart or push was performed. MR description prepared at `/tmp/hermes-gitlab-profile-MR.md`. Keep the issue open until acceptance evidence is complete.
Author
Owner

MR #351 was merged by the user as 51cf664a6123dd4455903ba1eda8786912e013b4; the remote feature branch was deleted. Code-review follow-up is complete, with false-positive findings dismissed using execution evidence. Configuration publication is complete; live migration is not yet claimed. The private recovery checkpoint and authenticated deployment acceptance remain outstanding, so this rollout issue stays open.

MR #351 was merged by the user as `51cf664a6123dd4455903ba1eda8786912e013b4`; the remote feature branch was deleted. Code-review follow-up is complete, with false-positive findings dismissed using execution evidence. Configuration publication is complete; live migration is not yet claimed. The private recovery checkpoint and authenticated deployment acceptance remain outstanding, so this rollout issue stays open.
Author
Owner

Following the GitLab SSH endpoint update, audited the migrated flake inputs: Cloudflare CLI, Token TV and Navidrome MCP use HTTPS and require no changes. Prepared the Hermes profile transport follow-up on local branch fix/gitlab-ssh-endpoint, updating the configured Git URL, corresponding trusted-host entry and documentation.

Validation: full nix flake check passed, including the existing Hermes SSH and profile-sync regressions; git diff --check passed. The new endpoint presents the existing trusted GitLab host key. Evaluation emitted two upstream stdenv platform-alias deprecation warnings; neither deprecated alias appears in this repository’s Nix files, so they are outside this endpoint correction.

No publication or live activation has been performed; rollout prerequisites remain unchanged.

Following the GitLab SSH endpoint update, audited the migrated flake inputs: Cloudflare CLI, Token TV and Navidrome MCP use HTTPS and require no changes. Prepared the Hermes profile transport follow-up on local branch `fix/gitlab-ssh-endpoint`, updating the configured Git URL, corresponding trusted-host entry and documentation. Validation: full `nix flake check` passed, including the existing Hermes SSH and profile-sync regressions; `git diff --check` passed. The new endpoint presents the existing trusted GitLab host key. Evaluation emitted two upstream stdenv platform-alias deprecation warnings; neither deprecated alias appears in this repository’s Nix files, so they are outside this endpoint correction. No publication or live activation has been performed; rollout prerequisites remain unchanged.
Author
Owner

Published the reviewed endpoint follow-up directly to main as authorized by the user: commit a6eaf672c5 updates the Hermes profile Git URL, corresponding trusted-host entry and documentation.

Full nix flake check and git diff --check passed for the exact change; the pre-publication refresh left its base unchanged. Remote main was verified after publication. This supersedes the earlier local-only status. No live activation or Hermes profile-origin cutover was performed; the existing rollout prerequisites remain outstanding.

Published the reviewed endpoint follow-up directly to main as authorized by the user: commit a6eaf672c5855e1355d489e29fe000eccbd45897 updates the Hermes profile Git URL, corresponding trusted-host entry and documentation. Full `nix flake check` and `git diff --check` passed for the exact change; the pre-publication refresh left its base unchanged. Remote main was verified after publication. This supersedes the earlier local-only status. No live activation or Hermes profile-origin cutover was performed; the existing rollout prerequisites remain outstanding.
Author
Owner

Tested and complete

Tested and complete
nimmo closed this issue 2026-10-20 19:50:35 +01:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#350
No description provided.