Skip to content

formadaptor 0.3.0: formadaptor holds no secret; planning and proposing are two steps - #6

Merged
nodemode-ai merged 4 commits into
mainfrom
feat/plan-and-apply-0.3.0
Nov 26, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
feat/plan-and-apply-0.3.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

formadaptor 0.3.0: formadaptor holds no secret; planning and proposing are two steps

Summary

  • formadaptor's hourly run ended in a propose job that signed in with a GitHub App of its own. Those secrets were never set, so every run skipped every target. The owner's ruling: formadaptor holds no secret; formcompiler runs the proposing with its release App.
  • scripts/propose.py gains three commands. plan runs a target's generator with no token and writes proposal.json and a copy of each changed file. changed lists the targets that have a plan. apply takes a token, checks the plan again (target, repository, branch, every path against the target's declared files, every file's sha256, no links, the change hash), runs nothing from the target, pushes the bot/formadaptor-* branch and opens the pull request. When the target's main moved since the plan, apply pushes nothing and the next run proposes again.
  • hourly.yml builds and publishes the family spec and stops there. propose.yml is deleted. formcompiler's adaptor.yml calls the three commands.
  • run still does both steps in one for use by hand.

Commits

  • feat(propose): plan runs the generator with no token, changed lists the plans, apply re-checks a plan and proposes it without running target code
  • ci: formadaptor proposes nothing itself; the hourly run builds and publishes the spec, and propose.yml is gone
  • docs: formadaptor holds no secret; formcompiler's adaptor.yml proposes with its release App, planning with no secret and applying with no target code
  • chore(release): 0.3.0

Version

0.3.0 in VERSION, the README, the log header and the test that reads them. CHANGELOG.md has the v0.3.0 section.

Checks

  • pytest tests: 82 passed. It was 85: two tests that read propose.yml went with the file, and one was rewritten in place to say that no workflow here holds a secret.
  • actionlint on the workflows, py_compile on the scripts, registry.py ids --check (37 registry entries, in step), propose.py matrix (4 targets), the em dash and emoji scan.
  • Rehearsed with a local repository as the target and a local stand-in for the API: plan wrote a plan for a drifted file and nothing for a target in step; changed listed the one good plan and skipped four bad entries with a warning each; apply refused a path outside the target's files, a wrong sha256, a link, another repository, a .. path and a wrong branch, each with nothing pushed; a good plan pushed the branch and opened the pull request; a plan made before main moved pushed nothing.

Not run: nothing ran on GitHub.

Merging

Merge this before formcompiler 0.24.0, whose workflow calls the new commands. Merge with a merge commit so each commit and its signature stays. Do not squash.

…he plans, apply re-checks a plan and proposes it without running target code
…s with its release App, planning with no secret and applying with no target code
@nodemode-ai
nodemode-ai merged commit 2a53dd4 into main Nov 26, 2026
2 checks passed
@nodemode-ai
nodemode-ai deleted the feat/plan-and-apply-0.3.0 branch November 29, 2026 06:14
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