Skip to content

fix: align box-drawing characters in ASCII diagrams #384

Closed

Description

@admarble

Summary

Two ASCII diagrams in the docs have off-by-one character alignment issues visible in JetBrains Mono rendering.

Files

docs/index.md (2 issues)

Box 1 ("GitHub Issue #123") — content lines are 1 char wider than the border corners:

                          ┌──────────────┐
-                         │ GitHub Issue  │
-                         │    #123       │
+                         │ GitHub Issue │
+                         │    #123      │
                          └──────┬───────┘

WORKTREE top border — 1 dash short vs the bottom border and content lines:

-               ┌────────────────▼─────────────────────┐
+               ┌────────────────▼──────────────────────┐
                │           WORKTREE                    │

docs/concepts/quality-gates.md (1 issue)

Quality loop feedback arrow — ┐ and first │ at position 43, rest of loop at position 44:

-│  QA  │───▶│  Analyze  │───▶│   Fix    │──┐
-└──────┘    │  Failures │    └──────────┘  │
+│  QA  │───▶│  Analyze  │───▶│   Fix    │───┐
+└──────┘    │  Failures │    └──────────┘   │
     ▲       └───────────┘                   │

Context

These fixes were already applied in sequant-landing (0046aaf) but need to be applied upstream so they aren't overwritten by the docs sync script.

Activity

  1. admarble commented on Mar 25, 2026

    @admarble
    ContributorAuthor

    Spec Plan — Issue #384

    AC Quality Check

    ⚠️ No formal AC items found in the issue body. AC will be defined below based on the issue description and verified diffs.


    Scope Assessment

    Non-Goals (Required)

    • Restructuring or moving documentation files
    • Fixing diagrams in other files not mentioned in the issue
    • Changing diagram content or layout — only alignment corrections

    Scope Metrics

    Metric Value Status
    Feature count 1 ✅
    AC items 2 ✅
    Directory spread 1 ✅

    Scope Verdict

    ✅ SCOPE_OK — Single-file cosmetic fix with clear diffs provided.


    Acceptance Criteria

    Note: The issue references docs/index.md (2 issues) and docs/concepts/quality-gates.md (1 issue). Investigation shows docs/index.md was renamed to docs/README.md in commit 479ec0f, and the diagrams were later moved to docs/concepts/what-is-sequant.md. Those diagrams are already correctly aligned (verified character-by-character). Only the quality-gates.md fix remains.

    AC-1: Quality loop feedback arrow alignment in docs/concepts/quality-gates.md

    Verification Method: Manual Test (visual inspection)

    Test Scenario:

    • Given: docs/concepts/quality-gates.md lines 337-341, quality loop diagram
    • When: Character positions of ┐ (line 337), │ (line 338), │ (line 339), │ (line 340), ┘ (line 341) are measured
    • Then: All right-side vertical elements are at the same column position (44)

    Current state: ┐ and first │ at position 43; rest of loop at position 44.

    Fix: Add one ─ before ┐ on line 337, add one space before │ on line 338:

    -│  QA  │───▶│  Analyze  │───▶│   Fix    │──┐
    -└──────┘    │  Failures │    └──────────┘  │
    +│  QA  │───▶│  Analyze  │───▶│   Fix    │───┐
    +└──────┘    │  Failures │    └──────────┘   │

    AC-2: Confirm docs/index.md fixes are already applied upstream

    Verification Method: Manual Test (character count verification)

    Test Scenario:

    Current state: ✅ Already aligned. No changes needed.


    Implementation Plan

    Phase 1: Fix quality-gates.md (2 line edits)

    1. Line 337: Change │──┐ to │───┐ (add one dash before corner)
    2. Line 338: Change ┘ │ to ┘ │ (add one space before pipe)

    No other files need changes.


    Design Review

    1. Where does this logic belong? docs/concepts/quality-gates.md — documentation layer, lines 337-338 of an ASCII diagram.

    2. What existing pattern does this follow? Matching box-drawing alignment to the existing loop body at position 44. Same fix pattern as the sequant-landing commit 0046aaf.


    Feature Quality Planning

    Completeness Check

    • All AC items have corresponding implementation steps
    • Integration points: docs sync script from sequant-landing
    • No partial implementations planned

    Code Quality

    • Follows existing diagram alignment patterns
    • No code changes — documentation only

    Open Questions

    1. docs/index.md path discrepancy
      • The issue references docs/index.md but this file was renamed to docs/README.md (commit 479ec0f) and diagrams moved to docs/concepts/what-is-sequant.md
      • Recommendation: Those diagrams are already correctly aligned — no action needed. Close the docs/index.md items as pre-resolved.
      • Impact: None if accepted; if the issue author intended different files, they should clarify.

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled
    Reasoning: Trivial 2-line documentation fix with exact diffs provided. No spec review needed (issue is self-contained). No tests to generate.


    Label Review

    Current: (none)
    Recommended: docs, simple-fix
    Reason: Pure documentation cosmetic fix, 2 lines changed
    Quality Loop: Won't auto-enable (simple scope)

    → gh issue edit 384 --add-label docs --add-label simple-fix


    Verification Summary

    AC Method Status
    AC-1: quality-gates.md loop alignment Manual (char position check) Pending
    AC-2: index.md fixes already applied Manual (char width check) ✅ Verified
  2. added
    planned
    on Mar 25, 2026
  3. admarble commented on Mar 25, 2026

    @admarble
    ContributorAuthor

    Spec Plan — #384: fix: align box-drawing characters in ASCII diagrams

    AC Quality Check

    No formal AC items found in issue body. Issue provides exact diffs — acceptance criteria are implicit and unambiguous.


    Scope Assessment

    Trivial issue — 0 formal AC items, 2 directories (docs only)

    Non-Goals (Required)

    ⚠️ Non-Goals section not found. Inferred non-goals for this fix:

    • Do not change diagram content or structure, only character alignment
    • Do not rewrite diagrams — apply minimum edits per the referenced commit
    • Do not touch diagrams in other doc files

    Scope Metrics

    Metric Value Status
    Feature count 1 ✅
    AC items 3 ✅
    Directory spread 1 ✅

    Scope Verdict

    ✅ SCOPE_OK — Single focused fix, minimal changes.


    File Path Correction

    The issue references docs/index.md, but this file does not exist in the repo. The diagrams are located in docs/concepts/what-is-sequant.md. Additionally, 2 of the 3 fixes are already applied upstream — only the quality-gates.md fix remains.

    Issue Description Actual File Status
    docs/index.md — "GitHub Issue #123" box docs/concepts/what-is-sequant.md:42-45 ✅ Already fixed
    docs/index.md — WORKTREE top border docs/concepts/what-is-sequant.md:53 ✅ Already fixed
    docs/concepts/quality-gates.md — quality loop arrow docs/concepts/quality-gates.md:337-338 ❌ Needs fix

    Acceptance Criteria

    AC-1: Quality loop ┐ aligns with the vertical │ below it

    Verification Method: Manual Test

    Test Scenario:

    • Given: docs/concepts/quality-gates.md lines 337-341
    • When: Line 337 │──┐ is changed to │───┐ (add 1 dash)
    • Then: The ┐ on line 337 ends at column 45, matching lines 339-341

    AC-2: Quality loop first │ aligns with ┐ above and │ below

    Verification Method: Manual Test

    Test Scenario:

    • Given: docs/concepts/quality-gates.md line 338
    • When: ┘ │ is changed to ┘ │ (add 1 space)
    • Then: The │ on line 338 ends at column 45, matching lines 339-341

    AC-3: Verify what-is-sequant.md diagrams are already correct

    Verification Method: Manual Test (verification only)

    Test Scenario:

    • Given: docs/concepts/what-is-sequant.md lines 42-45, 53, 79
    • When: Check column alignment
    • Then: All box lines end at consistent columns (already confirmed: col 41 for box, col 56 for WORKTREE)

    Implementation Plan

    Phase 1: Fix quality-gates.md quality loop diagram

    1. Edit line 337 of docs/concepts/quality-gates.md:
      Change │ Fix │──┐ to │ Fix │───┐ (add 1 dash before ┐)

    2. Edit line 338 of docs/concepts/quality-gates.md:
      Change └──────────┘ │ to └──────────┘ │ (add 1 space before │)

    3. Verify all 5 lines (337-341) of the quality loop diagram end at column 45.

    Phase 2: Close the file path discrepancy

    1. Optionally update the issue body to note docs/index.md → docs/concepts/what-is-sequant.md and that 2/3 fixes were already applied.

    Design Review

    1. Where does this logic belong? Pure docs change — docs/concepts/quality-gates.md. No code involved.

    2. What existing pattern does this follow? Same box-drawing alignment convention used throughout the doc files. Fix matches the pattern already applied in the sequant-landing repo (commit 0046aaf).


    Feature Quality Planning

    Completeness Check

    • All AC items have corresponding implementation steps
    • Integration points identified (docs sync script from sequant-landing)
    • No partial implementations planned
    • Data flow: N/A (docs only)

    Open Questions

    1. Should the 2 already-fixed diagrams in what-is-sequant.md be noted on the issue?

      • Recommendation: Add a comment noting they're already correct upstream
      • Impact: Low — just documentation accuracy
    2. Issue references docs/index.md which doesn't exist

      • Recommendation: Proceed with the actual file docs/concepts/what-is-sequant.md for verification; note in PR description
      • Impact: None — the fix target is clear from the diff context

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled
    Reasoning: Trivial docs-only fix with exact diff provided. No spec review needed (diffs are unambiguous). 2 of 3 fixes already applied — only 1 two-line edit remains.


    Label Review

    Current: (none)
    Recommended: docs
    Reason: Documentation-only change

    → gh issue edit 384 --add-label docs


  4. added a commit that references this issue on Mar 25, 2026
  5. admarble commented on Mar 25, 2026

    @admarble
    ContributorAuthor

    Exec Progress Update — #384

    AC Coverage

    AC Description Status
    AC-1 Quality loop ┐ aligns with │ below ✅ Implemented
    AC-2 Quality loop first │ aligns with ┐ above ✅ Implemented
    AC-3 what-is-sequant.md diagrams already correct ✅ Verified

    Files Changed

    • docs/concepts/quality-gates.md — 2-line edit (lines 337-338)

    Checks

    Check Status
    npm run build ✅ Passed
    npm run lint ✅ Passed
    npm test ✅ Passed (pre-existing timeout flake unrelated)

    Quality Plan Alignment

    N/A — No quality plan dimensions apply (docs-only cosmetic fix).

    PR

    ✅ Created: #431

    CHANGELOG: N/A (internal documentation fix)

  6. admarble commented on Mar 25, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #384

    AC Coverage

    AC Source Description Status Notes
    AC-1 Original Quality loop ┐ aligns with │ below MET Line 337 ┐ at column 45, matching lines 339-341
    AC-2 Original Quality loop first │ aligns with ┐ above MET Line 338 │ at column 45, matching lines 339-341
    AC-3 Original what-is-sequant.md diagrams already correct MET GitHub Issue box inner width=14, WORKTREE borders inner width=39 — all aligned

    Coverage: 3/3 AC items fully met


    Quality Plan Verification

    N/A — No quality plan found (docs-only cosmetic fix).


    CI Status

    Check State Bucket Impact
    build (20.x) SUCCESS pass ✅ MET
    build (22.x) SUCCESS pass ✅ MET
    validate-skills SUCCESS pass ✅ MET
    typecheck SUCCESS pass ✅ MET
    validate-plugin SUCCESS pass ✅ MET

    CI Summary: 5 passed, 0 pending, 0 failed


    Quality Metrics

    Metric Value Status
    Type issues (any) 0 OK
    Deleted tests 0 OK
    Files changed 1 OK
    Lines added +2 -
    Lines deleted -2 -

    Test Coverage Analysis

    No source code files changed — documentation-only fix. N/A.


    Code Review

    Strengths:

    • Minimal, surgical 2-line fix matching the exact diff from the issue description
    • Correct alignment verified programmatically — all 5 lines of the quality loop (337-341) end at column 45
    • Properly scoped: only docs/concepts/quality-gates.md was changed; the spec correctly identified that 2 of 3 original fixes were already applied upstream

    Issues: None

    Suggestions: None


    Anti-Pattern Detection

    N/A — No source code changes.


    Self-Evaluation

    • Verified working: Yes — character positions measured programmatically for all 5 loop lines and confirmed alignment at column 45
    • Test efficacy: N/A — docs-only change, no tests applicable
    • Likely failure mode: Future diagram edits could re-introduce misalignment. Low risk.
    • Verdict confidence: High — trivially verifiable fix

    CHANGELOG Verification

    Result: N/A (internal documentation cosmetic fix, not user-facing)


    Verdict: READY_FOR_MERGE

    All 3 AC items met. Single-file, 2-line documentation fix with correct alignment verified programmatically. CI passes. No code changes, no risk.

    Documentation

    • N/A — No documentation needed (cosmetic fix to existing docs)

    Next Steps

    1. Merge PR fix(#384): align box-drawing characters in ASCII diagrams #431
  7. added
    ready-for-review
    on Mar 25, 2026
  8. added a commit that references this issue on Mar 25, 2026
  9. admarble commented on Mar 25, 2026

    @admarble
    ContributorAuthor

    Documentation Review Complete

    This issue contains documentation-only changes. No additional documentation generation required.

    Files Modified:

    • docs/concepts/quality-gates.md

    Status:

    ✅ Documentation changes are ready for review and merge.


    Ready to merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plannedready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions