Commit 4f4395c
test(create-pr): add final validation test file (#607)
* chore(autoresearch): init create-pr optimization session
* fix(autoresearch): shellcheck cd into scripts dir
* improve(create-pr): compress scripts — remove verbose messages and redundant comments
Result: {"status":"keep","total_bytes":6268,"line_count":183,"word_count":917}
* improve(create-pr): compress SKILL.md — remove overview/when-to-use, tighten prose
Result: {"status":"keep","total_bytes":5836,"line_count":169,"word_count":844}
* improve(create-pr): remove unused verify-pr-status.sh
Not referenced by any skill or hook. Was retained for pr-pass per spec
but pr-pass doesn't actually use it.
Result: {"status":"keep","total_bytes":4534,"line_count":141,"word_count":666}
* improve(create-pr): merge sync-with-base into preflight-check (auto-sync when behind)
Result: {"status":"keep","total_bytes":4019,"line_count":122,"word_count":601}
* improve(create-pr): inline lib.sh into preflight-check.sh, remove lib.sh
Only preflight-check.sh used lib.sh. Inlining saves a file and overhead.
Result: {"status":"keep","total_bytes":3558,"line_count":107,"word_count":541}
* improve(create-pr): further compress SKILL.md — flatten sections into inline notes
Result: {"status":"keep","total_bytes":3202,"line_count":85,"word_count":490}
* improve(create-pr): compact wait-for-merge.sh with case statement
Result: {"status":"keep","total_bytes":3103,"line_count":82,"word_count":471}
* improve(create-pr): further compress preflight-check.sh
Result: {"status":"keep","total_bytes":2884,"line_count":68,"word_count":448}
* chore(autoresearch): re-init with skill_bytes metric (SKILL.md only)
Scripts don't load into LLM context — only SKILL.md token cost matters.
Result: {"status":"keep","skill_bytes":1081,"skill_lines":27,"skill_words":151}
* improve(create-pr): compress SKILL.md — shorter description, remove redundant sections
Remove stop conditions (obvious), trim CI failure instructions,
shorten description field.
Result: {"status":"keep","skill_bytes":802,"skill_lines":23,"skill_words":110}
* improve(create-pr): extract script path variable, flatten code block
Result: {"status":"keep","skill_bytes":732,"skill_lines":19,"skill_words":100}
* improve(create-pr): merge inline comments, remove bold markers
Result: {"status":"keep","skill_bytes":675,"skill_lines":18,"skill_words":93}
* improve(create-pr): micro-compress SKILL.md wording
Result: {"status":"keep","skill_bytes":635,"skill_lines":18,"skill_words":82}
* improve(create-pr): remove explicit template path from SKILL.md
Result: {"status":"keep","skill_bytes":605,"skill_lines":17,"skill_words":82}
* chore(autoresearch): update state files
* fix(create-pr): add auto-merge re-enable after CI fix, use push -u in preflight
Test found: auto-merge is disabled after force-push, must re-enable.
Also: preflight sync push needs -u for new branches.
Result: {"status":"keep","skill_bytes":665,"skill_lines":17,"skill_words":92}
* chore(autoresearch): update dashboard and worklog after testing
* fix(create-pr): clarify scripts MUST be executed, not reimplemented
Test showed agent skipping preflight-check.sh and doing manual logic instead.
Added "Execute each line literally" + "scripts MUST be run" directive.
Result: {"status":"keep","skill_bytes":794,"skill_lines":20,"skill_words":109}
* fix(tests): update tests for consolidated create-pr scripts
- Remove tests for deleted scripts (lib.sh, verify-pr-status.sh, sync-with-base.sh)
- Update preflight BEHIND test to expect auto-sync behavior
- Fix skill content test to accept code-block-only skills
Result: {"status":"keep","skill_bytes":794}
* test(create-pr): add final validation test file
---------
Co-authored-by: Test User <test@example.com>1 parent 4edb729 commit 4f4395c
File tree
15 files changed
+209
-408
lines changed- .autoresearch
- plugins/me/skills/create-pr
- scripts
- tests
- me
- skills
15 files changed
+209
-408
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 6 | + | |
18 | 7 | | |
19 | 8 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
30 | 13 | | |
31 | 14 | | |
32 | 15 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 16 | + | |
45 | 17 | | |
46 | 18 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 19 | + | |
| 20 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
11 | 9 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
62 | 14 | | |
63 | 15 | | |
64 | | - | |
65 | | - | |
| 16 | + | |
| 17 | + | |
This file was deleted.
0 commit comments