Add frozen TikZRefinery demo baseline and build pipeline
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

This commit is contained in:
2026-11-25 22:46:33 -05:00
parent 6064cce05e
commit 27b82c169e
456 changed files with 66509 additions and 0 deletions
@@ -0,0 +1,591 @@
\chapter{Tests}\ChapterLabel{Tests}
\index{test case}
These proposed test cases make the current requirements reviewable. They are
plans, not executed results or verification evidence. The initial syntax and
reference sources are now defined; before product-test execution, the
team must fix platform and
toolchain versions, zoom range, visual comparison tolerances, and exact expected diagnostics. Each test should record
its run date, environment, result, and evidence when performed.
Developer checks TC-019 and TC-030--TC-033 include source/design inspections;
they are distinct from end-user interaction tests and remain proposed checks.
\section{Proposed Test Cases}
\begingroup
\footnotesize
\renewcommand{\arraystretch}{1.0}
\begin{tabularx}{\linewidth}{@{}L{1.65cm}L{2.55cm}YY@{}}
\caption{Proposed Product Test Cases\label{Table:TestCases}}\\
\toprule\textbf{ID} & \textbf{Requirements} & \textbf{Procedure} & \textbf{Expected result}\\
\midrule\endfirsthead
\multicolumn{4}{l}{\small\itshape Proposed Product Test Cases (continued)}\\
\toprule\textbf{ID} & \textbf{Requirements} & \textbf{Procedure} & \textbf{Expected result}\\\midrule\endhead
\bottomrule\endfoot
\TestCaseID{TC-001} & \RequirementRef{REQ-F-001} & Open a readable, supported local sample; compare the file bytes before and after opening. & The source loads and the selected file remains byte-for-byte unchanged.\newline\VerificationRef{VER-003}\\
\TestCaseID{TC-002} & \RequirementRef{REQ-F-002} & Open the reference sample and compile it using the configured local toolchain. & The application displays the rendered diagram corresponding to that source without reporting a compiler failure.\newline\VerificationRef{VER-004}\\
\TestCaseID{TC-003} & \RequirementRef{REQ-F-003} & In a supported sample, select one documented editable object and move it to a specified position. & The intended object can be selected and visibly reaches the requested position.\newline\VerificationRef{VER-005}\\
\TestCaseID{TC-004} & \RequirementRef{REQ-D-001}, \RequirementRef{REQ-F-004} & Move one supported object, inspect the changed source coordinates and preview, and diff the source against the original. & Coordinates and preview match the requested move; source outside the edited construct is unchanged.\newline\VerificationRef{VER-006}, \VerificationRef{VER-027}\\
\TestCaseID{TC-005} & \RequirementRef{REQ-F-005} & Open a syntactically invalid sample and request a preview. & A compiler failure is reported, and the original source remains available without changes.\newline\VerificationRef{VER-007}\\
\TestCaseID{TC-006} & \RequirementRef{REQ-F-005} & Attempt graphical editing of a construct outside the documented editable subset. & The edit is refused with an explanation; the opened source remains intact.\newline\VerificationRef{VER-007}\\
\TestCaseID{TC-007} & \RequirementRef{REQ-D-001}, \RequirementRef{REQ-F-006} & Move a supported object, approve and save the revision, reopen the saved file, and diff it against the original. & The save succeeds, the revision reopens, and only the approved supported construct differs.\newline\VerificationRef{VER-008}, \VerificationRef{VER-027}\\
\TestCaseID{TC-008} & \RequirementRef{REQ-F-006} & Attempt to save the approved revision to a location that denies writing. & The application reports failure and keeps the unsaved revision available for retry.\newline\VerificationRef{VER-008}\\
\TestCaseID{TC-009} & \RequirementRef{REQ-S-001} & Configure the local compiler, request a preview, and inspect the exact spawned command and arguments. & The invocation does not enable TeX shell escape unless the user has explicitly configured that option.\newline\VerificationRef{VER-049}\\
\TestCaseID{TC-010} & \RequirementRef{REQ-C-001} & With a configured local toolchain and network access disabled, open a supported local sample, preview it, move one supported object, and save the revision. & The entire core workflow succeeds without contacting or depending on a network service.\newline\VerificationRef{VER-072}\\
\TestCaseID{TC-011} & \RequirementRef{REQ-B-001}, \RequirementRef{REQ-B-002} & Once a professor sample within the documented editable subset is available, choose one element and target position; open and preview the diagram, move the element graphically, save the source, then open it in a standard text editor and compile it with a local LaTeX toolchain outside TikZRefinery. & The element reaches the target position; the saved source remains editable and compiles outside the application with the approved change visible.\newline\VerificationRef{VER-001}, \VerificationRef{VER-002}\\
\TestCaseID{TC-012} & \RequirementRef{REQ-F-007} & Generate a valid preview, then introduce a LaTeX error in the working source and request another preview. & The last successful preview stays visible, is marked as older than the current source, and the compile failure is reported.\newline\VerificationRef{VER-009}\\
\TestCaseID{TC-013} & \RequirementRef{REQ-F-008} & Preview a supported sample that uses a local style or definition file; repeat with that dependency unavailable. & The first preview includes the dependency; the second attempt identifies the missing dependency rather than displaying an apparently current result.\newline\VerificationRef{VER-010}\\
\TestCaseID{TC-014} & \RequirementRef{REQ-A-001} & Run a deliberately slow preview compilation while attempting to use an unrelated editor control. & The editor accepts the interaction before compilation completes; process or thread inspection confirms compilation is outside the UI thread.\newline\VerificationRef{VER-050}\\
\TestCaseID{TC-015} & \RequirementRef{REQ-A-002} & Record the opened document directory, compile a preview, and compare the directory before and after the run. & Preview intermediates are confined to a separate temporary workspace; the opened document directory gains no compilation intermediates.\newline\VerificationRef{VER-051}\\
\TestCaseID{TC-016} & \RequirementRef{REQ-A-003} & Inspect the component interfaces and replace the PDF display component with a test double during a compilation test. & Compilation results and diagnostics reach the display boundary without compilation control depending on a concrete PDF widget.\newline\VerificationRef{VER-052}\\
\TestCaseID{TC-017} & \RequirementRef{REQ-P-001} & Drag a supported object through several pointer positions while recording visible updates and preview compiler launches. & Geometry updates without compilation; pointer movement, pause and release launch none. A successful Save requests compilation of the saved revision; failed Save requests none.\newline\VerificationRef{VER-071}\\
\TestCaseID{TC-018} & \RequirementRef{REQ-A-004} & Review the component design and code for the open, move, and preview workflows; identify the class responsible for each named concern. & Each concern has a documented owning component, and no single class performs graphical interaction, source editing, compilation, and PDF display together.\newline\VerificationRef{VER-053}\\
\TestCaseID{TC-019} & \RequirementRef{REQ-A-005} & Inspect the application source tree and compare primary class definitions with source modules. & Each primary class has its own module; any shared helper type is subordinate to that module's stated responsibility.\newline\VerificationRef{VER-060}\\
\TestCaseID{TC-020} & \RequirementRef{REQ-A-006} & Run a source interpretation and supported-move test using a representative TikZ sample without starting the GUI or LaTeX. & The test produces the expected revised source and can run without a window or compiler process.\newline\VerificationRef{VER-054}\\
\TestCaseID{TC-021} & \RequirementRef{REQ-D-001}, \RequirementRef{REQ-F-009} & Drag the body of a supported straight line by a known offset; inspect both endpoint coordinates and diff the source. & Both endpoints move by the same offset; unrelated source is unchanged.\newline\VerificationRef{VER-011}, \VerificationRef{VER-027}\\
\TestCaseID{TC-022} & \RequirementRef{REQ-D-001}, \RequirementRef{REQ-F-009} & Drag the body of a supported straight arrow by a known offset; inspect its endpoint coordinates, arrow direction, and source diff. & Both endpoints move by the same offset, the arrowhead retains its intended direction, and unrelated source is unchanged.\newline\VerificationRef{VER-011}, \VerificationRef{VER-027}\\
\TestCaseID{TC-023} & \RequirementRef{REQ-D-001}, \RequirementRef{REQ-F-010} & Drag one endpoint handle of a supported straight line; inspect the endpoint coordinates and source diff. & Only the selected endpoint changes; the opposite endpoint and unrelated source remain unchanged.\newline\VerificationRef{VER-012}, \VerificationRef{VER-027}\\
\TestCaseID{TC-024} & \RequirementRef{REQ-D-001}, \RequirementRef{REQ-F-010} & Drag one endpoint handle of a supported straight arrow; inspect the endpoints, arrowhead, and source diff. & Only the selected endpoint changes; the arrowhead follows the revised segment and unrelated source remains unchanged.\newline\VerificationRef{VER-012}, \VerificationRef{VER-027}\\
\TestCaseID{TC-025} & \RequirementRef{REQ-D-001}, \RequirementRef{REQ-F-011} & Select and drag a supported rectangular box by a known offset; inspect its source and compiled result. & The whole box moves without changing its size; only the necessary source coordinates change and the compiled box appears at the intended position.\newline\VerificationRef{VER-013}, \VerificationRef{VER-027}\\
\TestCaseID{TC-026} & \RequirementRef{REQ-I-001} & View supported lines, arrows, and boxes at the documented minimum, normal, and maximum zoom levels; inspect edges and record screenshots. & Shapes redraw with clear edges at each zoom level rather than showing enlarged bitmap blocks or blurred low-resolution strokes.\newline\VerificationRef{VER-039}\\
\TestCaseID{TC-027} & \RequirementRef{REQ-F-004} & For one line, arrow, and box edit, compare canvas and independently compiled output using the same fixed diagram extent, origin, and scale; inspect position, size, endpoints, and arrow direction. & Each supported edited construct agrees within the documented comparison tolerance; independent cropping does not conceal a position error.\newline\VerificationRef{VER-006}\\
\TestCaseID{TC-028} & \RequirementRef{REQ-A-007} & Check known TikZ points against independently calculated scene positions, then check inverse conversion and round trips. Repeat pointer moves at supported zoom levels and after panning. & Units, origin, and axis directions agree with the reference mapping; equivalent gestures yield the same source displacement. Zoom or pan alone leaves source coordinates unchanged.\newline\VerificationRef{VER-055}\\
\TestCaseID{TC-029} & \RequirementRef{REQ-A-007}, \RequirementRef{REQ-F-004} & Open the separated-box reference; drag the right box left until its edge touches the stationary box. Inspect coordinates, save, and compile outside the editor. Compare both views at a common origin and scale. & The moved box reaches the expected coordinates; the stationary box and both sizes remain unchanged. The shared edge agrees in the editor and compiled PDF within the documented tolerance.\newline\VerificationRef{VER-006}, \VerificationRef{VER-055}\\
\TestCaseID{TC-030} & \RequirementRef{REQ-DEV-001} & Inventory project-owned class declarations, matching headers/implementations, includes, CMake lists, and diagrams; check the tkr/main-name/optional-specification convention, then configure and build with the selected Qt kit. & Every project class and file uses the complete agreed name; references resolve and the native build succeeds. Vendor types and shared records retain their documented naming.\newline\VerificationRef{VER-067}\\
\TestCaseID{TC-031} & \RequirementRef{REQ-DEV-002} & Inspect methods, parameters, local variables, and private member declarations against the coding guide; check a sample of uses against their declared types and coordinate spaces. & Methods use camelCase; variables use descriptive type/category prefixes; private members add m\_; names agree with their current meaning and type.\newline\VerificationRef{VER-068}\\
\TestCaseID{TC-032} & \RequirementRef{REQ-DEV-003} & Trace every application inheritance path from its first project-defined class, excluding preceding Qt ancestry; compare source declarations with diagrams. & No path exceeds main/base, child, grandchild. The concrete classes remain final; the rectangle provider realizes a two-level interface chain, with no artificial extra level.\newline\VerificationRef{VER-069}\\
\TestCaseID{TC-033} & \RequirementRef{REQ-DEV-004} & Compare owned and borrowed class relationships in declarations and constructors with the ownership table and class details; inspect destruction order and QObject parents. & Each relationship has an identified owner or borrower and a consistent lifetime mechanism; borrowed objects outlive users, and parent/unique\_ptr ownership is not assigned twice to one object.\newline\VerificationRef{VER-070}\\
\TestCaseID{TC-034} & \RequirementRef{REQ-A-008}, \RequirementRef{REQ-A-011}, \RequirementRef{REQ-D-002}, \RequirementRef{REQ-D-003}, \RequirementRef{REQ-D-008}, \RequirementRef{REQ-I-003} & Submit multi-range proposals with wrong document identity, stale revisions, mismatched bytes, invalid or conflicting ranges, ambiguous same-position insertions and unsupported operation rules; repeat with a valid batch. & Invalid proposals preserve source/history and emit no successful change notification; one valid changed action creates one entry and one notification.\newline\VerificationRef{VER-028}, \VerificationRef{VER-029}, \VerificationRef{VER-034}, \VerificationRef{VER-041}, \VerificationRef{VER-056}, \VerificationRef{VER-059}\\
\TestCaseID{TC-035} & \RequirementRef{REQ-D-004}, \RequirementRef{REQ-D-007}, \RequirementRef{REQ-F-012} & Commit a multi-range action with UTF-8 comments, CRLF and precise numeric spellings; undo and redo repeatedly. Inspect history entries, revision values and stale proposal rejection. & Each Undo/Redo restores one complete action with exact bytes, moves only the existing history position and advances the revision; stale proposals remain invalid.\newline\VerificationRef{VER-014}, \VerificationRef{VER-030}, \VerificationRef{VER-033}\\
\TestCaseID{TC-036} & \RequirementRef{REQ-D-003}, \RequirementRef{REQ-F-014}, \RequirementRef{REQ-I-003} & Preview, cancel, reject and perform empty, byte-equivalent and rounded-zero actions; invoke Undo during a later drag. & Noncommits preserve source/history and emit no successful change notification; Undo cancels preview before restoring the last completed edit.\newline\VerificationRef{VER-016}, \VerificationRef{VER-029}, \VerificationRef{VER-041}\\
\TestCaseID{TC-037} & \RequirementRef{REQ-D-007}, \RequirementRef{REQ-F-012}, \RequirementRef{REQ-F-015} & Undo an edit; select or cancel a gesture; redo. Undo again and accept a different changed edit. & Noncommits preserve redo; the new accepted edit clears the former redo branch.\newline\VerificationRef{VER-014}, \VerificationRef{VER-017}, \VerificationRef{VER-033}\\
\TestCaseID{TC-038} & \RequirementRef{REQ-D-005}, \RequirementRef{REQ-D-006}, \RequirementRef{REQ-F-013}, \RequirementRef{REQ-F-016}, \RequirementRef{REQ-F-017}, \RequirementRef{REQ-F-018}, \RequirementRef{REQ-F-019}, \RequirementRef{REQ-F-020} & Save, undo and redo while comparing file bytes and the saved baseline. Exercise Save/Discard/Cancel before Open/Reload, failed writes and Opens, successful replacement, and explicit Save followed by failed Open. Restart and inspect the TeX file. & Save retains undo/redo; only successful writes replace the baseline and exact byte inequality controls dirty state. Undo/Redo never writes disk. Failed/cancelled operations retain state, including a prior explicit Save. Cancel or failed requested Save prevents replacement. Successful Open/Reload clears history; no history is embedded or restored after restart.\newline\VerificationRef{VER-015}, \VerificationRef{VER-018}, \VerificationRef{VER-019}, \VerificationRef{VER-020}, \VerificationRef{VER-021}, \VerificationRef{VER-022}, \VerificationRef{VER-031}, \VerificationRef{VER-032}\\
\TestCaseID{TC-039} & \RequirementRef{REQ-A-010}, \RequirementRef{REQ-F-007} & With future compiler integration, accept an edit or undo/redo, successfully save,
then simulate failure of the compilation requested for those saved bytes. & Source and history retain the accepted state; diagnostics identify failure and any older successful preview is labelled accordingly.\newline\VerificationRef{VER-009}, \VerificationRef{VER-058}\\
\TestCaseID{TC-040} & \RequirementRef{REQ-A-008}, \RequirementRef{REQ-A-011}, \RequirementRef{REQ-D-008} & Insert at a zero-length range, delete using an empty replacement and replace several ranges relative to one original source; include unambiguous combined insertions and route through the common entry point. & Proposal identity, revision, description and byte edits are retained; each supported changed operation is atomic and reversible, with unrelated bytes unchanged.\newline\VerificationRef{VER-034}, \VerificationRef{VER-056}, \VerificationRef{VER-059}\\
\TestCaseID{TC-041} & \RequirementRef{REQ-A-009} & Exercise separate element and syntax providers, then a provider implementing both; route their supported operations through the common contract. & Independent roles retain their declared contract and the same source acceptance guarantees; metadata/lifecycle checks are separately mapped.\newline\VerificationRef{VER-057}\\
\TestCaseID{TC-042} & \RequirementRef{REQ-A-008}, \RequirementRef{REQ-A-011}, \RequirementRef{REQ-D-002}, \RequirementRef{REQ-D-007}, \RequirementRef{REQ-I-003} & Run planning, validation and history restoration without a GUI/compiler; inject failure before source/history publication. & Successful results match expected bytes; failure preserves source, history position and entries, and emits no successful document-change notification.\newline\VerificationRef{VER-028}, \VerificationRef{VER-033}, \VerificationRef{VER-041}, \VerificationRef{VER-056}, \VerificationRef{VER-059}\\
\TestCaseID{TC-043} & \RequirementRef{REQ-I-002}, \RequirementRef{REQ-I-003}, \RequirementRef{REQ-I-004}, \RequirementRef{REQ-I-005} & Inspect Undo/Redo with empty history, after an edit, after Undo/Redo and after opening a new document. Compare the refreshed canvas with accepted source, count notifications, and inject a failed restoration. & Unavailable actions are disabled; each accepted edit/restoration refreshes the canvas and emits exactly one successful change notification. Failed restoration is reported without source/history changes or a successful change notification.\newline\VerificationRef{VER-040}, \VerificationRef{VER-041}, \VerificationRef{VER-042}, \VerificationRef{VER-043}\\
\TestCaseID{TC-044} & \RequirementRef{REQ-F-021} & Use a direct-position label and an attached label on a straight arrow; request known nonzero horizontal and vertical moves, then undo/redo. & The label reaches the target through supported relative-placement edits; host coordinates and unrequested text, anchor, rotation, alignment and style bytes are unchanged.\newline\VerificationRef{VER-023}\\
\TestCaseID{TC-045} & \RequirementRef{REQ-F-022} & Move a host line/arrow with an attached label by a known vector; reparse and compare both geometries. & The host translates once and the label follows its retained attachment rule; no stale reference is used.\newline\VerificationRef{VER-024}\\
\TestCaseID{TC-046} & \RequirementRef{REQ-F-023} & Drag an attached label near and far from its host; inspect the relationship and source. Inspect an unavailable detachment action. & Every drag retains attachment and host geometry. Detachment requires a distinct explicit request; unsupported detachment performs no rewrite. Implementation of detachment remains later work.\newline\VerificationRef{VER-025}\\
\TestCaseID{TC-047} & \RequirementRef{REQ-F-024} & Use a shared named coordinate referenced by a host, selected label and another object. Try a supported local offset and a form with no supported independent adjustment. & The supported move changes only local placement; shared definitions and unrelated elements are byte-identical. The unsupported move is unavailable with a reason and no state change.\newline\VerificationRef{VER-026}\\
\TestCaseID{TC-048} & \RequirementRef{REQ-D-009}, \RequirementRef{REQ-D-012} & Inspect equivalent label descriptions from two source forms; compare records and presentation outputs. & Typed, versioned interpreted records are distinct from original byte ranges and Qt scene items; presentation and selectable descriptions remain available as separate data.\newline\VerificationRef{VER-035}, \VerificationRef{VER-038}\\
\TestCaseID{TC-049} & \RequirementRef{REQ-D-010} & Prepare label bindings/host references at revision N, accept another edit, and submit an old request. & Stale document/revision references are rejected without source/history mutation; reparsing produces references for the accepted revision.\newline\VerificationRef{VER-036}\\
\TestCaseID{TC-050} & \RequirementRef{REQ-D-011} & Inspect proposals/history in memory; edit, save, undo, reopen another file and restart. Diff the saved source and inspect history. Exercise a longer session and inspect the retention policy. & Exact snapshots support restoration in the session without automatic eviction in the initial prototype. Save retains history without serializing it; successful replacement/restart starts empty history. Failure paths retain current state.\newline\VerificationRef{VER-037}\\
\TestCaseID{TC-051} & \RequirementRef{REQ-I-006} & Complete a changed edit, a byte-equivalent edit, a rejected edit and an Escape cancellation; capture returned outcomes, messages and history counts. & Changed returns Applied; byte-equivalent returns Unchanged; failure returns Rejected with a reason. Cancellation/no-op shows no error; only the changed action records history.\newline\VerificationRef{VER-044}\\
\TestCaseID{TC-052} & \RequirementRef{REQ-I-007} & Send many preview updates, then one rejected release; dismiss its message and repeat before a successful operation. & No preview update produces a rejection banner. One rejected attempt produces one red-accented bottom strip with bright red icon and reason; it stays until dismissal or the next completed operation. Canvas remains usable.\newline\VerificationRef{VER-045}\\
\TestCaseID{TC-053} & \RequirementRef{REQ-D-012}, \RequirementRef{REQ-I-008} & Overlap a label, host and third element. Click the label, then use direct right-click selection and hover each entry before choosing the obscured host. & Label wins ordinary hit selection. Every intersecting element appears once with a readable description; hovering identifies it and the chosen obscured host can be moved without moving blockers first.\newline\VerificationRef{VER-038}, \VerificationRef{VER-046}\\
\TestCaseID{TC-054} & \RequirementRef{REQ-I-009} & Drag a region from empty canvas, then start over an object with Select area active. Right-click inside, choose a partly intersecting element, and press Escape in a later region. & Both gestures show a retained rectangle; candidates include partial intersections and obscured objects. Region creation makes no source/history change or automatic group selection; chosen entry selects one element and Escape clears the region.\newline\VerificationRef{VER-047}\\
\TestCaseID{TC-055} & \RequirementRef{REQ-I-010} & Use independently calculated hit geometries intersecting a 6-logical-pixel circle and geometries separated beyond it. Repeat at 0.5x, 1x and 2x test zoom and two available display scales. & Candidate inclusion follows geometry intersection with the 6-pixel-radius screen circle. Zoom does not change its logical screen size. Record user feedback before changing the provisional value; these zooms are test inputs, not a product range claim.\newline\VerificationRef{VER-048}\\
\TestCaseID{TC-056} & \RequirementRef{REQ-A-012}, \RequirementRef{REQ-A-013} & Inspect collaborator ownership and run headless preparation, atomic apply and history retrieval tests; inject failure before publication. & Controller owns edit service/file store and only coordinates; document owns history. Preparation cannot mutate live state. A successful edit/restoration updates source and history together; injected failure changes neither.\newline\VerificationRef{VER-061}, \VerificationRef{VER-062}\\
\TestCaseID{TC-057} & \RequirementRef{REQ-A-014} & Use a file-store test double for successful/failed read and guarded write. Capture the written snapshot; exercise Save before failed Open. & File store touches no history. Only successful I/O permits corresponding load/baseline updates; baseline equals written bytes. Failed operations preserve state, including any preceding explicit successful Save.\newline\VerificationRef{VER-063}\\
\TestCaseID{TC-058} & \RequirementRef{REQ-A-015}, \RequirementRef{REQ-A-017} & Use headless fake element/syntax providers with equivalent label descriptions and differing edit capabilities; inspect scene ownership. & Only the intersection of shape, syntax/binding and context permits the operation, rechecked at execution. Providers do not mutate model/UI/files; the scene owns created graphics items.\newline\VerificationRef{VER-064}, \VerificationRef{VER-066}\\
\TestCaseID{TC-059} & \RequirementRef{REQ-A-016} & Establish a binding with provider A, register another matching provider B, and request a supported label edit. & Existing bindings route to the same responsible instances throughout the gesture; stale requests fail without mutation. Missing-provider behavior follows TC-074.\newline\VerificationRef{VER-065}\\
\TestCaseID{TC-060} & \RequirementRef{REQ-A-023}, \RequirementRef{REQ-F-025} & Resize each corner of the two-box fixture, including reversed source corners, horizontal/vertical/both-axis crossing, thin fillers, $0.01$ cm minima and extent limits. Repeat under view transforms, cancellation and stale requests; save and reopen. & The opposite corner, stationary box and unrelated bytes are preserved. Preview and release agree, including minimum and boundary clamping. One guarded batch is applied per changed release; no-op, cancelled or rejected requests preserve the revision.\newline\VerificationRef{VER-073}, \VerificationRef{VER-099}\\
\TestCaseID{TC-061} & \RequirementRef{REQ-A-018} & Load the separate rectangle plugin through the common shape API and repeat the box display, move, resize and save/reopen checks on the same fixture. Inspect the scene/controller call sites. & The actual loaded provider supplies rectangle geometry/presentation and resize behavior through the common API. Baseline behavior is retained; missing/incompatible modules fail explicitly without a hidden rectangle implementation.\newline\VerificationRef{VER-074}\\
\TestCaseID{TC-062} & \RequirementRef{REQ-I-011} & Open the two-box fixture in light and dark palettes. & Pane labels and separation are visible, and the black outlines remain legible.\newline\VerificationRef{VER-075}\\
\TestCaseID{TC-063} & \RequirementRef{REQ-I-012} & Open the fixed-extent fixture and resize the window and its canvas pane. & The entire canvas remains visible at both sizes, with unchanged proportions, source bytes and edit limits.\newline\VerificationRef{VER-076}\\
\TestCaseID{TC-064} & \RequirementRef{REQ-I-013} & Compare the visible paper with the declared extent in the two-box fixture. Drag beyond its edge and release. & The paper matches the declared extent, the surrounding view is distinct, the preview stays inside the paper, and release accepts the same furthest valid geometry without a rejection message.\newline\VerificationRef{VER-077}\\
\TestCaseID{TC-065} & \RequirementRef{REQ-I-014} & Drag the same box repeatedly at a fractional fit scale. Inspect while dragging and immediately after release, before moving focus. & Only the current outline and any selection marks remain visible; the drag path contains no residual marks.\newline\VerificationRef{VER-078}\\
\TestCaseID{TC-066} & \RequirementRef{REQ-DEV-005} & Inspect project-owned application logic for numeric literals. Start with scene dimensions, hit tolerances, item-data keys and arrow geometry. & Each numeric value comes from a meaningfully named definition with the relevant units or role. No bare numeric literals remain in executable logic.\newline\VerificationRef{VER-079}\\
\TestCaseID{TC-067} & \RequirementRef{REQ-DEV-006}, \RequirementRef{REQ-DEV-007}, \RequirementRef{REQ-DEV-008} & Build from a known Git checkpoint with recorded source state. Compare report metadata, generated build identity, window title, About dialog and package manifest. Inspect the no-Git fallback. & Feature/revision changes and \texttt{-alpha} labels follow policy. The built baseline is truthful even when the document advances; folder/title omit hashes, About includes short/full identity and source state, and historical artifacts are unchanged.\newline\VerificationRef{VER-080}, \VerificationRef{VER-103}, \VerificationRef{VER-104}\\
\TestCaseID{TC-068} & \RequirementRef{REQ-A-019}, \RequirementRef{REQ-D-016} & Register well-formed and incomplete metadata, incompatible API declarations and two candidate instances of one plugin. Inspect roles, type/schema declarations and the registry identities. & Only validated registrations activate; stable IDs remain separate from runtime instance/version handles.\newline\VerificationRef{VER-093}, \VerificationRef{VER-095}\\
\TestCaseID{TC-069} & \RequirementRef{REQ-F-026} & Discover two candidates with the same stable ID in reversed directory orders. Present names, versions and paths; choose one, cancel another choice and restart. & Discovery order never resolves the conflict; the explicit compatible choice is respected and unresolved candidates remain inactive.\newline\VerificationRef{VER-081}\\
\TestCaseID{TC-070} & \RequirementRef{REQ-D-016}, \RequirementRef{REQ-F-027} & Load basic and text-capable rectangle providers together; bind separate elements, alter defaults and register another provider during a gesture. & Both variants coexist; each element retains its chosen provider and capabilities; no gesture silently changes binding.\newline\VerificationRef{VER-082}, \VerificationRef{VER-093}\\
\TestCaseID{TC-071} & \RequirementRef{REQ-A-019}, \RequirementRef{REQ-A-020}, \RequirementRef{REQ-D-017} & Try API mismatch, matching API with incompatible geometry schema, loss of used text capability, supported old data and an explicitly validated lossless conversion. & Only declared compatible combinations are usable; incompatible transfers preserve the old version and all relevant data. No implicit conversion is attempted.\newline\VerificationRef{VER-094}, \VerificationRef{VER-095}, \VerificationRef{VER-096}\\
\TestCaseID{TC-072} & \RequirementRef{REQ-A-023}, \RequirementRef{REQ-D-013}, \RequirementRef{REQ-D-014} & Send common and provider-qualified operations with versioned parameters, centimetre displacement, corner identity and fixed bounds. Compare repeated previews with direct calculation from initial geometry; include stale IDs and unknown schemas. & Routing and parameter interpretation are explicit; preview/release agree without accumulated drift. Invalid or stale requests cannot mutate source.\newline\VerificationRef{VER-090}, \VerificationRef{VER-091}, \VerificationRef{VER-099}\\
\TestCaseID{TC-073} & \RequirementRef{REQ-D-015} & Prepare changed, byte/geometry-equivalent, unsupported and infeasible operations. Reject one otherwise prepared proposal at the document boundary. & Preparation returns Prepared change, Unchanged or Cannot prepare with reason; only later host acceptance can return Applied. All noncommits preserve source/history.\newline\VerificationRef{VER-092}\\
\TestCaseID{TC-074} & \RequirementRef{REQ-F-032} & Open source with a required provider missing or incompatible, and register an alternative provider without choosing it. Attempt an unavailable edit. & Source remains intact, the missing support is explained and no provider is silently substituted. Current whole-interpretation limits are reported rather than a partial-rendering guarantee.\newline\VerificationRef{VER-087}\\
\TestCaseID{TC-075} & \RequirementRef{REQ-F-028} & At startup provide a compatible staged update, an incompatible one and an unavailable update service before document restoration. & Valid updates are considered before opening/restoring diagrams; incompatible updates retain working support and network failure does not block local editing.\newline\VerificationRef{VER-083}\\
\TestCaseID{TC-076} & \RequirementRef{REQ-A-021}, \RequirementRef{REQ-F-029} & Stage a replacement for an unused provider while the application runs. Acquire a document/gesture dependency before activation, then release it. & Installation does not disrupt editing; activation rechecks use and waits while a dependency exists. No active version is overwritten in place.\newline\VerificationRef{VER-084}, \VerificationRef{VER-097}\\
\TestCaseID{TC-077} & \RequirementRef{REQ-A-021}, \RequirementRef{REQ-F-030}, \RequirementRef{REQ-I-016} & Hold provider dependencies through an open document, active gesture and pending operation separately. Discover an update; choose Later, then exercise restart with Save/Discard/Cancel and a failed Save. & The old provider stays active, notification is nonmodal, deferral survives the session and restart respects unsaved-work decisions. Provider replacement never occurs inside an edit.\newline\VerificationRef{VER-085}, \VerificationRef{VER-097}, \VerificationRef{VER-101}\\
\TestCaseID{TC-078} & \RequirementRef{REQ-A-022}, \RequirementRef{REQ-F-031} & Use an explicit update-origin test double. Fail download/staging, compatibility validation and activation in turn, then perform a valid replacement. & The working version, authoritative source and provider choices survive each failure; activation follows separate validation. Detailed authentication is a later prerequisite, not a claimed implemented mechanism.\newline\VerificationRef{VER-086}, \VerificationRef{VER-098}\\
\TestCaseID{TC-079} & \RequirementRef{REQ-F-033}, \RequirementRef{REQ-D-018}, \RequirementRef{REQ-I-015}, \RequirementRef{REQ-I-018}, \RequirementRef{REQ-I-019}, \RequirementRef{REQ-I-020} & Enumerate alternate rectangle providers and an edit-only shape. Inspect catalogue records versus document elements, provider identity, previews and capabilities; switch Shapes/Files pages, collapse/reopen and resize the sidebar in both palettes. & Entries are distinguishable and contain no document-element identity. Icons, readable labels and active state identify tabs; the strip remains available and session tab/width state survives collapse. Browsing changes no source; creation needs shape and syntax support.\newline\VerificationRef{VER-088}, \VerificationRef{VER-100}, \VerificationRef{VER-105}, \VerificationRef{VER-107}, \VerificationRef{VER-108}, \VerificationRef{VER-109}\\
\TestCaseID{TC-080} & \RequirementRef{REQ-F-034}, \RequirementRef{REQ-F-035}, \RequirementRef{REQ-D-001}, \RequirementRef{REQ-I-006}, \RequirementRef{REQ-I-007}, \RequirementRef{REQ-I-013}, \RequirementRef{REQ-I-021} & In a later supported insertion context, click-place and drag-size rectangles, including thin/crossed geometry and boundary positions; try a default that cannot fit, cancel a preview, reject/retry, then accept/save/reopen. Review new-document and insertion prerequisites before execution. & Provider defaults and documented minima apply; click fitting preserves default size and stroke stays inside declared bounds. Escape/rejection preserve source; one completed rejection gives one reason and keeps the tool. Acceptance assigns identity, selects the new element and returns to selection; unrelated bytes remain exact.\newline\VerificationRef{VER-027}, \VerificationRef{VER-044}, \VerificationRef{VER-045}, \VerificationRef{VER-077}, \VerificationRef{VER-089}, \VerificationRef{VER-106}, \VerificationRef{VER-110}\\
\TestCaseID{TC-081} & \RequirementRef{REQ-I-017} & With future compiler/PDF integration, compile source missing a graphical provider; then remove a LaTeX dependency, fail compilation and edit source after a successful result. & Successful PDF is read-only and tied to its source revision. Missing dependencies and stale/failed results are explicit; compilation never restores graphical edit support or changes source.\newline\VerificationRef{VER-102}\\
\TestCaseID{TC-082} & \RequirementRef{REQ-A-024} & Inspect the planned ownership/borrow graph and, after refactoring, exercise window setup, palette/canvas access and closure with pending dependent work. & The window owns shared services/catalogue; views borrow access and perform presentation roles. Consumers and pending work are released before their services. Neither the controller nor views take over module management; ownership agrees with UML and source.\newline\VerificationRef{VER-111}\\
\end{tabularx}
\endgroup
\section{Milestone 2 Test Execution Plan}\label{Section:M2TestPlan}
All TC entries are planned product checks. The separately dated prototype
checks below are bounded evidence, not complete product verification or user
validation. Vincent executes/reviews the checks; Professor Muresan or an
available TikZ author evaluates user value through \ChapterRef{Validation}.
\subsection{Levels, Data and Entry Conditions}
Freeze the source/package revision, OS, Qt/compiler/PGF versions, dependencies,
input bytes, expected outputs and test settings before each run. Use isolated
copies and temporary workspaces, preserving editable demos. Current reference
tooling is Windows x64, Qt 6.12.0, GCC 13.1.0, CMake 3.30.5 and shared TinyTeX;
record actual versions when testing rather than assuming this reference.
Labels, generic transactions, wider provider management and compiler integration require
implementation before their product checks can run. Rectangle API v1 and the
sidebar shell retain separately dated bounded evidence. Session history now has
bounded evidence in Section~\ref{Section:SessionHistoryCheck}. Reviewed generic transaction
views are not executed tests: see Figures~\ref{Figure:TransactionDetails}
and~\ref{Figure:TransactionSequence}. Declare unsupported forms explicitly.
\begingroup
\small
\begin{tabularx}{\linewidth}{@{}L{2.1cm}L{3.4cm}YY@{}}
\caption{Test Levels and Representative Data\label{Table:M2TestLevels}}\\
\toprule
\textbf{Level} & \textbf{Cases / data} & \textbf{Method} & \textbf{Pass criterion}\\
\midrule\endfirsthead
\toprule
\textbf{Level} & \textbf{Cases / data} & \textbf{Method} & \textbf{Pass criterion}\\
\midrule\endhead\bottomrule\endfoot
Unit & \TestCaseRef{TC-028}, \TestCaseRef{TC-034}, \TestCaseRef{TC-040}, \TestCaseRef{TC-049} & Known points; UTF-8 comments, CRLF, decimal spellings, stale identities, insert/delete/conflicting ranges; headless fixtures. & Every expected byte/coordinate and rejection invariant agrees; zero unintended mutations.\\
Integration & \TestCaseRef{TC-035}, \TestCaseRef{TC-038}, \TestCaseRef{TC-056}, \TestCaseRef{TC-057}, \TestCaseRef{TC-058} & Document/history failure injection, file-store doubles and fake providers; count notifications and compare saved bytes. & Atomic state transitions, exact restoration and collaborator boundaries satisfy each linked oracle.\\
System & \TestCaseRef{TC-007}, \TestCaseRef{TC-010}, \TestCaseRef{TC-027}, \TestCaseRef{TC-044}, \TestCaseRef{TC-053}, \TestCaseRef{TC-054} & Native/offscreen gestures, fixed-extent corpus, local dependency/error fixtures, labels and at least three overlapping objects. & Saved source, selection, feedback and compiled output satisfy the case; all required interactions complete.\\
User validation & \ValidationRef{VAL-001}--\ValidationRef{VAL-010} & Stakeholder-selected realistic diagrams plus controlled failure and overlap tasks; record assistance and feedback. & Participant meets the story-specific criterion and confirms the workflow addresses the need; failures become design actions.\\
\end{tabularx}
\endgroup
\subsection{Oracles, Results and Coverage}
Use exact byte equality outside approved edit ranges; exact stored bytes for
undo/redo and save; independently calculated positions for coordinate tests;
event counters for one accepted-action notification and zero noncommit
notifications. For the existing fixed-extent prototype comparison only, use
100 pixels/cm and a one-pixel edge allowance with zero unmatched dark edge
pixels. That allowance is not a user-acceptance or broader text-rendering
tolerance. Fix text/label comparison tolerances before those executions.
Each run records case and requirement IDs, date, executor, source revision,
environment, input/expected/actual outputs, pass/fail/blocked result, evidence
paths, defects and recheck. A case passes only when every expected condition
holds; a missing prerequisite is Blocked, not Pass. Requirement verification
requires all mapped checks and Vincent's review. No performance timing target
is invented: \TestCaseRef{TC-017} checks live feedback and compiler scheduling;
latency/zoom acceptance thresholds remain to be baselined.
The full forward/reverse maps are in \ChapterRef{Verification},
\ChapterRef{Validation} and \ChapterRef{Traceability}. The following historical
sections identify evidence already obtained; their dates and limits remain intact.
\section{Coordinate and Box Reference Checks}
The first visual comparison will start with two separated rectangular boxes,
then move one until they touch. Vincent selected this sequence to investigate
whether canvas-to-source conversion reproduces the intended placement. He
reports that the previous group encountered a difference between adjacent
boxes in its editor and externally compiled output, and later fixed it. This
check targets the observable failure; the previous group's specific cause is
not established here. The cases remain proposed product tests, not evidence
that TikZRefinery has been implemented or verified.
\subsection{Independent Coordinate Expectations}
For the initial subset in Section~\ref{Section:ExplicitSubset}, document origin, axis
directions, and source precision before running \TestCaseRef{TC-028}. TikZ's
usual canvas coordinates measure rightward and upward; Qt Graphics View uses
scene and view mappings with the usual display axis increasing
downward~\cite{TikZManual,QtGraphicsView}. A proposed mapping for explicit
centimetre coordinates into a scene with downward-positive $y$ is
\[
x_{\mathrm{scene}}=o_x+s x_{\mathrm{TikZ}},\qquad
y_{\mathrm{scene}}=o_y-s y_{\mathrm{TikZ}},
\]
where $(o_x,o_y)$ is the scene position of the TikZ origin and $s>0$ is the
number of scene units per centimetre. This is a reference for the first
prototype, not a claim to support arbitrary TikZ transformations.
Check the origin, $(1\,\mathrm{cm},0)$, $(0,1\,\mathrm{cm})$, and a point with
negative coordinates against independently calculated expected positions.
Then test inverse conversion and round trips. A round trip alone can miss two
incorrect conversions that cancel each other. Map pointer positions from view
to scene before computing a source displacement; zoom and pan must affect
the view without rewriting source coordinates. Qt's mapping methods and a
small conversion boundary are candidates; whether that boundary is a helper
function or a class remains a design decision.
\subsection{Separated Boxes Moved into Contact}
For \TestCaseRef{TC-029}, use explicit centimetre coordinates, equal stroke
widths, and no rotation, scaling, or node padding. Define the initial left
box from $(0,0)$ to $(1,1)$ and the initial right box from $(2,0)$ to $(3,1)$.
Move only the right box by $(-1\,\mathrm{cm},0)$, giving final corners $(1,0)$
and $(2,1)$. Both boxes remain $1\,\mathrm{cm}$ square; the left box stays
fixed and the final edge centre lines coincide at $x=1\,\mathrm{cm}$.
This definition accounts for stroke thickness when judging visible contact.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[line width=0.6pt]
\draw (0cm,0cm) rectangle (1cm,1cm);
\draw (2cm,0cm) rectangle (3cm,1cm);
\node at (1.5cm,-0.45cm) {Initial: $1\,\mathrm{cm}$ gap};
\end{tikzpicture}
\hspace{1cm}
\begin{tikzpicture}[line width=0.6pt]
\draw (0cm,0cm) rectangle (1cm,1cm);
\draw (1cm,0cm) rectangle (2cm,1cm);
\node at (1cm,-0.45cm) {Expected: shared edge};
\end{tikzpicture}
\caption[LaTeX rectangle contact reference]{Compiled TikZ reference for the separated-box contact test.
The right box moves left by $1\,\mathrm{cm}$. These illustrations show expected
geometry, not an executed editor test.\label{Figure:BoxContactReference}}
\end{figure}
Record the editor placement, revised source, and independently compiled
output. Compare with a shared fixed diagram extent, for example
$(-0.5,-0.5)$ to $(3.5,1.5)$ centimetres, so automatic cropping cannot hide a
translation. An aligned overlay can expose a gap, overlap, size change, or
axis error. Set the geometric and rendered-image tolerances before execution;
exact pixel equality is not required because rendering and antialiasing can
differ. Repeat after zoom and pan to check that contact survives view changes.
\clearpage
\section{Explicit Reference Files}
The self-contained LaTeX examples under
\path{code/examples/explicit-coordinates/} provide initial inputs and expected
revisions. Each file uses explicit centimetre coordinates and one drawing
command per movable element. The shared bounding-box declaration fixes the
comparison extent. Expected files show source changes for specific gestures;
they are comparison references, not output from an implemented editor.
\begin{tabularx}{\linewidth}{@{}L{2.25cm}L{3.3cm}Y@{}}
\caption{Initial Explicit-Coordinate Reference Corpus\label{Table:ReferenceCorpus}}\\
\toprule\textbf{Test case} & \textbf{Initial file} & \textbf{Expected revision}\\
\midrule\endfirsthead
\toprule\textbf{Test case} & \textbf{Initial file} & \textbf{Expected revision}\\\midrule\endhead
\bottomrule\endfoot
\TestCaseRef{TC-021} & \path{line-initial.tex} & Translate both endpoints
by $(0.5,0.5)$ cm; compare with \path{line-translated.tex}.\\
\TestCaseRef{TC-023} & \path{line-initial.tex} & Move the second endpoint
from $(1,0.5)$ to $(1,1.5)$ cm; compare with \path{line-endpoint.tex}.\\
\TestCaseRef{TC-022} & \path{arrow-initial.tex} & Translate the first arrow
by $(0.5,0.5)$ cm; compare with \path{arrow-translated.tex}.\\
\TestCaseRef{TC-024} & \path{arrow-initial.tex} & Move the first arrow's second
endpoint from $(2,1)$ to $(2,1.5)$ cm; compare with
\path{arrow-endpoint.tex}.\\
\TestCaseRef{TC-025}, \TestCaseRef{TC-029} & \path{boxes-initial.tex} & Move
only the right box by $(-1,0)$ cm; compare with \path{boxes-touching.tex}.\\
\end{tabularx}
The line sample includes negative coordinates; the arrow sample includes
\texttt{->}, \texttt{<-}, and \texttt{<->} variants. The unchanged arrows
also provide checks against unintended edits. Use these samples for
\TestCaseRef{TC-026} and \TestCaseRef{TC-027} after documenting zoom and
comparison tolerances. The corpus README records coordinates, expected source
differences, and independently calculated scene positions for
\TestCaseRef{TC-028}. Compile the reference files to establish their LaTeX
baseline; application verification requires actual editor executions and
retained evidence.
\clearpage
\section{Initial Native Build and GUI Check}\label{Section:NativeScaffoldCheck}
On October 20, 2026, the initial scaffold configured and built successfully
on Vincent's Windows computer using Qt 6.12.0 (MinGW 64-bit), GCC/MinGW 13.1.0,
CMake 3.30.5, and Ninja 1.12.1. The build used the Debug configuration and
\path{code/build/}. CTest reported one registered test,
\texttt{core\_foundations}, passed (1/1). The retained execution summary is
\path{code/tests/evidence/first-run-2026-10-20.md}; reproduction commands are
in \path{code/README.md}.
\begin{tabularx}{\linewidth}{@{}L{3.2cm}Y@{}}
\caption{First Scaffold Check: Observations and Limits\label{Table:FirstScaffoldCheck}}\\
\toprule\textbf{Check} & \textbf{Observed result and limit}\\
\midrule\endfirsthead
\toprule\textbf{Check} & \textbf{Observed result and limit}\\
\midrule\endhead\bottomrule\endfoot
Native build & All application and test targets compiled and linked.
This establishes a working local toolchain, not product acceptance.\\
Foundation test & Known coordinate expectations, inverse conversion, invalid
mapping configuration, guarded byte edits, stale revisions, overlaps, and
atomic rejection passed in the test executable. These cover part of
\TestCaseRef{TC-028} and source-edit foundations; zoom/pan and GUI gestures
were not tested.\\
First GUI observation & The launched process reported a responsive
\texttt{TikZRefinery} window. Vincent opened
\path{boxes-initial.tex} and supplied a screenshot showing the source pane,
empty canvas, and graphical-editing-unavailable status. He confirmed that
the first display looked good. This was a source-loading observation, not a
byte-comparison or save test.\\
Outstanding checks & Parsing, scene geometry, dragging, filesystem saves,
preview compilation, responsiveness measurements, and canvas/PDF agreement
remain untested. Proposed product/developer cases retain their existing
statuses; a passing build does not complete all of \TestCaseRef{TC-030}.\\
\end{tabularx}
At that checkpoint, rectangle parsing and display were the next proposed
increment. The bounded result is recorded below; whole-box dragging and the
separated-box contact workflow remain pending.
\clearpage
\section{Rectangle Parsing and Canvas Display}\label{Section:RectangleDisplayCheck}
On October 21, 2026, Vincent authorized the rectangle display increment.
The existing Qt/MinGW Debug build succeeded; CTest passed 2/2 entries.
\par\noindent
\texttt{core\_foundations} and \texttt{rectangle\_display} both passed.
\par\noindent
Execution details and reproduction commands are retained in this file:
\par\noindent
\path{code/tests/evidence/rectangle-display-2026-10-21.md}.
The rectangle check covers both box corpus files, numeric byte ranges,
revision-scoped IDs, unchanged source bytes, signed/reversed corners, comments,
UTF-8/BOM/CRLF, default/explicit strokes, alternate mapping, and refusal of
unsupported contexts without partial or stale geometry. The bounding path
sets a separate fixed extent and creates no graphics item. The initial scene
rectangles are $(200,200,100,100)$ and $(400,200,100,100)$ in
$(x,y,w,h)$ form; the touching-reference right rectangle is
$(300,200,100,100)$. These implement the one-centimetre dimensions and gap
at 100 scene units per centimetre with origin $(200,300)$ and inverted $y$.
An automated offscreen window check triggers the actual Open action and file
dialog, verifies the source pane, two canvas items, clean state, disabled Save,
and display-only status. It does not test native mouse/keyboard gestures.
Both untouched corpus documents compiled with shared TinyTeX. A separate
comparison wrapper places each unchanged picture on a fixed $7\times5$ cm
page at the origin. Poppler at 254 dpi and Qt scene rendering both yield
$700\times500$ pixels. No fitted translation or independent tight crop is
used. Before execution, the prototype threshold was set to grayscale below
128 for dark edge pixels and a one-pixel counterpart allowance in either
direction. Both comparisons reported zero unmatched edge pixels. The retained
comparison sheet, JSON metrics, and window image were visually inspected.
These checks support rectangle display and part of \TestCaseRef{TC-028}; they
do not complete a product case. Loading \path{boxes-touching.tex} is not an
executed drag. \TestCaseRef{TC-025}, \TestCaseRef{TC-027}, and
\TestCaseRef{TC-029} retain their interaction and acceptance work. Selection,
dragging, source update on release, save/reopen, zoom/pan, broader parsing,
compiler/PDF integration, timing, and human acceptance remain pending.
The raster threshold is a prototype check, not an approved product tolerance.
\clearpage
\section{Line and Arrow Display}\label{Section:SegmentDisplayCheck}
Later on October 21, 2026, Vincent prioritized line/arrow display ahead of
dragging and reported that the examples did not compile. Both untouched
initial files compiled with TinyTeX; the editor's rectangle-only parser had
refused their syntax. The parser now recognizes one absolute-centimetre
straight segment per drawing command, with optional forward, backward or
double-ended default arrowheads. Source bytes and numeric ranges remain intact.
The Debug build succeeded and all three registered CTest entries passed:
the existing foundation and rectangle checks, plus \texttt{segment\_display}.
The latter covers all six line/arrow fixtures, independently expected endpoints,
arrow flags, revisions and byte ranges, mixed and reversed/vertical geometry,
alternate mapping, clean state, refusal behavior and startup-file windows.
Curves, polylines, custom tips/styles and transformed contexts remain unsupported.
Zero-length segments are rejected; shafts too short for their arrow-tip insets
fail display with a diagnostic and an empty scene.
The scene uses the installed PGF default curved \texttt{to} tip geometry,
round tip strokes and butt-cap shaft shortening, with $72.27$ TeX points per
inch and $2.54$ cm per inch. Each arrow, including both tips, remains one
graphics item. Bounding paths still supply a separate comparison extent.
An optional command-line source path loads the file on startup; the native
application was launched with the initial arrow example already open.
Offscreen window checks and retained screenshots cover the same startup route.
They do not establish native gesture behavior or Vincent's acceptance.
All eight unchanged corpus files compiled independently. Fixed $7\times5$ cm
comparison pages and the mapped Qt extent produced $700\times500$ rasters
at 100 pixels per centimetre. The prior prototype threshold was retained:
grayscale below 128 for dark pixels and a one-pixel counterpart allowance in
both directions, without fitted shifts, rescaling or independent tight crops.
All eight comparisons reported zero unmatched pixels. The four comparison
sheets and initial line/arrow window images were visually inspected.
Execution details, reproduction commands, metrics and image paths are retained
in the following evidence record:
\par\noindent\path{code/tests/evidence/segment-display-2026-10-21.md}.
\par
These results extend display evidence for \TestCaseRef{TC-027} and
\TestCaseRef{TC-028}; they do not complete edited-output or interaction cases.
Selection, dragging, source updates on release, saving and reopening, zoom and
pan, integrated compilation and PDF preview, timing and acceptance remain pending.
\clearpage
\section{Whole-Element Editing and Saved Output}\label{Section:WholeElementDragCheck}
On October 21, 2026, Vincent authorized the next increment: selection and
whole-element dragging, source updates on release, cancellation, save/reopen
and the two-box contact comparison. The Debug build succeeded; CTest passed
all four entries, including the new \texttt{whole\_element\_drag} check.
The test delivers pointer press, move and release events to a Qt Graphics View
viewport. Preview moves the selected item while source, revision and dirty
state remain unchanged. Release changes the source once and emits one document
notification. The right-box move by $(-100,0)$ scene units produces exactly
the expected contact source: corners $(1,0)$ and $(2,1)$ cm, unchanged left box,
and unchanged sizes. Equivalent line/target-arrow moves produce the expected
translated corpus bytes. Separate backward/double-arrow gestures retain
direction and unrelated elements.
Escape, focus loss and saving during a preview cancel that proposal; a later
release does not commit it. Click-only selection, stale revisions, unsupported
endpoint gestures and out-of-extent movement leave source unchanged. A repeated
contact gesture at $2\times$ view scale after panning gives the same source
displacement. This does not establish future zoom/pan controls or range limits.
Displacement rounds to $0.000001$ cm on release. Exact decimal string addition
preserves original precision and dimensions; unchanged axes keep their original
spelling. A fixture with 18 fractional digits, UTF-8 comments and CRLF checks
the guarded byte result. Candidate source and display are validated before
applying the real batch. File saving preserves expected bytes, reopening is
clean, and an observed external change prevents overwriting the destination.
The actual window source pane, modified state and Save action are also checked.
The three actual saved/reopened outputs were independently compiled with
TinyTeX. At the existing fixed $7\times5$ cm extent and 100 pixels per
centimetre, all three comparisons had zero unmatched dark pixels using the
prior one-pixel allowance in both directions. No fitted shift or independent
crop was used. The images and edited-window screenshot were visually reviewed.
The native application was launched with a separate demo copy for Vincent;
the corpus was preserved.
Retained evidence, saved sources, metrics and reproduction commands:
\par\noindent\path{code/tests/evidence/whole-element-drag-2026-10-21.md}.
\par
These bounded checks support portions of \TestCaseRef{TC-021},
\TestCaseRef{TC-022}, \TestCaseRef{TC-025}, \TestCaseRef{TC-027},
\TestCaseRef{TC-028} and \TestCaseRef{TC-029}, together with guarded saving.
They use Qt viewport events, not operating-system pointer injection. Native
human acceptance, endpoint edits, undo/redo, broader syntax, integrated
compilation/PDF preview and timing remain pending. Product statuses are unchanged.
\clearpage
\section{Canvas Contrast Check}\label{Section:CanvasContrastCheck}
On November 5, the rebuilt window displayed the two-box fixture in controlled
light and dark Qt palettes. In both captures, black TikZ outlines remained
visible on the white canvas. Labels, spacing and the canvas border distinguished
it from the source pane. The window and source pane used their respective
palettes. The four existing CTests passed after the view change. Captures
and the reproduction boundary are recorded in
\path{code/tests/evidence/canvas-contrast-2026-11-05/}.
The palette captures used the offscreen platform, not a native-theme
acceptance test. No resize or plugin test was executed.
The follow-up fit check uses the same 7 by 5 cm fixture in small and large
windows. The actual view scales in both directions and shows all four editing
edges with a grey surround. The source and editing extent stay unchanged.
The whole-element test also verifies that an out-of-bounds preview stays within
the paper and release preserves the source. All four CTests passed. Offscreen
captures are retained under \path{code/tests/evidence/canvas-fit-2026-11-05/}.
Vincent then observed faint drag trails that disappeared on a larger repaint.
A clipped raster probe compared the old fills with the corrected view at
1, 1.25 and 1.5 device scales. The old method left 55, 69 and 83 nonwhite
pixels on blank paper; the corrected method left zero in all three cases.
The probe verified that smoothing remained enabled for item drawing.
The four CTests passed. This is bounded evidence for \TestCaseRef{TC-065};
native drag observation remains pending.
\section{Windows Prototype Package Check}\label{Section:PrototypePackageCheck}
On October 23, 2026, a separate Windows x64 Release package was built with the
existing CMake application version 0.1.0 and Qt 6.12.0. Qt's existing deployment
tool copied runtime dependencies; the package includes an example and manifest.
A dedicated process started with the example and a Windows-only PATH, remained
running after three seconds, and produced no captured standard-error output.
Only that smoke-test process was terminated. The development build and editable
demos were preserved. This is bounded startup evidence, not a clean-machine
deployment check, a new interaction-test result or product acceptance.
The actual package-directory screenshot is in \hyperref[WeeklyReport:8]{Week Report 8};
details are retained in \path{code/tests/evidence/package-2026-10-23.md}.
\section{Transaction Contract Verification Plan}\label{Section:TransactionTests}
Cases \TestCaseRef{TC-034}--\TestCaseRef{TC-043} are new planned checks for the
October 22 contract. They have not been executed. Existing four-entry CTest
results cover the implemented subset only; they do not verify generic
transactions, undo/redo, plugin capabilities or integrated compilation.
The behavior is defined in the category registers in \ChapterRef{Requirements}.
The proposed design is in Section~\ref{Section:TransactionDesign}, with
responsibilities in Section~\ref{Section:PlannedTransactionClasses} and activity
in Figure~\ref{Figure:TransactionActivity}. Cases should retain exact source
diffs, history state, revision/notification counts, and the environment used.
\section{Rectangle Resize Check}\label{Section:RectangleResizeCheck}
On November 12, 2026, all five Debug and Release CTests passed. The bounded
resize increment adds
\path{code/tests/ResizeTests.cpp} for \TestCaseRef{TC-060} and updates the
boundary release check for \TestCaseRef{TC-064}. The fixture independently
specifies all four source-coordinate slots, high-precision originals, reversed
corners, single/both-axis crossing, $0.01$ cm minimum dimensions, thin filler
geometry and stroke-aware maximum bounds. Pointer events exercise actual
handles, repeated crossing in one gesture, unchanged preview source,
cancellation, view transforms and save/reopen. Stale/unsupported/nonfinite
requests preserve source; an unchanged constrained release preserves revision.
Evidence and reproduction commands are retained under
\path{code/tests/evidence/resize-2026-11-12/}.
These checks cover explicit-coordinate outlines only. They do not verify
generic undo/redo, plugin loading, integrated compilation, or human acceptance.
\section{Rectangle Plugin Extraction Check}\label{Section:RectanglePluginCheck}
On November 20--21, both Debug and Release passed six CTests after extraction.
The original five suites now exercise rectangle display, movement, corner
resizing, crossing, minima, bounds, cancellation, exact source preservation and
save/reopen through the loaded module; built-in lines/arrows remain covered.
The new \texttt{rectangle\_plugin\_contract} suite loads the actual module path,
checks presentation/selection/four handles and independently expected move/resize
coordinates, then rejects unknown schemas/operations, stale targets, nonfinite
displacement and invalid constraints. A real incompatible-metadata module and
a missing module both leave opened source intact without rectangle fallback;
a segment-only source still displays. Host proposal tests reject changed identity,
appearance, bounds, outcome consistency, fixed corners and move dimensions.
The same suite checks version \texttt{0.1.2-alpha}, hash-free title and About's
short/full checkpoint, source state and provider identity. A Windows-only-PATH
package launch and native capture show the actual UI and loaded DLL. Evidence is
under the following retained directories:\par
\noindent\path{code/tests/evidence/plugin-extraction-2026-11-20/}\par
\noindent\path{documents/assets/plugin-extraction-2026-11-20/}\par
This executes \TestCaseRef{TC-061} for the bounded rectangle and portions of
\TestCaseRef{TC-067}, \TestCaseRef{TC-068},
\TestCaseRef{TC-071}--\TestCaseRef{TC-074}. It does not execute their broader
multi-provider, conversion, label, lifecycle or generic-history scenarios and
does not establish general product acceptance.
\section{Deployment Label Fixture}\label{Section:DeploymentLabelFixture}
Vincent identified opaque arrow-label backgrounds and border intersections in
the November 16 deployment review as useful future label-editing data.
An exact pre-fix standalone source is retained at:\par
\noindent\path{code/tests/fixtures/label-editing/deployment-before-label-fix.tex}.
The report diagram uses transparent labels with adjusted placement. This
complete TikZ diagram is outside the current parser's editable subset. It is
candidate data for the planned label/provider work, not an executed editor test
or evidence that label editing is implemented.
\section{Sidebar Shell Check}\label{Section:SidebarShellCheck}
The November 23 \texttt{workspace\_sidebar} suite exercises the implemented
portion of \TestCaseRef{TC-079}: persistent strip, icon/accessible identification,
page selection, active-tab/header collapse, retained expanded width, disabled
creation and unchanged source/dirty state. It checks that window destruction
releases the sidebar/pages, covering only the UI lifetime part related to
\TestCaseRef{TC-082}. Its standalone Files page emits one Open request; the main
window connects it to its existing guarded Open method.
All seven Debug and seven Release CTest suites passed for the increment.
The older fit/drag test now gives the large editor area its former width plus
the sidebar width, preserving the original fit, source, save and geometry
assertions. Catalogue alternatives, creation, shared-service ownership and
participant validation remain planned. Actual final logs and native captures
are retained in \path{code/tests/evidence/sidebar-shell-2026-11-23/}.
This bounded evidence does not mark the full requirements or cases accepted.
\section{Session History Check}\label{Section:SessionHistoryCheck}
The November 24 session-history suite exercised the bounded
\texttt{0.1.4-alpha} coordinate editing implementation. All eight Debug and eight
Release suites passed. Exact BOM/UTF-8/CRLF/numeric spelling, multi-step
move/resize restoration, monotonically increasing revisions and one change
notification per accepted action were checked. Save retains entries and changes
the dirty baseline only on success; Undo/Redo do not write disk. External-write
refusal, failed Open and successful reload were also exercised.
The suite checks redo branching, cancellation/no-op/stale rejection preserving
redo, unavailable action states, source/geometry synchronization, failed parse
restoration preserving state, and Undo while a pointer gesture is active.
A 150-edit model session can be undone completely; this checks absence of an
automatic entry limit, not unlimited physical memory or measured memory scaling.
Native package review exercised Ctrl+Z/Ctrl+Y, the Edit menu and About identity.
A viewport repaint after accepted changes addresses stale foreground handles
when restoration leaves the canvas bounds unchanged.
These are bounded portions of \TestCaseRef{TC-035}--\TestCaseRef{TC-038},
\TestCaseRef{TC-042}, \TestCaseRef{TC-043} and \TestCaseRef{TC-050}.
Generic transactions, deliberate memory-failure injection, file-store doubles
and provider-dependent retention remain untested. Participant validation is still
planned. Vincent must review the evidence before requirement or verification
statuses change. Retained logs, hashes and native captures are at
\path{code/tests/evidence/undo-redo-2026-11-24/}.