feat(robomp): integrated linting amends and commit message sanitization

- Updated `_run_pre_publish_bun_fix` to amend `bun run fix` output into HEAD instead of creating standalone `style:` commits.
- Added `_repair_commit_message_escapes` to detect and rewrite commit messages containing shell-literal `\n` sequences into real newlines.
- Enforced safety checks during `bun run fix` to ensure HEAD is mutable and locally authored before amending.
- Improved documentation in prompts and README regarding commit message formatting and formatter workflow changes.
This commit is contained in:
can1357
2026-07-02 22:55:07 +02:00
parent 6d2e9f8f7d
commit 22e9224ae8
4 changed files with 177 additions and 30 deletions
+5 -2
View File
@@ -148,9 +148,12 @@ The integration test spawns a real `omp --mode rpc` against an
- Pre-push gates (`gh_push_branch`): branch matches the workspace
branch, working tree clean, every commit on
`origin/<default>..HEAD` carries `ROBOMP_GIT_AUTHOR_NAME` +
`ROBOMP_GIT_AUTHOR_EMAIL`.
`ROBOMP_GIT_AUTHOR_EMAIL`. Commit messages carrying shell-literal
`\n` escapes (agents quoting `git commit -m 'a\n\nb'`) are rewritten
to real newlines — message-only, trees/identities/dates preserved.
- Pre-PR gates (`gh_open_pr`): when the repo defines them, `bun run fix`
runs first (any diff auto-committed as `style: bun run fix`) and then
runs first (any diff amended into the agent's HEAD commit — no
standalone `style:` noise commits) and then
`bun check`. A failing `bun check` returns to the agent as
`RpcCommandError` for iteration.
- `gh_open_pr` validates `## Repro` / `## Cause` / `## Fix` /