Repository navigation
Conversation
…nalysis
Task 1 (analyze existing tooling) deliverable. Records:
- Task log (tasks/tasks.md) for the three requested tasks with verbatim
user guidance: S3 endpoint ru-central1; flat key layout with the rule
'Name is an unique identifier. If names are equal, graphs are the same.
It must not be stored twice.'; migration scope limited to the 59 .tar.gz
files; docs link update and name->URL mapping as part of the migration.
- Global plan (tasks/global_plan.md) with the tooling analysis:
* cfpq_data/dataset/data.py downloads from public Yandex S3 URLs
(bucket cfpq-data, layout <major>.0.0/{graph,grammar,benchmark}/...),
bucket is publicly readable (verified 200/404 via HEAD).
* utils/fetch_dataset.py is broken: imports AWS_ACCESS_KEY_ID /
AWS_SECRET_ACCESS_KEY / BUCKET_NAME from cfpq_data.config where none
exist; boto3 is used but not declared in pyproject.toml.
* All 131 Google Drive links in docs are graphs (no grammars on Drive);
74 files are Drive-only: 59 .tar.gz of the new collections plus 15
legacy .txt origin files; 8 names collide between java_points_to and
field_sensitive_alias with different Drive file IDs, so content
identity must be rechecked by SHA-256 during migration.
* Verified Drive download protocol (direct octet-stream for small files,
HTML confirm form -> drive.usercontent.google.com for large files).
Defines task dependencies (3 depends on 2), shared infrastructure
(utils/upload_to_s3.py core reused by the migration tool) and execution
order 1 -> 2 -> 3.
Task 1 (analyze existing tooling) is complete: analysis recorded in tasks/global_plan.md, merged to dev. Every clause of the task description is traceable to the committed analysis; docs-only task, code-specific gates skipped per workflow-management.
Task 2: create tool to automate uploading to yandex s3 that we use. It must upload local file. Credentials must be provided by user from cli. Subtasks: S1 (build): Declare boto3 as a dev dependency. utils/fetch_dataset.py already imports boto3 but it was never declared in pyproject.toml, so a fresh environment (e.g. CI's poetry install) cannot run the maintainer scripts. The new upload tool and the migration tool (task 3) also need it. boto3 goes into the dev group: utils/ scripts are maintainer tooling, not part of the installed cfpq_data package, so end users installing the package must not pull in botocore. CI installs --with dev,test and keeps working. S2 (feat): Add Yandex S3 upload tool with CLI-provided credentials. New maintainer tool utils/upload_to_s3.py automates uploading a local file to the cfpq-data bucket on Yandex Object Storage (S3 API). - Credentials (--access-key-id, --secret-access-key) are required CLI arguments: they are never read from environment variables or config files and never stored in the repo. - Defaults: endpoint https://s3.ru-central1.storage.yandexcloud.net (the bucket's region, per user guidance) and bucket cfpq-data, both overridable via CLI. - Importable core create_s3_client/upload_file so the Google Drive -> S3 migration tool (task 3) reuses it instead of duplicating S3 logic. - upload_file verifies the stored object size via head_object after the upload and raises RuntimeError on mismatch, so a truncated or failed multipart upload cannot go unnoticed during the migration. - Missing local file raises FileNotFoundError; default object key is the file name. S3 (test): Add offline tests for the Yandex S3 upload tool. New tests/utils/ package (mirrors the package-layout convention of tests/). conftest.py adds utils/ to sys.path so the script module is importable the same way it is when run as a script. All boto3 interactions are mocked, so the tests pass offline: create_s3_client forwards access key, secret key and endpoint to boto3.client('s3', ...) and defaults the endpoint to ru-central1; upload_file calls client.upload_file with the local path, bucket and key (default key = file name) and returns the stored key; FileNotFoundError for a missing local file; size verification passes on matching head_object ContentLength and raises RuntimeError on mismatch; CLI main() uploads with CLI-provided credentials and prints the resulting s3:// path; missing required credential arguments make argparse exit non-zero. Full suite: 198 passed (190 baseline + 8 new). S4 (docs): Document the Yandex S3 upload tool. New 'Maintainer tools' page (docs/utils.rst) with a toctree entry in docs/index.rst. The page documents utils/upload_to_s3.py: purpose, CLI usage with placeholder credentials, defaults (ru-central1 endpoint, cfpq-data bucket), the --key layout convention and the post-upload size verification. The tool is maintainer tooling, not public package API, so it is documented here instead of in docs/reference/ (which mirrors the package). The page is structured to host further maintainer tools (task 3's migration tool). S5 (style): Fix pre-existing whitespace issues flagged by pre-commit. The full quality-gate pass (pre-commit run --all-files) modified two pre-existing files: AGENTS.md (trailing whitespace at end of line 20) and .opencode/skills/git-workflow/SKILL.md (missing newline at end of file). Per the quality-gates skill, every failure must be fixed and re-run until PASS regardless of whether it is pre-existing or unrelated to the task.
Task 2 (Yandex S3 upload tool) is complete: utils/upload_to_s3.py with CLI-provided credentials, offline tests (198 passed), docs page, and the boto3 dev dependency are merged to dev. Every clause of the task description is traceable to committed code; quality gate PASS.
Task 3: automate migration from google drive (we use it for some graphs
and grammars and want to move all to yandex) to yandex s3. Do not download
all items locally; handle items one-by-one: download from gdrive, upload to
yandex (use created tool), remove local copy of downloaded item.
User guidance honored: 'Name is an unique identifier. If names are equal,
graphs are the same. It must not be stored twice. You can recheck it by
comparing current urls for google drive.' / scope 'Only 59 .tar.gz' / docs
update and name->URL mapping are part of the migration.
Subtasks:
S1 (feat): Item discovery from docs.
discover_items() scans docs/graphs/data/*.rst and docs/old_graphs/data/*.rst
and collects every graph archive linked to Google Drive from the 'Direct
download' row of the Info table. The docs are the single source of truth for
the item list. Only 'Direct download' archives are collected ('Origin' files
are out of scope); the object key name is the rst stem for old-collection
graphs (stem in cfpq_data.dataset.DATASET, reused) and the page's 'Full
Name' otherwise; items are deduplicated by Drive file ID across the two
directories. Verified against the current docs: 113 items, 103 unique names.
S2 (feat): Drive download with confirm-token handling.
download_from_drive() streams a file by Drive ID to a local path. Small
files stream directly from drive.google.com/uc?export=download; large files
first return an HTML confirmation form whose action URL is requested with
its hidden inputs (id, export, confirm, uuid) - parsed from the page, not
hardcoded. Both flows verified against the live service (36 KB direct, 37 MB
via confirm). DriveDownloadError on error pages or empty downloads; partial
files removed on failure.
S3 (feat): Orchestration, mapping, doc update, CLI.
migrate() processes items one at a time (at most one local file on disk):
name already in the mapping -> download and compare SHA-256 with the
recorded digest (equal: skip upload, must not be stored twice; different:
MigrationError, local copy kept); object already on Yandex (public HEAD via
DATASET_URL, no credentials) -> skip without downloading; otherwise
download, upload with the verified upload_file from utils/upload_to_s3.py
(reused), record {url, drive_file_id, sha256}. After each item: replace the
item's Drive URLs (both forms) with the new Yandex URL in all docs *.rst
except _build and save utils/migration_mapping.json (progress survives
interrupts). On success the local copy is removed; on any error it is kept
and the run stops, so a re-run resumes where it stopped. CLI: required
--access-key-id/--secret-access-key (credentials from the CLI), same
endpoint/bucket defaults as task 2, --docs-dir/--workdir/--mapping,
--limit N, --dry-run. A dry run against the current docs plans exactly 59
uploads and skips the rest, matching the agreed scope.
S4 (docs): Document the migration tool in docs/utils.rst (purpose, CLI
usage with placeholder credentials, one-by-one behavior, idempotency,
name-collision handling by SHA-256 recheck, mapping file, --dry-run/
--limit) plus section labels for cross-referencing.
S5 (docs): Correct the global plan's collision count (10 names, not 8 -
imagick and leela were missed) and refine the Drive inventory (131 unique
file IDs = 113 direct-download archives + legacy origin files; 54 already
on Yandex, 59 in scope).
Full suite: 219 passed; pre-commit clean.
Task 3 (Google Drive -> Yandex S3 migration) is complete: utils/migrate_gdrive_to_s3.py with one-by-one download/upload/remove, idempotency, SHA-256 name-collision recheck, docs link rewriting and the utils/migration_mapping.json record are merged to dev. A dry run against the current docs plans exactly the 59 in-scope uploads. Every clause of the task description is traceable to committed code; quality gate PASS (219 tests).
While running the migration, every upload failed with SSLError: hostname 's3.ru-central1.storage.yandexcloud.net' doesn't match the certificate. The certificate SANs cover s3.yandexcloud.net, *.s3.yandexcloud.net and *.storage.yandexcloud.net, but no s3.<region>.storage.yandexcloud.net form, so the regional hostname is not a valid S3 API host for this bucket from this network. Verified empirically: - anonymous GET https://s3.yandexcloud.net/cfpq-data?list-type=2 returns a valid ListBucketResult with real bucket contents; - authenticated head_object against https://s3.yandexcloud.net with the user's credentials succeeds. DEFAULT_ENDPOINT_URL in utils/upload_to_s3.py now defaults to https://s3.yandexcloud.net; the migration tool reuses this constant, so both tools are fixed at once. The --endpoint-url override is unchanged. The test pins the literal verified URL as a regression guard, and the docs and global plan record the decision.
Task 4 (default S3 endpoint fix) is merged to dev and verified: the migration's uploads now reach the bucket. Task 5 records a re-run bug found while resuming the interrupted migration: mapping entries recorded without a hash (skipped_existing) make a re-run compare a downloaded SHA-256 against null and abort instead of re-verifying via the public HEAD check.
Resuming the interrupted migration aborted immediately: migrate()'s first branch keyed on 'name in mapping' and unconditionally downloaded the archive to compare its SHA-256 with the recorded digest. Entries created by the 'already on Yandex' skip path are recorded with sha256 null, so a re-run compared a hex digest against None and raised MigrationError before doing any useful work (concrete case: the mapping left by the interrupted run holds 8 such entries). The hash-recheck branch now applies only when a recorded SHA-256 exists; hash-less names fall through to the public HEAD check, which is exactly what the first run did for them: still on Yandex -> skip without downloading; gone from the bucket -> download and upload now. New tests cover both re-run paths (still present -> no download/upload; gone -> download + verified upload + hash recorded). All 31 utils tests pass.
Task 5 (re-run handling of hash-less mapping entries) is merged to dev; the migration can now resume from the interrupted run's mapping.
All 10 colliding names (cactus, imagick, leela, nab, omnetpp, parest,
perlbench, povray, x264, xz) are different graphs: java_points_to and
field_sensitive_alias each ship an archive with the same name but
different content (verified by SHA-256 of the downloaded archives). The
previous "same name = same graph" dedup would have refused to store
the second one.
Per the user's decision ("Suffixed keys, keep both"), _key_name_for
now resolves each item's object key: an item whose docs page stem equals
the name keeps <name>.tar.gz (e.g. cactus.tar.gz), a twin with a distinct
stem is stored under that stem (cactus_field_sensitive_alias.tar.gz).
The rule also consults the mapping, so on re-runs where the first
item's docs link was already rewritten the remaining twin still
resolves to its stem key. Two different files resolving to the same key
raise MigrationError (no disambiguation possible).
migrate() and the dry-run use the resolved key for the URL, local path,
HEAD check, upload and mapping entry; the per-key SHA-256 recheck of
already-recorded keys is unchanged.
Tests: replaced the two obsolete duplicate-name tests with four covering
shared names (both stored under distinct keys), re-run of an uploaded
item (upload skipped), re-run where only the stem-keyed twin remains in
the docs (stored under the stem key), and same name + same stem for two
files (MigrationError).
Docs: updated the name-collision bullet in docs/utils.rst and Design
Decision 3 in tasks/global_plan.md with the verified fact and the
user's decision.
The migration run stored all 59 archives at the bucket root
(<name>.tar.gz) while DATASET_URL, the rewritten docs links and the
is_on_yandex() check all use 4.0.0/graph/<name>.tar.gz (Design Decision
2), so every migrated docs URL returned 404.
Add DATASET_KEY_PREFIX ("4.0.0/graph") to cfpq_data.dataset as the
single source of truth for the key layout: DATASET_URL is now derived
from it (value unchanged) and migrate() uploads with key
"<DATASET_KEY_PREFIX>/<key_name>.tar.gz" so stored objects match the
public URLs. Verified that objects under the prefix are publicly
readable via the existing bucket policy (no ACL change needed).
Tests: upload-key assertions now expect the prefixed keys, built from
DATASET_KEY_PREFIX.
docs(007-S2): Record the Drive-to-Yandex migration in docs and mapping
All 59 Drive-only graph archives are now stored on Yandex under
4.0.0/graph/ (the 10 colliding names keep both archives: <name>.tar.gz
and <name>_field_sensitive_alias.tar.gz). Every "Direct download"
Drive link in the graph docs and index tables now points at the public
Yandex URL; legacy Origin .txt links are untouched (out of scope).
utils/migration_mapping.json records the full migration: 113 entries
mapping object key -> Yandex URL, Drive file ID and SHA-256 (null for
the 54 pre-existing objects re-verified via HEAD), so the record
survives and is auditable. All 113 URLs verified publicly readable
(anonymous HEAD, all 200).
…Q old collection Create the new 'RDF' source area in docs/graphs/index.rst and move the 18 RDF-based graphs (generations, travel, skos, univ, foaf, atom, people, biomedical, pizza, wine, funding, pathways, enzyme, go_hierarchy, go, geospecies, taxonomy, taxonomy_hierarchy) out of 'CFPQ old collection' (54 -> 36 entries). The section is placed right after CFPQ old collection (it is carved out of that collection), keeps the file convention of Num Nodes ascending order, and gets its own graphs_rdf anchor. The TOC table counts are updated accordingly; total stays 113. No code changes: the area grouping is not encoded anywhere in cfpq_data/ (DATASET in dataset/data.py is a flat membership list used for download validation; graphs/readwrite/rdf.py is an RDF file-format reader, not a group definition). Also regenerate graphs_list.md from the updated index (S2): summary table now shows CFPQ old collection 36 / RDF 18 (total 113 unchanged), per-area sections follow the index order; graphs_list.md is committed as a tracked file so the list stays in sync with the docs index.
…ines Recording task 8 earlier used a prefix of the task 7 line as the edit anchor, which detached the tail of task 7's description and glued it to the end of task 8's line. Restore both lines to their intended content and record task 9 (fix docs building).
… RST errors)
make html aborted in the build-finished event with
'AttributeError: module cfpq_data has no attribute multiple_source_to_txt'.
Root cause: nb2plots executes the .. nbplot:: notebook cells in a separate
Jupyter kernel process (nbconvert ExecutePreprocessor) that does not
inherit the sys.path modification conf.py applies to the Sphinx process.
The kernel resolved 'import cfpq_data' from its own site-packages, where a
stale installed copy (cfpq_data 1.0.2 on this machine) lacks
multiple_source_to_txt.
Changes:
- conf.py: prepend the repository root to PYTHONPATH so every kernel
launched during the build imports cfpq_data from this checkout
regardless of what is installed in site-packages.
- 7 java_points_to graph pages: the 'Source' table row used a hyperlink
whose display text equals the page name (e.g. `gson <url>`_), creating
a second explicit target that duplicates the '.. _gson:' anchor; Sphinx
dropped the label and the :ref: links in the Java points-to section of
docs/graphs/index.rst rendered as dead text. Renamed the link display
text to '<name> homepage'.
- 3 grammar pages (dyck, java_points_to, nested_parentheses): removed a
stray trailing '----' transition that docutils rejects ('Document may
not end with a transition').
Verified with clean builds (rm -rf docs/_build && make html): build
succeeds, all notebook cells execute, 0 ERRORs, no undefined labels, and
all previously dead graph links resolve.
A clean 'make html' previously reported 369 warnings. This removes all of
them except the nb2plots Markdown-conversion notes (kept by decision, see
below):
- Hidden glob toctrees (data/*) in docs/graphs/index.rst,
docs/old_graphs/index.rst, docs/grammars/index.rst and
docs/benchmarks/index.rst: the 172 data pages were orphans ('document
isn't included in any toctree'). :hidden: keeps them out of the sidebar.
- Unique download-link target names in the index tables (176 links across
docs/graphs/index.rst, docs/old_graphs/index.rst, docs/grammars/index.rst
and docs/benchmarks/data/ms_reachability.rst): every row reused the
anonymous name '.tar.gz' ('Duplicate explicit target name'). Display text
is now the archive file name from the URL; URLs unchanged.
- Renamed the duplicate 'graphs' label in docs/reference/graphs/index.rst
to 'reference_graphs' (nothing referenced it).
- Dropped the 'page_sidebar_items' theme option from conf.py: unsupported
by pydata-sphinx-theme 0.15.2 (the pinned version), so Sphinx warned and
ignored it.
Kept: the nb2plots 'element not yet supported in Markdown' warnings from
the code-links runfile conversion (nb2plots 0.7.2 is the latest release;
removing them would require dropping the downloadable .py/.ipynb links).
Verified with a clean build: exit 0, only the approved nb2plots notes
remain, download links and navigation unchanged.
…docs index The 'CFPQ old collection' (36 graphs) was a catch-all group. Using the grammar templates available per graph on S3 (4.0.0/grammar/) as the classification key, it partitions disjointly: c_alias grammars exist for exactly 20 graphs (C alias analysis), java_points_to grammars for exactly 14 (Dacapo Java points-to), and dyck/nested_parentheses are universal (all 54 old+RDF graphs) so they do not discriminate. Changes in docs/graphs/index.rst: - Remove the 'CFPQ old collection' section and graphs_cfpq_old_collection anchor; add a 'C alias analysis' section (anchor graphs_c_alias_analysis) with the 20 c_alias graphs, Num Nodes ascending. - Merge the 14 java_points_to Dacapo graphs into the existing 'Java points-to graphs' group (7 -> 21, re-sorted by Num Nodes): same grammar template = same class, one source of truth. - Move core (UniProt core.owl) and eclass (eClass ontology) into the RDF group (18 -> 20): they are RDF/OWL graphs with only universal grammars, missed by task 8's RDF carve-out. - TOC counts updated: C alias analysis 20 / RDF 20 / Java points-to 21; total stays 113 (verified: all 113 rows present exactly once). No code changes: grouping is not encoded in cfpq_data/ (DATASET is a flat membership list).
Mirror the S2 reorganization of docs/graphs/index.rst in the tracked graphs_list.md (kept in sync with the index since task 8): summary table now shows C alias analysis 20 / RDF 20 / Java points-to graphs 21 (total 113 unchanged); the 'CFPQ old collection' section is replaced by 'C alias analysis' (20 rows, index order); core and eclass are added to the RDF section; the Java points-to section grows to 21 rows in index order. Verified programmatically: every section's graph list and order is identical between graphs_list.md and docs/graphs/index.rst.
… build
The quality-gate docs build (fresh content, unlike the conf-only S5 build
which reused cached doctrees) surfaced 60 unresolved-reference warnings on
the 30 reprocessed C-alias pages; the other 10 pages with the same sentence
(bzip, gzip, ls, pr, wc in both dirs) were still cached and would have
failed the gate on their next edit. All 40 pages fixed:
- `cfpq_data.change_edges` (single backticks -> default_role obj ref to a
non-existent object; the function is cfpq_data.graphs.utils.change_edges)
-> explicit :obj:`change_edges <cfpq_data.graphs.utils.change_edges>`,
which resolves to the generated API page + anchor (verified in built HTML).
- `mapping={"a": "A", "d": "D"}` was a code snippet misparsed as an
obj reference by default_role -> double-backtick literal.
Rebuild: exit 0, no ERROR lines, zero unresolved cross-references.
Discovered during task 31: enabling nitpicky (a config-only change) did not re-resolve references in content-unchanged documents — their doctrees were reused from cache, so 60 unresolved-reference warnings on 40 per-graph pages stayed hidden until the quality-gate build reprocessed edited pages. Encode the lesson: after changing reference-related config, do a clean rebuild before trusting the warning log.
language = "English" is not a valid Babel locale, so every page emitted 'WARNING: Invalid Babel locale: English' (84 warnings per build). The valid code for English is 'en'. Verified by clean rebuild: all Babel warnings gone.
Both sphinx.ext.napoleon and numpydoc were enabled, so every numpy-style docstring was processed twice. Napoleon rewrites Parameters/Returns sections into ':param:'/' :type:' fields; Sphinx's Python domain registers 'type' as a typed field (typerolename='class') and 'rtype' with bodyrolename='class', so every type token in those fields became a py:class cross-reference. The bare names used in docstrings (Path, MultiDiGraph, CFG, Variable, RSA, Regex, Symbol, integer, ...) are not resolvable objects, producing ~150 'reference target not found' warnings per build. With numpydoc alone the docstrings are processed once and, with its default numpydoc_xref_param_type=False, types render as plain text and create no references. Signature annotations are rendered by autodoc from the real code and still link through the existing intersphinx inventories (python, networkx, pyformlang). No alias tables or other translation layers needed.
suppress_warnings = ['ref.citation', 'ref.footnote'] hid two warning classes
without a documented reason. With napoleon removed (S2) and all references
fixed, removing the suppression resurfaces nothing: docstring footnote
definitions ('.. [1]') and references ('[1]_') resolve within their own
docstrings, verified by clean rebuild with zero warnings. The no-warnings
policy (S8) requires no suppressions at all.
…g type line
Single-backticked words in docstring prose are parsed with
default_role='obj' and became broken py:obj references (warnings under
nitpicky). They were meant as literals, so use double backticks:
- graphs/readwrite/{rdf,mtx,csv}.py: 'graph', 'path'
- grammars/readwrite/cnf_template.py: 'path'
- generators/labeled_two_cycles_graph.py, labeled_cycle_graph.py: 'range(n)'
- generators/labeled_scale_free_graph.py: 'alpha', 'beta', 'gamma'
- generators/labeled_barabasi_albert_graph.py: 'n', 'm'
Also correct a docstring that contradicted the code:
labeled_barabasi_albert_graph() said 'seed : Union[int, RandomState, None]'
(numpy-style copy-paste) but the code uses stdlib random.seed(seed) and the
signature is seed: Union[int, None]; the docstring now says 'int or None'.
MTX_HEADER is an internal implementation detail (not in __all__), but its public name made autosummary list it in the build-generated module stub (docs/*/generated/ is git-ignored and regenerated from module contents on every build, so editing the .rst is futile). The generated stub then referenced cfpq_data.graphs.readwrite.mtx.MTX_HEADER as an object, which autodoc does not document -> a broken py:obj reference per build. Renaming it _MTX_HEADER removes it from the generated reference and makes the name honest about its scope.
docs/indexed_grammars.rst referenced :func:`cfpq_data.materialize_grammar`, which does not exist (nitpicky warning). The function lives at cfpq_data.grammars.readwrite.cnf_template.materialize_grammar; use its full path.
The two '.. topic::' and one '.. note::' blocks in docs/tutorial.rst cannot be represented by nb2plots' doctree-to-Markdown converter (doctree2md.py has no visitors for topic/note nodes; latest release 0.7.2, no upstream fix): the build warned 'element not yet supported in Markdown' and the content was silently dropped from the downloadable notebook. Replace them with plain paragraphs (bold lead-ins) that round-trip through the converter, so the text now appears in both the HTML page and the notebook. Patching or vendoring nb2plots was rejected: a content change is simpler and keeps the dependency stock.
With all warnings fixed (S1-S7) and no suppressions left, make any warning fatal instead of inspecting logs: - docs/Makefile: SPHINXOPTS = -W --keep-going — any Sphinx warning (including unresolved cross-references under nitpicky) fails the build; --keep-going reports all warnings in one run. - .github/workflows/docs.yml: the Build and Check links steps now rely on the exit code; the grep-based log inspection is removed (it was a checker workaround for the missing -W). - docs/README.md, build-docs and quality-gates skills: document the policy — fix warnings instead of suppressing them; no 'tolerated warnings'.
Mark task 32 done (with the user guidance recorded verbatim) and replace the stale task 31 plan with the task 32 plan: root causes (napoleon/numpydoc double processing, Python-domain typed fields, build-generated autosummary stubs, nb2plots Markdown limits), design decisions, subtasks S1-S9 and the quality-gate verification results.
Issue #76 asks for developer documentation covering pre-commit, test pipeline, docs deploy, package deploy, and a contribution guideline. Gap analysis: only package deploy is documented (docs/release.rst); the other four items exist solely in CI workflow files and agent-facing skills, and the README has no developer section at all. Plan: new docs/developer.rst as the single source of truth for the developer model (setup, pre-commit, test pipeline, docs build & gh-pages deploy, package deploy cross-ref, contribution guidelines), a short 'For developers' README section, a fix for the stale Python version in docs/install.rst, slimming of the four overlapping skills to thin pointers (release-skill pattern), and a new AGENTS.md main principle codifying 'docs are the source of truth, skills are thin pointers'.
Issue #76 asks for developer documentation of pre-commit, the test pipeline, docs deploy, package deploy, and a contribution guideline. None of these (except package deploy, in docs/release.rst) had any human-facing documentation — they existed only in CI workflow files and agent-facing skills. New docs/developer.rst (under the Project section) is now the single source of truth for the developer model: - Development setup: Python 3.11-3.13, Poetry as the canonical environment (what all CI workflows use), package-mode=false explained. - Pre-commit: what it enforces, hook list referenced from .pre-commit-config.yaml (not duplicated), local + CI usage. - Test pipeline: doctest-enabled pytest, canonical command, tests/ layout, CI matrix (tests.yml) and coverage upload (coverage.yml). - Docs build and deploy: local build cross-referenced to docs/README.md, no-warnings policy, full link check, and the previously undocumented deployment mechanism (push to master -> deploy_docs.yml -> gh-pages). - Package deploy: one paragraph cross-referencing docs/release.rst. - Contribution guidelines: branching model (dev/master/feature), commit format, pre-merge quality gate, rebase+ff merge strategy, dataset contribution templates. No new external URLs are introduced, so the linkcheck surface is unchanged except for the page itself; all cross-references resolve under nitpicky.
Issue #76 requires the necessary developer parts in the README. The README had no developer or contribution entry point at all — a contributor landing on the repo had no way to find out how to set up a development environment or run the CI checks locally. New 'For developers' section (between Examples and 'How to add a new graph?'): the two dev-setup commands (Poetry groups + package install, matching what CI does) and the three local check commands (tests with doctests, full pre-commit pass, docs build), plus a link to the full developer guide page added in S2. The section deliberately stays short — docs/developer.rst is the source of truth for the model. Also fixes a pre-existing RST warning in this file: the 'What's inside' section underline was two characters shorter than its title.
Two documentation pages described an environment the project no longer has: - docs/install.rst said 'requires Python 3.7 or later' while pyproject.toml declares >=3.11,<3.14 and setup.py python_requires is >=3.11 (the README already says 3.11-3.13). The install page is linked from the README, so the contradiction was visible one click away. Also switched the pip commands to the PyPI distribution name cfpq-data (consistent with the README and the PyPI badge); prose about the importable module keeps cfpq_data. - docs/README.md told readers to 'pip install -r requirements/docs.txt', which pins sphinx 7.2.6 while the canonical Poetry docs group used by every CI workflow (and by the no-warnings validation) allows sphinx ^9.0.4. Re-pointed it to 'poetry install --with docs' and noted that requirements/*.txt are pip-only fallbacks.
…r guide Per the new main principle (docs are the source of truth, skills are thin pointers), the four skills that re-described the developer model now point at the matching section of docs/developer.rst instead: - code-style: drops the inline hook-list description and the CI note; keeps the local commands. - run-tests: drops the pipeline re-description (doctest suite, tests/ layout, CI command provenance); keeps the canonical command, the single-module example, and the machine-specific bare-pytest/networkx pitfall that belongs to no public doc. - build-docs: points at the docs page for the model and at docs/README.md for canonical local instructions; fixes its stale install command (pip -r requirements/docs.txt -> poetry install --with docs, matching S4); keeps commands, the cached-doctree pitfall, and autosummary notes. - git-workflow: replaces the Branching and commit-format model sections with a pointer; keeps the operational validation step, pre-commit checklist, and rebase+ff merge procedure; pre-merge checks now name the quality-gates skill explicitly. Pointer-chain consistency: planning and subtask-loop no longer call git-workflow the source of truth for the commit format (it now lives in the docs page), and workflow-management's branching pointer is updated. Frontmatter descriptions of run-tests and git-workflow are corrected to match their new scope. quality-gates, release, and the remaining skills are untouched — they already follow the pattern.
…inters' as a main principle User decision for this task: 'Let use docs as the source of truth, skills as thin pointers. Add this to main pronciples for future skills design and update.' The new Main Principle in AGENTS.md makes the pattern explicit for all future skill design and updates: a skill references the docs page for the model and keeps only agent-specific operational details (commands, pitfalls, procedures); when a topic gains a docs page, the overlapping skills are slimmed to pointers. The release skill -> docs/release.rst pair is named as the reference example.
Three findings, all fixed: 1. Duplication (the core risk the thin-pointer principle removes): the exact commands were duplicated between docs/developer.rst and the three slimmed skills. Commands now live only in the docs — added the 'black <path>' single-file tip and the single-module pytest example to docs/developer.rst; code-style, run-tests, and build-docs become pure pointers keeping only agent-specific content (the bare-pytest/networkx pitfall, the cached-doctree pitfall, deps notes). quality-gates no longer names those skills as 'the single source of truth for the commands' — it points at docs/developer.rst sections instead. git-workflow keeps its merge-procedure commands: they are not in the public docs (genuine how/what split, no duplication). 2. Correctness: requirements/*.txt were described as 'pip-only fallbacks', but setup.py reads them to declare the PyPI distribution's install_requires/extras_require. Fixed in docs/developer.rst and docs/README.md. 3. Accuracy: the README listed three of the four gate checks under 'the local checks that CI enforces'; the prose now names exactly what it lists (tests, style, docs build). Also records S7 in the detailed plan and marks all subtasks done.
Task completion verification passed: every clause of issue #76 is traceable to a committed change (pre-commit, test pipeline, docs build & gh-pages deploy, package deploy cross-ref, and contribution guidelines in docs/developer.rst; 'For developers' section in README.rst; stale install instructions fixed), the user guidance is implemented (docs as source of truth, skills as thin pointers — S5/S7) and codified in AGENTS.md Main Principles (S6). No subtask was reverted or skipped. Quality gate PASS: no-warnings docs build (exit 0 under -W) and linkcheck (516 links, no broken or timed-out); code-specific gates skipped as this is a docs-only task.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges the finalized 5.0.0 state of
devintomaster.[5.0.0] - 2026-09-16(the version was already 5.0.0 inconfig.py/pyproject.toml).v5.0.0tag will be created on the merged commit and pushed; that triggers thepublishworkflow (PyPI via Trusted Publishing + GitHub Release).Release notes: see the
[5.0.0]section ofCHANGELOG.md.