GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: stronghold-seed 工作流(迁移批次一) by randypanding · Pull Request #508 · Cloudbird-Software/.github

Conversation

@randypanding

@randypanding randypanding commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

ADR-0108/S-7 已落地(stronghold 建仓 201,P11)。本工作流=迁移批次一:holdout 十条全量档案+索引快照入 stronghold(真值区),台账 genesis(hash 链同 fractures/LEDGER 公式),推送后回读 sha256 对账。凭据经 credential helper(INV-04 零明文)。批次二(GitHub 侧字段级剥离+sealed 指针+unseal 重定向)另行执行。

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@randypanding
feat(stronghold): seed 工作流——holdout 全量档案入 CNB 真值区+台账 genesis+回读校验(卡 B…
62b4a23
…2 批次一)
Copilot AI lite review requested due to automatic review settings September 6, 2026 10:36
@qodo-code-review

qodo-code-review Bot commented Sep 6, 2026

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@randypanding
randypanding merged commit 1868b09 into main Sep 6, 2026
5 of 7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@randypanding
randypanding deleted the ir0010-stronghold-seed branch September 6, 2026 10:36
Copilot started reviewing on behalf of randypanding September 6, 2026 10:36
View session
Copilot AI reviewed Sep 6, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The workflow currently has confirmed path/verification issues that will break execution and/or allow a mismatch to pass without failing the job.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds a manually triggered GitHub Actions workflow to perform “stronghold-seed” migration batch #1: fetch 10 holdout archive entries + index snapshot, generate a genesis ledger record (hash-chain), push the seeded content into CNB stronghold, and then verify the pushed archive via sha256.

Changes:

  • Introduces a new workflow_dispatch workflow to assemble holdout archives and an index snapshot into a staged directory.
  • Generates a genesis ledger entry (ledger/stronghold.jsonl) and seeds the target CNB repo by cloning/committing/pushing.
  • Performs a post-push content readback and sha256 comparison (verification step).
File summaries
File Description
.github/workflows/stronghold-seed.yml New workflow to seed CNB stronghold with holdout archive + ledger genesis and verify the result.
Review details

Suppressed comments (1)

.github/workflows/stronghold-seed.yml:84

  • The post-push verification reads the local file from ../stage/... (wrong relative path after cd repo) and prints MISMATCH without failing the job. This makes verification non-enforcing and can allow a bad seed to pass green.
          req = urllib.request.Request('https://api.cnb.cool/Cloudbird-Software/stronghold/-/git/raw/main/answers/holdout-full-archive.jsonl',
              headers={'User-Agent': 'seed', 'Authorization': 'Bearer ' + os.environ['CNB_TOKEN']})
          with urllib.request.urlopen(req, timeout=60) as r:
              remote = r.read()
          local = open('../stage/answers/holdout-full-archive.jsonl', 'rb').read()
          print('VERIFY', 'OK' if hashlib.sha256(remote).hexdigest() == hashlib.sha256(local).hexdigest() else 'MISMATCH')
          print('remote entries:', len(remote.decode('utf-8').strip().splitlines()))
  • Files reviewed: 1/1 changed files
  • Comments generated: 4
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/stronghold-seed.yml
Comment on lines +63 to +65
cd repo
git config user.email [email protected] && git config user.name randypanding
cp -r ../stage/answers ../stage/ledger ../stage/README.md .
Comment thread .github/workflows/stronghold-seed.yml
cd repo
git config user.email [email protected] && git config user.name randypanding
cp -r ../stage/answers ../stage/ledger ../stage/README.md .
git add -A && git commit -qm 'seed: holdout 全量档案+台账 genesis(迁移批次一,ADR-0108/S-7,EX-SEED)'
Comment thread .github/workflows/stronghold-seed.yml
Comment on lines +67 to +74
CH='!f(){ echo username=oauth2; echo password="$CNB_TOKEN"; };f'
if ! git -c credential.helper="$CH" push -q -u origin HEAD:main --force 2>/dev/null; then
CH='!f(){ echo username=P11; echo password="$CNB_TOKEN"; };f'
if ! git -c credential.helper="$CH" push -q -u origin HEAD:main --force 2>/dev/null; then
CH='!f(){ echo username="$CNB_TOKEN"; echo password=x-oauth-basic; };f'
git -c credential.helper="$CH" push -q -u origin HEAD:main --force
fi
fi
Comment thread .github/workflows/stronghold-seed.yml
CNB_TOKEN: ${{ secrets.CNB_TOKEN_P11 }}
GH_TOKEN: ${{ github.token }}
run: |
set -eu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@randypanding
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.