Skip to content

fix(ci): code PR validators read the specs repo; clear App key errors (G32, G33) - #9

Merged
manhnd1105 merged 1 commit into
mainfrom
fix/ci-setup
Nov 28, 2026
Merged

manhnd1105 merged 1 commit into
mainfrom
fix/ci-setup

Conversation

@manhnd1105

Copy link
Copy Markdown
Contributor

This PR fixes two blockers found when the repos' CI started working.

G33: the code repo validators had never worked. validate.yml loaded the config from the code repo checkout. The code repo has no harness-overrides.yaml, so the $GITHUB_ORG and $REPO_* placeholders stayed undefined (ai-sdlc-code1#3: "config uses undefined variable(s)"). The dev exit gate also needs the specs.

  • validate.yml has a new input, specs_repo. With kind: code, it clones the specs repo outside the workspace and runs gate.py config-check --repo <specs> and gate.py ci --repo <specs> --code-repo .. If specs_repo is missing, the job fails with a clear message.
  • gate.py ci has a new --code-repo option: the diff, lint and tests run in the code repo, and the config and specs come from --repo.
  • New doctor check, code validate: it FAILs when the code repo calls validate.yml with kind: code but without specs_repo. Live, it FAILs for ai-sdlc-code1 today.

G32: a wrong App key only said Invalid keyData.

  • After each App token step (5 of them), a step runs when the token fails. It names the secret and prints gh secret set … < key.pem.
  • README setup step 2: set the private keys from the .pem file, not by pasting them.

Version: harness_version is now 1.3.2, and the example workflows pin v1.3.2. v1.3.1 still said 1.3.0.

Tests: gate ci --kind code now loads the specs config and runs lint and tests in the code repo. The new test fails without this fix. Also new: a test for the doctor code validate check. All tests pass.

After you merge: tag v1.3.2. I then update ai-sdlc-code1#3 (pin v1.3.2, specs_repo: vieplatfrm/ai-sdlc-spec) and ai-sdlc-spec#9 (pin v1.3.2).

🤖 Generated with Claude Code

… (G32, G33)

- G33: validate.yml takes specs_repo. Code PRs clone the specs repo and run
  gate.py ci --repo <specs> --code-repo . ; doctor FAILs without specs_repo
- G32: a step after each App token step names the secret and prints the
  gh secret set ... < key.pem command; README says to set keys from the file
- harness_version 1.3.2, example pins v1.3.2

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@manhnd1105
manhnd1105 merged commit 7d2b341 into main Nov 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant