Repository navigation
Fix report header breaks and table-cell checks - #231
Conversation
A line break in the course name became a heading, and a non-text project_name raised AttributeError. A pipe in inline code or an escaped pipe split a cell, so check counted the wrong columns and the writing check missed a long sentence or read the code. Two tiers on one citation also said the cell was not citations. A bullet inside a numbered list used the 20-word limit, and a step in a div used 25. Co-authored-by: Philippos Savvides <savvides@users.noreply.github.com>
…does (#231 review) GitHub Markdown starts a new cell at a pipe inside `code` and drops the extra cell, so check must not accept it. Only \| stays in the cell. Remove scripts/lib/table_cells.py; the old regex split is enough. The cell-count problem now says to write each pipe as \|. nearest_list skips inline elements, so a span around a step with a <br> keeps the 20-word step limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review (Claude Code), fixes pushed in b6511c3 and 07e53a4:
Kept as written: the line-break refusal in Local: smoke 695/695, integration 81/81, test-report-section 64 (CLAUDE.md count updated), test-ste-check 42, test-citation-tiers OK. No mutation anchor quotes the changed lines. |
…view) The blocks are not in a table, and GitHub Markdown does not unescape \| inside a code span, so the report showed a stray backslash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 47c11b5. Configure here.
| self.assertEqual(result.returncode, 0, result.stderr) | ||
| self.assertNotIn('Traceback', result.stderr) | ||
| self.assertIn('Untitled course', self.read(REPORT)) | ||
| self.assertNotIn('101', self.read(REPORT)) |
There was a problem hiding this comment.
Flaky assertion on random run id
Low Severity
The new test forbids the substring 101 anywhere in the generated report. init writes a six-character hex run id when --run-id is omitted, so a value such as 101abc makes this assertion fail even though project_name was correctly replaced with Untitled course.
Reviewed by Cursor Bugbot for commit 47c11b5. Configure here.


Summary
initexits 2 when--title,--project,--mode,--skill,--run-id,--reserveorproject_namecontains a line break, and the report stays as it was. A line break in those fields was written into the file and became a new heading. Aproject_namethat is not text (for example a number) isUntitled course. Before,initraisedAttributeErrorand exited 1.A citation group with two tiers reports that problem only. Extra text in the cell still gets the other message.
An escaped pipe (
\|) stays in the table cell.idstack-ste-checkthen counts the words in that cell, so a long sentence fails the 25-word limit. A pipe inside`code`is a new column, as in GitHub Markdown:POST /markdown(mode=gfm) renders| A-1 | Runa|bnow | lost |as two cells and dropslost.checkrefuses that row and tells you to write the pipe as\|.A
### Findingblock is not a table. GitHub shows the backslash inside`a\|b`.appendwrites|in What we saw, the recommendation, and the justification. The table row keeps\|.A bullet inside a numbered list uses the 25-word limit. A numbered step inside a
div,p,lior an inline element (span,a,em) uses the 20-word limit. A block element such assectionstill ends the step.Review follow-ups:
b6511c3splits cells as GitHub does (only\|stays in the cell) and skips inline tags innearest_list.07e53a4unescapes\|in the generated Finding block.#229 stays open: a step inside
sectionorarticlestill uses the 25-word limit. #230 is the same GitHub column break, including a pipe inside double backticks, so it is not a separate defect. This run cannot close issues, so #230 is still open.Tests
Re-run on
07e53a4:python3 test/test-report-section.pypython3 test/test-ste-check.pypython3 test/test-citation-tiers.py./test/smoke-test.sh— an earlier review comment reports 695/695. I did not re-run it on07e53a4../test/integration-test.sh— that comment reports 81/81. I did not re-run it on07e53a4.scripts/idstack-gen-skills --dry-runwas not requiredNote
Low Risk
Changes are confined to report validation, STE checking, and citation messaging with expanded unit tests; no auth, manifest merge, or LMS token paths are modified.
Reviewed by Cursor Bugbot for commit 47c11b5. Bugbot is set up for automated code reviews on this repo. Configure here.