Skip to content

Python Metaprogramming Capstone Docs

Guide Maps

graph LR
  family["Python Programming"]
  program["Python Meta-Programming"]
  guide["Capstone docs"]
  section["Docs"]
  page["Python Metaprogramming Capstone Docs"]
  proof["Proof route"]

  family --> program --> guide --> section --> page
  page -.checks against.-> proof
flowchart LR
  orient["Read the guide boundary"] --> inspect["Inspect the named files, targets, or artifacts"]
  inspect --> run["Run the confirm, demo, selftest, or proof command"]
  run --> compare["Compare output with the stated contract"]
  compare --> review["Return to the course claim with evidence"]

Use this page when the capstone root shows many guide files and you need one durable starting point. It combines the first-session route with the guide index so the doc set has one stable entry hub instead of two overlapping arrival pages.

First honest pass

  1. Run make manifest.
  2. Read README.md.
  3. Read ARCHITECTURE.md.
  4. Read DESIGN_BOUNDARIES.md.
  5. Open src/incident_plugins/framework.py, then fields.py, then actions.py.
  6. Read tests/test_registry.py and tests/test_fields.py.
  7. Stop there unless your current question clearly requires invocation or CLI detail.

What the first pass should settle

Step Main answer
make manifest what the runtime exposes publicly without invoking plugin behavior
README.md what this repository is for and which commands matter
ARCHITECTURE.md which file owns each mechanism and why
DESIGN_BOUNDARIES.md how definition-time, attribute-time, and invocation-time behavior differ
framework.py, fields.py, actions.py where registration, field behavior, and action wrapping actually live
test_registry.py, test_fields.py what proof already exists for class creation and descriptor ownership

Start here by question

"What is this project, and how should I enter it?"

"Which file owns which mechanism?"

"Which command should I run first?"

"How do I inspect the public runtime shape?"

"How do wrappers, fields, and constructors work?"

"How do I review or extend the project safely?"

"How do I read the saved review bundles?"

Escalation rule

Use the smallest guide that answers the current question, then stop.

  • Move to source files only after the guide names the owning file.
  • Move to tests only after the guide names the claim that still needs proof.
  • Move to saved bundles only when another reviewer needs a durable artifact.

Good stopping point

Stop after the first pass when you can answer:

  • what the runtime exports without invocation
  • which file owns registration
  • which file owns field behavior
  • which file owns action wrapping
  • which proof file you would open first for registration or field questions