This repository is PGSA Harness Core: an agent-first, repo-local project-coherence protocol.
The protocol is the files under protocol/ and the generated pgsa/ artifact
layer in target projects. Python under tools/python/ is optional user tooling,
not the agent-facing product surface.
- Start with
README.md, thenprotocol/SKILL.md. - Treat
pgsa/artifacts as project state, not generated clutter. - Treat
pgsa/harness/<session>.mdas the per-session operating surface. - Read session registration fields before work:
role,produces,owner_scope,consumes,must_read,must_update,handoff_to, andescalation_policy. - When shared behavior changes, update the affected contract, summary, review, integration report, merge proposal, or ledger event.
- Do not present
export-contextas the communication mechanism. It is only a convenience packet assembled from repo-local artifacts. - Do not present the optional Python CLI as semantic authority.
- Do not describe PGSA as PR automation. PRs review code diffs; PGSA records session identity, semantic project-state drift, and handoff obligations before and around PR review.
- Do not claim PGSA automatically solves conflicts. It makes project conflicts explicit, reviewable, and resumable.
- When writing public positioning, emphasize session registration,
must_read/must_update, semantic continuity, contracts, integration state, ledger records, and optional v1.1 advanced packs. - Do not claim product benchmark evidence or that PGSA lives inside Codex, Claude Code, Grok Build, or any model.
- For long-running PGSA sessions, prefer agent-owned session wrappers: after
reading
pgsa/sessions.yaml, the active session may create or refreshpgsa/session_agents/<session>/AGENTS.md,SKILL.md, andPGSA_SESSION.json. These files must point back to the shared PGSA root and must not become a second registry. - Per-session
SKILL.mdfiles route into the project-levelpgsa/skills/signed_skill_manifest.yaml. Do not copy raw imported skill instructions into a session folder or activate anything frompgsa/imports/sources/unless the source is explicitly in that session'smust_reador the session isexternal_import_review.
protocol/SKILL.md: primary agent workflow.protocol/artifact-map.md: artifact meanings.protocol/templates/: starter PGSA artifacts.protocol/schemas/: structured artifact schemas.protocol/rules/: short boundaries.protocol/session-agents/README.md: self-bootstrap pattern for per-session launch folders.examples/teamtask-projectboard/: complete examplepgsa/layer.tools/python/: optional CLI for users.
From the repository root:
PYTHONPATH=tools/python python3 -m pgsa_cli.main --root examples/teamtask-projectboard validate
PYTHONPATH=tools/python python3 -m pgsa_cli.main --root examples/teamtask-projectboard drift-report
python3 -m unittest discover -s tools/python/tests -t tools/python
python3 tools/scripts/validate_release.py --root .