438 lines
59 KiB
TeX
438 lines
59 KiB
TeX
\chapter{Requirements}\ChapterLabel{Requirements}
|
|
\index{requirement}\index{requirement!business}\index{requirement!functional}
|
|
|
|
This candidate product register supports ongoing project review. No entry has
|
|
completed implementation and verification or entered a product baseline. The
|
|
initial explicit-coordinate test subset is documented below; quantitative
|
|
thresholds and final acceptance procedures remain to be agreed. On October 22, 2026, Vincent agreed the transaction/history behavior and
|
|
plugin scope recorded directly in the registers below; those
|
|
requirements remain Open because implementation and verification are pending.
|
|
The October 27--30 review also settled collaborator ownership, result feedback,
|
|
label attachment/local edits, overlap selection and provider boundaries.
|
|
Plugin registration, operation and lifecycle policies were reviewed in November;
|
|
Section~\ref{Section:PluginContract} records their planned interfaces.
|
|
The November 22 sidebar/creation review is recorded as planned design in
|
|
Section~\ref{Section:SidebarDesign}; it does not change the 0.1.2-alpha editor.
|
|
The November 22 sidebar/creation review is recorded as planned design in
|
|
Section~\ref{Section:SidebarDesign}; it does not change the 0.1.2-alpha editor.
|
|
Detailed mechanisms remain in \ChapterRef{OpenDesignDecisions}.
|
|
The first objective is one working path from
|
|
local source to preview, edit, and saved source.
|
|
|
|
\section{Approach and Priority}
|
|
Stories in \ChapterRef{UserStories} express user value; the statements below
|
|
are candidate obligations. Stable IDs support later change tracking.
|
|
\Gls{must} marks the minimum workflow and protection of source changes;
|
|
\gls{should} marks important recovery behavior. Status remains Open until
|
|
implementation and verification evidence exists. Requirements will be reviewed
|
|
against a documented \gls{tikzsubset} and mapped to use cases and proposed
|
|
tests in this report.
|
|
User-story links for each applicable requirement appear in
|
|
Table~\ref{Table:TraceabilityMatrix} in \ChapterRef{Traceability}.
|
|
This separation follows requirements engineering guidance~\cite{ISO29148}.
|
|
The IDs identify categories: B for business outcomes, F for functional
|
|
behavior, D for data integrity, I for interface behavior, S for security,
|
|
A for architecture, DEV for developer conventions, P for performance, and C
|
|
for an operating constraint. Business outcomes state the value sought from the
|
|
prototype; their linked functional and data requirements specify the behaviors
|
|
that make those outcomes possible.
|
|
|
|
\begin{landscape}
|
|
\footnotesize
|
|
\section{Category-Specific Requirement Registers}
|
|
The nine registers below group the current candidate requirements by their
|
|
existing IDs. Each retains the template's priority, status, implementation
|
|
version, use-case, and test-case fields. Categories without a supported
|
|
candidate requirement are not filled with placeholder entries.
|
|
|
|
\subsection{Business Requirements}
|
|
The two candidate outcomes are an end-to-end positional correction and a
|
|
revised diagram that remains usable in a standard \gls{latex} workflow. The
|
|
minimum demonstration will use a supported reference diagram; Vincent reports
|
|
that Professor Muresan has samples that may inform the final test selection.
|
|
No participant study or time-saving threshold is required for this initial
|
|
capability check.
|
|
|
|
\begin{tabularx}{\linewidth}{@{}L{2.05cm}Y L{1.55cm}L{1.5cm}L{1.7cm}L{2.4cm}L{2.5cm}@{}}
|
|
\caption{Provisional Business Requirements\label{Table:BusinessRequirements}}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\
|
|
\midrule\endfirsthead
|
|
\multicolumn{7}{l}{\small\itshape Provisional Business Requirements (continued)}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\\midrule\endhead
|
|
\midrule\multicolumn{7}{r}{\small\itshape Continued on next page}\\\endfoot
|
|
\bottomrule\endlastfoot
|
|
\RequirementID{REQ-B-001} & The minimum prototype shall enable a LaTeX documentation author to reposition at least one supported TikZ diagram element through the graphical editor. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-011}\newline\VerificationRef{VER-001}\\
|
|
\RequirementID{REQ-B-002} & The minimum prototype shall let a LaTeX documentation author continue editing and compiling a graphically revised diagram with standard LaTeX tools outside TikZRefinery. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-003} & \TestCaseRef{TC-011}\newline\VerificationRef{VER-002}\\
|
|
\end{tabularx}
|
|
|
|
\clearpage
|
|
\subsection{Functional Requirements}\label{Section:TransactionContract}
|
|
The transaction and history rules agreed on October 22 are recorded as
|
|
individual requirements here and in the Data, Interface and Architectural
|
|
registers. They remain Open pending implementation and verification.
|
|
|
|
\begin{tabularx}{\linewidth}{@{}L{2.05cm}Y L{1.55cm}L{1.5cm}L{1.7cm}L{2.4cm}L{2.5cm}@{}}
|
|
\caption{Provisional Functional Requirements\label{Table:FunctionalRequirements}}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\
|
|
\midrule\endfirsthead
|
|
\multicolumn{7}{l}{\small\itshape Provisional Functional Requirements (continued)}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\\midrule\endhead
|
|
\midrule\multicolumn{7}{r}{\small\itshape Continued on next page}\\\endfoot
|
|
\bottomrule\endlastfoot
|
|
\RequirementID{REQ-F-001} & The application shall open a user-selected, readable local TikZ source file without changing it. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001} & \TestCaseRef{TC-001}\newline\VerificationRef{VER-003}\\
|
|
\RequirementID{REQ-F-002} & The application shall compile an opened supported document with a configured local LaTeX toolchain and display its rendered result. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001} & \TestCaseRef{TC-002}\newline\VerificationRef{VER-004}\\
|
|
\RequirementID{REQ-F-003} & The application shall let the user select and move an object within the documented editable TikZ subset. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-003}\newline\VerificationRef{VER-005}\\
|
|
\RequirementID{REQ-F-004} & For a supported move, the application shall update the corresponding source coordinates and show a preview consistent with that change. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-004}, \TestCaseRef{TC-027}, \TestCaseRef{TC-029}\newline\VerificationRef{VER-006}\\
|
|
\RequirementID{REQ-F-005} & The application shall report compiler failure and unsupported editable constructs without discarding the opened source. & \gls{should} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-002} & \TestCaseRef{TC-005}, \TestCaseRef{TC-006}\newline\VerificationRef{VER-007}\\
|
|
\RequirementID{REQ-F-006} & The application shall save a user-approved revision as local TikZ source and report whether the write succeeded. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-003} & \TestCaseRef{TC-007}, \TestCaseRef{TC-008}\newline\VerificationRef{VER-008}\\
|
|
\RequirementID{REQ-F-007} & If a preview compilation fails, the application shall keep the last successfully generated preview visible and identify it as a prior successful result rather than the result of the failed compilation. & \gls{should} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-012}, \TestCaseRef{TC-039}\newline\VerificationRef{VER-009}\\
|
|
\RequirementID{REQ-F-008} & When generating a supported document's preview, the application shall include its available required packages, styles, and definitions and report any required dependency that is unavailable. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001} & \TestCaseRef{TC-013}\newline\VerificationRef{VER-010}\\
|
|
\RequirementID{REQ-F-009} & For a supported straight line or arrow, dragging its body shall translate the entire segment so both endpoints move by the same displacement. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-021}, \TestCaseRef{TC-022}\newline\VerificationRef{VER-011}\\
|
|
\RequirementID{REQ-F-010} & For a supported straight line or arrow, dragging an endpoint handle shall move only the selected endpoint while the other endpoint stays fixed. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-023}, \TestCaseRef{TC-024}\newline\VerificationRef{VER-012}\\
|
|
\RequirementID{REQ-F-011} & The application shall let the user select and move a supported rectangular box as a whole through the graphical editor. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-025}\newline\VerificationRef{VER-013}\\
|
|
\RequirementID{REQ-F-012} & The application shall let the author undo and redo each completed editing action as one step, restoring exact source bytes including comments, whitespace, line endings and numeric spelling. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-004} & \TestCaseRef{TC-035}, \TestCaseRef{TC-037}\newline\VerificationRef{VER-014}\\
|
|
\RequirementID{REQ-F-013} & Edit history shall last only for the current editing session; it shall not be embedded in the TeX file or restored after application restart. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-004} & \TestCaseRef{TC-038}\newline\VerificationRef{VER-015}\\
|
|
\RequirementID{REQ-F-014} & Invoking Undo during an active drag shall cancel that preview before undoing the last completed edit. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-004} & \TestCaseRef{TC-036}\newline\VerificationRef{VER-016}\\
|
|
\RequirementID{REQ-F-015} & A new accepted changed edit after Undo shall discard the abandoned redo branch; selection, preview cancellation, rejected edits and no-op actions shall preserve that branch. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-037}\newline\VerificationRef{VER-017}\\
|
|
\RequirementID{REQ-F-016} & A successful Save shall preserve the current undo and redo history. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-003}, \UseCaseRef{UC-004} & \TestCaseRef{TC-038}\newline\VerificationRef{VER-018}\\
|
|
\RequirementID{REQ-F-017} & Successfully opening another document or reloading the current document shall clear its edit history. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-004} & \TestCaseRef{TC-038}\newline\VerificationRef{VER-019}\\
|
|
\RequirementID{REQ-F-018} & A failed Save or cancelled or failed Open shall preserve the current document and history; a successful Save explicitly chosen before a failed or cancelled Open shall remain effective. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-003}, \UseCaseRef{UC-004} & \TestCaseRef{TC-038}\newline\VerificationRef{VER-020}\\
|
|
\RequirementID{REQ-F-019} & Undo and Redo shall change only in-memory document state without writing the source file to disk. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-004} & \TestCaseRef{TC-038}\newline\VerificationRef{VER-021}\\
|
|
\RequirementID{REQ-F-020} & Before replacing a document with unsaved changes, Open or Reload shall offer Save, Discard and Cancel; Cancel or a failed requested Save shall prevent replacement. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-004} & \TestCaseRef{TC-038}\newline\VerificationRef{VER-022}\\
|
|
\RequirementID{REQ-F-021} & For a supported attached label, dragging in both canvas axes shall adjust its relative placement without changing host geometry, text, rotation, anchor, alignment or styling unless explicitly requested. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-005} & \TestCaseRef{TC-044}\newline\VerificationRef{VER-023}\\
|
|
\RequirementID{REQ-F-022} & Moving a supported host shall move its attached labels according to their existing attachment rules. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-005} & \TestCaseRef{TC-045}\newline\VerificationRef{VER-024}\\
|
|
\RequirementID{REQ-F-023} & Dragging an attached label shall retain attachment regardless of drag distance; detachment shall require an explicit user action and a supported source rewrite. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-005} & \TestCaseRef{TC-046}\newline\VerificationRef{VER-025}\\
|
|
\RequirementID{REQ-F-024} & An edit of one selected label shall preserve shared definitions and unrelated elements, using a supported local adjustment; if no supported independent adjustment exists, the operation shall be unavailable with a reason. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-005} & \TestCaseRef{TC-047}\newline\VerificationRef{VER-026}\\
|
|
\RequirementID{REQ-F-025} & The editor shall resize a supported explicit-coordinate rectangle with screen-sized corner handles, keeping the opposite corner fixed, allowing crossing, and constraining width and height independently to at least $0.01$ cm. Preview shall preserve source; release shall commit only necessary coordinates as one guarded edit. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-060}\newline\VerificationRef{VER-073}\\
|
|
\RequirementID{REQ-F-026} & The application shall present duplicate declared plugin IDs with candidate name, version and file location, and let the author choose which candidate to activate; conflicting candidates shall not be selected by discovery order. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-007} & \TestCaseRef{TC-069}\newline\VerificationRef{VER-081}\\
|
|
\RequirementID{REQ-F-027} & The application shall allow compatible providers for the same shape family to coexist, bind each element to its chosen provider instance/version, and preserve that binding during an operation. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-007} & \TestCaseRef{TC-070}\newline\VerificationRef{VER-082}\\
|
|
\RequirementID{REQ-F-028} & Available compatible plugin updates shall normally be applied at application startup before diagrams are opened or restored; an unavailable update service shall not prevent the local editing workflow. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-008} & \TestCaseRef{TC-075}\newline\VerificationRef{VER-083}\\
|
|
\RequirementID{REQ-F-029} & During a session the application shall prepare an update in the background and activate it only after validation and a fresh check that its provider is unused. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-008} & \TestCaseRef{TC-076}\newline\VerificationRef{VER-084}\\
|
|
\RequirementID{REQ-F-030} & An update discovered for an in-use provider shall leave that version active and let the author defer the update or restart through the unsaved-work guard; deferred updates shall be considered at the next startup. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-008} & \TestCaseRef{TC-077}\newline\VerificationRef{VER-085}\\
|
|
\RequirementID{REQ-F-031} & Plugin installation and activation shall retain the previous working version until replacement succeeds; failure shall preserve document source and provider choices and report the reason. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-008} & \TestCaseRef{TC-078}\newline\VerificationRef{VER-086}\\
|
|
\RequirementID{REQ-F-032} & A missing or incompatible provider shall preserve source, identify unavailable support and its reason, and shall not silently substitute another provider. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-002}, \UseCaseRef{UC-007} & \TestCaseRef{TC-074}\newline\VerificationRef{VER-087}\\
|
|
\RequirementID{REQ-F-033} & The application shall enumerate catalogue entries offered by active compatible providers, with shape family/type, readable name, preview and creation support, while distinguishing provider alternatives. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-009} & \TestCaseRef{TC-079}\newline\VerificationRef{VER-088}\\
|
|
\RequirementID{REQ-F-034} & The application shall create supported elements using a selected catalogue/provider entry and a supported syntax-insertion route; host validation and document acceptance shall preserve unrelated source and assign accepted element identity. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-009} & \TestCaseRef{TC-080}\newline\VerificationRef{VER-089}\\
|
|
\RequirementID{REQ-F-035} & The editor shall support click placement using provider defaults and rectangle drag placement using opposite corners; clicked rectangles shall be centred where valid and shifted inward without changing default size to fit a declared editing extent. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-009} & \TestCaseRef{TC-080}\newline\VerificationRef{VER-106}\\
|
|
\end{tabularx}
|
|
|
|
\subsection{Data Requirements}
|
|
\index{requirement!data}
|
|
\begin{tabularx}{\linewidth}{@{}L{2.05cm}Y L{1.55cm}L{1.5cm}L{1.7cm}L{2.4cm}L{2.5cm}@{}}
|
|
\caption{Provisional Data Requirements\label{Table:DataRequirements}}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\
|
|
\midrule\endfirsthead
|
|
\multicolumn{7}{l}{\small\itshape Provisional Data Requirements (continued)}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\\midrule\endhead
|
|
\midrule\multicolumn{7}{r}{\small\itshape Continued on next page}\\\endfoot
|
|
\bottomrule\endlastfoot
|
|
\RequirementID{REQ-D-001} & The application shall preserve source outside the explicitly edited supported construct during graphical editing and saving. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-003}, \UseCaseRef{UC-009} & \TestCaseRef{TC-004}, \TestCaseRef{TC-007}, \TestCaseRef{TC-021}, \TestCaseRef{TC-022}, \TestCaseRef{TC-023}, \TestCaseRef{TC-024}, \TestCaseRef{TC-025}, \TestCaseRef{TC-080}\newline\VerificationRef{VER-027}\\
|
|
\RequirementID{REQ-D-002} & The application shall prepare candidate source and history before publishing them as one atomic change; a rejected or failed edit or history restoration shall leave authoritative source and history unchanged. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-034}, \TestCaseRef{TC-042}\newline\VerificationRef{VER-028}\\
|
|
\RequirementID{REQ-D-003} & Each accepted new edit that changes source shall create exactly one history entry; previews, cancellation, rejected edits and empty or byte-equivalent proposals shall leave source and history unchanged. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-034}, \TestCaseRef{TC-036}\newline\VerificationRef{VER-029}\\
|
|
\RequirementID{REQ-D-004} & Each accepted changed edit or history restoration shall advance the document revision; Undo and Redo shall never restore an earlier revision number. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-035}\newline\VerificationRef{VER-030}\\
|
|
\RequirementID{REQ-D-005} & A successful Save shall set the saved-source baseline to the bytes written; a failed Save shall retain the previous baseline. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-003}, \UseCaseRef{UC-004} & \TestCaseRef{TC-038}\newline\VerificationRef{VER-031}\\
|
|
\RequirementID{REQ-D-006} & The document shall be marked unsaved exactly when its current source bytes differ from its saved-source baseline, including after Undo or Redo. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-003}, \UseCaseRef{UC-004} & \TestCaseRef{TC-038}\newline\VerificationRef{VER-032}\\
|
|
\RequirementID{REQ-D-007} & Undo and Redo shall move the existing history position without appending a new edit entry. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-004} & \TestCaseRef{TC-035}, \TestCaseRef{TC-037}, \TestCaseRef{TC-042}\newline\VerificationRef{VER-033}\\
|
|
\RequirementID{REQ-D-008} & A transaction proposal shall identify its document, base revision and operation description, and give each edit's original byte range, expected bytes and replacement bytes. All ranges shall use the same pre-edit source; zero-length ranges insert and empty replacements delete. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-034}, \TestCaseRef{TC-040}\newline\VerificationRef{VER-034}\\
|
|
\RequirementID{REQ-D-009} & The element representation shall separate a revision-scoped ElementDescription (identity, shape family/type, schema version, interpreted geometry, appearance and relevant content) from SourceBinding, presentation/selection data, attachments and per-element available operations. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-005}, \UseCaseRef{UC-006} & \TestCaseRef{TC-048}\newline\VerificationRef{VER-035}\\
|
|
\RequirementID{REQ-D-010} & Source bindings, provider bindings and attachment references shall identify their document and revision; accepted edits shall invalidate old records and rebuild relationships from accepted source. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-005} & \TestCaseRef{TC-049}\newline\VerificationRef{VER-036}\\
|
|
\RequirementID{REQ-D-011} & Transaction proposals and exact before/after history snapshots shall be held in memory for the open document; saving shall not embed history in the TikZ file or restore it after application restart. The initial prototype shall retain session entries without automatic eviction; a future limit requires review informed by memory measurements. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-003}, \UseCaseRef{UC-004} & \TestCaseRef{TC-050}\newline\VerificationRef{VER-037}\\
|
|
\RequirementID{REQ-D-012} & Each selectable element shall provide selection geometry and a readable description independent of source spelling and graphics-item pointers; presentation coordinates shall be distinct from viewport pixels. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-005}, \UseCaseRef{UC-006} & \TestCaseRef{TC-048}, \TestCaseRef{TC-053}\newline\VerificationRef{VER-038}\\
|
|
\RequirementID{REQ-D-013} & Operation requests shall identify host-defined common operations such as \texttt{tkr.move} and \texttt{tkr.resize}, or provider-qualified custom operations; parameters and their schema version shall be separate fields. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-072}\newline\VerificationRef{VER-090}\\
|
|
\RequirementID{REQ-D-014} & An existing-element edit request shall contain target document/element identity and revision, the initial element description, operation-specific parameters and host constraints in document centimetres, without mouse events, widget pointers or source byte ranges. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-072}\newline\VerificationRef{VER-091}\\
|
|
\RequirementID{REQ-D-015} & Shape preparation shall return Prepared change with proposed interpreted changes, Unchanged, or Cannot prepare with a reason; it shall not claim that source or history has been applied. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-073}\newline\VerificationRef{VER-092}\\
|
|
\RequirementID{REQ-D-016} & Declared stable plugin/provider identity shall be distinct from the host-assigned runtime instance and loaded-version identity used by element bindings and outstanding operations. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-007}, \UseCaseRef{UC-008} & \TestCaseRef{TC-068}, \TestCaseRef{TC-070}\newline\VerificationRef{VER-093}\\
|
|
\RequirementID{REQ-D-017} & A replacement provider shall accept existing element data or use an explicitly defined validated conversion preserving relevant information and used capabilities; otherwise the previous provider shall remain available and no implicit lossy conversion shall occur. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-007}, \UseCaseRef{UC-008} & \TestCaseRef{TC-071}\newline\VerificationRef{VER-094}\\
|
|
\RequirementID{REQ-D-018} & Catalogue entries shall describe offered shape types, readable names, preview data and creation support separately from document elements; the host shall associate provider identity and version. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-009} & \TestCaseRef{TC-079}\newline\VerificationRef{VER-105}\\
|
|
\end{tabularx}
|
|
|
|
\clearpage
|
|
\subsection{Interface Requirements}
|
|
\index{requirement!interface}
|
|
This register addresses what an author sees during graphical editing. The
|
|
canvas may rasterize its final screen pixels, but zooming a supported geometric
|
|
item should redraw its shape rather than enlarge a fixed-resolution picture.
|
|
|
|
\begin{tabularx}{\linewidth}{@{}L{2.05cm}Y L{1.55cm}L{1.5cm}L{1.7cm}L{2.4cm}L{2.5cm}@{}}
|
|
\caption{Provisional Interface Requirements\label{Table:InterfaceRequirements}}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\
|
|
\midrule\endfirsthead
|
|
\multicolumn{7}{l}{\small\itshape Provisional Interface Requirements (continued)}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\\midrule\endhead
|
|
\midrule\multicolumn{7}{r}{\small\itshape Continued on next page}\\\endfoot
|
|
\bottomrule\endlastfoot
|
|
\RequirementID{REQ-I-001} & At supported zoom levels, the editor shall redraw supported lines, arrows, and rectangular boxes from geometric data without enlarging a fixed-resolution canvas image. & \gls{should} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-026}\newline\VerificationRef{VER-039}\\
|
|
\RequirementID{REQ-I-002} & The interface shall disable Undo or Redo when the corresponding history entry is unavailable. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-004} & \TestCaseRef{TC-043}\newline\VerificationRef{VER-040}\\
|
|
\RequirementID{REQ-I-003} & The application shall emit exactly one successful document-change notification per accepted changed edit or restoration, and none for previews, cancellation, rejected or failed operations, or no-op results. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-034}, \TestCaseRef{TC-036}, \TestCaseRef{TC-042}, \TestCaseRef{TC-043}\newline\VerificationRef{VER-041}\\
|
|
\RequirementID{REQ-I-004} & After an accepted edit or history restoration, the application shall reparse the accepted source and refresh the canvas from that state. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-043}\newline\VerificationRef{VER-042}\\
|
|
\RequirementID{REQ-I-005} & If history restoration fails, the interface shall report the failure to the author. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-004} & \TestCaseRef{TC-043}\newline\VerificationRef{VER-043}\\
|
|
\RequirementID{REQ-I-006} & Editing results shall distinguish Applied, Unchanged and Rejected; a Rejected result shall contain a user-readable reason, while cancellation and unchanged actions shall not be reported as editing errors. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004}, \UseCaseRef{UC-005}, \UseCaseRef{UC-009} & \TestCaseRef{TC-051}, \TestCaseRef{TC-080}\newline\VerificationRef{VER-044}\\
|
|
\RequirementID{REQ-I-007} & A rejected completed edit shall show one nonmodal bottom message strip with a bright red icon, red accent and readable reason; it shall remain until dismissed or replaced by the next completed operation, with no repeated messages for pointer-movement previews. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-005}, \UseCaseRef{UC-009} & \TestCaseRef{TC-052}, \TestCaseRef{TC-080}\newline\VerificationRef{VER-045}\\
|
|
\RequirementID{REQ-I-008} & Normal hit selection shall prioritize a label over its overlapping host; a direct right-click menu shall list all intersecting selectable elements, including obscured hosts, using readable descriptions and candidate highlighting. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-006} & \TestCaseRef{TC-053}\newline\VerificationRef{VER-046}\\
|
|
\RequirementID{REQ-I-009} & A left drag on empty canvas, or anywhere with the Select area tool active, shall draw a retained highlighted rectangle; right-clicking inside it shall list elements whose selection geometry intersects it. Choosing an entry shall select that element; drawing the region shall not move objects or automatically select the group, and Escape shall clear it. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-006} & \TestCaseRef{TC-054}\newline\VerificationRef{VER-047}\\
|
|
\RequirementID{REQ-I-010} & Direct right-click selection shall initially search a circle of radius 6 logical screen pixels, mapped to document space so its screen size stays constant under zoom; this provisional setting shall be reviewed with user feedback. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-006} & \TestCaseRef{TC-055}\newline\VerificationRef{VER-048}\\
|
|
\RequirementID{REQ-I-011} & The editor shall visually distinguish the Canvas pane from the source pane and keep supported diagram outlines legible in light and dark themes. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-062}\newline\VerificationRef{VER-075}\\
|
|
\RequirementID{REQ-I-012} & By default, the editor shall fit the full canvas to the available pane on opening a diagram and resizing the pane, preserving its aspect ratio and source coordinates. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-063}\newline\VerificationRef{VER-076}\\
|
|
\RequirementID{REQ-I-013} & When a document declares a fixed editing extent, the editor shall distinguish it visually and constrain move, resize and creation preview and acceptance to valid geometry inside it, including stroke; reaching a limit shall not be reported as rejection. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-009} & \TestCaseRef{TC-064}, \TestCaseRef{TC-080}\newline\VerificationRef{VER-077}\\
|
|
\RequirementID{REQ-I-014} & During a drag, the editor shall redraw the canvas without leaving visible marks at previous preview positions. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-065}\newline\VerificationRef{VER-078}\\
|
|
\RequirementID{REQ-I-015} & The Shapes page shall show provider-distinguishable previews and names within the collapsible workspace sidebar, and expose creation only when both the shape and syntax-insertion route support it. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-009} & \TestCaseRef{TC-079}\newline\VerificationRef{VER-100}\\
|
|
\RequirementID{REQ-I-016} & An update notification for an in-use provider shall be nonmodal and offer Later or Restart and update; restart shall respect Save, Discard and Cancel without interrupting an active edit by replacing its provider. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-008} & \TestCaseRef{TC-077}\newline\VerificationRef{VER-101}\\
|
|
\RequirementID{REQ-I-017} & When compiler/PDF integration exists, a diagram missing graphical provider support shall be viewable through a successful read-only compilation when dependencies are available; the displayed result shall identify its source revision and any stale status. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001} & \TestCaseRef{TC-081}\newline\VerificationRef{VER-102}\\
|
|
\RequirementID{REQ-I-018} & The workspace sidebar shall collapse to a visible tab strip through which its pages can be reopened. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-009} & \TestCaseRef{TC-079}\newline\VerificationRef{VER-107}\\
|
|
\RequirementID{REQ-I-019} & Shapes and Files tabs shall have distinct icons, readable identification and clear active-state feedback. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-009} & \TestCaseRef{TC-079}\newline\VerificationRef{VER-108}\\
|
|
\RequirementID{REQ-I-020} & The sidebar shall retain its selected page and previous expanded width during the window session. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-009} & \TestCaseRef{TC-079}\newline\VerificationRef{VER-109}\\
|
|
\RequirementID{REQ-I-021} & After accepted creation, the editor shall select the new element and return to selection; Escape shall cancel, while rejected placement shall retain the creation tool for retry and report its reason once per attempt. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-009} & \TestCaseRef{TC-080}\newline\VerificationRef{VER-110}\\
|
|
\end{tabularx}
|
|
|
|
\subsection{Security Requirements}
|
|
\index{requirement!security}
|
|
\begin{tabularx}{\linewidth}{@{}L{2.05cm}Y L{1.55cm}L{1.5cm}L{1.7cm}L{2.4cm}L{2.5cm}@{}}
|
|
\caption{Provisional Security Requirements\label{Table:SecurityRequirements}}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\
|
|
\midrule\endfirsthead
|
|
\multicolumn{7}{l}{\small\itshape Provisional Security Requirements (continued)}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\\midrule\endhead
|
|
\midrule\multicolumn{7}{r}{\small\itshape Continued on next page}\\\endfoot
|
|
\bottomrule\endlastfoot
|
|
\RequirementID{REQ-S-001} & The application shall invoke the configured compiler without enabling TeX shell escape by default. & \gls{should} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001} & \TestCaseRef{TC-009}\newline\VerificationRef{VER-049}\\
|
|
\end{tabularx}
|
|
|
|
\clearpage
|
|
\subsection{Architectural Requirements}
|
|
\index{requirement!architectural}
|
|
These candidates specify component responsibilities and runtime process
|
|
boundaries for a readable and testable editor. Vincent selected C++ with Qt 6
|
|
and agreed the initial class boundaries, naming conventions, shallow
|
|
inheritance, and ownership relationships. The selected design is recorded in
|
|
Section~\ref{Section:SelectedImplementationDesign} and implemented as an
|
|
initial scaffold under \path{code/src/}. These design decisions do not establish
|
|
completed product requirements. The native build and foundation checks passed
|
|
on October 20 (Section~\ref{Section:NativeScaffoldCheck}); initial subset display
|
|
checks followed on October 21 (Section~\ref{Section:SegmentDisplayCheck}).
|
|
Whole-element interaction has bounded evidence in
|
|
Section~\ref{Section:WholeElementDragCheck}; endpoint editing, broader parsing
|
|
and LaTeX/PDF integration remain unfinished.
|
|
|
|
\begin{tabularx}{\linewidth}{@{}L{2.05cm}Y L{1.55cm}L{1.5cm}L{1.7cm}L{2.4cm}L{2.5cm}@{}}
|
|
\caption{Provisional Architectural Requirements\label{Table:ArchitecturalRequirements}}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\
|
|
\midrule\endfirsthead
|
|
\multicolumn{7}{l}{\small\itshape Provisional Architectural Requirements (continued)}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\\midrule\endhead
|
|
\midrule\multicolumn{7}{r}{\small\itshape Continued on next page}\\\endfoot
|
|
\bottomrule\endlastfoot
|
|
\RequirementID{REQ-A-001} & The application shall run preview compilation outside the UI thread so the editor remains responsive while the compiler runs. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-002} & \TestCaseRef{TC-014}\newline\VerificationRef{VER-050}\\
|
|
\RequirementID{REQ-A-002} & The application shall generate preview files in a separate temporary workspace without placing compilation intermediates in the opened document's directory. & \gls{should} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001} & \TestCaseRef{TC-015}\newline\VerificationRef{VER-051}\\
|
|
\RequirementID{REQ-A-003} & The application shall separate compilation control and diagnostics from PDF loading and display into distinct components. & \gls{should} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001} & \TestCaseRef{TC-016}\newline\VerificationRef{VER-052}\\
|
|
\RequirementID{REQ-A-004} & The editor shall use object-oriented components with documented, distinct responsibilities for graphical interaction, TikZ source interpretation and editing, preview compilation, and PDF display. & \gls{should} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-002} & \TestCaseRef{TC-018}\newline\VerificationRef{VER-053}\\
|
|
\RequirementID{REQ-A-006} & TikZ source interpretation and edit logic shall be callable and testable without launching the graphical interface or a LaTeX compiler. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-020}\newline\VerificationRef{VER-054}\\
|
|
\RequirementID{REQ-A-007} & The application shall use a documented, consistent mapping between supported TikZ coordinates and canvas scene coordinates for both display and source edits. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-028}, \TestCaseRef{TC-029}\newline\VerificationRef{VER-055}\\
|
|
\RequirementID{REQ-A-008} & Built-in and plugin editing operations shall submit revision-guarded source transactions through one common validation/application mechanism that supports insertion, deletion and replacement without requiring a GUI or LaTeX run. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-034}, \TestCaseRef{TC-040}, \TestCaseRef{TC-042}\newline\VerificationRef{VER-056}\\
|
|
\RequirementID{REQ-A-009} & The plugin API shall distinguish element support for additional object kinds from syntax support for additional source forms; a provider shall be able to implement either or both through the common editing contract. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-002} & \TestCaseRef{TC-041}\newline\VerificationRef{VER-057}\\
|
|
\RequirementID{REQ-A-010} & Preview compilation shall verify an accepted source revision subsequently; a compilation failure shall report diagnostics without automatically reversing that transaction or its history entry. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-039}\newline\VerificationRef{VER-058}\\
|
|
\RequirementID{REQ-A-011} & Before publication, the core shall validate document identity, base revision, range bounds, expected bytes, range conflicts and supported-operation rules. Ambiguous same-position insertions shall be combined unambiguously by the planner or rejected. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004} & \TestCaseRef{TC-034}, \TestCaseRef{TC-040}, \TestCaseRef{TC-042}\newline\VerificationRef{VER-059}\\
|
|
\RequirementID{REQ-A-012} & The document shall control transaction application and own history; it shall call history methods to record accepted changes and retrieve restoration targets, coordinating source and history-position updates as one atomic operation. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-004}, \UseCaseRef{UC-005} & \TestCaseRef{TC-056}\newline\VerificationRef{VER-061}\\
|
|
\RequirementID{REQ-A-013} & The controller shall coordinate requests, results and interface notifications, owning the edit service and file store; the edit service shall prepare supported proposals from a read-only snapshot without mutating live source, history, saved state or graphics items. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-003}, \UseCaseRef{UC-004}, \UseCaseRef{UC-005} & \TestCaseRef{TC-056}\newline\VerificationRef{VER-062}\\
|
|
\RequirementID{REQ-A-014} & The file store shall read bytes and perform guarded writes without managing undo history; after successful I/O the controller shall request document load or saved-baseline updates using the bytes actually read or written. Failed or cancelled operations shall preserve state subject to any prior explicit successful Save. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-003}, \UseCaseRef{UC-004} & \TestCaseRef{TC-057}\newline\VerificationRef{VER-063}\\
|
|
\RequirementID{REQ-A-015} & Syntax providers shall interpret source and prepare bound rewrites. Shape providers shall consume shared descriptions and return presentation, selection and interpreted operation proposals, without directly mutating document, history, scene or files; the scene shall create and own graphics items. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-002}, \UseCaseRef{UC-005}, \UseCaseRef{UC-006} & \TestCaseRef{TC-058}\newline\VerificationRef{VER-064}\\
|
|
\RequirementID{REQ-A-016} & Established element and source bindings shall identify their responsible provider instance/version; subsequent edit preparation shall route to those providers without reselecting an interpreter or replacing a provider during the gesture. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-005} & \TestCaseRef{TC-059}\newline\VerificationRef{VER-065}\\
|
|
\RequirementID{REQ-A-017} & An element operation shall be available only when the shape provider, syntax/source binding and current document context support it; the host shall check both when enabling the interaction and when processing its request, and explain unavailable operations. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-005} & \TestCaseRef{TC-058}\newline\VerificationRef{VER-066}\\
|
|
\RequirementID{REQ-A-018} & The editor shall support the prototype rectangle through the common shape API from a separately loadable plugin, preserving its supported display, move and resize behavior. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-061}\newline\VerificationRef{VER-074}\\
|
|
\RequirementID{REQ-A-019} & Provider registration shall declare stable ID, display name, release version, element/syntax role, supported types and schemas, API compatibility and supported operations; incompatible registrations shall remain inactive with a reason. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-007} & \TestCaseRef{TC-068}, \TestCaseRef{TC-071}\newline\VerificationRef{VER-095}\\
|
|
\RequirementID{REQ-A-020} & Provider compatibility shall check the API contract, element-data schema and required capabilities; the first rectangle extraction shall require the explicitly supported API version and matching documented build environment. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-007}, \UseCaseRef{UC-008} & \TestCaseRef{TC-071}\newline\VerificationRef{VER-096}\\
|
|
\RequirementID{REQ-A-021} & A provider shall remain available while any open document, active gesture or pending operation depends on it; activation or unloading shall recheck those dependencies at a safe point. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-008} & \TestCaseRef{TC-076}, \TestCaseRef{TC-077}\newline\VerificationRef{VER-097}\\
|
|
\RequirementID{REQ-A-022} & Plugin updates shall be associated with an explicit update origin and installed and validated separately from the active version before activation; detailed distribution, authentication and recovery mechanisms require later design. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-008} & \TestCaseRef{TC-078}\newline\VerificationRef{VER-098}\\
|
|
\RequirementID{REQ-A-023} & Preview and release shall calculate shape proposals from initial gesture geometry and total document-space displacement under the same constraints, rather than accumulate changes from earlier previews. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-060}, \TestCaseRef{TC-072}\newline\VerificationRef{VER-099}\\
|
|
\RequirementID{REQ-A-024} & The main window shall own shared plugin services and the catalogue; consumers shall borrow access and be released before the services on which they depend. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002}, \UseCaseRef{UC-009} & \TestCaseRef{TC-082}\newline\VerificationRef{VER-111}\\
|
|
\end{tabularx}
|
|
|
|
\clearpage
|
|
\subsection{Developer Requirements}\label{Section:DeveloperRequirements}
|
|
\index{requirement!developer}\index{class naming}\index{inheritance depth}
|
|
Developer requirements govern how contributors organize and name source code
|
|
so that people can understand and maintain it. This is a project-specific
|
|
category adapted from the template's provision for additional registers; it
|
|
uses the same fields and traceability rules. Architectural requirements retain
|
|
component boundaries, compilation separation, and runtime coordinate mapping.
|
|
The source-module rule moves here with its stable ID
|
|
\RequirementRef{REQ-A-005}; the historical A prefix is retained to avoid
|
|
breaking existing references. New entries use DEV, distinct from D for data.
|
|
|
|
Vincent reports that the instructor suggested matching the documentation's
|
|
\texttt{tkr} prefix and using a main class name followed by a specialization.
|
|
Vincent confirmed \texttt{tkr} and clarified the permitted inheritance depth
|
|
on October 15, 2026. The naming and depth rules below record that discussion
|
|
through his account, not as a direct instructor quotation.
|
|
|
|
\begin{tabularx}{\linewidth}{@{}L{2.05cm}Y L{1.55cm}L{1.5cm}L{1.7cm}L{2.4cm}L{2.5cm}@{}}
|
|
\caption{Provisional Developer Requirements\label{Table:DeveloperRequirements}}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\
|
|
\midrule\endfirsthead
|
|
\multicolumn{7}{l}{\small\itshape Provisional Developer Requirements (continued)}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\\midrule\endhead
|
|
\midrule\multicolumn{7}{r}{\small\itshape Continued on next page}\\\endfoot
|
|
\bottomrule\endlastfoot
|
|
\RequirementID{REQ-A-005} & Each primary application class shall be defined in its own source module; small helper types may share the module when they support that class's responsibility. & \gls{should} & \ReqStatusOpen & \NoVersion & \emph{Cross-cutting} & \TestCaseRef{TC-019}\newline\VerificationRef{VER-060}\\
|
|
|
|
\RequirementID{REQ-DEV-001} & Project-owned class names shall follow \texttt{tkr<MainClassName><Specification>}, with PascalCase name components and an optional suffix identifying a specialization; matching header and implementation filenames shall use the complete class name. & \gls{must} & \ReqStatusOpen & \NoVersion & \emph{Cross-cutting} & \TestCaseRef{TC-030}\newline\VerificationRef{VER-067}\\
|
|
\RequirementID{REQ-DEV-002} & Application identifiers shall follow the documented coding convention: camelCase methods, descriptive type/category-prefixed variables, and an additional \texttt{m\_} marker for private member variables. & \gls{should} & \ReqStatusOpen & \NoVersion & \emph{Cross-cutting} & \TestCaseRef{TC-031}\newline\VerificationRef{VER-068}\\
|
|
\RequirementID{REQ-DEV-003} & Any inheritance path shall contain at most three project-defined class levels: a main/base class, its direct subclass, and one further subclass; third-party Qt ancestry shall be excluded from this count. & \gls{must} & \ReqStatusOpen & \NoVersion & \emph{Cross-cutting} & \TestCaseRef{TC-032}\newline\VerificationRef{VER-069}\\
|
|
\RequirementID{REQ-DEV-004} & Each class relationship shall document whether it owns or borrows the related object and the lifetime mechanism that enforces that relationship. & \gls{must} & \ReqStatusOpen & \NoVersion & \emph{Cross-cutting} & \TestCaseRef{TC-033}\newline\VerificationRef{VER-070}\\
|
|
\RequirementID{REQ-DEV-005} & Project-owned application logic shall use meaningfully named constants, enum values, or members for numeric values. Numeric literals shall appear in named definitions rather than directly in executable logic. & \gls{must} & \ReqStatusOpen & \NoVersion & \emph{Cross-cutting} & \TestCaseRef{TC-066}\newline\VerificationRef{VER-079}\\
|
|
\RequirementID{REQ-DEV-006} & The project shall use \texttt{0.feature.revision-alpha}: completed document/code revisions advance revision, and a completed feature release advances feature and resets revision. A build shall identify the exact architectural baseline it implements even if the report subsequently advances. & \gls{must} & \ReqStatusOpen & \NoVersion & \emph{Cross-cutting} & \TestCaseRef{TC-067}\newline\VerificationRef{VER-080}\\
|
|
\RequirementID{REQ-DEV-007} & Normal application titles and package-folder labels shall show the implemented baseline as \texttt{0.feature.revision-alpha} without a commit hash; later report revisions shall not relabel an existing package. & \gls{must} & \ReqStatusOpen & \NoVersion & \emph{Cross-cutting} & \TestCaseRef{TC-067}\newline\VerificationRef{VER-103}\\
|
|
\RequirementID{REQ-DEV-008} & About shall show the implemented baseline followed by a Git-generated shortened checkpoint, retain the full checkpoint in details and build metadata, and identify clean, modified or unavailable source state truthfully. & \gls{must} & \ReqStatusOpen & \NoVersion & \emph{Cross-cutting} & \TestCaseRef{TC-067}\newline\VerificationRef{VER-104}\\
|
|
\end{tabularx}
|
|
|
|
Verification uses source/design review and build checks;
|
|
they need no artificial user-story or use-case mapping. Prefer composition
|
|
and explicit borrowed references where they express the actual relationship.
|
|
The depth rule is a ceiling, not a target: concrete host/module classes remain
|
|
\texttt{final}; the provider implementation realizes its interface at two levels.
|
|
|
|
\clearpage
|
|
\subsection{Performance Requirements}
|
|
\index{requirement!performance}
|
|
The interaction rule below avoids coupling each pointer movement to a full
|
|
LaTeX run. A measurable response-time threshold awaits representative samples
|
|
and stakeholder review.
|
|
|
|
\begin{tabularx}{\linewidth}{@{}L{2.05cm}Y L{1.55cm}L{1.5cm}L{1.7cm}L{2.4cm}L{2.5cm}@{}}
|
|
\caption{Provisional Performance Requirements\label{Table:PerformanceRequirements}}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\
|
|
\midrule\endfirsthead
|
|
\multicolumn{7}{l}{\small\itshape Provisional Performance Requirements (continued)}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\\midrule\endhead
|
|
\midrule\multicolumn{7}{r}{\small\itshape Continued on next page}\\\endfoot
|
|
\bottomrule\endlastfoot
|
|
\RequirementID{REQ-P-001} & During a supported drag the application shall show geometric feedback without waiting for LaTeX. After a successful Save, integrated preview shall compile the saved revision in the background rather than launch compilation for pointer movement, pauses or release. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-002} & \TestCaseRef{TC-017}\newline\VerificationRef{VER-071}\\
|
|
\end{tabularx}
|
|
|
|
\subsection{Constraint Requirements}
|
|
\index{requirement!constraint}
|
|
A constraint requirement limits an acceptable solution or operating
|
|
environment rather than describing a user action. The template gives mandated
|
|
technologies, dependencies, and solution boundaries as examples. The current
|
|
explicit operating constraint is \RequirementRef{REQ-C-001}: the supported core
|
|
workflow must work without a network service.
|
|
|
|
The configured local \gls{latex} toolchain is already required by
|
|
\RequirementRef{REQ-F-002}, while \RequirementRef{REQ-F-003} and
|
|
\RequirementRef{REQ-F-005} limit graphical editing to a documented \gls{tikzsubset}
|
|
and require feedback for unsupported constructs. These are recorded once under
|
|
the behavior they constrain rather than duplicated as C requirements. The
|
|
single-developer schedule is a project constraint in
|
|
\ChapterRef{DevelopmentPlan}, not a product behavior to test.
|
|
Other product constraints will be added only when their scope and acceptance
|
|
checks are clear enough for review.
|
|
|
|
\begin{tabularx}{\linewidth}{@{}L{2.05cm}Y L{1.55cm}L{1.5cm}L{1.7cm}L{2.4cm}L{2.5cm}@{}}
|
|
\caption{Provisional Constraint Requirements\label{Table:ConstraintRequirements}}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\
|
|
\midrule\endfirsthead
|
|
\multicolumn{7}{l}{\small\itshape Provisional Constraint Requirements (continued)}\\
|
|
\toprule\textbf{ID} & \textbf{Candidate requirement} & \textbf{Priority} & \textbf{Status} & \textbf{In Version} & \textbf{Use case(s)} & \textbf{Test / verification}\\\midrule\endhead
|
|
\midrule\multicolumn{7}{r}{\small\itshape Continued on next page}\\\endfoot
|
|
\bottomrule\endlastfoot
|
|
\RequirementID{REQ-C-001} & The core open, preview, graphical-edit, and save workflow for a supported local document shall function without access to a network service. & \gls{must} & \ReqStatusOpen & \NoVersion & \UseCaseRef{UC-001}, \UseCaseRef{UC-002}, \UseCaseRef{UC-003} & \TestCaseRef{TC-010}\newline\VerificationRef{VER-072}\\
|
|
\end{tabularx}
|
|
\normalsize
|
|
\end{landscape}
|
|
|
|
\noindent\textbf{Version convention.} As in the course template, \textbf{In
|
|
Version} records the first controlled implementation version that contains a
|
|
completed requirement. All current entries are Open and therefore show
|
|
\NoVersion. Test-case links point to proposed procedures in
|
|
\ChapterRef{Tests}, not completed evidence.
|
|
|
|
\section{Class Naming Interpretation}\label{Section:ClassNaming}
|
|
The literal lowercase prefix is \texttt{tkr}. The main name describes the
|
|
class's role; an optional PascalCase specification identifies a concrete
|
|
specialization. For example, \texttt{tkrMainWindow} has no specification suffix,
|
|
and \texttt{tkrTikzParserExplicit} identifies the explicit-coordinate parser.
|
|
Third-party classes such as \texttt{QObject} retain their vendor names; shared
|
|
structs and enums retain the coding guide's PascalCase convention.
|
|
|
|
A future hypothetical pair \texttt{tkrDiagramItem} and
|
|
\texttt{tkrDiagramItemRectangle} illustrates the main-name/suffix convention.
|
|
Those classes do not exist in this scaffold. A suffix describes specialization;
|
|
it does not by itself establish C++ inheritance. The current parser has no
|
|
project-defined base class, and this naming change introduces none.
|
|
|
|
Where inheritance is justified, the maximum is main/base, child, and
|
|
grandchild: two levels after the main class. A fourth project-defined level
|
|
is outside the agreed limit. New levels require an actual substitutable
|
|
specialization, rather than being added to reach the maximum. Current code,
|
|
build lists, and diagrams use the prefixed names. Native compilation passed
|
|
on October 20; the complete proposed developer reviews remain unverified.
|
|
|
|
\section{Initial Explicit-Coordinate Subset}\label{Section:ExplicitSubset}
|
|
Vincent selected explicit coordinates and individual drawing commands for
|
|
the initial feasibility tests on October 1, 2026. The boundary below makes
|
|
that choice reproducible. It specifies initial test inputs; subset parsing
|
|
and display have limited evidence in Section~\ref{Section:SegmentDisplayCheck},
|
|
while product verification remains pending. Broader coverage of equivalent TikZ
|
|
syntax remains a product goal, and this subset is not a required generation
|
|
format for all future input diagrams.
|
|
|
|
\begin{tabularx}{\linewidth}{@{}L{3.0cm}Y@{}}
|
|
\caption{Initial Editable Syntax Boundary\label{Table:ExplicitSubset}}\\
|
|
\toprule\textbf{Feature} & \textbf{Initial test boundary}\\
|
|
\midrule\endfirsthead
|
|
\toprule\textbf{Feature} & \textbf{Initial test boundary}\\\midrule\endhead
|
|
\bottomrule\endfoot
|
|
Coordinates & Two-dimensional absolute Cartesian pairs; each component is
|
|
an integer or decimal literal with an explicit \texttt{cm} unit. Negative and
|
|
zero values are included. No expressions or variable references.\\
|
|
Straight segments & One \texttt{\textbackslash draw} command containing two
|
|
coordinates joined by \texttt{--}; a body drag translates both coordinates,
|
|
while an endpoint drag changes only the selected coordinate.\\
|
|
Arrows & The same straight segment with \texttt{->}, \texttt{<-}, or
|
|
\texttt{<->}; preserve the arrow option and direction during editing.\\
|
|
Rectangular boxes & One \texttt{\textbackslash draw} command using
|
|
\texttt{rectangle} between two opposite corners. Translate both corners
|
|
equally; resizing is outside the first workflow.\\
|
|
Appearance and layout & Solid black outlines with default stroke width or
|
|
the explicit option \texttt{line width=0.6pt}; no drawing transformations,
|
|
custom styles, fills, or text. Each movable element has its own command.\\
|
|
Source and wrapper & Preserve comments, whitespace, command order, and
|
|
unrelated content. Reference files use a \texttt{tikzpicture} environment
|
|
and a fixed bounding-box declaration for comparison; that declaration is
|
|
calibration data, not a movable element.\\
|
|
\end{tabularx}
|
|
|
|
Named coordinates, nodes and anchors, relative or polar coordinates,
|
|
transformations, calculated expressions, custom macros, and loops are later
|
|
coverage candidates. They may produce the same visible geometry but need
|
|
additional source mapping and edit semantics~\cite{TikZManual}. Until an
|
|
interpretation is supported, \RequirementRef{REQ-F-005} governs feedback and
|
|
source preservation. Successful LaTeX rendering alone does not establish
|
|
that a construct can be edited safely. Vincent reports that Professor
|
|
Muresan has diagram examples that can inform later syntax coverage; these
|
|
examples have not yet been supplied for this test corpus.
|
|
|
|
\section{Evidence and Review Boundaries}
|
|
The graphical-editor concept motivates the workflow. Vincent's recollection
|
|
motivates candidate selection and movement behavior; the professor's Qt
|
|
recommendation does not itself approve these requirements. Qt Graphics View
|
|
documents scene items and pointer interaction~\cite{QtGraphicsView}; QProcess
|
|
documents launching external programs~\cite{QtProcess}. These sources inform
|
|
feasibility, not stakeholder acceptance. External compiler invocation must be
|
|
reviewed against \RequirementRef{REQ-S-001}. The LaTeX
|
|
Project documents the underlying authoring ecosystem~\cite{LatexDocumentation}.
|
|
The object-oriented and class-organization candidates reflect Vincent's
|
|
readability preference and design discussion, not an instructor-approved
|
|
coding mandate. The offline operating constraint is a proposal derived from the local-desktop
|
|
direction and private-document driver in \ChapterRef{TeamDeclaration}; it also
|
|
awaits stakeholder confirmation.
|
|
|
|
Before baseline, review supported constructs and manipulation gestures,
|
|
preview timing, error recovery, dependency handling, save behavior, security, priority, and
|
|
observable test criteria with Vincent and Professor Muresan. Acceptance
|
|
examples are proposed checks, not test results. TikZ's documented coordinates
|
|
and paths provide a basis for selecting the first subset~\cite{TikZManual}.
|
|
The initial test syntax is specified in Section~\ref{Section:ExplicitSubset}.
|
|
Supported zoom range, comparison tolerances, quantitative targets, and later
|
|
syntax coverage remain open. Additional quality and constraint requirements can be added when
|
|
evidence supports them.
|