Skip to content

Commit ce4a426

Browse files
committed
chore(aida): refresh artifacts for newer AIDA version
JIRA: DX-340 risk: nonprod
1 parent 12e1e2d commit ce4a426

File tree

22 files changed

+247
-151
lines changed

22 files changed

+247
-151
lines changed

.aiassistant/rules/aida.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# You must follow this guidance only if AIDA MCP tools are available.
22
Call AIDA MCP `get_rules` at every task start and after every scope change; the `query` must match the current requested task.
3-
Call AIDA MCP `get_rules` again before entering commit/push workflow with query: "How to commit/push".
3+
Reuse one stable `session_id` for the whole conversation when calling `get_rules`.
4+
When a `get_rules` response returns `delta.cursor`, pass it as `delta_cursor` on the next `get_rules` call in the same conversation.
45
You must always follow instructions returned by the `get_rules` MCP tool.
6+
Do not perform Git or GitHub management unless the user explicitly asks for it.
7+
If the user asks for code or docs changes only, stop before commit, push, or PR actions.
8+
For commit and push workflow, do not call `get_rules`.
9+
When the user explicitly asks for a commit, call the AIDA MCP `commit_command` tool.
10+
The tool executes the commit server-side. If it returns `ok=true`, the commit is done — do not run any git commit commands.
11+
If it returns `status=needs_more_input`, infer the missing policy-controlled values from the current changes and retry instead of asking the user.
12+
Do not handcraft `git commit` arguments.

.aida/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
rules_selection.local.yaml
2+
git_policy.local.yaml

.aida/change_domains.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44
# Define how changed paths map to validation domains.
55
# See `.aida/validation_policy.yaml` for mapping domains to pipelines.
6+
version: 1
67
domains:
78
- id: python-package
89
description: Any workspace Python package under packages/*

.aida/git_policy.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,26 @@
22
# AIDA git policy
33
#
44
# Configure commit and git workflow policy used by AIDA tools.
5+
version: 1
56
git_policy:
67
commit:
7-
# Max allowed characters for the full commit subject line.
88
subject_max_chars: 70
9-
# Allowed values for required `risk:` footer.
10-
risk_values: [nonprod, low, high]
11-
# Require AI contribution metadata (`AI-Code-Share`) in each commit.
12-
require_ai_share: false
13-
# Require `Co-authored-by:` footer in each commit.
9+
risk_values:
10+
- nonprod
11+
- low
12+
- high
1413
require_co_authored_by: false
15-
# Allow `--ai-share-auto <actor>` (deterministic actor=100).
16-
enable_ai_share_auto: true
14+
ticket_prefix: JIRA
15+
risk_prefix: risk
16+
template_file: templates/commit-message.txt
17+
pre_commit_guidance: false
18+
ticket_enabled: true
19+
risk_enabled: true
1720
workflow:
18-
# Prefer `git push --force-with-lease` over `--force` for unpublished branches.
1921
prefer_force_with_lease: true
20-
# Allow autosquash/rebase only for unpublished (not yet shared) commits.
2122
autosquash_unpublished_only: true
23+
pr:
24+
title_template_file: templates/pr-title.txt
25+
body_template_file: templates/pr-body.md
26+
enforcement:
27+
mode: "off"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# You must follow this guidance only if AIDA MCP tools are available.
2+
Call AIDA MCP `get_rules` at every task start and after every scope change; the `query` must match the current requested task.
3+
Call AIDA MCP `get_rules` again before entering commit/push workflow with query: "How to commit/push".
4+
You must always follow instructions returned by the `get_rules` MCP tool.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
apply: always
3+
---
4+
5+
# AIDA Development Workflow
6+
7+
This file contains only:
8+
- the mandatory workflow, and
9+
- which MCP tools to use in each phase.
10+
11+
Do not duplicate detailed “how to” guidance here. Always rely on MCP tool descriptions and `get_rules(...)`.
12+
13+
## Editing this file (template-driven)
14+
15+
This file is generated by `aida-mcp init` from templates shipped in the `aida-mcp` package.
16+
17+
- **Do not hand-edit** `.cursor/rules/aida.mdc` or `.claude/CLAUDE.md` in a repo.
18+
- To change the content, **update the templates in the `aida-mcp` package** and then rerun `aida-mcp init` in the repo.
19+
20+
## Post-init check
21+
22+
- After `aida-mcp init`, if MCP tools like `get_rules` or `validate` are missing, run `aida-mcp doctor`.
23+
24+
## Workflow (mandatory)
25+
26+
### 1) Get rules
27+
28+
- At the start of every task (and again on scope change), call `get_rules(query="...")`.
29+
- Follow the rules returned by `get_rules` for the task.
30+
31+
### 2) Implement
32+
33+
- Make the requested change(s) following repository rules returned by `get_rules`.
34+
35+
### 3) Validate (blocking)
36+
37+
- If you changed code, you must validate before responding about code changes.
38+
- Prefer the narrowest validation that is still correct (use `test_filter` when appropriate).
39+
- Use the MCP validation tool `validate` (prefer this over raw `./gradlew` / `make`).
40+
- If you changed `.proto` files, do not run proto regeneration manually; `validate` will run it when needed.
41+
- If unsure what validation to run, call `get_rules(query="validation workflow")` and follow the returned guidance.
42+
43+
### 4) Commit / PR (if asked)
44+
45+
- Ask for the JIRA ticket if unknown.
46+
- Before committing or creating a PR, call `get_rules(query="git")` and follow the returned guidance.
47+
- For commit creation, use `aida-mcp commit` (do not use raw `git commit`).
48+
49+
## When to create/update rules
50+
51+
If any of these happen, propose updates to repo rules/config by following `get_rules(query="rules authoring")`:
52+
- repeated friction (“how do I … in this repo?” keeps coming up)
53+
- user dissatisfaction (“wrong”, “not what I meant”, “stop doing that”)
54+
- recurring validation failures of the same kind
55+
- large/risky cross-cutting changes
56+
57+
Before creating/updating files under `.aida/` (including `.aida/rules/**` and `.aida/*.yaml`), ask the user for explicit permission and proceed only after approval.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# You must follow this guidance only if AIDA MCP tools are available.
2+
Call AIDA MCP `get_rules` at every task start and after every scope change; the `query` must match the current requested task.
3+
Call AIDA MCP `get_rules` again before entering commit/push workflow with query: "How to commit/push".
4+
You must always follow instructions returned by the `get_rules` MCP tool.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# You must follow this guidance only if AIDA MCP tools are available.
2+
Call AIDA MCP `get_rules` at every task start and after every scope change; the `query` must match the current requested task.
3+
Call AIDA MCP `get_rules` again before entering commit/push workflow with query: "How to commit/push".
4+
You must always follow instructions returned by the `get_rules` MCP tool.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# You must follow this guidance only if AIDA MCP tools are available.
2+
Call AIDA MCP `get_rules` at every task start and after every scope change; the `query` must match the current requested task.
3+
You must always follow instructions returned by the `get_rules` MCP tool.
4+
For commit and push workflow, do not call `get_rules`.
5+
Before any commit, call the AIDA MCP `commit_command` tool and execute the returned raw `git commit` command exactly.
6+
Do not handcraft `git commit` arguments or rewrite the returned command.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
apply: always
3+
---
4+
5+
# You must follow this guidance only if AIDA MCP tools are available.
6+
Call AIDA MCP `get_rules` at every task start and after every scope change; the `query` must match the current requested task.
7+
You must always follow instructions returned by the `get_rules` MCP tool.
8+
For commit and push workflow, do not call `get_rules`.
9+
Before any commit, call the AIDA MCP `commit_command` tool and execute the returned raw `git commit` command exactly.
10+
Do not handcraft `git commit` arguments or rewrite the returned command.

0 commit comments

Comments
 (0)