Skip to content

Commit ea8a8e1

Browse files
committed
{"schema":"cmsg/1","type":"docs","scope":"global","summary":"update agent rules and repository configuration","intent":"standardize commit message schema and update project metadata","impact":"enforces new commit message format and updates repository references","breaking":false,"risk":"low","refs":[]}
1 parent c4fae75 commit ea8a8e1

File tree

9 files changed

+93
-51
lines changed

9 files changed

+93
-51
lines changed

.dockerignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.git
2-
**/node_modules
3-
**/npm-debug.log
41
**/.env*
52
**/.next
3+
**/node_modules
4+
**/npm-debug.log
5+
.git

.github/rulesets/any.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"id": 8726570,
2+
"id": 12430557,
33
"name": "any",
44
"target": "branch",
55
"source_type": "Repository",
6-
"source": "hack-ink/vibe-mono",
6+
"source": "hack-ink/ELF",
77
"enforcement": "active",
88
"conditions": {
99
"ref_name": {

.github/rulesets/default.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"id": 9349786,
2+
"id": 12430561,
33
"name": "default",
44
"target": "branch",
55
"source_type": "Repository",
6-
"source": "hack-ink/vibe-mono",
6+
"source": "hack-ink/ELF",
77
"enforcement": "active",
88
"conditions": {
99
"ref_name": {
@@ -88,13 +88,6 @@
8888
]
8989
}
9090
},
91-
{
92-
"type": "copilot_code_review",
93-
"parameters": {
94-
"review_on_push": true,
95-
"review_draft_pull_requests": false
96-
}
97-
},
9891
{
9992
"type": "code_quality",
10093
"parameters": {
@@ -118,7 +111,11 @@
118111
}
119112
},
120113
{
121-
"type": "copilot_code_review"
114+
"type": "copilot_code_review",
115+
"parameters": {
116+
"review_on_push": true,
117+
"review_draft_pull_requests": false
118+
}
122119
}
123120
],
124121
"bypass_actors": [

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
# Language Specifics
1111

1212
## JavaScript/TypeScript
13-
!.yarn/patches
14-
!.yarn/plugins
15-
!.yarn/releases
16-
!.yarn/versions
1713
*.tsbuildinfo
1814
.next
1915
.pnp
@@ -22,6 +18,10 @@
2218
.vercel
2319
.vite
2420
.yarn/*
21+
!.yarn/patches
22+
!.yarn/plugins
23+
!.yarn/releases
24+
!.yarn/versions
2525
build
2626
coverage
2727
dist

.prettierignore

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
node_modules
1+
.next
22
.pnp
33
.pnp.*
44
.yarn/*
55
!.yarn/patches
66
!.yarn/plugins
77
!.yarn/releases
88
!.yarn/versions
9-
dist
10-
build
11-
.next
12-
out
13-
coverage
14-
apps/ui/src/ui/Svg
15-
apps/ui/public
16-
apps/ui/**/*.ttf
17-
apps/ui/**/*.png
9+
apps/ui/**/*.gif
1810
apps/ui/**/*.jpg
11+
apps/ui/**/*.png
1912
apps/ui/**/*.svg
20-
apps/ui/**/*.gif
13+
apps/ui/**/*.ttf
2114
apps/ui/README.md
15+
apps/ui/public
16+
apps/ui/src/ui/Svg
17+
build
18+
coverage
19+
dist
20+
node_modules
21+
out

AGENTS.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,27 @@ Requirements for repository artifacts:
4343

4444
**These language rules override any conflicting rules elsewhere for repository artifacts.**
4545

46+
### Commit Message Schema
47+
48+
Commit messages are exempt from the English language and punctuation rules above.
49+
All commit messages must follow the schema below exactly.
50+
51+
Schema (single line JSON with fixed key order):
52+
`{"schema":"cmsg/1","type":"feat|fix|refactor|docs|chore|build|ci|perf|revert","scope":"global|<component>","summary":"...","intent":"...","impact":"...","breaking":false,"risk":"low|medium|high","refs":[]}`
53+
54+
Rules:
55+
56+
- The JSON object must be a single line with no extra whitespace.
57+
- Keys must appear in the exact order shown.
58+
- Only the keys shown are allowed.
59+
- `schema` must be `cmsg/1`.
60+
- `type` must be one of `feat`, `fix`, `refactor`, `docs`, `chore`, `build`, `ci`, `perf`, or `revert`.
61+
- `scope` must be `global` or a lowercase kebab-case component name.
62+
- `summary`, `intent`, and `impact` must be short text without double quotes, backslashes, or newlines.
63+
- `breaking` must be `true` or `false`.
64+
- `risk` must be `low`, `medium`, or `high`.
65+
- `refs` must be an array of strings. Each string must use one of the following forms: `gh:<owner>/<repo>#<issue>`, `pr:<number>`, `doc:<slug>`, `url:<https://...>`. Use an empty array when there are no references.
66+
4667
Commenting guidance:
4768

4869
- Avoid redundant comments that restate the code in different words.
@@ -64,8 +85,6 @@ Language- or stack-specific rules must be documented under `docs/guide/developme
6485

6586
Run verification commands only when requested or when you need evidence before claiming completion.
6687

67-
When a data debugging method is not specified, use `psql` with the `.env`-provided `PUBFI_DATABASE_URL` for the `pubfi_stg` database.
68-
6988
## 1.1 Workspace Automation (cargo make)
7089

7190
- Use `cargo make` tasks from `Makefile.toml` when they are the best fit for the job.
@@ -76,7 +95,6 @@ When a data debugging method is not specified, use `psql` with the `.env`-provid
7695
- Tests: `cargo make test` for full workspace, or `cargo make test-rust` for Rust-only.
7796
- SQLx metadata: `scripts/sqlx-prepare.sh`.
7897
- Full validation: `cargo make checks`.
79-
- Do not set `DATABASE_URL` manually when running `cargo make` tasks.
8098

8199
# 2. Implementation Scope
82100

Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Dependency Upgrade Workflow
2+
3+
This guide standardizes how to upgrade Rust dependencies while keeping version requirements consistent and low-risk.
4+
5+
## Version format policy
6+
7+
- Use `major.minor` in version requirements when possible.
8+
- Avoid patch pins unless a specific patch is required for correctness or security.
9+
- For `0.x` dependencies, prefer minor-capped ranges to avoid overly broad upgrades.
10+
- In the root `Cargo.toml`, normalize workspace dependency entries to inline table form with an explicit `version` key, even when no features are required.
11+
- In workspace member `Cargo.toml` files, use `workspace = true` for dependencies and do not use `version` or `path` keys.
12+
- In `Cargo.toml`, group dependency entries by origin and separate groups with a single blank line.
13+
- Do not edit lockfiles by hand. Regenerate them with the appropriate tool.
14+
15+
Exception: If a minimum patch is required, document the reason and use an explicit range such as `>=X.Y.Z,<X.(Y+1)`.
16+
17+
## Rust (Cargo)
18+
19+
1. In the root `Cargo.toml`, normalize workspace dependency entries to inline table form with an explicit `version` key.
20+
2. In workspace member `Cargo.toml` files, use `workspace = true` for dependencies and do not use `version` or `path` keys.
21+
3. Keep dependency requirements in the root `Cargo.toml` at `major.minor` unless a patch pin is required.
22+
4. Run `cargo update -w` from the repository root to refresh `Cargo.lock`.
23+
24+
## Verification
25+
26+
- Run `cargo make test` or targeted Rust tests when Rust dependencies change.

docs/guide/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ Purpose: Provide the entry point for operational guidance and runbooks.
1414

1515
- `docs/guide/development/languages/index.md` — Language- and stack-specific development rules.
1616
- `docs/guide/development/languages/rust.md` — Rust development and style rules for this repository.
17+
- `docs/guide/development/dependency_upgrade_workflow.md` — Dependency upgrade workflow for Rust dependencies.

0 commit comments

Comments
 (0)