Commit b0056298 authored by Vacaliuc, Bogdan's avatar Vacaliuc, Bogdan
Browse files

second prompt

parent 89ef122e
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -15,3 +15,16 @@ Under this environment, I created an initial [commit](https://code.ornl.gov/6ov/
## Prompt 1

You are working in the tasking project, bl4b-alignment-integration branch. The code uses the Experimental Physics Industrial Control System (EPICS) as its basis. The task is to analyze the implementation of the 'chis' motor scan enhancements. These enhancements are present in the `/home/controls/bl4b` folder, issue/4850 branch, and `/home/controls/common/scantools/issue/4850/` folder (scantools issue/4850 branch). Please read any git log that are appropriate. The effort is a work in progress to integrate the function of the Spyder environment scripts that are contained in `/home/controls/var/tmp/PYTHON/2026-A/*`. First with the `CHI_scan.py` script, and then progressing onward `startup/Solid_theta_alignment_low_angle_2gauss.py` under the same model. Work done in 3/31 to 4/1 made some progress. There are some observed discrepancies. I would like you to perform a thorough review of the code to gain an understanding of how the various pieces fit together. Please produce a document that explains in full detail your understanding of the project in a way that can be given to future agents to perform a series of tasks. You and I will iterate on this document until we are both satisfied that it captures the full scope of how the instrument automation performs such alignment scanning. This is a cruical step because a lot of work is planned to improve this mechanism and a good foundational understanding of the process is key. If you need a tool to analyze the code or artifacts so far, please install it yourself according to the instructions in the cross-project layer (use pixi or uv with venv). If you are missing a log file or piece of information, please ask me to fetch it for you. If you run into an issue where you need sudo, ask me to execute the line in a separate terminal.

Claude produced [analysis-chis-scan-integration.md](analysis-chis-scan-integration.md) with some uncertainties.

### Prompt 1.1

Thank you. I have made `/home/controls/scantools/main/` and `/home/controls/scantools/issue/4850/` paths available to you. The latter is the branch in question; my apology for missing it earlier. I have also cloned the repository used by the scan server at `/home/controls/css/`. On REF_L, the active scan server has this execution pattern:
```
$ ps aux | grep java
controls    2232 71.6  2.8 5274864 914004 pts/1  Sl+  Mar24 15423:21 java -jar service-scan-server-4.6.4.jar -settings /home/controls/css/phoebus.ini -settings /home/controls/bl4b/css/phoebus.ini -config /home/controls/bl4b/scan_config.xml
$ sudo file /proc/2232/cwd
/proc/2232/cwd: symbolic link to /home/controls/css/scan-server-2021-01-15
```
So I have made the `/home/controls/css/scan-server-2021-01-15/` available to you on this machine as well. Since this machine is not part of the instrument control system, the scan server cannot be run here, but perhaps you may be able to inspect the .jar files to gain an understaing. If it helps you, I have cloned the source code to "Phoebus" at '/home/controls/src/phoebus/' where the scan server source code is located in that repository at '/home/controls/src/phoebus/services/scan-server/src/main/java/org/csstudio/scan/server/'. You may continue your analysis with a more complete source code to fill in the uncertainties that you remarked about.