Files
govoplan-files/AGENTS.md
T

1.7 KiB

GovOPlaN Files Codex Guide

Documentation Contract

  • Treat documentation as part of every behavior change. Update this module's manifest-driven DocumentationTopic contributions for affected user and administrator behavior.
  • Keep feature content here; govoplan-docs projects it without importing Files internals.
  • Maintain a static user/admin baseline and run /mnt/DATA/git/govoplan/tools/checks/check-manifest-shapes.py after behavior or manifest changes.

Scope

This repository owns the files module: managed file storage APIs, file metadata, shares, uploads/downloads, folder and pattern helpers, backend module manifest, and @govoplan/files-webui.

Core owns auth, tenants, RBAC, database/session primitives, CSRF/API helpers, shared components, and shell layout. Campaign integration must remain optional and go through core module metadata or capabilities.

Local Commands

Install and run through core:

cd /mnt/DATA/git/govoplan-core
./.venv/bin/python -m pip install -r requirements-dev.txt

For combined checks, run:

cd /mnt/DATA/git/govoplan
tools/checks/check-focused.sh

For WebUI permutation checks that include files:

cd /mnt/DATA/git/govoplan-core/webui
PATH=/mnt/DATA/git/govoplan-core/webui/node_modules/.bin:/home/zemion/.nvm/versions/node/v22.22.3/bin:$PATH /home/zemion/.nvm/versions/node/v22.22.3/bin/npm run test:module-permutations

Working Rules

  • Keep files behavior in this module, not core.
  • Do not require campaign or mail imports for files-only startup.
  • Shared WebUI components belong in core; files WebUI should consume them through @govoplan/core-webui.
  • Preserve optional campaign usage tracking through capability/registry boundaries.