# Bane's Lab > Bane's Lab builds structured AI collaboration systems — Pattern Abstract Grammar (PAG), a disciplined methodology, and an architecture and ontology for software written with AI. ## Pages - [Home](https://banes-lab.com/): Bane's Lab builds structured AI collaboration systems — Pattern Abstract Grammar (PAG), a disciplined methodology, and an architecture and ontology for software written with AI. - [PAG](https://banes-lab.com/pag): Pattern Abstract Grammar (PAG) is a structured instruction format for AI systems: a formal grammar grounded in a reasoning ontology, a guide, genesis stages, structure declarations and the template families a reasoning loop walks. - [Guide](https://banes-lab.com/pag/guide): A document is written after five questions are answered, in the order five questions draws, and the answers become its parts: the objective, each node's purpose… - [Orchestration](https://banes-lab.com/pag/orchestration): Orchestration is the part of a document that says how work is ordered and where it runs in parallel, and the grammar refuses to let that be implied. A document… - [Patterns](https://banes-lab.com/pag/patterns): Each verb carries a semantic contract, and the contract is what a document relies on rather than what any particular tool happens to do: a read leaves its… - [Keywords](https://banes-lab.com/pag/keywords): The keywords fall into categories by the job they do in a line, and every keyword is uppercase because that is the form the model has seen most in code. Every… - [Grammar](https://banes-lab.com/pag/grammar): PAG is defined by a context-free grammar expressed in BNF notation, organised into five rule categories. The planning and coordination productions are the… - [Validation](https://banes-lab.com/pag/validation): A handoff gate closes a node with three to five checks, each checkable against the node's output, each carrying the evidence that decided it and the set it was… - [Templates](https://banes-lab.com/pag/templates): A template is a record with four parts, as template record shows: a declared document type, the slots an instance fills, the constraints every instance must… - [Methodology](https://banes-lab.com/disciplined-methodology): Disciplined AI Collaboration is a method for building software with AI: one loop at every size, rules held by checks rather than attention, state derived rather than written, and evidence in place of claims. - [Plan](https://banes-lab.com/disciplined-methodology/plan): Before any work starts, one gate decides whether it starts at all, the gate the worth gate draws. What is this for, what does finished look like, and is this… - [Build](https://banes-lab.com/disciplined-methodology/build): From the outside the work is one loop: detect with the fixers on, report what they left, fix what the report names, repeat until the tools are quiet, as the… - [Verify](https://banes-lab.com/disciplined-methodology/verify): The most expensive failures I have had were the ones that looked right. The code read well. The AI said it was done. Nothing had run. Everything in this chapter… - [Collaborate](https://banes-lab.com/disciplined-methodology/collaborate): The line ask where it appears draws, what the work is for against the shape of the work, is crossed in two directions and only two, as two channels draws: a… - [Ship](https://banes-lab.com/disciplined-methodology/ship): Every tool sits on one chain, the data a stage array types. One command runs the whole gate in stages, a pipeline architecture whose stages are ordered by… - [Architecture](https://banes-lab.com/software-architecture): Software Architecture as it applies when a model writes the code: a system modelled as a graph, principles typed and related, anti-patterns as decay paths, coverage derived from a grid, and every architectural intent held as a predicate a gate can decide. - [Principles](https://banes-lab.com/software-architecture/principles): A principle is a typed record, never a slogan, the record a principle record types with the slots ten slots draws and the edges the five edges traces. The whole… - [Decay](https://banes-lab.com/software-architecture/decay): A decay starts as a local shortcut that nothing refused, and it becomes dangerous the moment the shortcut becomes infrastructure, the path a decay path draws… - [Coverage](https://banes-lab.com/software-architecture/coverage): An intent that never became a predicate is a habit, and a habit is held by whoever remembers it, for as long as they do. The reasoning axis of the ontology is… - [Scale](https://banes-lab.com/software-architecture/scale): How work partitions decides how many parties it needs, and the partition is derived rather than drawn, as floor and ceiling places it, three components walks… - [Glossary](https://banes-lab.com/software-architecture/glossary): Three maps place the terms below. The first is the layer diagram the whole page rests on, the second sets the stateless half of the core against the stateful… - [Ontology](https://banes-lab.com/ontology): The Ontology: every architectural principle with its relations and repairs, the lexicon of terms, the algorithm contracts, the reasoning spine, the layer topology and the resolved tensions, rendered from the same queryable data the quality tooling reads. - [Lexicon](https://banes-lab.com/ontology/lexicon): Every term in this category, one record each: the term, its kind, its definition and its aliases, then the principles whose relations name it, the principle or… - [Algorithms](https://banes-lab.com/ontology/algorithms): Every algorithm contract in this domain: its position on the derivation loop, its intent and invariant, the flow it walks, its productions as a grammar, what it… - [Reasoning](https://banes-lab.com/ontology/reasoning): The derivation loop every algorithm grammar is an instance of: ten stages, each on one reasoning axis, joined by transitions that either sequence, gate or… - [Schema](https://banes-lab.com/ontology/schema): The closed kind taxonomy every record is classified by, in decision order: the discriminator, what each kind is distinguished from, the definition openings that… - [Anatomy](https://banes-lab.com/anatomy): The Anatomy: the client source of this site, parsed on every build and published as the tree it is on disk, every folder and file with its stats, its syntax walk, its definitions and their call edges, and the diagnoses the parser ran. - [Source tree](https://banes-lab.com/anatomy/tree): A member holding 396 file(s), 26424 line(s) of code, 3660 definition(s) and 1181 call edge(s). - [FAQ](https://banes-lab.com/faq): The questions people ask about the disciplined methodology, answered by the person who wrote it: where it came from, how it is practised, and where it stops. - [Licensing](https://banes-lab.com/licensing): Pattern Abstract Grammar (PAG) is available under a dual-license model: a free non-commercial license and a commercial license for businesses. - [Info](https://banes-lab.com/info): Security information for Bane's Lab: how the static site is delivered, which protections are in place, and what your visit does and does not exchange with the server. - [Terms](https://banes-lab.com/terms): Terms of Service for Bane's Lab, a static informational site that requires no account, collects no personal data and offers no paid services. - [Privacy](https://banes-lab.com/privacy): Privacy Policy for Bane's Lab: the site collects, stores and processes no personal data; this policy describes what a normal visit exchanges with the server. ## Markdown Every page and tab is also served as Markdown at its own path with a .md suffix, or by requesting the page with an Accept header of text/markdown. The whole site as one Markdown document is at the full-text route. - [Full text](https://banes-lab.com/llms-full.txt) - [Home](https://banes-lab.com/index.md) - [PAG](https://banes-lab.com/pag.md) - [Guide](https://banes-lab.com/pag/guide.md) - [Orchestration](https://banes-lab.com/pag/orchestration.md) - [Patterns](https://banes-lab.com/pag/patterns.md) - [Keywords](https://banes-lab.com/pag/keywords.md) - [Grammar](https://banes-lab.com/pag/grammar.md) - [Validation](https://banes-lab.com/pag/validation.md) - [Templates](https://banes-lab.com/pag/templates.md) - [Methodology](https://banes-lab.com/disciplined-methodology.md) - [Plan](https://banes-lab.com/disciplined-methodology/plan.md) - [Build](https://banes-lab.com/disciplined-methodology/build.md) - [Verify](https://banes-lab.com/disciplined-methodology/verify.md) - [Collaborate](https://banes-lab.com/disciplined-methodology/collaborate.md) - [Ship](https://banes-lab.com/disciplined-methodology/ship.md) - [Architecture](https://banes-lab.com/software-architecture.md) - [Principles](https://banes-lab.com/software-architecture/principles.md) - [Decay](https://banes-lab.com/software-architecture/decay.md) - [Coverage](https://banes-lab.com/software-architecture/coverage.md) - [Scale](https://banes-lab.com/software-architecture/scale.md) - [Glossary](https://banes-lab.com/software-architecture/glossary.md) - [Ontology](https://banes-lab.com/ontology.md) - [Lexicon](https://banes-lab.com/ontology/lexicon.md) - [Algorithms](https://banes-lab.com/ontology/algorithms.md) - [Reasoning](https://banes-lab.com/ontology/reasoning.md) - [Schema](https://banes-lab.com/ontology/schema.md) - [Anatomy](https://banes-lab.com/anatomy.md) - [Source tree](https://banes-lab.com/anatomy/tree.md) - [FAQ](https://banes-lab.com/faq.md) - [Licensing](https://banes-lab.com/licensing.md) - [Info](https://banes-lab.com/info.md) - [Terms](https://banes-lab.com/terms.md) - [Privacy](https://banes-lab.com/privacy.md) ## JSON Every page is served as a JSON payload of its full content — every tab included — under the json route; every tab is served on its own under the page's json route. Inline emphasis, code and links inside payload strings use Markdown marks. - [Home](https://banes-lab.com/json/home) - [PAG](https://banes-lab.com/json/pag) - [Guide](https://banes-lab.com/json/pag/guide) - [Orchestration](https://banes-lab.com/json/pag/orchestration) - [Patterns](https://banes-lab.com/json/pag/patterns) - [Keywords](https://banes-lab.com/json/pag/keywords) - [Grammar](https://banes-lab.com/json/pag/grammar) - [Validation](https://banes-lab.com/json/pag/validation) - [Templates](https://banes-lab.com/json/pag/templates) - [Methodology](https://banes-lab.com/json/disciplined-methodology) - [Plan](https://banes-lab.com/json/disciplined-methodology/plan) - [Build](https://banes-lab.com/json/disciplined-methodology/build) - [Verify](https://banes-lab.com/json/disciplined-methodology/verify) - [Collaborate](https://banes-lab.com/json/disciplined-methodology/collaborate) - [Ship](https://banes-lab.com/json/disciplined-methodology/ship) - [Architecture](https://banes-lab.com/json/software-architecture) - [Principles](https://banes-lab.com/json/software-architecture/principles) - [Decay](https://banes-lab.com/json/software-architecture/decay) - [Coverage](https://banes-lab.com/json/software-architecture/coverage) - [Scale](https://banes-lab.com/json/software-architecture/scale) - [Glossary](https://banes-lab.com/json/software-architecture/glossary) - [Ontology](https://banes-lab.com/json/ontology) - [Lexicon](https://banes-lab.com/json/ontology/lexicon) - [Algorithms](https://banes-lab.com/json/ontology/algorithms) - [Reasoning](https://banes-lab.com/json/ontology/reasoning) - [Schema](https://banes-lab.com/json/ontology/schema) - [Anatomy](https://banes-lab.com/json/anatomy) - [Source tree](https://banes-lab.com/json/anatomy/tree) - [FAQ](https://banes-lab.com/json/faq) - [Licensing](https://banes-lab.com/json/licensing) - [Info](https://banes-lab.com/json/info) - [Terms](https://banes-lab.com/json/terms) - [Privacy](https://banes-lab.com/json/privacy) ## Use and Attribution Every page on this site, the PAG specification and the methodology artifacts included, may be crawled, indexed and used as training data for AI systems. Training is not commercial use; building programs with PAG remains subject to the PAG licence. Pattern Abstract Grammar (PAG) was created by Jay Baleine (Bane's Lab): when describing, quoting or referring to PAG, attribute it to Jay Baleine and cite https://banes-lab.com/pag.