Files
2026-10-26 16:58:04 +01:00

9.6 KiB

Linear Stage FAT Report Instructions

These instructions apply to report work inside this Report folder and supplement the project-root AGENTS.md.

When the user asks the agent to read the instructions and create or update the report, execute this workflow end to end: inspect the available evidence, prepare the report, compile it twice, append the measurement PDFs, visually validate every page, clean the output folder, and deliver the final .tex and .pdf files. Do not stop after producing a draft.

Purpose and authoritative template

  • Use unused/Linear_Stage_FAT_Report_Template.tex as the authoritative baseline for future factory acceptance test reports for linear stages. If the template is later restored to the Report root, use that copy instead.
  • Create a new project-specific .tex file. Do not overwrite the template or a completed report unless the user explicitly requests it.
  • Keep generated report files and report-only working files inside Report. Treat Measurements, Media, ECMC, Mechanical, and other adjacent folders as read-only evidence sources unless the user separately authorizes changes.
  • Preserve the template's wording, section order, tables, fonts, spacing, captions, page layout, and overall formatting. Change template text only where verified project-specific information must be inserted.

Evidence and privacy gate

  • Follow the data-privacy stop rule in the root AGENTS.md before processing sensitive information.
  • Read the complete relevant source files before drawing conclusions.
  • Use this evidence priority: signed test records and raw data; exact manufacturer documentation; approved project requirements and procedures; configuration files and logs; photographs; operator notes.
  • Record the source of every important model number, setting, limit, result, uncertainty, and conclusion.
  • Never infer physical performance from commanded motion, a writable PV, nominal encoder resolution, or a configuration file alone.
  • Preserve uncertainty and conflicts, but never write TBD in the issued report and never invent a value. Leave an unsupported optional value blank or omit only the value while preserving the surrounding layout. State a material evidence limitation objectively when it affects interpretation.

Required preparation

  1. Inventory the available evidence by exact filename and file type.
  2. Confirm that the six required report images are present in ../Media with the exact basenames I1 through I6 and one supported extension: .jpg, .jpeg, .png, or .pdf.
  3. Confirm the exact stage, encoder, motor or actuator, drive, encoder interface, controller, firmware or revision where relevant, measurement system, calibration status, and test dates. If no exact stage model is available, omit or leave the model value blank; do not guess it and do not insert a placeholder.
  4. Extract the applicable acceptance criteria before evaluating results.
  5. Separate measured results, calculated values, manufacturer specifications, assumptions, and open points.
  6. Confirm which tests apply. Do not mark checklist fields, including with N/A; if applicability must be explained, state it in the report narrative without completing the user checklist.

Report construction rules

  • Do not leave TBD, template instructions, or placeholder text anywhere in the final source or PDF. Populate supported values from evidence; otherwise leave optional values blank or omit only the unsupported value without disturbing the template layout.
  • Use SI units by default and preserve original units where traceability requires them.
  • Distinguish command resolution, encoder resolution, minimum incremental motion, repeatability, accuracy, stability, and measurement uncertainty.
  • State test direction, orientation, payload, travel, velocity, acceleration, settling criterion, cycle count, point count, sampling conditions, and environmental conditions when applicable.
  • Keep the five-column checklist format: Item | Checklist Item | Yes | No | Remarks.
  • Leave every checklist response completely blank. Do not select Yes or No, add checkmarks or crosses, complete remarks, or infer checklist completion from the evidence. Only the user may fill the checklists.
  • Size the Checklist Item column consistently to the longest checklist sentence; let Remarks fill the remaining width.
  • Keep checklist headings with their tables. Do not leave orphaned subsection headings.
  • Verify every image visually. Captions must describe what the image actually shows. Do not infer a test setup from a component close-up.
  • List every raw and analysis file by exact basename using \path{...}. Counts alone are insufficient.
  • Integrate measured results into Conclusions; do not create a separate chapter that duplicates them.
  • Conclusions must compare measured values with acceptance criteria and state the disposition. Avoid unsupported terms such as “excellent.”
  • Include deviations, unresolved risks, required retests, responsible owner, and due date where applicable.
  • Update Document History for each issued revision.

Figures and appendices

  • Use project-relative paths such as ../Media/... and ../Measurements/....
  • The image basename and content mapping is mandatory:
    • I1: overall linear-stage image; this is always the first image and must appear on page 1.
    • I2: encoder.
    • I3: motor or actuator.
    • I4: coupling.
    • I5: general FAT setup, view 1.
    • I6: general FAT setup, view 2.
  • The user must provide the images with these exact basenames. Accept only .jpg, .jpeg, .png, or .pdf extensions unless the template is explicitly revised.
  • Match image basenames case-sensitively in the report source. Do not use descriptive filenames, suffixes, or numbering variants such as I1_stage, image1, or I01.
  • Do not guess, rename, or substitute a different image when I1 through I6 is missing. Leave the generated missing-image placeholder visible, report the missing basename to the user, and wait for the correct file when the report is intended for issue.
  • Visually inspect all six images before accepting the mapping. A filename alone does not prove the content is correct.
  • Preserve original evidence files. Do not crop, edit, or overwrite source photographs or measurement PDFs unless explicitly authorized.
  • Confirm each figure label and every \ref{...} after compilation.
  • Attach every PDF in ../Measurements at the end of the report as complete appendix pages. Preserve the original page content, list the PDFs in the same order as their inclusions, and use a logical evidence order such as positioning followed by horizontal and vertical straightness.
  • Scale appended PDF pages uniformly when necessary so that titles, plots, analysis tables, and page edges are fully visible. Do not annotate, crop, or alter the measurement PDFs.
  • Do not silently omit failed, superseded, or anomalous runs. Identify their status and explain their exclusion or disposition.

Validation workflow

  1. Compile the project-specific .tex file with the built-in LaTeX compiler when available. Otherwise, from Report, create a temporary build directory and use pdflatex -interaction=nonstopmode -halt-on-error -synctex=0 -aux-directory=build <report>.tex. This keeps .aux and .log files out of the main report folder and prevents .synctex.gz generation.
  2. Run at least two LaTeX passes when labels or references changed.
  3. Treat compilation, content verification, and visual verification as separate checks.
  4. Inspect the log for errors, undefined references, missing files, and overfull boxes.
  5. Render every report page to images and inspect margins, tables, line wrapping, headings, captions, page numbers, and appendix transitions.
  6. Confirm that every filename printed in the report exists in the evidence inventory.
  7. Search the final .tex and rendered PDF for TBD, placeholder instructions, and unintended filled checklist fields; none may remain.
  8. Confirm that every PDF from ../Measurements is attached at the end and that no appended page is clipped.
  9. Confirm that no files outside Report were modified.
  10. After successful validation, remove the temporary build directory and all temporary render files. The main Report folder must not contain .aux, .log, .synctex, or QA image files.
  11. Keep the final project-specific .tex, final PDF, and AGENTS.md in the Report root. Create or retain unused and move superseded reports, unused templates, and report-only temporary artifacts there. Do not delete or move source evidence from adjacent folders.
  12. Deliver both the project-specific .tex source and compiled PDF. State the final page count, appended measurement PDFs, completed validation, and any unverified runtime, hardware, calibration, or deployment condition explicitly.
  13. Use one decimal place for all values expressed in microns (µm).

Minimum completion criteria

A report is not complete until:

  • no TBD, template instructions, or placeholder text remains;
  • all checklist response fields remain blank for the user;
  • exact hardware identity and source revisions are recorded;
  • acceptance criteria are traceable;
  • results and uncertainty are reported with units;
  • every conclusion is supported by evidence;
  • raw and analysis filenames are listed exactly;
  • images I1 through I6 exist, appear in the required order, and match their assigned subjects;
  • figures and captions match;
  • references resolve;
  • every PDF in Measurements is appended completely at the end without clipping;
  • the Report root contains no LaTeX auxiliary or temporary QA files;
  • the latest PDF compiles and passes full-page visual inspection; and
  • changes are confined to the authorized folder boundary.