AGENTS.md instructions for /home/clive/PycharmProjects/Orac <INSTRUCTIONS> Python Follow…
- User
AGENTS.md instructions for /home/clive/PycharmProjects/Orac
Follow standard Python conventions unless otherwise specified.
-
Module structure:
-
A module docstring MUST appear at the very top of the file describing its purpose.
-
Immediately following the module docstring, include comment-based metadata headers:
Author: Clive Bostock
Date:
Description:
-
-
Command-line scripts:
- Use argparse for command-line parameters.
-
Code quality:
- Include Google-style docstrings for all new public modules, classes, and functions.
- When modifying existing public code, add missing docstrings where it is reasonable to do so within the scope of the change.
- Use type hints where appropriate.
- Favour readable, production-usable code with sensible error handling.
-
General:
- Prefer clarity over cleverness.
- Avoid unnecessary complexity.
-
For any created programs / executable scripts include provenance. If pre-existing code does not already have these, ask for confirmation before adding. Template:
Author: Clive Bostock Date: DD-Mon-YYYY Purpose: Usage:
--- project-doc ---
Orac Agent Instructions
Before making changes, read this file first.
Do not read every guardrail document automatically. Select the relevant guardrails based on the files being changed and the nature of the task.
If the task crosses multiple areas, read all relevant guardrails.
If unsure, read the stricter or more relevant document rather than guessing.
Always read
- docs/agent-guardrails/00-project-principles.md
- docs/agent-guardrails/10-architecture-boundaries.md
Database, DDL, SQL, install scripts, grants, schemas
When changing files under
resources/db/schema, read:- resources/db/schema/AGENTS.md
Also read the adjacent database context file when it exists:
- resources/db/schema/AGENT_CONTEXT.md
Read:
- docs/agent-guardrails/20-database-standards.md
Also read:
- docs/agent-guardrails/25-plsql-standards.md
when changing:
- packages
- package bodies
-
- User
<environment_context> /home/clive/PycharmProjects/Orac bash <current_date>2026-05-25</current_date> Europe/London </environment_context>
- User
Please inspect the Orac data model in resources/db/data_model/orac3.dmd, determin the abbreviations from docs/agent-guardrails/table-abbreviations.csv and add them to the CSV.
- Assistant
I’ll inspect the project guardrails first, then read the data model metadata and the current abbreviations CSV before editing it.
- Assistant
The abbreviation CSV currently has only two entries. I’m checking the Data Modeler file format now so I can extract actual table names instead of guessing them.
- Assistant
The
.dmdfile points to a Data Modeler directory tree. I found table XML files underresources/db/data_model/orac3, so next I’m mapping each table’s schema owner ID back to the schema names. - Assistant
The model carries abbreviation prefixes in the constraint/index names, mostly as the prefix before
_PK. I’m checking whether those prefixes are used elsewhere so the CSV matches existing object naming rather than the older sidecar CSV. - Assistant
There are many pre-existing uncommitted changes, including the target CSV and the newly added
orac3model files. I’m going to make a minimal edit only to the abbreviation CSV and preserve the existing changes around it. - Assistant
I found 13
orac_coretables inorac3. For rows with explicit<abbreviation>metadata I’ll use that; for the remaining rows I’ll use the existing model/schema object prefix before_pksuch asprfdfn,tmzone,orpers, andmodel_generation_presets. - Assistant
The CSV is updated. I’m doing a quick consistency pass now: checking the file content, duplicate table rows, and the final diff for the one file I touched.
- Assistant
Updated table-abbreviations.csv.
I added all 13
orac_coretables fromresources/db/data_model/orac3.dmd/orac3into the CSV, preserving the existing plugin rows. Abbreviations came from explicit Data Modeler<abbreviation>values where present, and otherwise from existing model/schema object prefixes such asprfdfn,tmzone, andorpers.Validation done:
- CSV has no duplicate
schema_name,table_namerows. - All 13 model tables are now represented.
- No tests run; this was a documentation CSV-only change.
- CSV has no duplicate
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.