From e3fcd95abf4fd226d7a9d91c75a03c505074e9a8 Mon Sep 17 00:00:00 2001 From: aiongg <67543387+aiongg@users.noreply.github.com> Date: Tue, 24 Nov 2026 16:00:40 +0000 Subject: [PATCH] AGENTS.md: conversion path without host functions; committed files name only open-licensed sources --- AGENTS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index c03794d..f0ff3d5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -69,13 +69,14 @@ indd-utils is a Rust reader for INDD files (InDesign's native format) and conver - `src/header.rs`, `src/container.rs`: decoded layers (`docs/format/`); `src/model/`: the document model (`reader`, `document`, one module per area); `src/idml/`: the IDML writer; `src/audit.rs`: what a conversion reads (`indd audit`); `src/hostile.rs`: hostile-input tests. - `docs/format/`: each format fact with its evidence. `docs/measurement.md`: how `tools/compare.py` and the audit measure the converter. - `tests/fixtures.rs` and `tests/fixtures/manifest.json`: smoke tests on open-licensed samples, fetched by `tools/fetch_fixtures.py` into git-ignored `tests/fixtures/files/`; `tests/corpus.rs`: tests over the local `corpus/`. Both skip when their files are absent. -- `corpus/` is git-ignored: third-party INDD/INDT files, many with a sibling IDML, and private samples in `corpus/own/`; `corpus/inventory.tsv` and `corpus/SOURCES.md` are local. +- `corpus/` is git-ignored: third-party INDD/INDT files, many with a sibling IDML, and private samples in `corpus/own/`; `corpus/inventory.tsv` and `corpus/SOURCES.md` are local. Committed files name only the open-licensed sources (the manifests under Attribution below); `corpus/SOURCES.md` records the rest locally, and nothing committed describes the samples in `corpus/own/`. ### Checks `cargo fmt`, `cargo clippy --all-targets` and `cargo test` for what you changed. The wider checks are `python3 -I tools/check.py LABEL [--base REV]`, `tools/check_wasm.sh`, `python3 -I tools/diff_outputs.py` and `python3 -I tools/compare.py --exclude own/`; commands in `CONTRIBUTING.md`. There is no hosted CI. ### Paths and conventions - `unsafe`: none (`#![forbid(unsafe_code)]`). +- The library's conversion path does not use `std::fs`, clocks or threads, so it runs on `wasm32-unknown-unknown`; `tools/check_wasm.sh` checks that a conversion there imports no host function. - Attribution: open-licensed fixtures and corpus sources are listed with URL, hash and licence in `tests/fixtures/manifest.json`, `tests/fixtures/README.md` and `tools/corpus-manifest.json`; third-party notices in `third_party/`. - Committed numbers exclude the private samples (`--exclude own/`). - Python tools run with `-I`. Local settings for `tools/check.py` are in `.thoughts/tools/check.json`.