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,24 @@
# Focused use-case diagrams
Editable TikZ input fragments for UC-001 through UC-009, included through
`documents/latex/tkrUseCases.tex` in both report editions.
Each diagram retains one actor, one existing goal/ID, and the TikZRefinery
boundary. Dotted connectors attach notes summarizing the specification;
they do not represent activity transitions or include/extend relationships.
Goal IDs and captions link back to specification tables. Tables link to the
overview and focused figures; the overview's goals also link to the tables.
These views describe proposed product behavior, not implementation evidence.
The separate diagrams under `../design-diagrams/` describe the current scaffold
and separately labelled planned transaction activity. UC-004 uses the same
shared styles, boundary, note panels and report scaling as the other goals.
These diagram fragments introduce no implementation claims. Build the complete report with TinyTeX;
separate diagram PDFs are not maintained.
November 19 adds planned UC-007 provider choice, UC-008 update handling and
UC-009 creation. The actor uses UML's rectangular actor notation; goal
associations and dotted note attachments use orthogonal routes. Placement,
New/Save As and update mechanisms remain open. Existing IDs are retained.
UC-005 (attached labels) and UC-006 (obscured selection) were added for Milestone 2. Both retain the shared styles, actor/goal, boundary, three note panels, dotted annotations and reciprocal links. Their behavior is reviewed design, not implemented evidence.
@@ -0,0 +1,12 @@
% Actor-goal views: solid actor associations and dotted explanatory note links.
\tikzset{
ucActor/.style={draw=tkrGray,rounded corners=2pt,fill=gray!10,
text width=1.8cm,align=center,minimum height=0.9cm,font=\small},
ucGoal/.style={ellipse,draw=tkrBlue,thick,fill=tkrBlue!8,
text width=6.3cm,align=center,minimum height=1.3cm,font=\small},
ucNote/.style={draw=tkrGray,fill=gray!4,align=left,text width=8.5cm,
inner sep=7pt,font=\small},
ucBoundary/.style={draw=tkrBlue,thick,rounded corners=3pt},
ucAssociation/.style={draw=tkrGray,thick},
ucAnnotation/.style={draw=tkrGray,densely dotted,thick}
}
@@ -0,0 +1,27 @@
\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-001}\\Open and preview a diagram};
\node[ucNote,below=0.7cm of goal] (normal) {
\textbf{Main interaction}\par
Open or the Files page's Open action uses the same unsaved-work guard.
The author selects a readable local source file. TikZRefinery reads it,
preserves source if provider support is missing/incompatible. The planned compiled preview prepares dependencies, compiles with the configured local
toolchain outside the UI thread, and displays the rendered diagram.
};
\node[ucNote,below=0.55cm of normal] (alternative) {
\textbf{Alternative: compilation fails}\par
Show diagnostics and retain source for correction. Keep any last successful
preview visible, clearly identified as a prior result.
};
\node[ucNote,below=0.55cm of alternative] (outcome) {
\textbf{Outcome}\par
A rendered preview or an explicit failure state is visible.
The input file remains unchanged.
};
\draw[ucBoundary] (2,-1 |- outcome.south) ++(0,-0.45) rectangle (12.1,1.65);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.25) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- ++(0,-0.25) -| (normal.north);
\draw[ucAnnotation] (goal.east) -- (11.9,0) |- (alternative.east);
\draw[ucAnnotation] (goal.west) -- (2.15,0) |- (outcome.west);
\end{tikzpicture}
@@ -0,0 +1,29 @@
\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-002}\\Move or resize an object};
\node[ucNote,below=0.7cm of goal] (normal) {
\textbf{Main interaction}\par
The author drags supported geometry and sees immediate canvas feedback.
Change only necessary coordinates; retain unrelated source. Future compilation follows successful Save, not pointer movement or release.
};
\node[ucNote,below=0.55cm of normal] (gestures) {
\textbf{Supported gestures}\par
Line or arrow body: translate both endpoints equally.\par
Planned endpoint handle: move only the selected endpoint.\par
Rectangle: body move or corner resize; crossing flips around the fixed corner.
Retain $0.01$ cm minimum dimensions and constrain boundary release.
Zoom does not change source coordinates.
};
\node[ucNote,below=0.55cm of gestures] (alternative) {
\textbf{Alternative and outcome}\par
If mapping or provider operations are unavailable, block the edit and explain why. No silent provider substitution.
The canvas, source, and compiled preview agree on the supported edit,
or the original source remains intact.
};
\draw[ucBoundary] (2,-1 |- alternative.south) ++(0,-0.45) rectangle (12.1,1.65);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.25) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- ++(0,-0.25) -| (normal.north);
\draw[ucAnnotation] (goal.east) -- (11.9,0) |- (gestures.east);
\draw[ucAnnotation] (goal.west) -- (2.15,0) |- (alternative.west);
\end{tikzpicture}
@@ -0,0 +1,24 @@
\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-003}\\Save revised source};
\node[ucNote,below=0.7cm of goal] (normal) {
\textbf{Main interaction}\par
With a revised source document open for review, the author chooses Save.
TikZRefinery writes the reviewed source locally and reports success.
};
\node[ucNote,below=0.55cm of normal] (alternative) {
\textbf{Alternative: write fails}\par
Report the failure and keep the unsaved revision available.
};
\node[ucNote,below=0.55cm of alternative] (outcome) {
\textbf{Successful outcome}\par
The saved TikZ source can be reopened and compiled with the local toolchain.
Unrelated source and session history are preserved. External compilation is manual today; planned integration schedules compilation only after successful Save.
};
\draw[ucBoundary] (2,-1 |- outcome.south) ++(0,-0.45) rectangle (12.1,1.65);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.25) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- ++(0,-0.25) -| (normal.north);
\draw[ucAnnotation] (goal.east) -- (11.9,0) |- (alternative.east);
\draw[ucAnnotation] (goal.west) -- (2.15,0) |- (outcome.west);
\end{tikzpicture}
@@ -0,0 +1,28 @@
\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-004}\\Undo or redo an edit};
\node[ucNote,below=0.7cm of goal] (normal) {
\textbf{Main interaction}\par
The author chooses Undo or Redo. Cancel any active drag preview, restore
the exact recorded source, update history and saved/unsaved state, and
refresh the canvas from the accepted source.
};
\node[ucNote,below=0.55cm of normal] (alternative) {
\textbf{Alternative: history unavailable or restoration fails}\par
Disable an unavailable action. If restoration fails, report the failure
and preserve source and history position. A later compilation failure after successful Save
reports diagnostics without reversing an accepted restoration.
};
\node[ucNote,below=0.55cm of alternative] (outcome) {
\textbf{Outcome}\par
One completed edit is undone or redone with exact source bytes.
Disk remains unchanged until Save; the interface shows whether current
source differs from the saved baseline.
};
\draw[ucBoundary] (2,-1 |- outcome.south) ++(0,-0.45) rectangle (12.1,1.65);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.25) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- ++(0,-0.25) -| (normal.north);
\draw[ucAnnotation] (goal.east) -- (11.9,0) |- (alternative.east);
\draw[ucAnnotation] (goal.west) -- (2.15,0) |- (outcome.west);
\end{tikzpicture}
@@ -0,0 +1,19 @@
\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-005}\\Reposition an attached label};
\node[ucNote,below=0.7cm of goal] (normal) {
\textbf{Main interaction}\par Select the label and preview movement in either canvas axis. Its syntax binding prepares local placement changes; the document accepts source and history together, then the canvas refreshes.
};
\node[ucNote,below=0.55cm of normal] (alternative) {
\textbf{Alternative: Cancellation or unsupported movement}\par Cancel restores the preview. Unsupported movement is unavailable with a reason; a completed rejected edit shows one red-accented message. Preserve shared definitions and host geometry.
};
\node[ucNote,below=0.55cm of alternative] (outcome) {
\textbf{Outcome}\par One accepted local edit retains attachment and unrequested text, rotation, anchor, alignment and styling. Undo restores the complete prior source; drag distance never implies detachment.
};
\draw[ucBoundary] (2,-1 |- outcome.south) ++(0,-0.45) rectangle (12.1,1.65);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.25) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- ++(0,-0.25) -| (normal.north);
\draw[ucAnnotation] (goal.east) -- (11.9,0) |- (alternative.east);
\draw[ucAnnotation] (goal.west) -- (2.15,0) |- (outcome.west);
\end{tikzpicture}
@@ -0,0 +1,19 @@
\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-006}\\Select an obscured element};
\node[ucNote,below=0.7cm of goal] (normal) {
\textbf{Main interaction}\par Right-click near objects, or draw a rectangle and right-click inside it. Browse readable candidate entries; hovering highlights each corresponding object. Choose an entry to select it.
};
\node[ucNote,below=0.55cm of normal] (alternative) {
\textbf{Alternative: Crowded canvas or no candidate}\par Use Select area to start a region over existing objects. Include partial intersections and obscured hosts. Escape clears the region; no matches makes no source change.
};
\node[ucNote,below=0.55cm of alternative] (outcome) {
\textbf{Outcome}\par The requested element is accessible without moving blockers. Labels have ordinary hit priority; menu selection can reach their hosts. Region/menu interaction creates no source edit or history entry.
};
\draw[ucBoundary] (2,-1 |- outcome.south) ++(0,-0.45) rectangle (12.1,1.65);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.25) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- ++(0,-0.25) -| (normal.north);
\draw[ucAnnotation] (goal.east) -- (11.9,0) |- (alternative.east);
\draw[ucAnnotation] (goal.west) -- (2.15,0) |- (outcome.west);
\end{tikzpicture}
@@ -0,0 +1,11 @@
\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-007}\\Choose a plugin/provider};
\node[ucNote,below=0.7cm of goal] (normal) {\textbf{Explicit choice}\par Show compatible candidate name, version, location and capabilities. Duplicate IDs require a choice; shape-family alternatives may coexist.};
\node[ucNote,below=0.7cm of normal] (alternative) {\textbf{Retain bindings}\par Bind each element to its chosen instance/version. Changing defaults does not replace an active provider. Incompatible/unresolved candidates remain inactive with a reason.};
\draw[ucBoundary] (2,-1 |- alternative.south) ++(0,-0.4) rectangle (12.2,1.5);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.1) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- (normal.north);
\draw[ucAnnotation] (goal.east) -- (12,0) |- (alternative.east);
\end{tikzpicture}
@@ -0,0 +1,11 @@
\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-008}\\Handle an available update};
\node[ucNote,below=0.7cm of goal] (normal) {\textbf{Normal update point}\par Validate staged updates at startup before opening/restoring diagrams. During a session, stage separately and recheck whether the provider is unused.};
\node[ucNote,below=0.7cm of normal] (alternative) {\textbf{Keep work available}\par Unused: activate safely. In use: nonmodal Later or Restart and update. Retain the working version on failure; restart respects unsaved work.};
\draw[ucBoundary] (2,-1 |- alternative.south) ++(0,-0.4) rectangle (12.2,1.5);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.1) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- (normal.north);
\draw[ucAnnotation] (goal.east) -- (12,0) |- (alternative.east);
\end{tikzpicture}
@@ -0,0 +1,11 @@
\begin{tikzpicture}
\node[ucActor] (author) at (0,0) {\guillemotleft actor\guillemotright\\TikZ author};
\node[ucGoal] (goal) at (7,0) {\UseCaseRef{UC-009}\\Create using a plugin shape};
\node[ucNote,below=0.7cm of goal] (normal) {\textbf{Reviewed, planned workflow}\par Open Shapes from the persistent sidebar strip. Choose a provider entry; click for defaults or drag to size. The host prepares insertion and the document accepts before assigning identity. Select the new element and return to selection.};
\node[ucNote,below=0.7cm of normal] (alternative) {\textbf{Cancellation, rejection and prerequisites}\par Escape preserves source and returns to selection. Rejection explains once per attempt and retains the tool for retry. New/Save As, insertion contexts and exact API details remain open; no creation implementation is claimed.};
\draw[ucBoundary] (2,-1 |- alternative.south) ++(0,-0.4) rectangle (12.2,1.5);
\node[anchor=west,font=\bfseries,text=tkrBlue] at (2.3,1.1) {TikZRefinery};
\draw[ucAssociation] (author.east) -- (goal.west);
\draw[ucAnnotation] (goal.south) -- (normal.north);
\draw[ucAnnotation] (goal.east) -- (12,0) |- (alternative.east);
\end{tikzpicture}