Project Planning

Agent setup and strategic planning

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:

Reference Publications MIT Aerospace Plasma Group
Thesis · 2024 / MIT

Numerical Simulation of the Lightning Swept Stroke for the Zoning of Unconventional Aircraft

PDF
Journal · 2024 / IEEE Access

Numerical Simulation of the Lightning Swept Stroke: Application to the Results From the NASA Storm Hazards Program

DOI
Journal · 2025 / IEEE Access

A Physics-Based Approach to Aircraft Lightning Zoning: Zone 2

DOI
Supplementary · 2024 / Supplementary to IEEE Access (2025)

Physical Interpretation of Swept Stroke Data

PDF
Workshop · 2025 / EUROCAE Zoning Workshop

Mapping of Swept Stroke Physical-Quantities to Zoning Diagrams

Workshop
Conference · 2026 / ICOLSE

An End-to-End Simulation-Based Workflow for Zoning

Conference
Manuscript · 2026 / In Preparation

A Physics-Based Approach to Aircraft Lightning Zoning: Initial Attachment

In Preparation
Literature Ingestion & Skill Pipeline
MANUAL EXPORT AI SUMMARY AI REVIEW INPUT SOURCE LaTeX Papers STRUCTURED TEXT Markdown Files PER-PAPER DIGESTS Markdown Summaries KNOWLEDGE & SKILL Literature Folder & check-literature

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-literature agent 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.md to 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

check-literature Cited answer, or a logged gap
AGENT Physics question MARKDOWN SUMMARIES references/ COVERED Answer + citation NOT COVERED record_gap.sh APPEND, THEN STOP LIT_GAPS.md

Agents query the literature instead of assuming physics; unanswered questions are logged, not guessed.

collab One sub-task per turn
KEYWORD collab SPLIT Sub-tasks AGENT One sub-task unit tests, commit MANDATORY STOP User runs the big simulations FEEDBACK

The agent never runs the simulation toolkit itself.

Tools

backlog.md

Task board behind every agent hand-off.

AGENTS.md

Coding preferences and sub-agent management rules.

pi-subagents

Parallel workers, one task and file set each.

tdd

Red–green–refactor loop for numerical code.

pi-stop

Kill switch for a runaway agent.

ParaView styleguide

Zone colours, colour maps and export settings for later visualisation scripts.

git + pi wrapper

Agent commits are attributed separately from mine.

pi() { GIT_AUTHOR_NAME="Pi Agent" GIT_AUTHOR_EMAIL="pi@agent.local" command pi "$@"; }

Restrictions

nono sandbox · profile “worker” Read wide, write narrow
READ ONLY /usr/bin · /opt · ~/.local/bin ~/Desktop/MIT/PhD/16.S983 ~/.pi ~/codes/class-skills/skills/* everything else: unreadable WRITABLE . (working directory) ~/.pi/agent ~/.gitconfig · /model writes anywhere else: blocked NETWORK: UNRESTRICTED COMMANDS: UNRESTRICTED

Agents can read the project and their own tooling, but can only modify the repository they work in.

4. Architectural Decisions

Overall Structure

Toolkit pipeline Aircraft simulations in, zoning diagram out
OFF-THE-SHELF Electrostatics electric field OFF-THE-SHELF Fluid dynamics airflow THIS TOOLKIT STAGE 1 Initial attachment where lightning first strikes STAGE 2 Swept stroke how the arc sweeps over the skin STAGE 3 Zoning zoning diagram

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.

Python + NVIDIA Warp Selected

Familiar, readable, strong testing tools. Speed: 1×.

Julia

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.