@itrocks/handbook 0.0.6 → 0.0.9

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.
package/AGENTS.md CHANGED
@@ -16,11 +16,17 @@ If a task spans several categories, read each applicable guide.
16
16
  user perspective: user > functionality > developer. For purely technical changes, use simple and beginner-friendly
17
17
  developer language (KISS).
18
18
  - Cover all pending changes in each repository; for multiple commits, list each commit's files and shared-file hunks.
19
- - For changes generated or modified by agents or subagents, add one trailer identifying contributing AI identity:
20
- `AI-assisted-by: <Agent tool> <AI name> <version> <model> <reasoning level>`
21
- (e.g. `AI-assisted-by: Codex GPT 6.1 sol high`). Capitalise the tool name.
22
- Use the contributing agent's execution metadata: preserve the full model version, including minor/patch versions
23
- and variant (e.g. `gpt-6.1-sol` becomes `GPT 6.1 sol`), and the actual reasoning level.
24
- Do not infer these from the agent's self-description, a parent agent or a requested profile.
25
- Include only known fields; omit missing information without placeholders or explanatory comments.
26
- Keep human-only and AI-generated changes in separate commits where practical for targeted reviews.
19
+ - For changes generated or modified by agents or subagents, add an `AI-assisted-by` trailer for each distinct
20
+ contributing agent identity:
21
+ `AI-assisted-by: <Agent tool> <tool version> <AI name> <AI version> <model variant> <reasoning level>`
22
+ (e.g. `AI-assisted-by: Codex 0.162.0-alpha.17.2 GPT 6.1 sol medium`). Capitalise the tool name.
23
+ - Before proposing or authoring any commit, **read the contributing session's actual metadata or tool logs**.
24
+ This lookup is mandatory even when the system prompt provides a generic model name. Preserve the full tool version,
25
+ non-zero AI minor/patch versions, model variant and actual reasoning level; never infer them from defaults or examples.
26
+ For Codex, locate the session log using `CODEX_THREAD_ID` or `CODEX_SESSION_ID` under `$CODEX_HOME/sessions`
27
+ (default `~/.codex/sessions`). Read `session_meta.cli_version` and the contributing turns' `turn_context.model`
28
+ and `turn_context.effort`. Inspect each subagent's own session when it contributed changes.
29
+ - Omit a field only after checking the corresponding metadata/logs and finding it unavailable. Never shorten a known
30
+ `gpt-6.1-sol` to `GPT-6`, or omit a known reasoning level. After committing, read back the stored commit message and
31
+ verify every trailer against the retrieved metadata. Keep unrelated log contents out of commit messages.
32
+ - Keep human-only and AI-generated changes in separate commits where practical for targeted reviews.
@@ -1,9 +1,27 @@
1
1
  # Coding conventions
2
2
 
3
- Apply these rules to application and framework source, tests and development files.
3
+ Apply these rules to all development: application code, framework packages, other modules, tests and development files.
4
4
  For framework packages, also apply [package versioning](../framework-changes/README.md#package-versioning)
5
5
  from the first file change.
6
6
 
7
+ ## Design choices
8
+
9
+ Before implementing a feature or fix, consider several ways to express the requested behaviour. Keep this comparison
10
+ proportionate to the task; choose the KISS (Keep It Simple And Stupid) solution that meets the actual requirements:
11
+
12
+ - Prefer a direct model of the behaviour, using the relevant events and state, over indirect calculations or heuristics.
13
+ - Reuse existing behaviour and share the same algorithm between variants; make their actual differences explicit.
14
+ - Minimise abstraction layers, preferably adding none. Introduce one only for a concrete current need that makes the
15
+ solution easier to understand or maintain.
16
+ - Choose code that a beginner developer can reread and maintain, and whose operation is easy to explain to a human.
17
+ Prefer less code when correctness and readability are equivalent.
18
+ - Apply SOLID through clear responsibilities, existing extension points, substitutable contracts, focused interfaces
19
+ and appropriate dependency boundaries. Each separation must serve the current behaviour and simplify maintenance.
20
+
21
+ When fixing a bug, reconsider the model before adding another condition or special case. For example, column drag
22
+ placement can remember the hovered column and react to changes of column and movement direction, instead of repeatedly
23
+ inferring placement from position thresholds.
24
+
7
25
  ## Layout and blocks
8
26
 
9
27
  - Limit lines to 120 columns; count each indentation tab as two columns. Only indivisible content may exceed it.
package/package.json CHANGED
@@ -25,5 +25,5 @@
25
25
  "type": "git",
26
26
  "url": "git+https://github.com/itrocks-ts/handbook.git"
27
27
  },
28
- "version": "0.0.6"
28
+ "version": "0.0.9"
29
29
  }