You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correct schema URL path in nightly-schema-updater workflow prompt (#1496)
The `nightly-schema-updater` workflow prompt described
`validation_schema.go`'s `schemaURL` as using the `pkg/workflow/schemas`
path, but the file actually uses `docs/public/schemas` (the same path as
`rules/rules.go`). This caused the agent to verify a non-existent URL,
make unintended changes to the guard-policies workaround, and produce a
patch that failed with `sha1 information is lacking or useless` during
`git am --3way`.
## Changes
- **Correct URL path** — `validation_schema.go` pattern updated from
`pkg/workflow/schemas` → `docs/public/schemas` in Steps 2 and 5
- **Simplify Step 4 verification** — removed the non-existent
`pkg/workflow/schemas` curl check; only one URL to verify now
- **Scope-limit Step 5** — explicit instruction to only change the URL
string value, not surrounding code (prevents spurious guard-policies
diffs)
- **Add test file coverage** — Step 5 now instructs the agent to check
and update hardcoded URLs in `validation_schema_test.go`
- **Cleanup** — removed stale `/pkg` reference from Step 3's
version-extraction description
Both should return `200`. If either returns non-200, **stop** and create an issue instead of a PR:
107
+
This should return `200`. If it returns non-200, **stop** and create an issue instead of a PR:
110
108
111
109
```
112
110
Schema file not found at tag <TAG>. Skipping update.
113
111
```
114
112
115
113
## Step 5: Update the Schema URLs
116
114
117
-
Update both files using the `edit` tool:
115
+
Update the URL-bearing files using the `edit` tool. **Important**: only change the URL string value itself — do not modify any surrounding code, comments (except those described below), or other logic.
118
116
119
117
### Update `internal/config/validation_schema.go`
120
118
121
-
Replace the `schemaURL` value with the new versioned URL. If the file contains a comment line matching `// Current schema version: ...`, update it to reflect the new version; otherwise skip the comment update.
119
+
Replace only the `schemaURL` value with the new versioned URL. If the file contains a comment line matching `// Current schema version: ...`, update it to reflect the new version; otherwise skip the comment update.
122
120
123
121
### Update `internal/config/rules/rules.go`
124
122
125
-
Replace the `SchemaURL` constant value with the new versioned URL.
123
+
Replace only the `SchemaURL` constant value with the new versioned URL.
0 commit comments