102 lines
6.3 KiB
Markdown
102 lines
6.3 KiB
Markdown
# TikZRefinery - Agent Instructions
|
|
|
|
## Working relationship
|
|
- A chat may span design, implementation, documentation and review. Continue
|
|
successive work items there; new chats and compaction-based restarts are optional.
|
|
- Explain significant design choices clearly, one decision at a time when asked.
|
|
Check existing decisions before reopening settled questions.
|
|
- Distinguish discussion, approved design and authorization to implement.
|
|
Once work is authorized, complete routine steps without repeated permission
|
|
requests; raise material scope changes or unresolved design choices.
|
|
|
|
## Authority and starting context
|
|
- Follow Vincent's current instructions and the controlled project requirements.
|
|
- Before modifying the project, read README.md and these authoritative sources:
|
|
- documents/latex/tkrAIAgentRequirements.tex (AI Directives; stable filename)
|
|
- documents/latex/tkrAIAgentGuide.tex
|
|
- documents/latex/tkrReportRoadmap.tex
|
|
- Read the smallest sufficient set of affected sources; expand for dependencies
|
|
or inconsistencies. Reuse current context already established and refresh it
|
|
when sources change or the task requires it.
|
|
- When resuming work, read HANDOFF.md and verify it against files and Git state.
|
|
Its proposed next action is not new authorization to implement.
|
|
- This file is the concise entry point. Detailed requirements and procedures
|
|
remain in their controlled sources; flag conflicts rather than silently
|
|
changing rules or maintaining contradictory copies.
|
|
|
|
## Preserve work and respect scope
|
|
- Inspect Git status before editing. Preserve unrelated uncommitted changes,
|
|
user-edited examples, submissions, evidence and designated baseline packages.
|
|
- Commit or push only when explicitly authorized for the current work.
|
|
- Focused audit, coursework and workflow chats stay within their assignment.
|
|
Do not replace the main development handoff's next action merely because
|
|
the chat was forked from it; preserve that state during authorized cleanup.
|
|
- A review request authorizes investigation and findings, not automatic fixes.
|
|
|
|
## Sources, evidence and readable documentation
|
|
- Use authored TeX for report information and generated PDFs for visual checks.
|
|
Do not extract PDF text to look up requirements or design decisions.
|
|
- Put settled decisions in the appropriate requirement registers, use cases,
|
|
tests and diagrams. Preserve stable IDs and reciprocal traceability.
|
|
- Use applicable UML notation in editable TikZ; route relationships with
|
|
horizontal/vertical segments and elbows, preserving arrow/ownership semantics.
|
|
- Prefer concise requirements and TikZ diagrams to duplicated narrative.
|
|
Use linked overview/detail views when they improve understanding.
|
|
- Separate implemented behavior, planned design and verified results. Attribute
|
|
recollections, stakeholder statements, sources and assumptions accurately.
|
|
AI-generated statements are not evidence.
|
|
- Record material assistance and decisions as required by the AI guide.
|
|
- For material design/code changes, follow its bidirectional change-impact review:
|
|
update affected records or record unchanged reviews and reasoned deferrals.
|
|
- Explicit design approval authorizes routine documentation updates under
|
|
AI-REQ-017 unless narrower instructions apply. Flag unclear approval or approved
|
|
decisions left undocumented; check linked diagram contents and status. This
|
|
does not authorize code, commits, pushing or external publication.
|
|
|
|
## Implementation conventions
|
|
- Follow code/CODING_GUIDE.md and applicable Developer Requirements: tkr class
|
|
names, descriptive identifier prefixes, private m_ members, named numeric
|
|
values, separate class files, inheritance limits and explicit ownership.
|
|
- Keep responsibilities bounded. Do not add inheritance or abstractions solely
|
|
to satisfy a naming pattern or arbitrary class/file size.
|
|
- Keep code and architectural documentation aligned. Identify which side needs
|
|
correction rather than assuming either is always current.
|
|
|
|
## Builds, checks and versions
|
|
- Use existing local toolchains before downloading or installing software.
|
|
- Configure the Qt/MinGW environment as described in code/README.md, then run:
|
|
- Build: cmake --build code/build --parallel 4
|
|
- Test: ctest --test-dir code/build --output-on-failure
|
|
- Use shared TinyTeX: C:\Users\vince\Documents\Projects\Tools\LaTeX\TinyTeX
|
|
- Report build from the repository root: ./documents/build-report.ps1
|
|
- For diagram lookup use documents/DIAGRAM_INDEX.md (generated source/status/
|
|
page index); classify new figures in documents/diagram-manifest.json. An index
|
|
does not replace whole-document review for material design changes/additions.
|
|
- After material report changes, build both editions, inspect diagnostics,
|
|
render affected pages and verify layout and navigation.
|
|
- Run checks appropriate to the change; report actual results and limitations.
|
|
- For visible application increments, refresh and launch a runnable package for
|
|
Vincent's review, following current package/baseline instructions.
|
|
- After Windows computer use, send the required completion summary and reset
|
|
the CUA session to release capture bindings. Do not recapture to check the border.
|
|
- Follow the version policy in Document History and the AI guide. Read current
|
|
metadata; do not hard-code the current version or test count here.
|
|
|
|
## Reviews and continuity
|
|
- Code reviews examine defects and regressions in a defined change. Architecture
|
|
audits compare requirements, diagrams, code and test evidence in both directions;
|
|
planned features are not automatically defects.
|
|
- Report actionable findings with references, evidence and unresolved questions.
|
|
- Refresh HANDOFF.md at meaningful stopping points and before transferring
|
|
unfinished work. Include date, branch/commit, uncommitted work, verified results,
|
|
limits, open decisions and the next proposed or authorized action.
|
|
- Keep that file a concise checkpoint. Put durable decisions and historical
|
|
evidence in their authoritative records; retain a dated snapshot when stale.
|
|
|
|
## Workspace cleanup
|
|
- Keep reproducible scratch in a clearly named task-local work directory.
|
|
- Remove only verified, reproducible scratch created for the current work;
|
|
validate absolute cleanup paths and preserve anything awaiting review.
|
|
- Retain deliverables, editable sources and required evidence. Report cleanup
|
|
and intentionally retained temporary material.
|