Metadata-Version: 2.5
Name: git-contribution-analyzer
Version: 0.8.1
Summary: Evidence-backed Git contribution analysis with pluggable LLM providers.
Project-URL: Homepage, https://github.com/PANZERLEADER/git-contribution-analyzer
Project-URL: Repository, https://github.com/PANZERLEADER/git-contribution-analyzer
Project-URL: Documentation, https://github.com/PANZERLEADER/git-contribution-analyzer#readme
Project-URL: Changelog, https://github.com/PANZERLEADER/git-contribution-analyzer/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/PANZERLEADER/git-contribution-analyzer/issues
Author: Git Contribution Analyzer Contributors
License:                                  Apache License
                                   Version 2.0, January 2004
                                http://www.apache.org/licenses/
        
           TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
        
           1. Definitions.
        
              "License" shall mean the terms and conditions for use, reproduction,
              and distribution as defined by Sections 1 through 9 of this document.
        
              "Licensor" shall mean the copyright owner or entity authorized by
              the copyright owner that is granting the License.
        
              "Legal Entity" shall mean the union of the acting entity and all
              other entities that control, are controlled by, or are under common
              control with that entity. For the purposes of this definition,
              "control" means (i) the power, direct or indirect, to cause the
              direction or management of such entity, whether by contract or
              otherwise, or (ii) ownership of fifty percent (50%) or more of the
              outstanding shares, or (iii) beneficial ownership of such entity.
        
              "You" (or "Your") shall mean an individual or Legal Entity
              exercising permissions granted by this License.
        
              "Source" form shall mean the preferred form for making modifications,
              including but not limited to software source code, documentation
              source, and configuration files.
        
              "Object" form shall mean any form resulting from mechanical
              transformation or translation of a Source form, including but
              not limited to compiled object code, generated documentation,
              and conversions to other media types.
        
              "Work" shall mean the work of authorship, whether in Source or
              Object form, made available under the License, as indicated by a
              copyright notice that is included in or attached to the work
              (an example is provided in the Appendix below).
        
              "Derivative Works" shall mean any work, whether in Source or Object
              form, that is based on (or derived from) the Work and for which the
              editorial revisions, annotations, elaborations, or other modifications
              represent, as a whole, an original work of authorship. For the purposes
              of this License, Derivative Works shall not include works that remain
              separable from, or merely link (or bind by name) to the interfaces of,
              the Work and Derivative Works thereof.
        
              "Contribution" shall mean any work of authorship, including
              the original version of the Work and any modifications or additions
              to that Work or Derivative Works thereof, that is intentionally
              submitted to Licensor for inclusion in the Work by the copyright owner
              or by an individual or Legal Entity authorized to submit on behalf of
              the copyright owner. For the purposes of this definition, "submitted"
              means any form of electronic, verbal, or written communication sent
              to the Licensor or its representatives, including but not limited to
              communication on electronic mailing lists, source code control systems,
              and issue tracking systems that are managed by, or on behalf of, the
              Licensor for the purpose of discussing and improving the Work, but
              excluding communication that is conspicuously marked or otherwise
              designated in writing by the copyright owner as "Not a Contribution."
        
              "Contributor" shall mean Licensor and any individual or Legal Entity
              on behalf of whom a Contribution has been received by Licensor and
              subsequently incorporated within the Work.
        
           2. Grant of Copyright License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              copyright license to reproduce, prepare Derivative Works of,
              publicly display, publicly perform, sublicense, and distribute the
              Work and such Derivative Works in Source or Object form.
        
           3. Grant of Patent License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              (except as stated in this section) patent license to make, have made,
              use, offer to sell, sell, import, and otherwise transfer the Work,
              where such license applies only to those patent claims licensable
              by such Contributor that are necessarily infringed by their
              Contribution(s) alone or by combination of their Contribution(s)
              with the Work to which such Contribution(s) was submitted. If You
              institute patent litigation against any entity (including a
              cross-claim or counterclaim in a lawsuit) alleging that the Work
              or a Contribution incorporated within the Work constitutes direct
              or contributory patent infringement, then any patent licenses
              granted to You under this License for that Work shall terminate
              as of the date such litigation is filed.
        
           4. Redistribution. You may reproduce and distribute copies of the
              Work or Derivative Works thereof in any medium, with or without
              modifications, and in Source or Object form, provided that You
              meet the following conditions:
        
              (a) You must give any other recipients of the Work or
                  Derivative Works a copy of this License; and
        
              (b) You must cause any modified files to carry prominent notices
                  stating that You changed the files; and
        
              (c) You must retain, in the Source form of any Derivative Works
                  that You distribute, all copyright, patent, trademark, and
                  attribution notices from the Source form of the Work,
                  excluding those notices that do not pertain to any part of
                  the Derivative Works; and
        
              (d) If the Work includes a "NOTICE" text file as part of its
                  distribution, then any Derivative Works that You distribute must
                  include a readable copy of the attribution notices contained
                  within such NOTICE file, excluding those notices that do not
                  pertain to any part of the Derivative Works, in at least one
                  of the following places: within a NOTICE text file distributed
                  as part of the Derivative Works; within the Source form or
                  documentation, if provided along with the Derivative Works; or,
                  within a display generated by the Derivative Works, if and
                  wherever such third-party notices normally appear. The contents
                  of the NOTICE file are for informational purposes only and
                  do not modify the License. You may add Your own attribution
                  notices within Derivative Works that You distribute, alongside
                  or as an addendum to the NOTICE text from the Work, provided
                  that such additional attribution notices cannot be construed
                  as modifying the License.
        
              You may add Your own copyright statement to Your modifications and
              may provide additional or different license terms and conditions
              for use, reproduction, or distribution of Your modifications, or
              for any such Derivative Works as a whole, provided Your use,
              reproduction, and distribution of the Work otherwise complies with
              the conditions stated in this License.
        
           5. Submission of Contributions. Unless You explicitly state otherwise,
              any Contribution intentionally submitted for inclusion in the Work
              by You to the Licensor shall be under the terms and conditions of
              this License, without any additional terms or conditions.
              Notwithstanding the above, nothing herein shall supersede or modify
              the terms of any separate license agreement you may have executed
              with Licensor regarding such Contributions.
        
           6. Trademarks. This License does not grant permission to use the trade
              names, trademarks, service marks, or product names of the Licensor,
              except as required for reasonable and customary use in describing the
              origin of the Work and reproducing the content of the NOTICE file.
        
           7. Disclaimer of Warranty. Unless required by applicable law or
              agreed to in writing, Licensor provides the Work (and each
              Contributor provides its Contributions) on an "AS IS" BASIS,
              WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
              implied, including, without limitation, any warranties or conditions
              of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
              PARTICULAR PURPOSE. You are solely responsible for determining the
              appropriateness of using or redistributing the Work and assume any
              risks associated with Your exercise of permissions under this License.
        
           8. Limitation of Liability. In no event and under no legal theory,
              whether in tort (including negligence), contract, or otherwise,
              unless required by applicable law (such as deliberate and grossly
              negligent acts) or agreed to in writing, shall any Contributor be
              liable to You for damages, including any direct, indirect, special,
              incidental, or consequential damages of any character arising as a
              result of this License or out of the use or inability to use the
              Work (including but not limited to damages for loss of goodwill,
              work stoppage, computer failure or malfunction, or any and all
              other commercial damages or losses), even if such Contributor
              has been advised of the possibility of such damages.
        
           9. Accepting Warranty or Additional Liability. While redistributing
              the Work or Derivative Works thereof, You may choose to offer,
              and charge a fee for, acceptance of support, warranty, indemnity,
              or other liability obligations and/or rights consistent with this
              License. However, in accepting such obligations, You may act only
              on Your own behalf and on Your sole responsibility, not on behalf
              of any other Contributor, and only if You agree to indemnify,
              defend, and hold each Contributor harmless for any liability
              incurred by, or claims asserted against, such Contributor by reason
              of your accepting any such warranty or additional liability.
        
           END OF TERMS AND CONDITIONS
        
           APPENDIX: How to apply the Apache License to your work.
        
              To apply the Apache License to your work, attach the following
              boilerplate notice, with the fields enclosed by brackets "[]"
              replaced with your own identifying information. (Don't include
              the brackets!)  The text should be enclosed in the appropriate
              comment syntax for the file format. We also recommend that a
              file or class name and description of purpose be included on the
              same "printed page" as the copyright notice for easier
              identification within third-party archives.
        
           Copyright [yyyy] [name of copyright owner]
        
           Licensed under the Apache License, Version 2.0 (the "License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
        
               http://www.apache.org/licenses/LICENSE-2.0
        
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
License-File: LICENSE
License-File: NOTICE
Keywords: brag-document,contribution-analysis,developer-tools,git,mcp,model-context-protocol,recap,resume
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: MacOS X
Classifier: Environment :: Win32 (MS Windows)
Classifier: Environment :: X11 Applications :: Qt
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Version Control :: Git
Requires-Python: >=3.12
Requires-Dist: alembic<2,>=1.14
Requires-Dist: httpx<1,>=0.28
Requires-Dist: platformdirs<5,>=4.3
Requires-Dist: portalocker<5,>=3.1
Requires-Dist: pydantic-settings<3,>=2.7
Requires-Dist: pydantic<3,>=2.10
Requires-Dist: pydriller<3,>=2.7
Requires-Dist: pyyaml<7,>=6.0
Requires-Dist: rich<16,>=13.9
Requires-Dist: sqlalchemy<3,>=2.0
Requires-Dist: typer<1,>=0.16
Provides-Extra: dev
Requires-Dist: build<2,>=1.2; extra == 'dev'
Requires-Dist: jsonschema<5,>=4.23; extra == 'dev'
Requires-Dist: mypy<3,>=1.14; extra == 'dev'
Requires-Dist: pre-commit<5,>=4.1; extra == 'dev'
Requires-Dist: pytest-cov<8,>=6; extra == 'dev'
Requires-Dist: pytest<10,>=8.3; extra == 'dev'
Requires-Dist: ruff<1,>=0.9; extra == 'dev'
Requires-Dist: types-pyyaml<7,>=6.0; extra == 'dev'
Provides-Extra: gui
Requires-Dist: pyside6<7,>=6.8; extra == 'gui'
Provides-Extra: release
Requires-Dist: pyinstaller<7,>=6.11; extra == 'release'
Description-Content-Type: text/markdown

# Git Contribution Analyzer

[![PyPI version](https://img.shields.io/pypi/v/git-contribution-analyzer.svg)](https://pypi.org/project/git-contribution-analyzer/)
[![Python versions](https://img.shields.io/pypi/pyversions/git-contribution-analyzer.svg)](https://pypi.org/project/git-contribution-analyzer/)
[![CI](https://github.com/PANZERLEADER/git-contribution-analyzer/actions/workflows/ci.yml/badge.svg)](https://github.com/PANZERLEADER/git-contribution-analyzer/actions/workflows/ci.yml)
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)

[简体中文](README.zh-CN.md) | [Live Interactive HTML Demo](https://panzerleader.github.io/git-contribution-analyzer/) | [Installation](doc/guides/installation.md) | [MCP 2.0 Guide](doc/guides/mcp-guide.md) | [Releases](https://github.com/PANZERLEADER/git-contribution-analyzer/releases)

![GCA 0.8.0 Overview](doc/assets/gca-overview-card.svg)

GCA is a local, evidence-backed Git contribution analysis tool with a zero-friction `gca` CLI, a
zero-extra-dependency read-only **MCP 2.0 Server** (tools, prompts & resources), a local **Brag
Document & Verified Outcomes ledger**, self-contained interactive **HTML reports**, and an optional
cross-platform `gca-gui` desktop application. It separates deterministic repository facts from
rule-based and LLM-assisted interpretation.

The **0.8.0** release completes the daily-to-annual developer memory loop and AI agent ecosystem:

- **10-Second Zero-Friction Recaps (`gca recap --open`)**: Run directly inside any Git repo with
  zero setup — GCA auto-detects local `git config user.email`, auto-initializes or incrementally
  syncs `.gca/`, defaults to a 7-day window (`today`, `yesterday`, `7d`, `14d`, `30d`, `week`,
  `month`, `quarter`), separates `LANDED+RELEASED` from `AUTHORED_ONLY`, and opens an offline
  interactive HTML report in your browser.
- **Brag Document & Verified Outcomes Ledger (`gca outcome` & `gca brag`)**: Record verified
  business/performance metrics linked to real `EV-xxx` / `<repoKey>:EV-xxx` evidence IDs (with
  offline existence verification), auto-load them during `gca resume`, and export quarterly or
  annual Brag Documents (`--year 2026`, `--quarter 2026-Q3`, `--format html --open`).
- **Read-Only Stdlib MCP 2.0 Server (`gca serve --mcp` + `gca install-agent`)**: Expose 7
  privacy-safe tools (now supporting **both single repositories and multi-repo portfolios** with
  auto-inferred local identity), **4 built-in MCP Prompts** (`standup-recap`, `weekly-report`,
  `brag-doc`, `audit-resume-claims`), and **2 read-only MCP Resources** to Antigravity, Claude
  Code, OpenAI Codex, and Cursor with zero extra third-party runtime dependencies.
- **Self-Contained Interactive HTML & Aligned Desktop GUI (`--format html` & `gca-gui`)**: Zero-CDN
  single-file HTML exports with light/dark theme toggle, SVG charts, search/group filters,
  clickable evidence drawer, and PDF print styles — now fully aligned inside the `gca-gui` desktop
  workbench (Recap & Brag page, Outcomes ledger, and HTML export).

[Live Demo Gallery](https://panzerleader.github.io/git-contribution-analyzer/) |
[MCP 2.0 Guide](doc/guides/mcp-guide.md) |
[Open-Source Spotlight Action](doc/guides/github-actions-spotlight.md) |
[Contributing](CONTRIBUTING.md) | [Security](SECURITY.md) |
[Code of Conduct](CODE_OF_CONDUCT.md)

![GCA Anti-Hallucination Pipeline](doc/assets/anti-hallucination-flow.svg)

## Why GCA vs. Raw LLM Prompts?

| Capability | Raw LLM over `git log` | GCA (`0.8.0`) |
|---|---|---|
| Delivered vs. unmerged branches | Often conflated | Strictly separates `LANDED+RELEASED` vs `AUTHORED_ONLY` |
| Multi-email & multi-repo merging | Manual / double-counted | Deterministic identity normalization & `<repoKey>:EV-xxx` |
| Fabricated metrics / claims | Frequent hallucinations | Claim-strength ceilings + signed `outcomes.yml` + `gca_verify_citations` |
| Privacy & offline sharing | Sends raw diffs to cloud | Local-first SQLite, zero-CDN HTML, no source diffs or emails |

## 10-Second Quick Start

Works out of the box on macOS, Linux, and Windows (output language auto-detects your system locale; pass `--language en-US` or `--language zh-CN` to override):

```bash
# Run ephemerally in ANY local Git repo (auto-detects git user.email, auto-indexes .gca, opens HTML)
uvx --from git-contribution-analyzer gca recap --open

# Or install globally with pipx
pipx install git-contribution-analyzer
gca recap --window today
gca recap --window 7d --open

# Record a verified metric linked to Git evidence and export an annual Brag Document
gca outcome add --text "Cut checkout P95 latency from 420ms to 180ms" --source "benchmark-2026.md" --verified-by "tech-lead" --evidence EV-001
gca brag --year 2026 --open

# Preview or install read-only MCP 2.0 config for Antigravity / Codex / Claude / Cursor
gca install-agent --target antigravity --workspace .
gca install-agent --target antigravity --workspace . --apply

# Build the sanitized offline HTML & Markdown Live Demo Gallery locally
python scripts/build_public_demo.py --output dist/public-demo
```

## Development

```powershell
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e ".[dev]"
.\.venv\Scripts\gca.exe --help
```

Install and run the optional desktop application:

```powershell
.\.venv\Scripts\python.exe -m pip install -e ".[dev,gui]"
.\.venv\Scripts\gca-gui.exe
```

For repository-local symbol search, impact analysis, and architecture visualization, see the
[CodeGraph and Understand-Anything guide](doc/guides/code-intelligence.md).

## Current CLI

```powershell
# Initialize a repository-local workspace and build the first Git index.
gca init D:\path\to\repository

# Rebuild the deterministic Git index or synchronize new commits and changed refs.
gca index D:\path\to\repository --json
gca sync D:\path\to\repository --json

# Inspect normalized identities and confirm an alias mapping.
gca identities list D:\path\to\repository --json
gca identities map D:\path\to\repository `
  --name "Old Name" `
  --email "old@example.com" `
  --person-name "Canonical Name" `
  --person-email "canonical@example.com" `
  --json

# Read workspace and index health as versioned JSON.
gca status D:\path\to\repository --json
gca doctor D:\path\to\repository --json

# Build and inspect an observation-only historical structural baseline.
gca structural rebuild D:\path\to\repository `
  --cutoff 2026-07-01T00:00:00Z `
  --time-strategy lifetime --json
gca structural status D:\path\to\repository --json
gca structural show D:\path\to\repository --baseline <baseline-id> --json
gca structural prune D:\path\to\repository --keep 8 --yes --json

# Generate deterministic contribution evidence without an LLM.
gca analyze D:\path\to\repository `
  --person alice@example.com `
  --since 2026-01-01 `
  --until 2026-06-30 `
  --no-llm `
  --json

# Analyze every indexed Git identity, including identities not yet confirmed.
gca analyze D:\path\to\repository --all --no-llm --json

# Assess completed workload and deterministic engineering difficulty.
gca assess D:\path\to\repository `
  --person alice@example.com `
  --person bob@example.com `
  --since 2026-01-01 `
  --no-llm `
  --json
gca assess D:\path\to\repository --all `
  --exclude-person ci@example.com `
  --no-llm --json

# Build calendar month trends; week and quarter are also supported.
gca assess D:\path\to\repository --all `
  --since 2025-01-01 --until 2026-12-31 `
  --period month --time-basis landed --no-llm --json

# Compare two historical work assessment runs.
gca runs compare <base-run-id> <target-run-id> D:\path\to\repository --json

# Generate evidence-backed resume candidates for one confirmed person.
gca resume D:\path\to\repository `
  --person alice@example.com `
  --target-role "Senior Backend Engineer" `
  --language en-US `
  --style concise `
  --max-bullets 6 `
  --no-llm `
  --json

# Inspect the built-in providers and test the selected provider.
gca providers list D:\path\to\repository --json
gca providers test D:\path\to\repository --json

# Inspect and replay persisted analysis runs.
gca runs list D:\path\to\repository --json
gca runs show <run-id> D:\path\to\repository --json

# Rebuild reports from a persisted run.
gca report D:\path\to\repository --run latest --format markdown
gca report D:\path\to\repository --run latest --format json --output report.json

# Remove only the repository-local .gca workspace.
gca uninit D:\path\to\repository --yes

# Manage and analyze a multi-repository portfolio.
gca portfolio init D:\path\to\portfolio --scan-root D:\path\to\repos --group core --json
gca portfolio status D:\path\to\portfolio --json
gca portfolio sync D:\path\to\portfolio --concurrency 4 --verbose --json
gca portfolio assess D:\path\to\portfolio --person alice@example.com --no-llm --format html --output summary.html --json
gca portfolio resume D:\path\to\portfolio --person alice@example.com --target-role "Backend Engineer" --no-llm --format html --output resume.html --json
gca portfolio recap D:\path\to\portfolio --person alice@example.com --window 7d --format html --output recap.html --json
gca portfolio verify D:\path\to\portfolio --run latest --resume-file resume.md --json

# Serve read-only MCP tools over stdio (workspace allowlist required).
gca serve --mcp --workspace D:\path\to\portfolio
```

Phase 2 indexes refs, commits, parent relationships, file changes, identities, stable
patch IDs, target-branch reachability, release tags, cherry-picks, and reverts. The index
is stored under the analyzed repository's `.gca/` directory and is ignored locally through
`.git/info/exclude`; GCA does not modify source files or Git history.

Git facts and the deterministic contribution analysis do not depend on an LLM.
Analysis runs persist their parameters, Git baseline, rule version, Contribution Items,
capability assessments, Evidence, and versioned report JSON. Phase 4 adds pluggable Mock,
OpenAI-compatible, Anthropic, Ollama, Codex CLI, and Claude CLI providers for semantic
summaries, capability explanations, and resume candidates. Providers cannot replace or modify
deterministic facts.

## LLM Providers

LLM use is disabled by default. Enable it in the analyzed repository's `.gca/config.yml`:

```yaml
llm:
  enabled: true
  provider: openai-compatible
  model: gpt-4.1-mini
  baseUrl: https://api.openai.com/v1
  apiKeyEnv: GCA_LLM_API_KEY
  timeoutSeconds: 30.0
  maxRetries: 2
  allowFallbackToRules: true
```

Set the referenced environment variable outside the repository. Never put the key value in
`.gca/config.yml`. CLI flags are intentionally not provided for key values.

`gca analyze --no-llm` is always offline and deterministic. With LLM enabled, every invocation
records a request hash, Provider/model, Prompt/Schema versions, attempts, latency, status, error
code, and cache-hit state. Prompts, API keys, Authorization headers, and source bodies are not
stored. Provider failures produce a `PARTIAL` deterministic report when fallback is allowed;
otherwise `analyze` exits with code `6` and persists a failed run.

The same Provider configuration is used by `assess` and `resume`. Work assessment uses the
independent `assessment-explanation-v1` task; resume generation uses `resume-v1`. Provider
output cannot alter completion, size, difficulty, Evidence, or the deterministic claim-strength
ceiling. With fallback enabled, assessment retains its deterministic result and resume retains
its conservative template.

To reuse an authenticated coding CLI instead of an API key:

```yaml
llm:
  enabled: true
  provider: codex-cli # or claude-cli
  model: configured-default
  executable: null # auto-discover, or set an absolute wrapper/executable path
  commandTimeoutSeconds: 300
  allowFallbackToRules: true
```

Command Providers run in an isolated temporary directory. Repository source is not made
available to the agent: GCA passes only its minimized semantic task over stdin. Codex runs
ephemerally with a read-only sandbox and MCP disabled; Claude runs without tools, MCP, Chrome,
or session persistence. Existing CLI authentication and model-provider configuration are reused.

See [`doc/guides/provider-guide.md`](doc/guides/provider-guide.md) for all providers and
environment precedence.

## Index Semantics

- `AUTHORED_ONLY`: the commit is indexed but is not reachable from the configured target branch.
- `LANDED`: the commit is reachable from the target branch.
- `RELEASED`: the commit is reachable from the target branch and at least one release tag.
- `REVERTED`: a landed or released commit is linked to a landed revert commit.
- Matching stable patch IDs link an authored-only cherry-pick source to delivered work without
  counting it as a second delivery.

Exact email and `.mailmap` mappings are deterministic. Fuzzy name matches are never merged
automatically; use `gca identities map` to confirm ambiguous aliases.

## Deterministic Analysis

`gca analyze` accepts either one confirmed Person through `--person` or every indexed Git
identity through `--all --no-llm`. Project analysis deliberately keeps unconfirmed identities
separate and emits identity warnings instead of silently merging or excluding them. Both modes
support inclusive date/time, branch, release tag, path scope, and delivery-status filters.

Person and project reports contain separate technical and business summaries. Technical
summaries cover modules, change types, and evidence-backed capability signals. Business domains
are deterministically inferred from conventional commit scopes, issue keys, and module fallback
clusters. They are labels for work areas, not claims about revenue, customer value, business
ownership, or individual performance.

Analysis reports also expose versioned structural signals derived from commit-level path sets.
Pairs require at least two repeated co-change commits; hotspots require at least two change
commits and are ordered by change concentration plus repeated coupling. Merge commits, generated
paths, binary-only changes, and duplicate patches are excluded. Structural signals are auditable
repository observations and do not alter workload, difficulty, ranking, or performance conclusions.

Every Contribution Item and capability claim references an Evidence ID. Reports explicitly
state that Git evidence does not prove business outcome, sole ownership, or employee value.
Optional ranking uses published workload, difficulty, and delivery rules; commit and raw line
counts do not directly determine the score.

Shared or system accounts require manual review. If one email is used by both a person and an
automation identity, do not use the combined Person for individual performance conclusions.

## Historical Structural Observations

`gca structural rebuild` materializes file-change frequencies and repeated file co-change
relationships from local indexed Git history strictly before an exclusive cutoff. Baseline IDs
include repository, branch, scope, cutoff and versioned rule configuration. Nonzero occurrences
are retained so a low-frequency edge can cross a candidate threshold after later syncs. Lifetime,
rolling-window and dual-window views are supported; coupling output includes conditional ratios,
Jaccard and a hub penalty rather than treating every shared utility file as a dependency.

This surface is observation-only. It does not modify `difficulty-rules-v1`, workload, delivery,
ranking, resume output or LLM context. New workspaces use the conservative
`community-baseline-v1` profile from `.gca/config.yml`; its automatic difficulty promotion switch is
fixed to `false`. The profile is ready for observation-only use without project-specific human
review. Empirical calibration and a repository-disjoint holdout are required only for a future rule
that automatically changes individual difficulty. The feature uses local Git and SQLite only, with
no Forge API or Hercules runtime dependency. The desktop Structure page exposes the same status,
rebuild, show and prune operations.

```yaml
structural:
  profile: community-baseline-v1
  timeStrategy: DUAL_WINDOW
  minimumBaselineCommits: 50
  hotspotPercentile: 0.95
  minimumCoChangeCount: 3
  minimumSubsetRatio: 0.8
  minimumJaccard: 0.3
  minimumHubPenalty: 0.5
  maximumContextPaths: 100
  rollingWindowDays: 365
  automaticDifficultyPromotion: false
```

## Work Assessment

`gca assess` separates completed (`LANDED`/`RELEASED`), pending (`AUTHORED_ONLY`), rework, and
merge/integration activity. It reports `SMALL`, `MEDIUM`, `LARGE`, and `XLARGE` effective-change
bands separately from `ROUTINE`, `STANDARD`, `COMPLEX`, and `HIGH_RISK` engineering difficulty.
Merge diffs, matching patch IDs, generated/vendor/build output, lockfiles, and binary line counts
do not create duplicate workload. Difficulty is based on versioned data, distributed-system,
compatibility, impact, critical-domain, and delivery signals; raw line count cannot raise it.

`--time-basis` accepts `authored`, `committed`, `merged`, `landed`, and `released`. Landed time is
the target branch first-parent integration point, merged time includes only work introduced by a
merge commit, and released time is the tag creation time. `--period week|month|quarter` requires
both boundaries and emits persisted trends, period-over-period deltas, and year-over-year deltas
when the matching prior-year period is in range. Weeks start on Monday and partial boundary periods
are marked. Offset-free `--since` and `--until` values use the host system time zone; explicit `Z`
or numeric offsets remain authoritative, and calendar periods follow that local calendar. The Git
index and SQLite query bindings remain normalized to UTC. Run `gca index` once after upgrading so
old timestamps are rebuilt in UTC.

Assessment reports include technical and business summaries, Evidence IDs, rule versions,
confidence, and gaps. Repeatable `--rank-by` enables dense dimension rankings. An explicit
`--ranking-config` YAML can add a cohort-normalized weighted total; without it no total score is
generated. These values are review aids, not performance ratings, working-hours estimates,
compensation, or promotion recommendations. Persisted v2 runs can be exported with
`gca report --format csv`; email is omitted unless `--include-email` is supplied.

## Resume Generation

`gca resume` only accepts a confirmed Person and defaults to landed/released work. Every project
summary and experience bullet references Contribution Item and Evidence IDs. Claim strength is
limited to `CONTRIBUTED`, `IMPLEMENTED`, or `LED`; Git-only evidence never unlocks `LED`.

`--no-llm` generates a conservative template. Optional verified outcomes are loaded from a
strict UTF-8 YAML file:

```yaml
outcomes:
  - id: OUT-001
    text: API P95 latency reduced from 420ms to 180ms
    source: benchmark-report-2026-04.md
    verifiedBy: team-lead
    verifiedAt: 2026-04-20
```

Percentages, revenue, user growth, online performance, and similar result numbers are rejected
unless the claim cites a verified outcome. Resume reports omit email addresses, other people,
team rankings, and internal difficulty comparisons. The legacy `semantic.resumeBullets` field
remains readable during 1.x but is deprecated; new integrations should use `gca resume`.

## Quality Checks

```powershell
.\.venv\Scripts\python.exe -m ruff check .
.\.venv\Scripts\python.exe -m mypy src
.\.venv\Scripts\python.exe -m pytest --cov=git_contribution_analyzer
.\.venv\Scripts\python.exe -m build
```

## Documentation

- [Simplified Chinese documentation](doc/zh-CN/README.md)
- [Architecture](doc/architecture/architecture.md)
- [Data model and migrations](doc/architecture/data-model.md)
- [CLI reference](doc/cli/cli-reference.md)
- [Installation, upgrade and removal](doc/guides/installation.md)
- [Read-only MCP server guide](doc/guides/mcp-guide.md)
- [CodeGraph and Understand-Anything](doc/guides/code-intelligence.md)
- [Assessment and resume methodology](doc/guides/methodology.md)
- [Privacy and provider data boundaries](doc/guides/privacy.md)
- [Golden dataset](doc/testing/golden-dataset.md)
- [Structural calibration protocol](doc/testing/structural-calibration.md)
- [Structural calibration decision](doc/reports/structural-calibration-report.md)
- [Open-source spotlight GitHub Action guide](doc/guides/github-actions-spotlight.md)
- [MCP Registry listing metadata](doc/guides/mcp-registry-listing.md)
- [0.8.1 release](doc/releases/0.8.1.md)
- [0.8.0 release](doc/releases/0.8.0.md)
- [0.7.0 release](doc/releases/0.7.0.md)
- [0.6.1 release](doc/releases/0.6.1.md)
- [0.6.0 release](doc/releases/0.6.0.md)
- [0.5.1 release](doc/releases/0.5.1.md)
- [0.5.0 release](doc/releases/0.5.0.md)
- [0.4.1 release](doc/releases/0.4.1.md)
- [0.4.0 release](doc/releases/0.4.0.md)
- [0.3.0 release](doc/releases/0.3.0.md)
- [0.2.0 release](doc/releases/0.2.0.md)
- [0.1.0 release](doc/releases/0.1.0.md)
- [Performance baseline](doc/reports/performance-baseline.md)
- [Security and privacy audit](doc/reports/security-privacy-audit.md)

Release CI builds wheel/sdist, CLI standalone and GUI standalone artifacts on Windows, Linux and
macOS. The ordinary CI matrix also performs isolated wheel and repository lifecycle smoke tests.
