mercy 1.6.0 → 2.0.0
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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +74 -12
- data/.claude/agents/architect.md +48 -0
- data/.claude/agents/infra.md +36 -0
- data/.claude/agents/ruby.md +45 -0
- data/.claude/configuration/arcanum-repo-config.json +3 -0
- data/.claude/scripts/check_infra.sh +6 -0
- data/.claude/scripts/check_ruby.sh +7 -0
- data/.claude/settings.json +10 -0
- data/.github/commit_message_template-2.0.md +32 -0
- data/.github/commit_message_template.md +10 -0
- data/.github/copilot-instructions.md +1 -0
- data/.github/pull_request_template.md +17 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +38 -1
- data/.rubocop_todo.yml +6 -317
- data/AGENTS.md +58 -0
- data/CLAUDE.md +1 -0
- data/Dockerfile +18 -3
- data/Gemfile +26 -1
- data/README.md +8 -4
- data/Rakefile +3 -0
- data/config/check_specs.yml +7 -0
- data/config/yardstick.yml +11 -3
- data/docs/agents/arcanum-split-issue.md +9 -0
- data/docs/agents/architecture.md +61 -0
- data/docs/agents/contributing.md +195 -0
- data/docs/agents/flow.md +5 -0
- data/docs/agents/folder-structure.md +26 -0
- data/docs/agents/issue-enhancement.md +10 -0
- data/docs/agents/issues/.gitkeep +1 -0
- data/docs/agents/plans/.gitkeep +1 -0
- data/lib/arstotzka/type_cast_ext.rb +52 -2
- data/lib/mercy/class_methods.rb +77 -7
- data/lib/mercy/concern.rb +105 -1
- data/lib/mercy/period_parser.rb +46 -3
- data/lib/mercy/report/active_record.rb +20 -16
- data/lib/mercy/report/error.rb +6 -4
- data/lib/mercy/report/multiple.rb +26 -22
- data/lib/mercy/report/range.rb +6 -4
- data/lib/mercy/report.rb +38 -7
- data/lib/mercy/report_builder.rb +2 -0
- data/lib/mercy/report_config.rb +5 -0
- data/lib/mercy/status.rb +7 -1
- data/lib/mercy/status_builder.rb +2 -0
- data/lib/mercy/version.rb +3 -1
- data/lib/mercy.rb +2 -0
- data/mercy.gemspec +14 -27
- data/scripts/bump_version.sh +62 -0
- data/spec/dummy/.ruby-version +1 -0
- data/spec/dummy/Rakefile +10 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +6 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +6 -0
- data/spec/dummy/app/controllers/application_controller.rb +4 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/document_report_controller.rb +34 -0
- data/spec/dummy/app/controllers/example_report_controller.rb +27 -0
- data/spec/dummy/app/helpers/application_helper.rb +4 -0
- data/spec/dummy/app/jobs/application_job.rb +4 -0
- data/spec/dummy/app/mailers/application_mailer.rb +6 -0
- data/spec/dummy/app/models/application_record.rb +5 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/document.rb +9 -0
- data/spec/dummy/app/models/dummy_report.rb +6 -0
- data/spec/dummy/app/models/mercy/report/doc_type_error.rb +20 -0
- data/spec/dummy/app/models/mercy/report/dummy1.rb +19 -0
- data/spec/dummy/app/models/mercy/report/dummy_report.rb +11 -0
- data/spec/dummy/app/models/mercy/report/multiple/dummy.rb +28 -0
- data/spec/dummy/app/models/mercy/report/multiple/successes.rb +28 -0
- data/spec/dummy/app/models/mercy/report/success.rb +18 -0
- data/spec/dummy/app/views/layouts/application.html.erb +15 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +5 -0
- data/spec/dummy/bin/rails +6 -0
- data/spec/dummy/bin/rake +6 -0
- data/spec/dummy/bin/setup +38 -0
- data/spec/dummy/bin/update +33 -0
- data/spec/dummy/bin/yarn +11 -0
- data/spec/dummy/config/application.rb +24 -0
- data/spec/dummy/config/boot.rb +7 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +20 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +55 -0
- data/spec/dummy/config/environments/production.rb +95 -0
- data/spec/dummy/config/environments/test.rb +52 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +10 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +9 -0
- data/spec/dummy/config/initializers/content_security_policy.rb +27 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
- data/spec/dummy/config/initializers/inflections.rb +18 -0
- data/spec/dummy/config/initializers/mime_types.rb +6 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +16 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/puma.rb +36 -0
- data/spec/dummy/config/routes.rb +16 -0
- data/spec/dummy/config/spring.rb +8 -0
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/config.ru +7 -0
- data/spec/dummy/db/migrate/20190508170435_create_documents.rb +13 -0
- data/spec/dummy/db/schema.rb +27 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/package.json +5 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/storage/.keep +0 -0
- data/spec/dummy/tmp/.keep +0 -0
- data/spec/dummy/tmp/storage/.keep +0 -0
- data/spec/integration/controller/error_report_controller_spec.rb +196 -0
- data/spec/integration/controller/multiple_report_spec.rb +86 -0
- data/spec/integration/controller/range_report_spec.rb +194 -0
- data/spec/integration/yard/arstotzka/type_cast_spec.rb +43 -0
- data/spec/integration/yard/controller/example_report_controller_spec.rb +95 -0
- data/spec/integration/yard/mercy/period_parser_spec.rb +21 -0
- data/spec/lib/arstotzka/type_cast_spec.rb +10 -9
- data/spec/lib/mercy/period_parser_spec.rb +10 -9
- data/spec/lib/mercy/report/error_spec.rb +93 -70
- data/spec/lib/mercy/report/multiple_spec.rb +9 -57
- data/spec/lib/mercy/report/range_spec.rb +70 -41
- data/spec/lib/mercy/report_builder_spec.rb +34 -17
- data/spec/lib/mercy/report_config_spec.rb +48 -0
- data/spec/lib/mercy/report_spec.rb +5 -15
- data/spec/lib/mercy/status_builder_spec.rb +33 -22
- data/spec/lib/mercy/status_spec.rb +69 -49
- data/spec/spec_helper.rb +18 -7
- data/spec/support/fixture_helpers.rb +4 -2
- data/spec/support/models/arstotzka/type_cast/dummy.rb +9 -0
- data/spec/support/shared_contexts/document_setup.rb +31 -0
- data/spec/support/shared_examples/time_parser.rb +2 -0
- metadata +113 -191
- data/spec/lib/mercy/report/report_config_spec.rb +0 -39
- data/spec/support/models/document.rb +0 -6
- data/spec/support/report/dummy.rb +0 -15
- data/spec/support/schema.rb +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64177603aa5886d5b7b65aa92e535ce29f2db21f59f06c961cb7b37605bc545d
|
|
4
|
+
data.tar.gz: 20e25e8d1e17dd19c279e77c46a042e5372143331442607c402c2c2baf075c2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0aa87ae79605f13c1b3b60c0fa4343eff9c681d62b1a8d891ca83f1a9aca02ea021eb147b07d15551914660405a29204449a875b4a7b428fa4bbdd7d66195da9
|
|
7
|
+
data.tar.gz: 0c7ce82a6b1671dc8b77b41a47b8651fb78bab4fea25d0ce0982b7b77c41733b42ba3469452025948de46625a57383df645e4e3e9e472127d052b3212dbc8b8c
|
data/.circleci/config.yml
CHANGED
|
@@ -1,31 +1,93 @@
|
|
|
1
|
-
version: 2
|
|
1
|
+
version: 2.1
|
|
2
|
+
workflows:
|
|
3
|
+
test-and-build:
|
|
4
|
+
jobs:
|
|
5
|
+
- test:
|
|
6
|
+
filters:
|
|
7
|
+
tags:
|
|
8
|
+
only: /.*/
|
|
9
|
+
- checks:
|
|
10
|
+
filters:
|
|
11
|
+
tags:
|
|
12
|
+
only: /.*/
|
|
13
|
+
- coverage-final:
|
|
14
|
+
requires: [test]
|
|
15
|
+
filters:
|
|
16
|
+
tags:
|
|
17
|
+
only: /.*/
|
|
18
|
+
- build-and-release:
|
|
19
|
+
requires: [test, checks, coverage-final]
|
|
20
|
+
filters:
|
|
21
|
+
tags:
|
|
22
|
+
only: /\d+\.\d+\.\d+/
|
|
23
|
+
branches:
|
|
24
|
+
only:
|
|
25
|
+
- master
|
|
2
26
|
jobs:
|
|
3
|
-
|
|
27
|
+
test:
|
|
4
28
|
docker:
|
|
5
|
-
- image: darthjee/
|
|
29
|
+
- image: darthjee/circleci_ruby_3412:1.0.0
|
|
30
|
+
environment:
|
|
31
|
+
PROJECT: mercy
|
|
6
32
|
steps:
|
|
7
33
|
- checkout
|
|
8
|
-
- run:
|
|
9
|
-
name: Prepare Coverage Test Report
|
|
10
|
-
command: cc-test-reporter before-build
|
|
11
34
|
- run:
|
|
12
35
|
name: Bundle Install
|
|
13
36
|
command: bundle install
|
|
14
37
|
- run:
|
|
15
38
|
name: RSpec
|
|
16
|
-
command: bundle exec rspec
|
|
39
|
+
command: CI=true bundle exec rspec
|
|
40
|
+
- run:
|
|
41
|
+
name: Upload coverage to Codacy (partial)
|
|
42
|
+
command: bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial -r coverage/lcov/project.lcov
|
|
43
|
+
coverage-final:
|
|
44
|
+
docker:
|
|
45
|
+
- image: darthjee/circleci_ruby_3412:1.0.0
|
|
46
|
+
steps:
|
|
47
|
+
- run:
|
|
48
|
+
name: Finalize coverage on Codacy
|
|
49
|
+
command: bash <(curl -Ls https://coverage.codacy.com/get.sh) final
|
|
50
|
+
checks:
|
|
51
|
+
docker:
|
|
52
|
+
- image: darthjee/circleci_ruby_3412:1.0.0
|
|
53
|
+
environment:
|
|
54
|
+
PROJECT: mercy
|
|
55
|
+
steps:
|
|
56
|
+
- checkout
|
|
57
|
+
- run:
|
|
58
|
+
name: Bundle Install
|
|
59
|
+
command: bundle install
|
|
17
60
|
- run:
|
|
18
61
|
name: Rubocop
|
|
19
62
|
command: rubocop
|
|
20
|
-
- run:
|
|
21
|
-
name: Coverage Test Report
|
|
22
|
-
command: cc-test-reporter after-build --exit-code $?
|
|
23
63
|
- run:
|
|
24
64
|
name: Yardstick coverage check
|
|
25
65
|
command: bundle exec rake verify_measurements
|
|
26
66
|
- run:
|
|
27
67
|
name: Check version documentation
|
|
28
|
-
command:
|
|
68
|
+
command: check_readme.sh
|
|
29
69
|
- run:
|
|
30
70
|
name: Rubycritcs check
|
|
31
|
-
command:
|
|
71
|
+
command: rubycritic.sh
|
|
72
|
+
- run:
|
|
73
|
+
name: Check unit tests
|
|
74
|
+
command: check_specs
|
|
75
|
+
build-and-release:
|
|
76
|
+
docker:
|
|
77
|
+
- image: darthjee/circleci_ruby_3412:1.0.0
|
|
78
|
+
environment:
|
|
79
|
+
PROJECT: mercy
|
|
80
|
+
steps:
|
|
81
|
+
- checkout
|
|
82
|
+
- run:
|
|
83
|
+
name: Bundle Install
|
|
84
|
+
command: bundle install
|
|
85
|
+
- run:
|
|
86
|
+
name: Signin
|
|
87
|
+
command: build_gem.sh signin
|
|
88
|
+
- run:
|
|
89
|
+
name: Build Gem
|
|
90
|
+
command: build_gem.sh build
|
|
91
|
+
- run:
|
|
92
|
+
name: Push Gem
|
|
93
|
+
command: build_gem.sh push
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architect
|
|
3
|
+
description: Mercy architect and coordinator. Use for cross-cutting tasks, multi-agent coordination, documentation, root-level files, or any task that spans more than one agent's scope.
|
|
4
|
+
tools: Read, Edit, Write, Bash, Agent
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are the architect and coordinator for the Mercy project — a Ruby gem providing a Rails controller concern for configurable health-check reports rendered as JSON.
|
|
8
|
+
|
|
9
|
+
## Your scope
|
|
10
|
+
|
|
11
|
+
- `docs/agents/` — all project documentation
|
|
12
|
+
- Root-level files: `README.md`, `AGENTS.md`, `CLAUDE.md`, `LICENSE`, `.gitignore`, `.github/`
|
|
13
|
+
- Cross-cutting decisions that span multiple layers
|
|
14
|
+
- Coordination of the other specialist agents
|
|
15
|
+
|
|
16
|
+
## Specialist agents
|
|
17
|
+
|
|
18
|
+
Delegate implementation, exploration, and planning work to the right agent. Never implement, explore, or plan what belongs to a specialist yourself.
|
|
19
|
+
|
|
20
|
+
| Agent | Scope |
|
|
21
|
+
|-------|-------|
|
|
22
|
+
| `ruby` | `lib/`, `spec/`, `config/`, gemspec, Rakefile, RuboCop configs — gem code, specs and code-quality config |
|
|
23
|
+
| `infra` | `Dockerfile`, `docker-compose.yml`, `.circleci/`, `scripts/` — containers, CI pipeline and CI scripts |
|
|
24
|
+
|
|
25
|
+
## How to coordinate
|
|
26
|
+
|
|
27
|
+
When a task spans multiple agents:
|
|
28
|
+
|
|
29
|
+
1. **Break it down** — identify which parts belong to which agent.
|
|
30
|
+
2. **Delegate exploration first** — before proposing an approach, dispatch the specialist(s) whose scope covers the relevant area to investigate, rather than reading the code yourself.
|
|
31
|
+
3. **Sequence or parallelize** — if agents' outputs are independent, run them in parallel; if one depends on the other, sequence them.
|
|
32
|
+
4. **Integrate** — after specialist agents finish, verify cross-cutting concerns.
|
|
33
|
+
5. **Update docs** — reflect any architectural change in `docs/agents/`.
|
|
34
|
+
|
|
35
|
+
## Documentation (`docs/agents/`)
|
|
36
|
+
|
|
37
|
+
| File | Contents |
|
|
38
|
+
|------|----------|
|
|
39
|
+
| [Folder Structure](../../docs/agents/folder-structure.md) | Top-level directory layout and the role of each folder. |
|
|
40
|
+
| [Architecture](../../docs/agents/architecture.md) | Source layout, modules, code style, and implementation guidelines. |
|
|
41
|
+
| [Flow](../../docs/agents/flow.md) | Main runtime flow of the application. |
|
|
42
|
+
| [Contributing](../../docs/agents/contributing.md) | Commit guidelines, PR standards, code organization, and refactoring rules. |
|
|
43
|
+
| [Plans](../../docs/agents/plans/) | Implementation plans for ongoing or upcoming features. |
|
|
44
|
+
| [Issues](../../docs/agents/issues/) | Detailed specs for open issues. |
|
|
45
|
+
|
|
46
|
+
Keep documentation up to date after any architectural change. When a new agent is created or its scope changes, update this file and `AGENTS.md`.
|
|
47
|
+
|
|
48
|
+
Note: a version bump in `lib/mercy/version.rb` (owned by `ruby`) requires updating the rubydoc link in `README.md` (owned by you).
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: infra
|
|
3
|
+
description: Mercy infra specialist. Use for any task involving Docker (Dockerfile, docker-compose.yml), CircleCI (.circleci/), or CI helper scripts (scripts/).
|
|
4
|
+
tools: Read, Edit, Write, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are the infra specialist for the Mercy project — a Ruby gem providing a Rails controller concern for configurable health-check reports rendered as JSON.
|
|
8
|
+
|
|
9
|
+
## Your scope
|
|
10
|
+
|
|
11
|
+
You own:
|
|
12
|
+
|
|
13
|
+
- `Dockerfile` — multi-stage image built from `darthjee/ruby_gems` / `darthjee/scripts`
|
|
14
|
+
- `docker-compose.yml` — `base_build`, `mercy` (rspec) and `test_all` (rspec + yard + yardstick) services
|
|
15
|
+
- `.circleci/` — CircleCI pipeline (`build` job: rspec, rubocop, coverage report, yardstick, README version check, rubycritic)
|
|
16
|
+
- `scripts/` — CI helper scripts (`check_readme.sh`, `rubycritic.sh`)
|
|
17
|
+
|
|
18
|
+
Do NOT touch `lib/`, `spec/`, `config/`, the gemspec, Rakefile or RuboCop configs (owned by `ruby`), nor `docs/agents/` or root documentation files (owned by `architect`).
|
|
19
|
+
|
|
20
|
+
## Stack
|
|
21
|
+
|
|
22
|
+
- Docker, docker-compose (v3)
|
|
23
|
+
- CircleCI 2.0 (`darthjee/circleci_ruby_gems` image, Code Climate test reporter)
|
|
24
|
+
- Bash
|
|
25
|
+
|
|
26
|
+
## Commands
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
docker-compose build base_build
|
|
30
|
+
docker-compose run --rm test_all
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Conventions
|
|
34
|
+
|
|
35
|
+
- Keep local Docker commands and CircleCI steps equivalent; when a CI step is added or changed, update the CI Checks table in `docs/agents/contributing.md` (coordinate with `architect`).
|
|
36
|
+
- Scripts use `#!/bin/bash` and must be executable.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ruby
|
|
3
|
+
description: Mercy ruby specialist. Use for any task involving Ruby code, the gem's library (lib/), RSpec specs (spec/), the dummy Rails app, YARD docs, RuboCop, yardstick/rubycritic config, the gemspec or Rakefile.
|
|
4
|
+
tools: Read, Edit, Write, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are the ruby specialist for the Mercy project — a Ruby gem providing a Rails controller concern for configurable health-check reports rendered as JSON.
|
|
8
|
+
|
|
9
|
+
## Your scope
|
|
10
|
+
|
|
11
|
+
You own:
|
|
12
|
+
|
|
13
|
+
- `lib/` — gem source (`Mercy` concern, builders, reports, Arstotzka type-cast extension)
|
|
14
|
+
- `spec/` — unit specs (`spec/lib/`), integration specs (`spec/integration/`), dummy Rails app (`spec/dummy/`), shared support (`spec/support/`)
|
|
15
|
+
- `config/` — yardstick and rubycritic configuration
|
|
16
|
+
- `mercy.gemspec`, `Gemfile`, `Rakefile`, `.rspec`, `.rubocop.yml`, `.rubocop_todo.yml`
|
|
17
|
+
|
|
18
|
+
Do NOT touch `Dockerfile`, `docker-compose.yml`, `.circleci/`, `scripts/` (owned by `infra`), `docs/agents/` or root documentation files (owned by `architect`).
|
|
19
|
+
|
|
20
|
+
## Stack
|
|
21
|
+
|
|
22
|
+
- Ruby (>= 2.5), ActiveSupport 5 (`ActiveSupport::Concern`), ActiveRecord
|
|
23
|
+
- arstotzka, darthjee-core_ext, darthjee-active_ext
|
|
24
|
+
- RSpec / rspec-rails, sqlite3 (dummy app), SimpleCov
|
|
25
|
+
- RuboCop 0.58.1 + rubocop-rspec, YARD + yardstick, rubycritic
|
|
26
|
+
|
|
27
|
+
## Commands
|
|
28
|
+
|
|
29
|
+
Run inside Docker:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
docker-compose run --rm mercy /bin/bash -c 'bundle exec rspec'
|
|
33
|
+
docker-compose run --rm mercy /bin/bash -c 'rubocop'
|
|
34
|
+
docker-compose run --rm mercy /bin/bash -c 'yard && bundle exec rake yardstick_measure && bundle exec rake verify_measurements'
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Conventions
|
|
38
|
+
|
|
39
|
+
- Every Ruby file starts with `# frozen_string_literal: true`.
|
|
40
|
+
- File paths mirror namespaces in snake_case (`lib/mercy/report/range.rb` → `Mercy::Report::Range`); specs mirror them under `spec/lib/` with `_spec.rb`.
|
|
41
|
+
- Public methods before `private`; small, single-responsibility methods.
|
|
42
|
+
- Every public class/method is documented with YARD; yardstick thresholds must hold.
|
|
43
|
+
- New report types subclass `Mercy::Report` / `Mercy::Report::ActiveRecord` and define `ALLOWED_PARAMETERS`, `DEFAULT_OPTION`, `error?` and `as_json`.
|
|
44
|
+
- When bumping `lib/mercy/version.rb`, the README's rubydoc link must be updated too (`scripts/check_readme.sh`) — coordinate with `architect`.
|
|
45
|
+
- See `docs/agents/contributing.md` and `docs/agents/architecture.md`.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
set -x
|
|
4
|
+
|
|
5
|
+
docker-compose run --rm mercy /bin/bash -c 'bundle exec rspec'
|
|
6
|
+
docker-compose run --rm mercy /bin/bash -c 'rubocop'
|
|
7
|
+
docker-compose run --rm mercy /bin/bash -c 'yard && bundle exec rake yardstick_measure && bundle exec rake verify_measurements'
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
```text
|
|
2
|
+
<type>(<scope>): <subject> (issue #<id>)
|
|
3
|
+
|
|
4
|
+
<optional body: what was done and why, if not obvious>
|
|
5
|
+
|
|
6
|
+
Addresses-Comment: <optional: URL of the PR comment this commit addresses>
|
|
7
|
+
|
|
8
|
+
Co-Authored-By: <AI model name> <AI model email>
|
|
9
|
+
Co-Authored-By: <agent> agent <agent email>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Note: unlike the model line above (always the running AI model's own
|
|
13
|
+
canonical noreply address), the agent line's email is independently
|
|
14
|
+
configurable per agent via the "git.email" key (a template such as
|
|
15
|
+
"you+{agent}@example.com", with "{agent}" substituted for the actual
|
|
16
|
+
agent name, e.g. "architect" or "backend") in
|
|
17
|
+
.claude/state/arcanum-config.json (local) or
|
|
18
|
+
.claude/configuration/arcanum-repo-config.json (repo) — see
|
|
19
|
+
docs/guides/arcanum-repo-config.md. When "git.email" is unset, the agent
|
|
20
|
+
line falls back to the same address as the model line, reproducing the
|
|
21
|
+
old, single-shared-email template's output.
|
|
22
|
+
|
|
23
|
+
The model line above can be omitted entirely by setting the
|
|
24
|
+
"git.omit_model_coauthor" key to "true" in the same three locations
|
|
25
|
+
(local state, repo config, or global config — see
|
|
26
|
+
docs/guides/arcanum-repo-config.md) — the agent line is always still
|
|
27
|
+
emitted regardless of this setting.
|
|
28
|
+
|
|
29
|
+
This file's mere presence (as "commit_message_template-2.0.md", not its
|
|
30
|
+
content) is what switches the commit scripts onto this new, two-distinct-
|
|
31
|
+
email behavior — the content itself is never parsed at runtime, it is
|
|
32
|
+
purely human-facing documentation of the shape above.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
```text
|
|
2
|
+
<type>(<scope>): <subject> (issue #<id>)
|
|
3
|
+
|
|
4
|
+
<optional body: what was done and why, if not obvious>
|
|
5
|
+
|
|
6
|
+
Addresses-Comment: <optional: URL of the PR comment this commit addresses>
|
|
7
|
+
|
|
8
|
+
Co-Authored-By: <AI model name> <AI model email>
|
|
9
|
+
Co-Authored-By: <agent> agent <AI model email>
|
|
10
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
See [AGENTS.md](../AGENTS.md) for project instructions.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## Summary
|
|
2
|
+
|
|
3
|
+
<!-- One sentence describing what this PR does -->
|
|
4
|
+
|
|
5
|
+
## Problem
|
|
6
|
+
|
|
7
|
+
<!-- What problem does this solve? Why is this change needed? -->
|
|
8
|
+
|
|
9
|
+
## Solution
|
|
10
|
+
|
|
11
|
+
<!-- How was the problem solved? What approach was taken? -->
|
|
12
|
+
|
|
13
|
+
## Details
|
|
14
|
+
|
|
15
|
+
<!-- Optional: implementation notes, migration steps, caveats. Remove this section if not needed. -->
|
|
16
|
+
|
|
17
|
+
Fixes #
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -1,2 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
plugins:
|
|
2
|
+
- rubocop-rspec
|
|
3
|
+
- rubocop-rake
|
|
4
|
+
|
|
2
5
|
inherit_from: .rubocop_todo.yml
|
|
6
|
+
|
|
7
|
+
AllCops:
|
|
8
|
+
TargetRubyVersion: 3.4
|
|
9
|
+
NewCops: enable
|
|
10
|
+
SuggestExtensions: false
|
|
11
|
+
Exclude:
|
|
12
|
+
- 'spec/dummy/bin/**/*'
|
|
13
|
+
- 'spec/dummy/db/schema.rb'
|
|
14
|
+
|
|
15
|
+
Metrics/BlockLength:
|
|
16
|
+
Exclude:
|
|
17
|
+
- 'spec/**/*_spec.rb'
|
|
18
|
+
- 'spec/support/shared_*/**/*.rb'
|
|
19
|
+
- '*.gemspec'
|
|
20
|
+
|
|
21
|
+
RSpec/AlignLeftLetBrace:
|
|
22
|
+
Enabled: true
|
|
23
|
+
|
|
24
|
+
Layout/LineLength:
|
|
25
|
+
Max: 100
|
|
26
|
+
Exclude:
|
|
27
|
+
- 'spec/spec_helper.rb'
|
|
28
|
+
- 'spec/dummy/config/**/*.rb'
|
|
29
|
+
|
|
30
|
+
RSpec/SpecFilePathFormat:
|
|
31
|
+
Exclude:
|
|
32
|
+
- 'spec/integration/controller/**/*.rb'
|
|
33
|
+
|
|
34
|
+
RSpec/MultipleMemoizedHelpers:
|
|
35
|
+
Enabled: false
|
|
36
|
+
|
|
37
|
+
Layout/HashAlignment:
|
|
38
|
+
EnforcedColonStyle: [key, table]
|
|
39
|
+
EnforcedHashRocketStyle: [key, table]
|