program-context-protocol 0.12.4__py3-none-any.whl
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.
- pcp/__init__.py +3 -0
- pcp/assertions.py +152 -0
- pcp/attest.py +111 -0
- pcp/build_loop_bypass.py +76 -0
- pcp/build_report.py +54 -0
- pcp/capture.py +339 -0
- pcp/cli.py +104 -0
- pcp/commands/__init__.py +0 -0
- pcp/commands/amend.py +283 -0
- pcp/commands/architect_review.py +291 -0
- pcp/commands/architecture_justification.py +164 -0
- pcp/commands/audit.py +371 -0
- pcp/commands/build.py +4523 -0
- pcp/commands/build_plan.py +153 -0
- pcp/commands/build_status.py +83 -0
- pcp/commands/capture.py +72 -0
- pcp/commands/check.py +584 -0
- pcp/commands/context.py +151 -0
- pcp/commands/control_audit_cmd.py +54 -0
- pcp/commands/correct_objective.py +160 -0
- pcp/commands/dashboard.py +732 -0
- pcp/commands/deploy.py +199 -0
- pcp/commands/deploy_check.py +134 -0
- pcp/commands/design_audit.py +323 -0
- pcp/commands/diff.py +153 -0
- pcp/commands/diff_reduce.py +355 -0
- pcp/commands/docs.py +538 -0
- pcp/commands/doctor.py +820 -0
- pcp/commands/escalations_cmd.py +64 -0
- pcp/commands/gate.py +209 -0
- pcp/commands/import_project.py +404 -0
- pcp/commands/init.py +1634 -0
- pcp/commands/install_hook.py +283 -0
- pcp/commands/install_skill.py +48 -0
- pcp/commands/kickoff.py +772 -0
- pcp/commands/narrative_lint.py +54 -0
- pcp/commands/objective_conflicts_cmd.py +68 -0
- pcp/commands/pm.py +504 -0
- pcp/commands/pressure_test_cmd.py +72 -0
- pcp/commands/provenance.py +313 -0
- pcp/commands/prune.py +179 -0
- pcp/commands/report.py +49 -0
- pcp/commands/run_log_cmd.py +122 -0
- pcp/commands/scan.py +346 -0
- pcp/commands/self_update.py +125 -0
- pcp/commands/status.py +180 -0
- pcp/commands/takeover.py +55 -0
- pcp/commands/telemetry_cmd.py +167 -0
- pcp/commands/validate_module.py +153 -0
- pcp/commands/validate_strategy.py +413 -0
- pcp/commands/verify.py +166 -0
- pcp/commands/verify_syntax_fix.py +74 -0
- pcp/commands/watch.py +372 -0
- pcp/config_audit.py +141 -0
- pcp/context_map.py +124 -0
- pcp/control_audit.py +159 -0
- pcp/coupling.py +178 -0
- pcp/coverage_audit.py +77 -0
- pcp/decision_log.py +134 -0
- pcp/discovery/__init__.py +0 -0
- pcp/discovery/clusters.py +124 -0
- pcp/discovery/graph.py +110 -0
- pcp/discovery/scanner.py +109 -0
- pcp/escalations.py +193 -0
- pcp/evidence.py +30 -0
- pcp/evidence_chain.py +56 -0
- pcp/impact.py +164 -0
- pcp/install_approvals.py +44 -0
- pcp/integrity_audit.py +176 -0
- pcp/librarian.py +89 -0
- pcp/llm/__init__.py +0 -0
- pcp/llm/client.py +183 -0
- pcp/llm/coding_agent_contract.py +104 -0
- pcp/llm/harness/__init__.py +12 -0
- pcp/llm/harness/agy.py +121 -0
- pcp/llm/harness/agy_coding_loop.py +180 -0
- pcp/llm/harness/claude.py +241 -0
- pcp/llm/ledger.py +47 -0
- pcp/narrative_lint.py +229 -0
- pcp/nav_graph.py +226 -0
- pcp/objective_conflicts.py +129 -0
- pcp/operational.py +70 -0
- pcp/orphaned_work.py +262 -0
- pcp/pcp_dir.py +35 -0
- pcp/pcp_status.py +313 -0
- pcp/policy.py +81 -0
- pcp/pressure_test.py +196 -0
- pcp/qa.py +445 -0
- pcp/run_log.py +225 -0
- pcp/schema/__init__.py +0 -0
- pcp/schema/ci_rules.schema.json +106 -0
- pcp/schema/controls.schema.json +39 -0
- pcp/schema/module_acceptance.schema.json +144 -0
- pcp/schema/module_spec.schema.json +78 -0
- pcp/schema/sdlc_phase.schema.json +52 -0
- pcp/schema/validator.py +77 -0
- pcp/skill_data/pcp/SKILL.md +1897 -0
- pcp/spec_write.py +269 -0
- pcp/spend.py +77 -0
- pcp/symbols.py +86 -0
- pcp/telemetry.py +308 -0
- pcp/uat.py +271 -0
- pcp/version_drift.py +222 -0
- program_context_protocol-0.12.4.dist-info/METADATA +123 -0
- program_context_protocol-0.12.4.dist-info/RECORD +109 -0
- program_context_protocol-0.12.4.dist-info/WHEEL +4 -0
- program_context_protocol-0.12.4.dist-info/entry_points.txt +2 -0
- program_context_protocol-0.12.4.dist-info/licenses/LICENSE-APACHE +202 -0
- program_context_protocol-0.12.4.dist-info/licenses/LICENSE-MIT +21 -0
pcp/version_drift.py
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"""Is the PCP running here the PCP that was built from its source?
|
|
2
|
+
|
|
3
|
+
Every fix PCP ships reaches a frozen-wheel install only when a human remembers
|
|
4
|
+
to roll it. Nothing enumerated those installs, so nothing noticed when they
|
|
5
|
+
fell behind. On 2026-07-27 that gap surfaced four times in one session, the
|
|
6
|
+
worst being a Railway-served wheel that kept distributing a version containing
|
|
7
|
+
a daily unverified `curl` overwrite of an agent instruction file for two days
|
|
8
|
+
after the fix landed, and two abandoned build worktrees carrying their own
|
|
9
|
+
`.venv` at 0.8.6 with the same vulnerability -- both missed by a rollout that
|
|
10
|
+
worked from a remembered project list instead of the disk.
|
|
11
|
+
|
|
12
|
+
The check is deliberately narrow and deterministic (rung 1): compare the
|
|
13
|
+
installed distribution's version against the version declared in the source
|
|
14
|
+
tree it was built from, when that source tree is locatable. It answers exactly
|
|
15
|
+
one question -- "is this install behind its own source?" -- and says so. It
|
|
16
|
+
does not fetch anything, contact any network, or attempt an upgrade.
|
|
17
|
+
|
|
18
|
+
Advisory, never fatal: a project can legitimately pin an older PCP, and a tool
|
|
19
|
+
that hard-blocks on its own version would be worse than the drift it reports.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
import hashlib
|
|
23
|
+
import importlib.metadata as md
|
|
24
|
+
import os
|
|
25
|
+
import re
|
|
26
|
+
from pathlib import Path
|
|
27
|
+
|
|
28
|
+
import pcp
|
|
29
|
+
|
|
30
|
+
_VERSION_RE = re.compile(r'^version\s*=\s*["\']([^"\']+)["\']', re.MULTILINE)
|
|
31
|
+
|
|
32
|
+
DIST_NAME = "program-context-protocol"
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def installed_version() -> str | None:
|
|
36
|
+
try:
|
|
37
|
+
return md.version(DIST_NAME)
|
|
38
|
+
except Exception:
|
|
39
|
+
return None
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def source_root() -> Path | None:
|
|
43
|
+
"""The source tree to compare this install against.
|
|
44
|
+
|
|
45
|
+
`PCP_SOURCE_ROOT` wins when set. That override is the whole reason a WHEEL
|
|
46
|
+
install can be checked at all: a wheel lives in site-packages with no
|
|
47
|
+
pyproject.toml above it, so without it there is nothing to compare against
|
|
48
|
+
and the check goes quiet — which would have missed the exact case it was
|
|
49
|
+
written for (two abandoned worktree `.venv`s frozen at 0.8.6 while the
|
|
50
|
+
source tree was thirteen releases ahead). Stated plainly rather than
|
|
51
|
+
guessing at sibling paths: an unset override means "cannot verify", not
|
|
52
|
+
"verified fine".
|
|
53
|
+
"""
|
|
54
|
+
override = os.environ.get("PCP_SOURCE_ROOT")
|
|
55
|
+
if override:
|
|
56
|
+
root = Path(override).expanduser()
|
|
57
|
+
return root if (root / "pyproject.toml").exists() else None
|
|
58
|
+
try:
|
|
59
|
+
pkg = Path(pcp.__file__).resolve().parent # .../src/pcp
|
|
60
|
+
except Exception:
|
|
61
|
+
return None
|
|
62
|
+
for candidate in (pkg.parent.parent, pkg.parent): # repo root, or flat layout
|
|
63
|
+
if (candidate / "pyproject.toml").exists():
|
|
64
|
+
return candidate
|
|
65
|
+
return None
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def is_editable() -> bool:
|
|
69
|
+
"""Does this install execute the source tree directly?
|
|
70
|
+
|
|
71
|
+
The single most repeated mistake in this project's own history: treating a
|
|
72
|
+
stale `pcp --version` as proof of stale BEHAVIOUR. An editable install runs
|
|
73
|
+
source live, so its recorded version goes stale the moment source is bumped
|
|
74
|
+
while the code is already current. A wheel is the opposite — the recorded
|
|
75
|
+
version IS the code. Conflating them either cries wolf on editable installs
|
|
76
|
+
or, far worse, silently downgrades a genuinely outdated wheel to a cosmetic
|
|
77
|
+
warning. Read from packaging metadata (PEP 610 direct_url.json), not guessed
|
|
78
|
+
from paths.
|
|
79
|
+
"""
|
|
80
|
+
try:
|
|
81
|
+
dist = md.distribution(DIST_NAME)
|
|
82
|
+
raw = dist.read_text("direct_url.json")
|
|
83
|
+
except Exception:
|
|
84
|
+
return False
|
|
85
|
+
if not raw:
|
|
86
|
+
return False
|
|
87
|
+
try:
|
|
88
|
+
import json
|
|
89
|
+
return bool(json.loads(raw).get("dir_info", {}).get("editable"))
|
|
90
|
+
except Exception:
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def source_version(root: Path) -> str | None:
|
|
95
|
+
try:
|
|
96
|
+
text = (root / "pyproject.toml").read_text()
|
|
97
|
+
except OSError:
|
|
98
|
+
return None
|
|
99
|
+
m = _VERSION_RE.search(text)
|
|
100
|
+
return m.group(1) if m else None
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def _package_fingerprint(pkg_dir: Path) -> str | None:
|
|
104
|
+
"""Content hash of every .py under a package directory.
|
|
105
|
+
|
|
106
|
+
Version strings are not evidence of code. Found 2026-07-27 minutes after
|
|
107
|
+
shipping this module: Project O's venv and the source tree both
|
|
108
|
+
declared 0.9.14 while the venv's copy was missing a function added to
|
|
109
|
+
source under that same version. The check reported "ok". Comparing declared
|
|
110
|
+
versions cannot see unreleased source changes, which is the single most
|
|
111
|
+
common way an install goes stale between releases.
|
|
112
|
+
"""
|
|
113
|
+
if not pkg_dir.is_dir():
|
|
114
|
+
return None
|
|
115
|
+
h = hashlib.sha256()
|
|
116
|
+
for f in sorted(pkg_dir.rglob("*.py")):
|
|
117
|
+
if "__pycache__" in f.parts:
|
|
118
|
+
continue
|
|
119
|
+
try:
|
|
120
|
+
h.update(f.relative_to(pkg_dir).as_posix().encode())
|
|
121
|
+
h.update(f.read_bytes())
|
|
122
|
+
except OSError:
|
|
123
|
+
return None
|
|
124
|
+
return h.hexdigest()
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def code_differs(root: Path) -> bool | None:
|
|
128
|
+
"""Does the installed package's CODE differ from the source tree's?
|
|
129
|
+
|
|
130
|
+
None when either side cannot be fingerprinted -- unknown, never "fine".
|
|
131
|
+
"""
|
|
132
|
+
try:
|
|
133
|
+
installed = Path(pcp.__file__).resolve().parent
|
|
134
|
+
except Exception:
|
|
135
|
+
return None
|
|
136
|
+
for candidate in (root / "src" / "pcp", root / "pcp"):
|
|
137
|
+
if candidate.is_dir():
|
|
138
|
+
src_fp = _package_fingerprint(candidate)
|
|
139
|
+
inst_fp = _package_fingerprint(installed)
|
|
140
|
+
if src_fp is None or inst_fp is None:
|
|
141
|
+
return None
|
|
142
|
+
return src_fp != inst_fp
|
|
143
|
+
return None
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def _as_tuple(v: str) -> tuple:
|
|
147
|
+
parts = []
|
|
148
|
+
for chunk in v.split("."):
|
|
149
|
+
num = "".join(c for c in chunk if c.isdigit())
|
|
150
|
+
parts.append(int(num) if num else 0)
|
|
151
|
+
return tuple(parts)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def check() -> dict:
|
|
155
|
+
"""{"status": ok|behind|stale_metadata|unknown, "message": str, ...}.
|
|
156
|
+
|
|
157
|
+
`stale_metadata` is its own outcome and not a problem: an editable install
|
|
158
|
+
executes source directly, so its recorded version string goes stale the
|
|
159
|
+
moment the source is bumped without a reinstall, while the CODE is already
|
|
160
|
+
current. Conflating that with a genuinely behind wheel is exactly the
|
|
161
|
+
mistake this project has made repeatedly by reading `pcp --version`.
|
|
162
|
+
"""
|
|
163
|
+
inst = installed_version()
|
|
164
|
+
if inst is None:
|
|
165
|
+
return {"status": "unknown", "message": "PCP distribution metadata not found."}
|
|
166
|
+
|
|
167
|
+
root = source_root()
|
|
168
|
+
if root is None:
|
|
169
|
+
return {
|
|
170
|
+
"status": "unknown", "installed": inst,
|
|
171
|
+
"message": (
|
|
172
|
+
f"PCP {inst} installed from a wheel — cannot verify it is current. "
|
|
173
|
+
f"Set PCP_SOURCE_ROOT to your PCP checkout to enable this check."
|
|
174
|
+
),
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
src = source_version(root)
|
|
178
|
+
if src is None:
|
|
179
|
+
return {"status": "unknown", "installed": inst,
|
|
180
|
+
"message": f"Could not read a version from {root / 'pyproject.toml'}."}
|
|
181
|
+
|
|
182
|
+
if inst == src:
|
|
183
|
+
# Same version string is NOT the same code -- see _package_fingerprint.
|
|
184
|
+
if code_differs(root) is True:
|
|
185
|
+
return {
|
|
186
|
+
"status": "code_drift", "installed": inst, "source": src,
|
|
187
|
+
"source_root": str(root), "editable": is_editable(),
|
|
188
|
+
"message": (
|
|
189
|
+
f"PCP {inst} matches the source version string, but the INSTALLED CODE "
|
|
190
|
+
f"differs from {root}. The source has changes not present in this "
|
|
191
|
+
f"install -- unreleased edits under the same version number. Rebuild "
|
|
192
|
+
f"and reinstall to pick them up."
|
|
193
|
+
),
|
|
194
|
+
}
|
|
195
|
+
return {"status": "ok", "installed": inst, "source": src, "source_root": str(root),
|
|
196
|
+
"message": f"PCP {inst} matches its source tree."}
|
|
197
|
+
|
|
198
|
+
if _as_tuple(inst) < _as_tuple(src):
|
|
199
|
+
if is_editable():
|
|
200
|
+
return {
|
|
201
|
+
"status": "stale_metadata", "installed": inst, "source": src,
|
|
202
|
+
"source_root": str(root), "editable": True,
|
|
203
|
+
"message": (
|
|
204
|
+
f"PCP metadata says {inst}, source tree at {root} is {src}. This is an "
|
|
205
|
+
f"EDITABLE install, so the CODE is already {src} — only the recorded "
|
|
206
|
+
f"version string is stale. Refresh with `pip install -e {root}` if you "
|
|
207
|
+
f"want `pcp --version` to be honest."
|
|
208
|
+
),
|
|
209
|
+
}
|
|
210
|
+
return {
|
|
211
|
+
"status": "behind", "installed": inst, "source": src,
|
|
212
|
+
"source_root": str(root), "editable": False,
|
|
213
|
+
"message": (
|
|
214
|
+
f"PCP {inst} is installed as a WHEEL while its source tree at {root} is "
|
|
215
|
+
f"{src}. This install is genuinely running old code and is missing every "
|
|
216
|
+
f"fix made since {inst}."
|
|
217
|
+
),
|
|
218
|
+
}
|
|
219
|
+
return {
|
|
220
|
+
"status": "ahead", "installed": inst, "source": src, "source_root": str(root),
|
|
221
|
+
"message": f"PCP {inst} is NEWER than the source tree at {root} ({src}).",
|
|
222
|
+
}
|
|
@@ -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,109 @@
|
|
|
1
|
+
pcp/__init__.py,sha256=C3fu8cVn5yXpVyj6RgnC65mHfffwwTlVtWhvZHdRR14,63
|
|
2
|
+
pcp/assertions.py,sha256=TYeDyXWsIGguRxAODIp-i1eJkCD2B7fnqZh2dH3qipo,7579
|
|
3
|
+
pcp/attest.py,sha256=HkPKdqykUlo24AgXgvbcMPKihtQeK2gkuAsFpR7lGOM,4543
|
|
4
|
+
pcp/build_loop_bypass.py,sha256=zVUbx8FmvZVz6co69O3husAGYgTrJEJjnCI3Njaze3A,2859
|
|
5
|
+
pcp/build_report.py,sha256=xu9hMcrZNiuN57bAYO5dWru8OOdp1ONM7E8XFS_cIIA,2599
|
|
6
|
+
pcp/capture.py,sha256=gc8PCwE-WfADI0vnsNmaPm8sPnG-AnDObm8Uu27pnzE,14996
|
|
7
|
+
pcp/cli.py,sha256=imaCnIL1-2ur4htGXPsr4imA_yEQmZayhnor0l9aryc,3826
|
|
8
|
+
pcp/config_audit.py,sha256=cQ3-C0taGBdxlI0kEpBVAK0qghN69XP6Yyi4lHyd_VQ,6037
|
|
9
|
+
pcp/context_map.py,sha256=0R-gdsadSbxEN-APczmqxluj2x_hBzYNbaCOf2m9Zbw,4839
|
|
10
|
+
pcp/control_audit.py,sha256=y5JCZRzlQugxvWffWqfLHRYCgMGusLv-E5ytAxKmW8I,6609
|
|
11
|
+
pcp/coupling.py,sha256=-vASyKAsO9JcgluByg0RMQKxbqfs_IQ8ZRl_0S9lXHM,7674
|
|
12
|
+
pcp/coverage_audit.py,sha256=tBv1oz01d0mv869lHkNJxYUVKq86F2FwHYCey3DvEJE,3153
|
|
13
|
+
pcp/decision_log.py,sha256=GoMlOqgtoY-v77s04OvBPUEZazDogKdt2jR1ajWpH8k,5037
|
|
14
|
+
pcp/escalations.py,sha256=t_5Criola7oSfwYgPFGZaLcKZxSjbrquhp8pPa8l1q4,7726
|
|
15
|
+
pcp/evidence.py,sha256=jxnX-ntR6x0EmgCbPoqVSe7L8VD_ldMXFzxfcgvgkjk,1449
|
|
16
|
+
pcp/evidence_chain.py,sha256=BPcP6A9A9Hosd3_aVPEJgbG7Khv5tIatIi9O67EM7gc,2435
|
|
17
|
+
pcp/impact.py,sha256=WPm6pG_QIVHOhEo-4OrQaBAe7OtPolEbP34-o8dp0is,7434
|
|
18
|
+
pcp/install_approvals.py,sha256=LtKIZmChuLepH8c9H26TimS--yxDWHyGUBckyo2v5eU,1478
|
|
19
|
+
pcp/integrity_audit.py,sha256=XzAMQTjk_Mf7MK0Rac-gcVVGn0IxG5d6LpL7xtdDkp0,7224
|
|
20
|
+
pcp/librarian.py,sha256=_OweGrskqIv_UEdQkYcPTw3QqYXNjlXc2MyC-nJPcQ4,3550
|
|
21
|
+
pcp/narrative_lint.py,sha256=SR70uKzs6nxPLjdNYWjE8RnV_nxJj9jwXWY8Tu3nP4c,9591
|
|
22
|
+
pcp/nav_graph.py,sha256=TTdWRA0bw7S6_OF9GgPXIzT-AlCTjVYbgbklHLfya_c,8829
|
|
23
|
+
pcp/objective_conflicts.py,sha256=Urjrs1BeBWJmmRQahWAWRkQE5w-Kb3hM0QzUqKG38b8,5703
|
|
24
|
+
pcp/operational.py,sha256=UZoKT6s_TJFRByw-K0846uig2ChmnqL9oSh3s2P-DF8,3383
|
|
25
|
+
pcp/orphaned_work.py,sha256=kWhNKpe2mpg9TLICCBxSWJn26irUw5pf0vNfL_RSbWM,12141
|
|
26
|
+
pcp/pcp_dir.py,sha256=LzUSatR7AkAucKo8AXYaNeciLh9yee5cbCkTFW3KVKk,925
|
|
27
|
+
pcp/pcp_status.py,sha256=xqZgYY21PiLj4Xgb4RTOKRoONVX8cTkEyJlvk3gO7KE,11493
|
|
28
|
+
pcp/policy.py,sha256=RpBuF1xH6XMjjWCiHkosguRPrfOBHPJUbelPpuljQQ8,3265
|
|
29
|
+
pcp/pressure_test.py,sha256=ITbAUlcp-wxDZKpFQcUX7n-8ZIPWTg1sZpVRaZNIwzI,9483
|
|
30
|
+
pcp/qa.py,sha256=ztOmJmC-kWL6QLUQPQikRNbT4cDAUabwM4EUR64GjLM,21121
|
|
31
|
+
pcp/run_log.py,sha256=Cen4AFILx4cJImXss0UMZQLP1E-CW9nuMbjL2RphOgA,10196
|
|
32
|
+
pcp/spec_write.py,sha256=2DIss-ge6c0k4r2hrpieiynp9ORmCZo_oJWEeRdps28,11040
|
|
33
|
+
pcp/spend.py,sha256=Eb8K3qLD31GxY-SND8L31JnVJXCW0Jf31cXNg2Gscc8,2991
|
|
34
|
+
pcp/symbols.py,sha256=PHHBANOnlTQFVfAPkl6cUAr8ZtSeafwvFL0Q6-xKsuE,3354
|
|
35
|
+
pcp/telemetry.py,sha256=nw2fiDJSDzf7i2LBdpf-EyLheL6w1NMiJj3Me1Jqass,13198
|
|
36
|
+
pcp/uat.py,sha256=6fnYGT5gSvn2ysgTC_nJg4WSEzPUUS08PZFT9TaqNE8,13654
|
|
37
|
+
pcp/version_drift.py,sha256=mq2-su3uOgdRbBpF47UjTSilNI7sZAcK1sgJOte66z0,8909
|
|
38
|
+
pcp/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
|
+
pcp/commands/amend.py,sha256=UBFWjdofI5H3kG-b1_nNeiK1yC7hY4U7MhcD5uE7-_E,12119
|
|
40
|
+
pcp/commands/architect_review.py,sha256=fB54PAVT5hXWQnLnqYavC7VOBG5PbWO4EsZ6H-Nq_aw,9856
|
|
41
|
+
pcp/commands/architecture_justification.py,sha256=q3FCeozTs_b8b_ybp8BgJHFV9NbIbPjfWfd9T9Qy9Ko,6281
|
|
42
|
+
pcp/commands/audit.py,sha256=EIfg-ou_1ixCR0mZJnB3mnw_kpEUMzp53VjtcgqTBPk,16530
|
|
43
|
+
pcp/commands/build.py,sha256=rqEoYLWsHfYm54-OrOyCctFK-RJfMEWuchvhGYdlh2M,240009
|
|
44
|
+
pcp/commands/build_plan.py,sha256=4adSnFGxiEbV8V40qKfcZEdAktftcNb9kJ9Mg5h35kk,7499
|
|
45
|
+
pcp/commands/build_status.py,sha256=c4KopAxdT0JaTyQ5_9Dml4LDmqzrELcc7bATIXJMKkw,3032
|
|
46
|
+
pcp/commands/capture.py,sha256=cD5NGCrfDHueuYwc0DKqP6kTNUlD5eQybS58CmvJzaU,2899
|
|
47
|
+
pcp/commands/check.py,sha256=SVLTellteLbw3e6n-K-L-pBbiyLQ1N8CJ3eAojB6jXw,26297
|
|
48
|
+
pcp/commands/context.py,sha256=O4SagH-pW9Cvjmhc5I7r71nbUwWq9YMq7A3lAWp2mlk,5667
|
|
49
|
+
pcp/commands/control_audit_cmd.py,sha256=-H9fSXseDzwlb3A6wwtidREGphGzOmq0wWz5cA1g0t8,2323
|
|
50
|
+
pcp/commands/correct_objective.py,sha256=LJTsRA6QJSA47VBxcX11XUPl4B7C5O3VrUhX-lJfTt0,7298
|
|
51
|
+
pcp/commands/dashboard.py,sha256=edhgSipiAEtaYvZN6NmW9CYGDOIOwW37oRpznbvrNfg,32041
|
|
52
|
+
pcp/commands/deploy.py,sha256=PvjhW7m0lTarjIzYpqBM3sfpQuupkxQ7DGI3uZN3j64,8951
|
|
53
|
+
pcp/commands/deploy_check.py,sha256=qL-cDSVO_jnPbR5ndNvdVn9TK_XfMTzqSmq6uoeT52M,5028
|
|
54
|
+
pcp/commands/design_audit.py,sha256=3UwwaVi5IctIXOx1RUccXyuCBIpCJGZtaO4_rLCXG2s,13756
|
|
55
|
+
pcp/commands/diff.py,sha256=OdLE5nNTIMxvdxtSOfzs7-oREfnW280CtT_kZ8Z3vrw,5580
|
|
56
|
+
pcp/commands/diff_reduce.py,sha256=_ceVN7uZjA3cJ6LRU06oVgbExip8VGU1u-L3BLseH0c,17406
|
|
57
|
+
pcp/commands/docs.py,sha256=jx_PfeiO2k5BUljtYJPXwQTs382UdmRaeRH6B9bud4Y,25347
|
|
58
|
+
pcp/commands/doctor.py,sha256=0IlpYyW8WXMEStEyFjYatDUNkqwi0nr4SEJQpgcYB3U,38598
|
|
59
|
+
pcp/commands/escalations_cmd.py,sha256=DgCu4-rRweMrCyS9y6kE50v0a4zXSSEi-w2724DEx5w,2549
|
|
60
|
+
pcp/commands/gate.py,sha256=83Uqe7NtSyIm4_-zAPRsOHdRSc2QAnfCKT0zF7domRY,7521
|
|
61
|
+
pcp/commands/import_project.py,sha256=u5kIkduj2M6PojjyWJ9bL10FtajTBqwA9bNegNW9TY4,18963
|
|
62
|
+
pcp/commands/init.py,sha256=U7PdssLz61_xYiuHNlhkKgb7RJQPawDnz1Vnw-8j1zY,82503
|
|
63
|
+
pcp/commands/install_hook.py,sha256=QjMzNGD9HuMqvs0l_1vO9LABrlfVKmPTALC1V6L8jT4,12485
|
|
64
|
+
pcp/commands/install_skill.py,sha256=apQ0E19o0PGe5nXmKtWIGp_0dHXETwMKxqn7tgX6CAs,2067
|
|
65
|
+
pcp/commands/kickoff.py,sha256=MpQvLtLNmD5jcYZhdbGt41MMLl9VUHj5B0TMxcWVA94,44960
|
|
66
|
+
pcp/commands/narrative_lint.py,sha256=L8rGVCK69QVkvmsOiuYhBVw2j3PyKScKkiL287YNKQI,2333
|
|
67
|
+
pcp/commands/objective_conflicts_cmd.py,sha256=iD7B7y6eproyRhKgYAOHBocI3ZgoNBOAuSMQutFoMIo,2832
|
|
68
|
+
pcp/commands/pm.py,sha256=yn3LRWBps_YjmDm_qyeTEUVmDikvQAzVGOY_Sgexomw,27011
|
|
69
|
+
pcp/commands/pressure_test_cmd.py,sha256=EoR75cd-KxzI8hz2Xm4015AXuPk9PSuA-pd296KAUkk,3498
|
|
70
|
+
pcp/commands/provenance.py,sha256=3-xpFT6h6MEx9W617p7meO8xGvmil-Js5NAFBIocj6g,13775
|
|
71
|
+
pcp/commands/prune.py,sha256=7zpPxTw_ClDrQHavEShVrccbNOeCjcQAh_f1gNTMA3E,7667
|
|
72
|
+
pcp/commands/report.py,sha256=4gZOXBzQ3xb-Qh2h4paiz31ma8z0mJkJ4oSmMayZITA,1879
|
|
73
|
+
pcp/commands/run_log_cmd.py,sha256=msOlkBd2tAPYsmvuoUWx5mFGR5JHjGaVeiC72j0Prro,6004
|
|
74
|
+
pcp/commands/scan.py,sha256=9_TwHv4NYmxQOUJzET7CkV_-GGdAsmczMWCTX181e0E,14056
|
|
75
|
+
pcp/commands/self_update.py,sha256=NnQZ22JwquqHx_iOsCS2C_tY1QKhmo6KsVKeXim4IaI,5026
|
|
76
|
+
pcp/commands/status.py,sha256=_ARJcqagk9vcUse6_PuUK0bHe32oShTeGNsflXb3YdU,7630
|
|
77
|
+
pcp/commands/takeover.py,sha256=BSMJp5ziCDKwcS1H43pTv7eEy59bSK_lTX7xjvCHi14,1983
|
|
78
|
+
pcp/commands/telemetry_cmd.py,sha256=Jxjb7M-esGyeAg2PT1fuOyriC60pJjVDjkj_EN9saxc,7752
|
|
79
|
+
pcp/commands/validate_module.py,sha256=mvyFVu3ayQJoCtkqTvGOUniVizBHZuCS9mbFGN9h2fo,5663
|
|
80
|
+
pcp/commands/validate_strategy.py,sha256=8BVgIL5oxU9Lq7iMjq5nVMWRcvi7ihiMe2K4Q-RMdTY,20218
|
|
81
|
+
pcp/commands/verify.py,sha256=DTo9utNwLtULhUAxdoYdZmYTzbZF9xPt8tFDLRdMnUs,7998
|
|
82
|
+
pcp/commands/verify_syntax_fix.py,sha256=2PNU5MgPOZMBaIi2Rz9e1qpBBd0LnujMYYynWBZab3g,3077
|
|
83
|
+
pcp/commands/watch.py,sha256=_ggoOg-g4CyfN7lDu9-OAAI-8stnYTiD9raUSAI5Xt4,17683
|
|
84
|
+
pcp/discovery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
85
|
+
pcp/discovery/clusters.py,sha256=dO4b9VhNIijmXm6MPswEfF1TnPfwvSL6tqQCc-scdZA,4138
|
|
86
|
+
pcp/discovery/graph.py,sha256=6pOHbuJBh0as-yFXJZZO_eDalHheBiAybpX9Qdrm1jk,3686
|
|
87
|
+
pcp/discovery/scanner.py,sha256=p-0NJhIXRwoYwEZBA_xam2lD17FdeRnNX9Q5N-2tDMI,3455
|
|
88
|
+
pcp/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
89
|
+
pcp/llm/client.py,sha256=vqjafjlvUxZrsxIPUGXMXBZbK8syW1rPD3m9JjuGY9g,9443
|
|
90
|
+
pcp/llm/coding_agent_contract.py,sha256=YixSqrtcf5d5SegqjJ2Nd8KHNbEAA1x9-wg2DlvMtXc,5121
|
|
91
|
+
pcp/llm/ledger.py,sha256=uVIbaCWHwbc2GUZP33R9me9kHm9AsY60HRh_6OVjfh4,2116
|
|
92
|
+
pcp/llm/harness/__init__.py,sha256=6aAzfFDqJKT4Uh8HYTcosEnov-dcchrr7eNM5DIAJ34,695
|
|
93
|
+
pcp/llm/harness/agy.py,sha256=olYPZXrOmzIUO1xgb5NqpES9c8AN6mvq-YehHzFwzpY,5385
|
|
94
|
+
pcp/llm/harness/agy_coding_loop.py,sha256=3EZdOhcCMNPzxr5X_s6S4htpQQzpRBFB-NdGrdch-94,8322
|
|
95
|
+
pcp/llm/harness/claude.py,sha256=jWrZq3c-72v8IT8fSFIxV1HgcmjJhnIOWk1eSHhvo6o,10181
|
|
96
|
+
pcp/schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
97
|
+
pcp/schema/ci_rules.schema.json,sha256=6wqwxI69WTMe8pSt8GYSiwjoCtfxf8DDR3Xfx2Z8vxI,5301
|
|
98
|
+
pcp/schema/controls.schema.json,sha256=1FVNtHDWY37RdNbuupwljAC7E2MZf3Nw-XibrHsyEZ8,1556
|
|
99
|
+
pcp/schema/module_acceptance.schema.json,sha256=Dau2ya7-N2QXCXmmZ1GLfNLsOnw--210dBxecDeGzY8,8894
|
|
100
|
+
pcp/schema/module_spec.schema.json,sha256=Y7nsdWR8GSSF898uuqhDp8-NKK6qWq6AmyQ8Qkxb1Z8,3334
|
|
101
|
+
pcp/schema/sdlc_phase.schema.json,sha256=tko9Z31v8RucraFZW2mGo0EdpXIOF-S7wxGY8nSc840,1504
|
|
102
|
+
pcp/schema/validator.py,sha256=0funIlpK9JcLXwGXQLwEXJIUDinOYO4ggq5iHu8wFtg,3123
|
|
103
|
+
pcp/skill_data/pcp/SKILL.md,sha256=hczWtFUq-Dsje64SveVqTncbZFGcsnvs8x1jyiRZwu4,86145
|
|
104
|
+
program_context_protocol-0.12.4.dist-info/METADATA,sha256=narZkHjcpa0j0U0Y-8duHhuHcPQ9cpURzMJa2bDQnJk,4993
|
|
105
|
+
program_context_protocol-0.12.4.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
106
|
+
program_context_protocol-0.12.4.dist-info/entry_points.txt,sha256=HhusFZVeWyb_X96YUzf3Nnth7an24U4XeFiLWP0GUY4,36
|
|
107
|
+
program_context_protocol-0.12.4.dist-info/licenses/LICENSE-APACHE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
108
|
+
program_context_protocol-0.12.4.dist-info/licenses/LICENSE-MIT,sha256=hNqxFE3OVkocwR2fC6kuD09XANA5wUrSgDJ5ah2qsOU,1074
|
|
109
|
+
program_context_protocol-0.12.4.dist-info/RECORD,,
|
|
@@ -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.
|