Skip to content
Baptiste Lesquoy edited this page Nov 20, 2026 · 10 revisions

Portable tools and verification limits

Python 3.10+ and the standard library are sufficient for structural and link audits. The optional preference catalogue uses the JDK parser (full JDK 17+). Run commands from the wiki root. All tools are read-only with respect to pages/assets; only --out writes a requested report. Use an output path under tmp/ so the report is not scanned as documentation on the next run.

Structural checks and local inventory

python skills/gama-documentation/scripts/docs.py check --out tmp/documentation-check.json
python skills/gama-documentation/scripts/docs.py check --tracked --out tmp/publication-check.json
python skills/gama-documentation/scripts/docs.py images --out tmp/images.json
python skills/gama-documentation/scripts/sitegraph.py --out tmp/sitegraph.json --mermaid-out tmp/sitegraph.mmd --dot-out tmp/sitegraph.dot

Add --hash to include SHA-256 identities in the image inventory for review evidence.

check reports missing wiki pages, ambiguous flat names, unclosed fenced code blocks, missing local attachments/images and referenced images outside the repository. --tracked also requires referenced images to be in the Git index. Empty alt text and non-flat wiki URLs are review warnings. images produces the same inventory, including unused resources and remote URLs; it does not gate on structural errors. PDF resources appear in this inventory too. A candidate orphan is not proof that deletion is safe. No image bytes or pixels are interpreted by these tools.

Exit codes: check returns 1 for structural errors, 2 for input/operational failure, 0 otherwise. Read the JSON diagnostics and compare to the pre-edit state where the repository has existing errors. Reports are factual work lists, not instructions to expand the requested scope.

Page link graph

sitegraph.py reads wiki page links and _Sidebar.md to report directed reachability from the sidebar, isolated pages, weakly connected components and unresolved or ambiguous local page targets. Generated pages are included. It can export JSON for analysis, Mermaid for rendering in Markdown, and Graphviz DOT for graph viewers.

An unreachable page may still be linked from a generated index or reached through a URL outside the wiki. Review reported pages and edge cases before changing navigation. The graph follows parsed wiki links, not rendered sidebar behavior, redirects, search results or anchors.

External links

See external-links.md. Inventory is offline by default. --check explicitly performs requests; --url URL can be repeated to check only affected URLs already in the inventory. The report retains all URL locations, but unchecked URLs remain clearly marked. HTTP checking does not validate page meaning, fragment targets or successful image rendering.

See portable tools for the image, OCR, launch and desktop commands.

Source links

Run wiki_tools.py source-links --clone ../gama to check the locally available Git refs named in URLs. Use external HTTP checks as one signal. For version-specific claims, inspect the source at the named tag/commit (for example git show <ref>:<path> in a suitable checkout); don't silently substitute main. Record unavailable refs as unverified. The check uses the refs available in the local checkout.

Checking a fact against the installed release

The application, not a checkout, decides what the documentation may assert about a release. Three routes, in increasing cost, none of them specific to an operating system:

  • Registered names. The names the compiler accepts sit in the constant pool of the gaml/additions/**/GamlAdditions*.class entries of the product's jars. Extract those classes and read their strings to get the list actually registered by that build. Absence from such an extraction is a strong hint, not proof: only the additions classes are scanned, and a name can also be contributed by a plugin that is not installed. Presence in a checkout is not proof either: the checkout may be older or newer than the release.
  • Shipped model paths. The library jar carries models/<Category>/<Project>/models/<name>.gaml. Unzip it to a scratch folder and grep it: that is the authority for a category name, a project name, a file quoted by an import, or a model a page tells the reader to open. It is also where a correct usage of a difficult operator can be found, in code that compiles in this release.
  • Compiling an example. The release ships a headless application. Wrapping the example in an experiment ... mode: test block and passing it to the batch mode of the headless launcher exits 0 when the model parses and passes the static validation of that build, and non-zero when it does not. Give it a scratch workspace with -ws, outside the repository; a gui experiment does not terminate on its own, so use test. The message is generic ("GAMA encountered an error and crashed", with no file, no line, no cause), so treat the exit code as a boolean oracle and use the two routes above, or the generated operator reference, for the reason. The experiment must be mode: test and carry no output: an experiment that declares a display exits 1 whatever its type (step, batch, record, memorize and a deliberately invented type all behave alike), so the batch can never decide whether an experiment type, an output or a display is valid.
  • What that oracle does not prove. It answers "does this compile?", never "does this run?". Observed on the installed build: a test block whose assert is false exits 0; a division by zero inside a test block exits 0; write in a test block produces nothing on stdout; save ... to: "<absolute path>" in init or in a test block leaves no file anywhere; and an undefined preference name (gama.pref_shapefiles_in_memoryx) compiles although the key does not exist. Scope, syntax, operator names and facets are checked statically - an attribute read from the wrong species really is refused - but values, effects and output are not observable this way. Do not cite a 0 as evidence that a listing behaves as written; say only that it compiles.

Parser limits

The shared extractor covers common inline/reference Markdown, bare HTTP URLs, autolinks and single-line HTML href/src/poster attributes. Comments, fenced/indented code and inline code are excluded. It is not a Markdown renderer: multiline constructs, nested labels, unusual escaping, HTML srcset and renderer-specific syntax require manual review. GitHub wiki publication is the final authority on rendering and resource URL resolution. Filesystem checks preserve exact case by comparing the inventory where relevant; check publication if paths differ only by case.

Legacy helpers

imageinventory.py remains available for the old Markdown register and manual verdict table. Prefer docs.py images for new machine-readable audits; do not confuse a legacy verdict with a fresh inspection. Use the portable capture and image commands above. Vocabulary/emoji scanners have been removed: review writing in context. PreferencesFromSource.java builds the Java source catalogue; see preferences.md for the command, exported fields and source-only limitations.

Tool regression checks

python -B -m unittest discover -s skills/gama-documentation/scripts/tests

Tests use temporary repositories, Java source fixtures and mocked HTTP responses; they do not contact external sites. Java extraction tests require a full JDK and are skipped if it is absent.

Reading an installed product

A plugin of an installed Eclipse product may sit in the plugins folder as an unpacked directory beside the jars - a release examined here ships five, including its physics extension and its shared UI plugin. A scan restricted to *.jar therefore reports the contents of those plugins as absent, which reads as evidence that a documented name, string or resource does not exist in the release. Walk both forms (directories and jars) before declaring anything missing, and treat a negative result as provisional until the folder layout has been checked.

Prefer a positive control next to a negative one: a search that finds the expected names but not the unexpected one is credible, while an unexplained absence is usually the scan, not the product.

  1. About GAMA
  2. What's new (Changelog)
  3. Migration Guide (2025-06 → 2026-11)
  1. Installation and Launching
    1. Installation
    2. Launching GAMA
    3. Updating GAMA
    4. Installing Plugins
  2. Workspace, Projects and Models
    1. Navigating in the Workspace
    2. Changing Workspace
    3. Importing Models
  3. Editing Models
    1. GAML Editor (Generalities)
    2. GAML Editor Tools
    3. Validation of Models
  4. Running Experiments
    1. Launching Experiments
    2. Experiments User interface
    3. Controls of experiments
    4. Parameters view
    5. Inspectors and monitors
    6. Displays
    7. Batch Specific UI
    8. Errors View
    9. Experiment agent: GAML controls and status
    10. Interactive console
  5. Running Headless
    1. Getting Started
    2. Headless Legacy
    3. Headless Batch
  6. Exporting models and projects
    1. Playable models (.gamx)
    2. Editable project archives (.gamp)
  7. Preferences
  8. gama platform agent
  9. Troubleshooting
  1. Introduction
    1. Start with GAML
    2. Organization of a Model
    3. Basic programming concepts in GAML
  2. Manipulate basic Species
  3. Global Species
    1. Regular Species
    2. Defining Actions and Behaviors
    3. Interaction between Agents
    4. Attaching Skills
    5. Inheritance
  4. Defining Advanced Species
    1. Grid Species
    2. Graph Species
    3. Mirror Species
    4. Multi-Level Architecture
  5. Defining GUI Experiment
    1. Defining Parameters
    2. Defining Displays Generalities
    3. Defining Charts
    4. Defining Monitors and Inspectors
    5. Defining Export files
    6. Defining User Interaction
  6. Classes and Objects
    1. Class Definition and Instantiation
    2. Attributes and Actions
    3. Inheritance
    4. Virtual Classes
    5. Advanced Features
  7. Exploring Models
    1. Run Several Simulations
    2. Batch Experiments
    3. Exploration Methods
  8. Optimizing Models
    1. Runtime Concepts
    2. Analyzing code performance
    3. Optimizing Models
  9. Multi-Paradigm Modeling
    1. Control Architecture
    2. Defining Differential Equations
  1. Manipulate OSM Data
  2. Cleaning OSM Data
  3. Diffusion
  4. Using Database
  5. Using Dataframes
  6. Using FIPA ACL
  7. Using BDI with BEN
  8. Using Driving Skill
  9. Manipulate dates
  10. Manipulate lights
  11. Using comodel
  12. Save and restore Simulations
  13. Using network
  14. Writing Unit Tests
  15. Ensure model's reproducibility
  16. Going further with extensions
    1. Calling R
    2. Using Graphical Editor
    3. Using Git from GAMA
  1. Built-in Species
  2. Built-in Skills
  3. Built-in Architecture
  4. Statements
  5. Data Type
  6. File Type
  7. Stats Extension
  8. Sound Extension
  9. BDI Extension
  10. FIPA Skill
  11. Expressions
    1. Literals
    2. Units and Constants
    3. Pseudo Variables
    4. Variables And Attributes
    5. Operators (Definition)
    6. Operators [A-A]
    7. Operators [B-C]
    8. Operators [D-H]
    9. Operators [I-M]
    10. Operators [N-R]
    11. Operators [S-Z]
  12. Exhaustive list of GAMA Keywords
  1. Installing the development version
  2. Introduction to GAMA Java API
    1. Architecture of GAMA
    2. IScope
  3. Developing Extensions
    1. Developing Plugins
    2. Developing Skills
    3. Developing Statements
    4. Developing Operators
    5. Developing Types
    6. Developing Species
    7. Developing Control Architectures
    8. Index of annotations
  4. Using GAMA flags
  5. Export plugin : Technical Documentation
  6. Creating a release of GAMA
  7. Documentation generation
  8. Desktop startup and deferred initialization

  1. Predator Prey
  2. Road Traffic
  3. Incremental Model
  4. Luneray's flu
  5. BDI Agents
  6. Forager RL
  7. SIR Analysis

  1. Team
  2. Projects using GAMA
  3. Scientific References
  4. Training Sessions

Resources

  1. Videos
  2. Conferences
  3. Pedagogical materials

Clone this wiki locally