Skip to content

feat: introduce ASCII statistics profile 2 - #75

Merged
hindermath merged 12 commits into
mainfrom
codex/statistics-ascii-v2
Jul 19, 2026
Merged

feat: introduce ASCII statistics profile 2#75
hindermath merged 12 commits into
mainfrom
codex/statistics-ascii-v2

Conversation

@hindermath

Copy link
Copy Markdown
Owner

Zusammenfassung / Summary

  • adds the schema-backed ASCII Statistics Profile 2 renderer with Bash/PowerShell parity
  • integrates Profile 2 into bootstrap, homogeneity checks, propagation, guidance, templates, and documentation
  • migrates the Level-0 ledger while preserving Profile 1 history and normalizing STATS.md bars

Validierung / Validation

  • 138 deterministic fixture assertions
  • Bash syntax and PowerShell parser checks
  • PSScriptAnalyzer clean for both new PowerShell files
  • byte-identical Bash/PowerShell renderer output
  • pilots: home-baseline, TuiVision (48 slots), SecureCaseTracker-C# (8 slots)
  • Markdownlint 0 errors for new docs
  • Pandoc plaintext order verified
  • Lychee: 153 links OK, 0 errors
  • maximum generated chart width: 82 characters

No admin bypass is requested.

Copilot AI review requested due to automatic review settings July 19, 2026 16:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a schema-backed, reproducible ASCII “Statistics Profile 2” renderer (PowerShell engine with a Bash wrapper) and wires it into the home-baseline workflow so repositories can validate and (re)render the generated Profile-2 block in docs/project-statistics.md.

Changes:

  • Adds the Profile 2 renderer, its JSON schema, and a config template for docs/project-statistics.config.json.
  • Integrates Profile 2 into bootstrap and homogeneity checks (drift detection), and updates governance/guidance to reference the new contract.
  • Normalizes previously Unicode-based progress bars to ASCII (# / .) across stats outputs.

Reviewed changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
STATS.md Normalizes compliance bar output to ASCII.
scripts/templates/project-statistics.config.json.tmpl Adds a template for the Profile 2 JSON config file.
scripts/templates/copilot-instructions.tmpl Updates shared guidance to reference Profile 2 + schema/config contract.
scripts/render-project-statistics.sh Adds Bash wrapper delegating rendering/checking to the PowerShell engine.
scripts/lib/hg-stats.sh Switches stats bar characters from Unicode to ASCII.
scripts/lib/hg-stats.ps1 Switches stats bar characters from Unicode to ASCII.
scripts/init-stats.sh Switches init stats bar characters from Unicode to ASCII.
scripts/init-stats.ps1 Switches init stats bar characters from Unicode to ASCII.
scripts/config/agentic-toolchain-maintenance-files.json Adds the new renderer/schema/template/manpage to the propagated canonical file set.
scripts/check-homogeneity.sh Adds a Profile 2 drift/config/renderer presence check; updates bar chars to ASCII.
scripts/check-homogeneity.ps1 Adds a Profile 2 drift/config/renderer presence check; updates bar chars to ASCII.
scripts/bootstrap-workspace.sh Creates initial Profile 2 config and initializes the generated Profile 2 block during bootstrap.
scripts/bootstrap-workspace.ps1 Creates initial Profile 2 config and initializes the generated Profile 2 block during bootstrap.
scripts/bootstrap-project.sh Creates initial Profile 2 config and initializes the generated Profile 2 block during bootstrap.
scripts/bootstrap-project.ps1 Creates initial Profile 2 config and initializes the generated Profile 2 block during bootstrap.
GEMINI.md Updates statistics maintenance guidance to the Profile 2 contract.
docs/man/render-project-statistics.1.md Adds manpage documentation for the renderer CLI (Bash/PowerShell).
docs/examples/ascii-statistics-profile-2.md Adds visual examples/acceptance fixtures for Profile 2 output.
constitution.md Updates the statistics contract to be Profile-2/schema/config driven (methodology v2, ASCII constraints, etc.).
CLAUDE.md Updates statistics maintenance guidance to the Profile 2 contract.
.specify/memory/constitution.md Mirrors constitution updates into Spec Kit memory.
.github/copilot-instructions.md Updates shared Copilot guidance to the Profile 2 contract.

Comment thread docs/man/render-project-statistics.1.md Outdated
Copilot AI review requested due to automatic review settings July 19, 2026 16:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 34 changed files in this pull request and generated 2 comments.

Comment thread scripts/bootstrap-project.sh Outdated
Comment thread scripts/bootstrap-project.ps1 Outdated
Copilot AI review requested due to automatic review settings July 19, 2026 16:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 34 changed files in this pull request and generated 2 comments.

Comment thread scripts/check-homogeneity.sh
Comment thread scripts/check-homogeneity.ps1
Copilot AI review requested due to automatic review settings July 19, 2026 17:02
@hindermath
hindermath requested a review from holgerflick July 19, 2026 17:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 34 changed files in this pull request and generated 1 comment.

Comment thread scripts/render-project-statistics.sh
Copilot AI review requested due to automatic review settings July 19, 2026 17:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 34 changed files in this pull request and generated 6 comments.

Comment thread scripts/bootstrap-workspace.sh Outdated
Comment thread scripts/bootstrap-workspace.ps1 Outdated
Comment thread scripts/bootstrap-project.sh Outdated
Comment thread scripts/bootstrap-project.ps1 Outdated
Comment thread scripts/check-homogeneity.sh
Comment thread scripts/check-homogeneity.ps1
Copilot AI review requested due to automatic review settings July 19, 2026 17:57
@hindermath
hindermath merged commit d25bc9b into main Jul 19, 2026
21 checks passed
@hindermath
hindermath deleted the codex/statistics-ascii-v2 branch July 19, 2026 17:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 34 changed files in this pull request and generated 1 comment.

Comment on lines +29 to +32
--repo)
REPO="${2:?--repo benoetigt einen Pfad / requires a path}"
shift
;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants