1. Literature
The foundational physics and numerical methods for aircraft lightning zoning are drawn from a core set of publications and working notes produced by the MIT Aerospace Plasma Group:
Numerical Simulation of the Lightning Swept Stroke for the Zoning of Unconventional Aircraft
Numerical Simulation of the Lightning Swept Stroke: Application to the Results From the NASA Storm Hazards Program
A Physics-Based Approach to Aircraft Lightning Zoning: Zone 2
Physical Interpretation of Swept Stroke Data
Mapping of Swept Stroke Physical-Quantities to Zoning Diagrams
An End-to-End Simulation-Based Workflow for Zoning
A Physics-Based Approach to Aircraft Lightning Zoning: Initial Attachment
Pipeline converting raw LaTeX source papers into an AI agent skill and thematic reference library.
- ◆ Started with a subset of prior literature published by the MIT Aerospace Plasma Group on swept-stroke and zoning physics.
- ◆ Converted the papers via the multi-stage ingestion pipeline into the
check-literatureagent skill for fast model and parameter reference. - ◆ The skill actively flags and records potential gaps in the literature whenever published sources lack necessary implementation details.
2. Agent Strategy
- ◆ This will be a complex codebase, so sub-agents will be used for larger tasks. Conversations will be limited to a single backlog task per chat.
- ◆ Using Backlog to manage tasks.
- ◆ Using
AGENTS.mdto instruct agents to follow coding best practices and provide guidance on managing sub-agents. - ◆ Started with a long preparation and planning phase to get off to a good start.
- ◆ Agents commit changes and I review them. Tests will be used to verify larger change sets that I cannot read in full.
3. Skills, Tools, and Restrictions
Skills
Agents query the literature instead of assuming physics; unanswered questions are logged, not guessed.
The agent never runs the simulation toolkit itself.
Tools
Task board behind every agent hand-off.
Coding preferences and sub-agent management rules.
Parallel workers, one task and file set each.
Red–green–refactor loop for numerical code.
Kill switch for a runaway agent.
Zone colours, colour maps and export settings for later visualisation scripts.
Agent commits are attributed separately from mine.
pi() { GIT_AUTHOR_NAME="Pi Agent" GIT_AUTHOR_EMAIL="pi@agent.local" command pi "$@"; } Restrictions
Agents can read the project and their own tooling, but can only modify the repository they work in.
4. Architectural Decisions
Overall Structure
Existing tools produce the field and airflow simulations; the toolkit turns them into a zoning diagram.
- ◆ Meshing, electrostatics and airflow are solved with existing tools, not rebuilt.
- ◆ Each stage saves its results to files, so any stage can be re-run on its own (e.g. tweak the zoning without repeating the simulations).
- ◆ Command-line tool, built to run on GPUs on a workstation or cluster. Target: under an hour per aircraft.
Choice of Language
Two options were tested head-to-head on the same core simulation loop, with about a day of work each, on two GPUs.
Familiar, readable, strong testing tools. Speed: 1×.
Single fast language. Speed: 1.6×.
- ◆ Both gave correct results and ran on both GPUs.
- ◆ The rule set in advance: pick Python unless Julia is more than twice as fast. It was not, so Python won.
- ◆ The slow parts came from the algorithm, not the language, so they will be fixed in the method itself.