program-context-protocol 0.12.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. program_context_protocol-0.12.4/.github/workflows/ci.yml +63 -0
  2. program_context_protocol-0.12.4/.gitignore +39 -0
  3. program_context_protocol-0.12.4/LICENSE-APACHE +202 -0
  4. program_context_protocol-0.12.4/LICENSE-MIT +21 -0
  5. program_context_protocol-0.12.4/PKG-INFO +123 -0
  6. program_context_protocol-0.12.4/README.md +100 -0
  7. program_context_protocol-0.12.4/SKILL.md +69 -0
  8. program_context_protocol-0.12.4/pyproject.toml +55 -0
  9. program_context_protocol-0.12.4/scripts/bump_version.py +59 -0
  10. program_context_protocol-0.12.4/scripts/check_public_hygiene.py +74 -0
  11. program_context_protocol-0.12.4/scripts/cleanup_public_hygiene.py +67 -0
  12. program_context_protocol-0.12.4/scripts/hooks/pre-push +53 -0
  13. program_context_protocol-0.12.4/scripts/install_hooks.sh +9 -0
  14. program_context_protocol-0.12.4/scripts/public_hygiene_denylist.py +47 -0
  15. program_context_protocol-0.12.4/src/pcp/__init__.py +3 -0
  16. program_context_protocol-0.12.4/src/pcp/assertions.py +152 -0
  17. program_context_protocol-0.12.4/src/pcp/attest.py +111 -0
  18. program_context_protocol-0.12.4/src/pcp/build_loop_bypass.py +76 -0
  19. program_context_protocol-0.12.4/src/pcp/build_report.py +54 -0
  20. program_context_protocol-0.12.4/src/pcp/capture.py +339 -0
  21. program_context_protocol-0.12.4/src/pcp/cli.py +104 -0
  22. program_context_protocol-0.12.4/src/pcp/commands/__init__.py +0 -0
  23. program_context_protocol-0.12.4/src/pcp/commands/amend.py +283 -0
  24. program_context_protocol-0.12.4/src/pcp/commands/architect_review.py +291 -0
  25. program_context_protocol-0.12.4/src/pcp/commands/architecture_justification.py +164 -0
  26. program_context_protocol-0.12.4/src/pcp/commands/audit.py +371 -0
  27. program_context_protocol-0.12.4/src/pcp/commands/build.py +4523 -0
  28. program_context_protocol-0.12.4/src/pcp/commands/build_plan.py +153 -0
  29. program_context_protocol-0.12.4/src/pcp/commands/build_status.py +83 -0
  30. program_context_protocol-0.12.4/src/pcp/commands/capture.py +72 -0
  31. program_context_protocol-0.12.4/src/pcp/commands/check.py +584 -0
  32. program_context_protocol-0.12.4/src/pcp/commands/context.py +151 -0
  33. program_context_protocol-0.12.4/src/pcp/commands/control_audit_cmd.py +54 -0
  34. program_context_protocol-0.12.4/src/pcp/commands/correct_objective.py +160 -0
  35. program_context_protocol-0.12.4/src/pcp/commands/dashboard.py +732 -0
  36. program_context_protocol-0.12.4/src/pcp/commands/deploy.py +199 -0
  37. program_context_protocol-0.12.4/src/pcp/commands/deploy_check.py +134 -0
  38. program_context_protocol-0.12.4/src/pcp/commands/design_audit.py +323 -0
  39. program_context_protocol-0.12.4/src/pcp/commands/diff.py +153 -0
  40. program_context_protocol-0.12.4/src/pcp/commands/diff_reduce.py +355 -0
  41. program_context_protocol-0.12.4/src/pcp/commands/docs.py +538 -0
  42. program_context_protocol-0.12.4/src/pcp/commands/doctor.py +820 -0
  43. program_context_protocol-0.12.4/src/pcp/commands/escalations_cmd.py +64 -0
  44. program_context_protocol-0.12.4/src/pcp/commands/gate.py +209 -0
  45. program_context_protocol-0.12.4/src/pcp/commands/import_project.py +404 -0
  46. program_context_protocol-0.12.4/src/pcp/commands/init.py +1634 -0
  47. program_context_protocol-0.12.4/src/pcp/commands/install_hook.py +283 -0
  48. program_context_protocol-0.12.4/src/pcp/commands/install_skill.py +48 -0
  49. program_context_protocol-0.12.4/src/pcp/commands/kickoff.py +772 -0
  50. program_context_protocol-0.12.4/src/pcp/commands/narrative_lint.py +54 -0
  51. program_context_protocol-0.12.4/src/pcp/commands/objective_conflicts_cmd.py +68 -0
  52. program_context_protocol-0.12.4/src/pcp/commands/pm.py +504 -0
  53. program_context_protocol-0.12.4/src/pcp/commands/pressure_test_cmd.py +72 -0
  54. program_context_protocol-0.12.4/src/pcp/commands/provenance.py +313 -0
  55. program_context_protocol-0.12.4/src/pcp/commands/prune.py +179 -0
  56. program_context_protocol-0.12.4/src/pcp/commands/report.py +49 -0
  57. program_context_protocol-0.12.4/src/pcp/commands/run_log_cmd.py +122 -0
  58. program_context_protocol-0.12.4/src/pcp/commands/scan.py +346 -0
  59. program_context_protocol-0.12.4/src/pcp/commands/self_update.py +125 -0
  60. program_context_protocol-0.12.4/src/pcp/commands/status.py +180 -0
  61. program_context_protocol-0.12.4/src/pcp/commands/takeover.py +55 -0
  62. program_context_protocol-0.12.4/src/pcp/commands/telemetry_cmd.py +167 -0
  63. program_context_protocol-0.12.4/src/pcp/commands/validate_module.py +153 -0
  64. program_context_protocol-0.12.4/src/pcp/commands/validate_strategy.py +413 -0
  65. program_context_protocol-0.12.4/src/pcp/commands/verify.py +166 -0
  66. program_context_protocol-0.12.4/src/pcp/commands/verify_syntax_fix.py +74 -0
  67. program_context_protocol-0.12.4/src/pcp/commands/watch.py +372 -0
  68. program_context_protocol-0.12.4/src/pcp/config_audit.py +141 -0
  69. program_context_protocol-0.12.4/src/pcp/context_map.py +124 -0
  70. program_context_protocol-0.12.4/src/pcp/control_audit.py +159 -0
  71. program_context_protocol-0.12.4/src/pcp/coupling.py +178 -0
  72. program_context_protocol-0.12.4/src/pcp/coverage_audit.py +77 -0
  73. program_context_protocol-0.12.4/src/pcp/decision_log.py +134 -0
  74. program_context_protocol-0.12.4/src/pcp/discovery/__init__.py +0 -0
  75. program_context_protocol-0.12.4/src/pcp/discovery/clusters.py +124 -0
  76. program_context_protocol-0.12.4/src/pcp/discovery/graph.py +110 -0
  77. program_context_protocol-0.12.4/src/pcp/discovery/scanner.py +109 -0
  78. program_context_protocol-0.12.4/src/pcp/escalations.py +193 -0
  79. program_context_protocol-0.12.4/src/pcp/evidence.py +30 -0
  80. program_context_protocol-0.12.4/src/pcp/evidence_chain.py +56 -0
  81. program_context_protocol-0.12.4/src/pcp/impact.py +164 -0
  82. program_context_protocol-0.12.4/src/pcp/install_approvals.py +44 -0
  83. program_context_protocol-0.12.4/src/pcp/integrity_audit.py +176 -0
  84. program_context_protocol-0.12.4/src/pcp/librarian.py +89 -0
  85. program_context_protocol-0.12.4/src/pcp/llm/__init__.py +0 -0
  86. program_context_protocol-0.12.4/src/pcp/llm/client.py +183 -0
  87. program_context_protocol-0.12.4/src/pcp/llm/coding_agent_contract.py +104 -0
  88. program_context_protocol-0.12.4/src/pcp/llm/harness/__init__.py +12 -0
  89. program_context_protocol-0.12.4/src/pcp/llm/harness/agy.py +121 -0
  90. program_context_protocol-0.12.4/src/pcp/llm/harness/agy_coding_loop.py +180 -0
  91. program_context_protocol-0.12.4/src/pcp/llm/harness/claude.py +241 -0
  92. program_context_protocol-0.12.4/src/pcp/llm/ledger.py +47 -0
  93. program_context_protocol-0.12.4/src/pcp/narrative_lint.py +229 -0
  94. program_context_protocol-0.12.4/src/pcp/nav_graph.py +226 -0
  95. program_context_protocol-0.12.4/src/pcp/objective_conflicts.py +129 -0
  96. program_context_protocol-0.12.4/src/pcp/operational.py +70 -0
  97. program_context_protocol-0.12.4/src/pcp/orphaned_work.py +262 -0
  98. program_context_protocol-0.12.4/src/pcp/pcp_dir.py +35 -0
  99. program_context_protocol-0.12.4/src/pcp/pcp_status.py +313 -0
  100. program_context_protocol-0.12.4/src/pcp/policy.py +81 -0
  101. program_context_protocol-0.12.4/src/pcp/pressure_test.py +196 -0
  102. program_context_protocol-0.12.4/src/pcp/qa.py +445 -0
  103. program_context_protocol-0.12.4/src/pcp/run_log.py +225 -0
  104. program_context_protocol-0.12.4/src/pcp/schema/__init__.py +0 -0
  105. program_context_protocol-0.12.4/src/pcp/schema/ci_rules.schema.json +106 -0
  106. program_context_protocol-0.12.4/src/pcp/schema/controls.schema.json +39 -0
  107. program_context_protocol-0.12.4/src/pcp/schema/module_acceptance.schema.json +144 -0
  108. program_context_protocol-0.12.4/src/pcp/schema/module_spec.schema.json +78 -0
  109. program_context_protocol-0.12.4/src/pcp/schema/sdlc_phase.schema.json +52 -0
  110. program_context_protocol-0.12.4/src/pcp/schema/validator.py +77 -0
  111. program_context_protocol-0.12.4/src/pcp/skill_data/pcp/SKILL.md +1897 -0
  112. program_context_protocol-0.12.4/src/pcp/spec_write.py +269 -0
  113. program_context_protocol-0.12.4/src/pcp/spend.py +77 -0
  114. program_context_protocol-0.12.4/src/pcp/symbols.py +86 -0
  115. program_context_protocol-0.12.4/src/pcp/telemetry.py +308 -0
  116. program_context_protocol-0.12.4/src/pcp/uat.py +271 -0
  117. program_context_protocol-0.12.4/src/pcp/version_drift.py +222 -0
  118. program_context_protocol-0.12.4/templates/github/pcp-gate.yml +46 -0
  119. program_context_protocol-0.12.4/tests/conftest.py +43 -0
  120. program_context_protocol-0.12.4/tests/test_agent_depth.py +46 -0
  121. program_context_protocol-0.12.4/tests/test_agy_coding_loop.py +171 -0
  122. program_context_protocol-0.12.4/tests/test_amend.py +275 -0
  123. program_context_protocol-0.12.4/tests/test_architect_preflight.py +73 -0
  124. program_context_protocol-0.12.4/tests/test_architect_review.py +130 -0
  125. program_context_protocol-0.12.4/tests/test_architecture_justification.py +105 -0
  126. program_context_protocol-0.12.4/tests/test_assertions.py +75 -0
  127. program_context_protocol-0.12.4/tests/test_audit.py +217 -0
  128. program_context_protocol-0.12.4/tests/test_build_criterion_parallel.py +399 -0
  129. program_context_protocol-0.12.4/tests/test_build_escalation.py +60 -0
  130. program_context_protocol-0.12.4/tests/test_build_gate_anomaly.py +103 -0
  131. program_context_protocol-0.12.4/tests/test_build_gate_scoping.py +95 -0
  132. program_context_protocol-0.12.4/tests/test_build_landed_work_guard.py +118 -0
  133. program_context_protocol-0.12.4/tests/test_build_loop_bypass.py +63 -0
  134. program_context_protocol-0.12.4/tests/test_build_loop_warning.py +89 -0
  135. program_context_protocol-0.12.4/tests/test_build_parallel.py +1000 -0
  136. program_context_protocol-0.12.4/tests/test_build_plan.py +139 -0
  137. program_context_protocol-0.12.4/tests/test_build_qa_evidence.py +145 -0
  138. program_context_protocol-0.12.4/tests/test_build_report.py +73 -0
  139. program_context_protocol-0.12.4/tests/test_build_scope.py +103 -0
  140. program_context_protocol-0.12.4/tests/test_build_status.py +88 -0
  141. program_context_protocol-0.12.4/tests/test_build_testmon_seed.py +38 -0
  142. program_context_protocol-0.12.4/tests/test_build_ui_design.py +257 -0
  143. program_context_protocol-0.12.4/tests/test_build_verify_findings.py +249 -0
  144. program_context_protocol-0.12.4/tests/test_build_vs_buy_drift.py +143 -0
  145. program_context_protocol-0.12.4/tests/test_build_vs_buy_justification.py +112 -0
  146. program_context_protocol-0.12.4/tests/test_capture.py +188 -0
  147. program_context_protocol-0.12.4/tests/test_check.py +643 -0
  148. program_context_protocol-0.12.4/tests/test_check_skips_pcp_generated_files.py +66 -0
  149. program_context_protocol-0.12.4/tests/test_ci_rules_contract.py +159 -0
  150. program_context_protocol-0.12.4/tests/test_coding_agent_contract.py +100 -0
  151. program_context_protocol-0.12.4/tests/test_commands.py +974 -0
  152. program_context_protocol-0.12.4/tests/test_config_audit.py +78 -0
  153. program_context_protocol-0.12.4/tests/test_context.py +122 -0
  154. program_context_protocol-0.12.4/tests/test_context_map.py +86 -0
  155. program_context_protocol-0.12.4/tests/test_control_audit.py +192 -0
  156. program_context_protocol-0.12.4/tests/test_coupling.py +115 -0
  157. program_context_protocol-0.12.4/tests/test_coverage_audit.py +63 -0
  158. program_context_protocol-0.12.4/tests/test_dashboard.py +320 -0
  159. program_context_protocol-0.12.4/tests/test_decision_injection.py +70 -0
  160. program_context_protocol-0.12.4/tests/test_decision_log.py +54 -0
  161. program_context_protocol-0.12.4/tests/test_deploy_check.py +177 -0
  162. program_context_protocol-0.12.4/tests/test_design_audit.py +153 -0
  163. program_context_protocol-0.12.4/tests/test_design_ux_metrics.py +225 -0
  164. program_context_protocol-0.12.4/tests/test_diff.py +77 -0
  165. program_context_protocol-0.12.4/tests/test_diff_reduce.py +200 -0
  166. program_context_protocol-0.12.4/tests/test_docs.py +424 -0
  167. program_context_protocol-0.12.4/tests/test_doctor.py +411 -0
  168. program_context_protocol-0.12.4/tests/test_doctor_hooks_reachable.py +116 -0
  169. program_context_protocol-0.12.4/tests/test_escalations.py +87 -0
  170. program_context_protocol-0.12.4/tests/test_evidence.py +43 -0
  171. program_context_protocol-0.12.4/tests/test_evidence_chain.py +50 -0
  172. program_context_protocol-0.12.4/tests/test_gate.py +86 -0
  173. program_context_protocol-0.12.4/tests/test_impact.py +177 -0
  174. program_context_protocol-0.12.4/tests/test_import_project.py +150 -0
  175. program_context_protocol-0.12.4/tests/test_init.py +260 -0
  176. program_context_protocol-0.12.4/tests/test_install_hook.py +256 -0
  177. program_context_protocol-0.12.4/tests/test_install_only.py +147 -0
  178. program_context_protocol-0.12.4/tests/test_install_skill.py +68 -0
  179. program_context_protocol-0.12.4/tests/test_integrity_audit.py +145 -0
  180. program_context_protocol-0.12.4/tests/test_kickoff.py +54 -0
  181. program_context_protocol-0.12.4/tests/test_lazy_marker_check.py +63 -0
  182. program_context_protocol-0.12.4/tests/test_librarian.py +61 -0
  183. program_context_protocol-0.12.4/tests/test_llm_client.py +391 -0
  184. program_context_protocol-0.12.4/tests/test_model_selection.py +176 -0
  185. program_context_protocol-0.12.4/tests/test_module_logic_breakdown.py +155 -0
  186. program_context_protocol-0.12.4/tests/test_narrative_lint.py +179 -0
  187. program_context_protocol-0.12.4/tests/test_nav_graph.py +150 -0
  188. program_context_protocol-0.12.4/tests/test_objective_conflicts.py +437 -0
  189. program_context_protocol-0.12.4/tests/test_orphaned_work.py +107 -0
  190. program_context_protocol-0.12.4/tests/test_pcp_dir.py +28 -0
  191. program_context_protocol-0.12.4/tests/test_pcp_status.py +63 -0
  192. program_context_protocol-0.12.4/tests/test_phase0_hardening.py +260 -0
  193. program_context_protocol-0.12.4/tests/test_phase1_enforcement.py +118 -0
  194. program_context_protocol-0.12.4/tests/test_phase2_evidence.py +72 -0
  195. program_context_protocol-0.12.4/tests/test_phase3_loop.py +114 -0
  196. program_context_protocol-0.12.4/tests/test_policy.py +86 -0
  197. program_context_protocol-0.12.4/tests/test_pressure_test.py +186 -0
  198. program_context_protocol-0.12.4/tests/test_prior_art_evidence.py +68 -0
  199. program_context_protocol-0.12.4/tests/test_provenance.py +134 -0
  200. program_context_protocol-0.12.4/tests/test_prune.py +172 -0
  201. program_context_protocol-0.12.4/tests/test_qa.py +349 -0
  202. program_context_protocol-0.12.4/tests/test_qa_timeout_partial_output.py +77 -0
  203. program_context_protocol-0.12.4/tests/test_report.py +33 -0
  204. program_context_protocol-0.12.4/tests/test_run_log.py +147 -0
  205. program_context_protocol-0.12.4/tests/test_scan.py +213 -0
  206. program_context_protocol-0.12.4/tests/test_schema_validator.py +194 -0
  207. program_context_protocol-0.12.4/tests/test_self_update.py +152 -0
  208. program_context_protocol-0.12.4/tests/test_tdd_instruction_scoping.py +70 -0
  209. program_context_protocol-0.12.4/tests/test_telemetry.py +108 -0
  210. program_context_protocol-0.12.4/tests/test_telemetry_cmd.py +43 -0
  211. program_context_protocol-0.12.4/tests/test_telemetry_productivity.py +168 -0
  212. program_context_protocol-0.12.4/tests/test_tier_drift.py +93 -0
  213. program_context_protocol-0.12.4/tests/test_tier_integrity.py +171 -0
  214. program_context_protocol-0.12.4/tests/test_uat.py +259 -0
  215. program_context_protocol-0.12.4/tests/test_ui_kit_recipes.py +137 -0
  216. program_context_protocol-0.12.4/tests/test_unverified_complete.py +117 -0
  217. program_context_protocol-0.12.4/tests/test_validate_module.py +91 -0
  218. program_context_protocol-0.12.4/tests/test_validate_strategy.py +364 -0
  219. program_context_protocol-0.12.4/tests/test_verified_by.py +44 -0
  220. program_context_protocol-0.12.4/tests/test_verify_command.py +126 -0
  221. program_context_protocol-0.12.4/tests/test_verify_syntax_fix.py +74 -0
  222. program_context_protocol-0.12.4/tests/test_version_drift.py +162 -0
  223. program_context_protocol-0.12.4/tests/test_watch.py +285 -0
  224. program_context_protocol-0.12.4/tests/test_wave_blame_scoping.py +135 -0
  225. program_context_protocol-0.12.4/tests/test_wave_merge_verify.py +51 -0
  226. program_context_protocol-0.12.4/tests/test_wave_scorer_consensus.py +64 -0
  227. program_context_protocol-0.12.4/version_rules.json +5 -0
@@ -0,0 +1,63 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ public-hygiene:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ with:
15
+ fetch-depth: 0
16
+ - name: Secret scan
17
+ # gitleaks/gitleaks-action requires a paid GITLEAKS_LICENSE for
18
+ # organization repos (free for personal accounts) -- broke silently
19
+ # the moment this repo transferred from a personal account to the
20
+ # program-context-protocol org, 2026-08-01. The underlying gitleaks
21
+ # binary itself is free/OSS regardless of account type; only the
22
+ # Action wrapper is paywalled. Installing it directly instead,
23
+ # matching the exact command the local pre-push hook already runs
24
+ # (.git/hooks/pre-push -- gitleaks detect --source . --no-git -v).
25
+ run: |
26
+ GL_VERSION=$(curl -sS https://api.github.com/repos/gitleaks/gitleaks/releases/latest | python3 -c "import json,sys; print(json.load(sys.stdin)['tag_name'].lstrip('v'))")
27
+ curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GL_VERSION}/gitleaks_${GL_VERSION}_linux_x64.tar.gz" | tar -xz gitleaks
28
+ ./gitleaks detect --source . --no-git -v
29
+ - uses: actions/setup-python@v5
30
+ with:
31
+ python-version: "3.13"
32
+ - name: No unrelated docs or personal/project references
33
+ run: python3 scripts/check_public_hygiene.py
34
+
35
+ test:
36
+ runs-on: ubuntu-latest
37
+ strategy:
38
+ fail-fast: false
39
+ matrix:
40
+ python-version: ["3.10", "3.13"]
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+
44
+ - uses: actions/setup-python@v5
45
+ with:
46
+ python-version: ${{ matrix.python-version }}
47
+
48
+ # Several tests build throwaway git repos and commit in them.
49
+ - name: Configure git identity
50
+ run: |
51
+ git config --global user.email "ci@localhost"
52
+ git config --global user.name "CI"
53
+
54
+ - name: Install package
55
+ run: pip install -e . pytest pytest-mock
56
+
57
+ - name: Run test suite
58
+ run: python -m pytest tests/ -q
59
+
60
+ - name: Build wheel
61
+ run: |
62
+ pip install build
63
+ python -m build --wheel
@@ -0,0 +1,39 @@
1
+ .DS_Store
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .env
8
+ node_modules/
9
+ .venv/
10
+ venv/
11
+ .claude/
12
+ hermes_memory.md
13
+ .coverage
14
+ presentations/
15
+ graphify-out/
16
+
17
+ # --- internal docs & operational data (local-only, launch-prep 2026-07-17) ---
18
+ CLAUDE.md
19
+ AGENTS.md
20
+ pcp.md
21
+ dashboard.html
22
+ hermes_memory.md
23
+ docs/market-research.md
24
+ docs/build-plan.md
25
+ presentations/
26
+ graphify-out/
27
+ .coverage
28
+ .claude/
29
+
30
+ # PCP's own dogfood/operational state (local-only, never distributed) --
31
+ # this repo runs PCP on itself, but the resulting .pcp/ content is
32
+ # project-specific evidence, not part of the shipped product.
33
+ .pcp/
34
+ docs/market-research-2026-07-modules.md
35
+ docs/build-plan-2026-07.md
36
+ docs/research-ui-intent-2026-07.md
37
+ docs/research-rigidity-vs-reliability-2026-07.md
38
+ docs/CHANGELOG.md
39
+ docs/reviews-*/
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ganesh Nallasivam
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,123 @@
1
+ Metadata-Version: 2.4
2
+ Name: program-context-protocol
3
+ Version: 0.12.4
4
+ Summary: PCP — prevent LLM hallucination and context drift across dev sessions
5
+ Project-URL: Homepage, https://github.com/program-context-protocol/program-context-protocol
6
+ Project-URL: Repository, https://github.com/program-context-protocol/program-context-protocol
7
+ Project-URL: Issues, https://github.com/program-context-protocol/program-context-protocol/issues
8
+ License: MIT OR Apache-2.0
9
+ License-File: LICENSE-APACHE
10
+ License-File: LICENSE-MIT
11
+ Keywords: agentic-coding,ai-agent,ci-cd,claude-code,context-drift,hallucination,llm,spec-driven-development
12
+ Requires-Python: >=3.10
13
+ Requires-Dist: click>=8.1
14
+ Requires-Dist: jsonschema>=4.21
15
+ Requires-Dist: networkx>=3.0
16
+ Requires-Dist: pyyaml>=6.0
17
+ Requires-Dist: rich>=13.0
18
+ Provides-Extra: graph
19
+ Requires-Dist: graphifyy>=0.8; extra == 'graph'
20
+ Provides-Extra: visual
21
+ Requires-Dist: playwright>=1.40; extra == 'visual'
22
+ Description-Content-Type: text/markdown
23
+
24
+ # Program Context Protocol (PCP)
25
+
26
+ **Your AI coding agent says "done." It isn't.**
27
+
28
+ Long agent sessions drift: the agent forgets what the objective actually was,
29
+ marks criteria complete that don't work, drops modularity, and nobody catches
30
+ it until it's in production. PCP is a structured `.pcp/` directory + CLI that
31
+ stops this — deterministic CI gates, auto-generated state (never hand-typed,
32
+ never stale), and a validator that checks whether your build actually still
33
+ covers your objective.
34
+
35
+ If you're searching for: *LLM hallucinated "done"*, *AI agent context drift*,
36
+ *spec drift across dev sessions*, *keep Claude/Copilot/Cursor aligned with
37
+ the objective*, *prevent scope drift in agentic coding* — this is that tool.
38
+
39
+ ## What makes this different
40
+
41
+ Spec-as-truth (write a spec, build against it) is now common — Spec Kit,
42
+ BMAD, OpenSpec all do it. None of them close the loop:
43
+
44
+ | Tool | Gap PCP closes |
45
+ |---|---|
46
+ | Spec Kit, OpenSpec, BMAD | Spec-as-truth is mainstream — none block a drifted commit or deploy |
47
+ | Kiro (AWS), Tessl | Proprietary |
48
+ | Swimm, Fiberplane, Grit | Doc-vs-code only, pairwise — no program-level objective coverage |
49
+ | Agent-governance tools (Endor, LaneKeep) | Gate tool calls, not spec alignment |
50
+
51
+ **Pioneer claim:** `pcp validate-strategy` checks whether your module
52
+ decomposition still collectively covers the stated objective — deterministic
53
+ coupling analysis (circular deps, God modules), not vibes. No other tool in
54
+ this space does this.
55
+
56
+ ## How it works
57
+
58
+ ```
59
+ objective.md (human-approved, immutable to unattended agents)
60
+
61
+ strategy/decomposition.md ←── pcp validate-strategy
62
+
63
+ modules/*/spec.yaml ←── pcp validate-module
64
+
65
+ [agent codes]
66
+
67
+ pre-commit: pcp check → Layer 1, deterministic AST/schema, hard block
68
+ PR: pcp gate → Layer 2, LLM advisory score, logged
69
+ deploy: pcp deploy-check → Layer 3, phase exit criteria, hard block
70
+ ```
71
+
72
+ `current_state.md` and `diff.md` are always auto-generated from your actual
73
+ code — never hand-written, never allowed to go stale.
74
+
75
+ ## Logic-tier ladder — not everything is an LLM's job
76
+
77
+ Every piece of judgment-requiring logic a PCP-built project writes gets
78
+ routed to the cheapest tool that can correctly make it, cheapest-first:
79
+
80
+ | Rung | What it is | When it applies |
81
+ |---|---|---|
82
+ | 1. Deterministic | if/else, lookup table | Fixed rules, one correct output |
83
+ | 2. Solver/optimization | OR-Tools, CBC | Constraints+objective known, answer isn't |
84
+ | 3. Statistical/ML | sklearn, HuggingFace | Pattern learned from historical data |
85
+ | 4. RAG | retrieval + light synthesis | Answer exists in a bounded corpus |
86
+ | 5. Cached reuse | lru_cache, diskcache | Replay a near-duplicate prior answer |
87
+ | 6. Deep-think LLM | last resort | Two competent humans would reasonably disagree |
88
+
89
+ Enforced via schema-validated `logic_tier` fields per acceptance criterion +
90
+ CI drift checks (a criterion that claims rung ≤5 but imports an LLM SDK
91
+ fails the gate). Most agentic-coding tools default everything to rung 6 —
92
+ this is the difference between "call the LLM" and "decide whether you
93
+ should."
94
+
95
+ ## Prior-art gate
96
+
97
+ Before scaffolding a non-trivial module (auth, payments, queues, parsers,
98
+ state machines, a canvas/diagram editor, PDF processing — anything a mature
99
+ library probably already solves) PCP runs a prior-art check: search
100
+ GitHub/npm/PyPI, shortlist candidates, check license compatibility, decide
101
+ reuse-as-dependency / fork-adapt / reference-pattern-only / build-fresh
102
+ *before* code gets written. Rationale is recorded per module, not left to
103
+ whether the agent happened to think of it that day.
104
+
105
+ ## Install
106
+
107
+ ```
108
+ pip install -e .
109
+ pcp init
110
+ ```
111
+
112
+ Requires `git` and the `claude` CLI on `PATH`. Run `pcp doctor` to check
113
+ your environment.
114
+
115
+ ## Status
116
+
117
+ Pre-launch — validating across real dogfood projects before a public 1.0.
118
+ Core loop (schema, validate-strategy, scan, Layer 1/2/3 gates) is built and
119
+ tested.
120
+
121
+ ## License
122
+
123
+ MIT OR Apache-2.0
@@ -0,0 +1,100 @@
1
+ # Program Context Protocol (PCP)
2
+
3
+ **Your AI coding agent says "done." It isn't.**
4
+
5
+ Long agent sessions drift: the agent forgets what the objective actually was,
6
+ marks criteria complete that don't work, drops modularity, and nobody catches
7
+ it until it's in production. PCP is a structured `.pcp/` directory + CLI that
8
+ stops this — deterministic CI gates, auto-generated state (never hand-typed,
9
+ never stale), and a validator that checks whether your build actually still
10
+ covers your objective.
11
+
12
+ If you're searching for: *LLM hallucinated "done"*, *AI agent context drift*,
13
+ *spec drift across dev sessions*, *keep Claude/Copilot/Cursor aligned with
14
+ the objective*, *prevent scope drift in agentic coding* — this is that tool.
15
+
16
+ ## What makes this different
17
+
18
+ Spec-as-truth (write a spec, build against it) is now common — Spec Kit,
19
+ BMAD, OpenSpec all do it. None of them close the loop:
20
+
21
+ | Tool | Gap PCP closes |
22
+ |---|---|
23
+ | Spec Kit, OpenSpec, BMAD | Spec-as-truth is mainstream — none block a drifted commit or deploy |
24
+ | Kiro (AWS), Tessl | Proprietary |
25
+ | Swimm, Fiberplane, Grit | Doc-vs-code only, pairwise — no program-level objective coverage |
26
+ | Agent-governance tools (Endor, LaneKeep) | Gate tool calls, not spec alignment |
27
+
28
+ **Pioneer claim:** `pcp validate-strategy` checks whether your module
29
+ decomposition still collectively covers the stated objective — deterministic
30
+ coupling analysis (circular deps, God modules), not vibes. No other tool in
31
+ this space does this.
32
+
33
+ ## How it works
34
+
35
+ ```
36
+ objective.md (human-approved, immutable to unattended agents)
37
+
38
+ strategy/decomposition.md ←── pcp validate-strategy
39
+
40
+ modules/*/spec.yaml ←── pcp validate-module
41
+
42
+ [agent codes]
43
+
44
+ pre-commit: pcp check → Layer 1, deterministic AST/schema, hard block
45
+ PR: pcp gate → Layer 2, LLM advisory score, logged
46
+ deploy: pcp deploy-check → Layer 3, phase exit criteria, hard block
47
+ ```
48
+
49
+ `current_state.md` and `diff.md` are always auto-generated from your actual
50
+ code — never hand-written, never allowed to go stale.
51
+
52
+ ## Logic-tier ladder — not everything is an LLM's job
53
+
54
+ Every piece of judgment-requiring logic a PCP-built project writes gets
55
+ routed to the cheapest tool that can correctly make it, cheapest-first:
56
+
57
+ | Rung | What it is | When it applies |
58
+ |---|---|---|
59
+ | 1. Deterministic | if/else, lookup table | Fixed rules, one correct output |
60
+ | 2. Solver/optimization | OR-Tools, CBC | Constraints+objective known, answer isn't |
61
+ | 3. Statistical/ML | sklearn, HuggingFace | Pattern learned from historical data |
62
+ | 4. RAG | retrieval + light synthesis | Answer exists in a bounded corpus |
63
+ | 5. Cached reuse | lru_cache, diskcache | Replay a near-duplicate prior answer |
64
+ | 6. Deep-think LLM | last resort | Two competent humans would reasonably disagree |
65
+
66
+ Enforced via schema-validated `logic_tier` fields per acceptance criterion +
67
+ CI drift checks (a criterion that claims rung ≤5 but imports an LLM SDK
68
+ fails the gate). Most agentic-coding tools default everything to rung 6 —
69
+ this is the difference between "call the LLM" and "decide whether you
70
+ should."
71
+
72
+ ## Prior-art gate
73
+
74
+ Before scaffolding a non-trivial module (auth, payments, queues, parsers,
75
+ state machines, a canvas/diagram editor, PDF processing — anything a mature
76
+ library probably already solves) PCP runs a prior-art check: search
77
+ GitHub/npm/PyPI, shortlist candidates, check license compatibility, decide
78
+ reuse-as-dependency / fork-adapt / reference-pattern-only / build-fresh
79
+ *before* code gets written. Rationale is recorded per module, not left to
80
+ whether the agent happened to think of it that day.
81
+
82
+ ## Install
83
+
84
+ ```
85
+ pip install -e .
86
+ pcp init
87
+ ```
88
+
89
+ Requires `git` and the `claude` CLI on `PATH`. Run `pcp doctor` to check
90
+ your environment.
91
+
92
+ ## Status
93
+
94
+ Pre-launch — validating across real dogfood projects before a public 1.0.
95
+ Core loop (schema, validate-strategy, scan, Layer 1/2/3 gates) is built and
96
+ tested.
97
+
98
+ ## License
99
+
100
+ MIT OR Apache-2.0
@@ -0,0 +1,69 @@
1
+ # PCP — Program Context Protocol — Self-Install
2
+
3
+ You are an LLM that has been told to "implement PCP" or "take over this
4
+ project with PCP." Follow these steps exactly, in order.
5
+
6
+ ## 1. Install
7
+
8
+ ```bash
9
+ cd /tmp
10
+ WHEEL_URL=$(curl -sS https://api.github.com/repos/program-context-protocol/program-context-protocol/releases/latest \
11
+ | python3 -c "import json,sys; d=json.load(sys.stdin); print([a['browser_download_url'] for a in d['assets'] if a['name'].endswith('.whl')][0])")
12
+ curl -sL -OJ "$WHEEL_URL"
13
+ pip install ./program_context_protocol-*.whl
14
+ ```
15
+
16
+ Resolves the real wheel filename from the latest GitHub Release rather
17
+ than assuming a fixed name — pip validates a wheel's filename structurally
18
+ (`name-version-...`) and rejects anything that isn't a real version, so
19
+ there's no fixed "-latest-" alias to fetch by name; this always installs
20
+ whatever was most recently released.
21
+
22
+ ## 2. Verify the environment
23
+
24
+ ```bash
25
+ pcp doctor --check
26
+ ```
27
+
28
+ This reports which optional tools are available (test runner, linter, SAST
29
+ scanner, `gh` for CI status). Only `git` and the `claude` CLI are required —
30
+ everything else just means the corresponding QA gate will skip until
31
+ installed.
32
+
33
+ ## 3. Take over the project
34
+
35
+ Write a short vision document (`vision.md`) describing what this project
36
+ should do — plain English is fine. If one already exists in the repo, use
37
+ that. Then, from the project root:
38
+
39
+ ```bash
40
+ pcp takeover vision.md
41
+ ```
42
+
43
+ This single command:
44
+ 1. Runs the environment preflight (step 2, repeated automatically).
45
+ 2. Generates `.pcp/objective.md`, `architecture.md`, module specs, and CI
46
+ rules from the vision doc.
47
+ 3. Runs `pcp validate-strategy` and shows you coverage/coupling scores.
48
+ 4. Asks for your approval before writing anything permanent.
49
+ 5. Once approved, autonomously builds every pending acceptance criterion —
50
+ each one gated by tests, lint, SAST, and an architect-review pass before
51
+ it's marked complete.
52
+
53
+ ## 4. Ongoing operation
54
+
55
+ ```bash
56
+ pcp watch # poll CI + deploy health, auto-fix failures
57
+ pcp deploy # gated deploy: approval prompt, smoke test, auto-rollback
58
+ pcp status --pm # plain-English progress report, any time
59
+ pcp provenance # audit-evidence doc — which gates ran, which were skipped/bypassed
60
+ ```
61
+
62
+ ## Notes
63
+
64
+ - Everything PCP does is logged locally under `.pcp/` in the project. No
65
+ telemetry is sent upstream by default.
66
+ - Re-running `pcp takeover <vision.md>` on a project that already has a
67
+ `.pcp/` directory will ask before overwriting it (`--force` to skip the
68
+ prompt).
69
+ - Full command reference: `pcp --help`, or `pcp <command> --help`.
@@ -0,0 +1,55 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "program-context-protocol"
7
+ version = "0.12.4"
8
+ description = "PCP — prevent LLM hallucination and context drift across dev sessions"
9
+ readme = "README.md"
10
+ keywords = [
11
+ "llm", "ai-agent", "context-drift", "spec-driven-development",
12
+ "hallucination", "claude-code", "ci-cd", "agentic-coding",
13
+ ]
14
+ license = {text = "MIT OR Apache-2.0"}
15
+ requires-python = ">=3.10"
16
+ dependencies = [
17
+ "click>=8.1",
18
+ "pyyaml>=6.0",
19
+ "jsonschema>=4.21",
20
+ "rich>=13.0",
21
+ "networkx>=3.0",
22
+ ]
23
+
24
+ [project.optional-dependencies]
25
+ # Community-detection enrichment on top of validate-strategy's deterministic
26
+ # coupling_score (see coupling.py) — surfaces informal module clusters beyond
27
+ # declared dependencies. Optional: pulls in numpy + ~20 tree-sitter grammars,
28
+ # not needed for the core coupling computation, which only needs networkx.
29
+ graph = ["graphifyy>=0.8"]
30
+ # `visual` acceptance-criterion checks (uat.py's check_visual) — real headless-
31
+ # browser rendering, the one thing dom_contains's static-HTML fetch can't do.
32
+ # Optional: pulls in a Chromium binary via `playwright install`, not needed
33
+ # for anything else in this package.
34
+ visual = ["playwright>=1.40"]
35
+
36
+ [project.urls]
37
+ Homepage = "https://github.com/program-context-protocol/program-context-protocol"
38
+ Repository = "https://github.com/program-context-protocol/program-context-protocol"
39
+ Issues = "https://github.com/program-context-protocol/program-context-protocol/issues"
40
+
41
+ [project.scripts]
42
+ pcp = "pcp.cli:cli"
43
+
44
+ [tool.hatch.build.targets.wheel]
45
+ packages = ["src/pcp"]
46
+ artifacts = ["src/pcp/skill_data/**/*.md", "src/pcp/schema/*.schema.json"]
47
+
48
+ [tool.hatch.envs.default]
49
+ dependencies = [
50
+ "pytest>=8.0",
51
+ "pytest-mock>=3.12",
52
+ ]
53
+
54
+ [tool.hatch.envs.default.scripts]
55
+ test = "pytest tests/ -v"