Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# AGENTS.md — Ae_MultiSlicer

## Governance

- Constitution: [`constitution/CONSTITUTION.md`](constitution/CONSTITUTION.md)
- Current Operating Model: [`organization/profiles/release-driven-solo.md`](organization/profiles/release-driven-solo.md)
- Project-specific architecture / build / host constraints in README and docs remain more specific authority when they preserve the Constitution.

- this repository currently uses `master` as released/integrated ref; project-init's `main` default is intentionally adapted to `master` until a separate branch migration decision is made.
- After Effects SDK template placement/build constraints remain project-specific.
- Bun is only Agent Skills tooling and does not imply a product build-system migration.

## Agent Skills lifecycle

- install/reconcile: `bunx skills add rebuildup/project-init --skill '*' --agent claude-code opencode codex -y`
- fresh clone: `bunx skills install`
- continuous update: `bunx skills update -p -y`
- use project scope only; global installation is not canonical
- commit CLI-generated `skills-lock.json`; do not hand-author source/hash entries
- do not modify upstream-managed project-init Skill files; keep local refinement in separate Skills/adapters/docs
113 changes: 113 additions & 0 deletions constitution/CONSTITUTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# Ae_MultiSlicer Constitution

この文書は、Ae_MultiSlicer の開発組織における最上位 contract です。

具体的なagent、provider、IDE、Git hosting、planning tool、worktree manager、branch命名、sprint cadence、commandはConstitutionではありません。それらは current operating model / practice が、このConstitutionを実現するために選ぶ交換可能な手段です。

## Policy hierarchy

1. **Constitution** — 組織として常に維持する性質
2. **Operating Model** — 現在の役割・planning・delivery・review・release構造
3. **Practice** — Operating Modelを実現する現在のtool / workflow
4. **Skill** — 判断が必要な場面のprogressive disclosure / playbook

下位層は上位層をrefineします。下位層の都合で上位の意味を変更しません。

## Constitutional properties

### Identity Integrity

Task、execution attempt、artifact、evidence、decision、authorityのidentityを暗黙に置換しません。

あるartifact/attemptへbindされたresultやevidenceを、別identityのcurrent result/evidenceとして扱うには、明示的で妥当な導出関係が必要です。

### Authority Integrity

重要なdecisionは、そのdecisionについてauthorityを持つactor/processだけが確定できます。

技術的に実行可能、validation済み、review済み、Readyであることは、それ自体ではauthorityを生成しません。

### Evidence Integrity

組織が主張する内容は、そのscopeと強さに対応するevidenceを持ちます。

stale / partial / unrelated / unverifiable evidenceをcurrent proofとして扱いません。

### Mutable Ownership Safety

concurrent workは、同じmutable stateへ無調停で競合するownershipを作りません。

isolation、serialization、transaction、conflict-free semantics等、同等以上のguaranteeを持つ任意のmechanismで実現できます。

### Organizational Continuity

一つのephemeral actor、conversation、process、runtime、providerの喪失だけで、重要なunfinished workを安全に理解・継続するためのorganizational stateを失わないようにします。

### Canonical Consistency

同じfactについて、reconciliation ruleのない複数のconflicting canonical authorityを意図的に維持しません。

複数systemを使う場合はfield/responsibility ownershipを分けます。

### Progress

safetyのために通常workを永久停止させません。

必要なinput/authorityが利用可能でvalid blockerがないworkは、明示的なterminal stateまたは正当なwaiting stateへ進める必要があります。

## Optimization principle

Ae_MultiSlicer の開発組織の目的は current procedure への服従ではありません。

概念上、actorは次を行います。

```text
maximize project utility
subject to:
constitutional properties
explicit product / organizational decisions
```

project utilityの具体的なtrade-offはproject evidence、goal、risk、cost、maintainability、quality、delivery contextから判断します。

## Refinement

Operating Model / Practice は、上位propertyに対して次を説明できるようにします。

- implements
- assumptions
- guarantees
- evidence
- known limits
- deviation conditions
- re-evaluate / remove conditions

current defaultと異なる方法でも、適用される上位guaranteeを同等以上に維持するなら採用できます。

## Deviation

defaultからのdeviationは異常系ではありません。

少なくとも次を満たす場合、より良いalternativeを選択できます。

1. 適用される上位obligationが特定されている
2. alternativeが同等以上のguaranteeを維持する
3. explicit decisionを無断で上書きしない
4. materialなrisk/unknownを隠さない
5. consequential boundary変更ならdurable evidenceを残す

## Formalization boundary

Constitutionの一部はformal modelで検査します。

formal modelの成立は、実際のtool/agent/workflow implementationが自動的に正しいことを意味しません。abstract model correctness と implementation conformance は別のevidence obligationです。

## Change discipline

Constitutionへの追加は、Operating Model / Practice / Skillでは表現できない長寿命なorganizational failureを防ぐ場合に限定します。

non-constitutional ruleは、能力向上・代替mechanism・eval evidenceによって不要になった場合、意図的に降格・削除できます。

## Upstream source

`rebuildup/project-init@release-0-3-0` / `57fb4a2e5abe6f52e4fd9cb2cb88234496e47d4b`
156 changes: 156 additions & 0 deletions organization/profiles/release-driven-solo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# Release-driven solo development profile

- Status: Current default
- Constitutional authority: none; this profile must refine the Constitution
- Related: ADR-0004, ADR-0008, ADR-0012, ADR-0013, ADR-0016, ADR-0018, ADR-0022, ADR-0023

## Purpose

Ae_MultiSlicer の current release-driven development で使用する Operating Model を定義します。

このprofileはproject-initの唯一の正しいorganization topologyではありません。別profileまたはproject-specific modelがConstitutionを満たす場合は置換できます。

## Current topology

### Source and implementation state

- Git: source stateのcanonical authority
- GitHub Issues: durable implementation scope / acceptance criteria / dependency state
- GitHub Pull Requests: review / candidate integration / validation evidence
- `master`: released/integrated source state
- `release-x-y-z`: current release integration line

### Release planning

- Linear Projects / Initiatives: release goal / target date / health / portfolio view
- GitHub IssueをLinear Issueへ全面mirrorしない
- implementation/dependency factsはGitHub側のownershipを維持する

### Delivery defaults

- normal sprint cadence: 1 week
- production/stable release intent: major bump default
- normal sprint release intent: minor bump default
- within-sprint / post-introduction adjustment: patch bump default
- top-level durable work: GitHub Issue
- ticket branch: Issue number only
- independent ticket PR: target release branch
- hard dependency stack: immediate predecessor branchをbaseにできる
- first meaningful durable commit後はcanonical remote publication + Draft PRを行う
- release branchにmeaningful differenceが入ったらDraft release PRを維持する
- `master`へのnormal integrationはcurrent release branchからのrelease PRだけ
- PR landing method: merge commit only
- repository merge settings: `allow_merge_commit=true` / `allow_squash_merge=false` / `allow_rebase_merge=false`
- squash merge / rebase mergeは使用しない。branch-local `git rebase` はstack maintenance等のbranch mechanicsとして別扱い
- stacked/native landingはmerge commit semanticsを保持できる場合だけ使用する
- merge/landingはADR-0012のexplicit authorization boundaryを維持する

### Workspace/runtime defaults

- project-local toolchain/bootstrap frontend: mise
- runtime / development CLI prerequisitesは原則repository-controlledな `mise.toml` からmaterializeする
- fresh clone / CI / agentのbootstrapは `mise install`、committed mise lockfileをreproducibility mechanismとして使う場合は `mise install --locked`、command executionは `mise exec -- ...` / `mise run <task>` を標準入口とする
- required toolはexact pin、bounded version request + committed mise lockfile、または既存ecosystem-native canonical version sourceのいずれかでreproducibleにする
- `rust-toolchain.toml` 等のnative canonical version sourceがある場合、mise側へ独立した競合pinを作らない
- external/untrusted PR checkoutでrepository-controlledなmise config/taskをagentが実行する前に、documented trust reviewまたはbounded sandboxを必須とし、mise自体をisolation boundaryとして扱わない
- miseはOS/system package、container/sandbox、secret management、worker isolationの代替にしない
- mise unavailable/incompatible時は同等のversion/reproducibility guaranteeを持つ明示的fallbackを使用する
- WSL/Linux worktree frontend: Worktrunk
- Worktrunk unavailable/incompatible時: native Git worktree fallback
- worktree自体をruntime isolation proofとして扱わない
- implementation workerのmutable runtimeは適切に分離する
- parent/child handoffはimmutable identityへpinする

### Secret / environment defaults

- application / serviceのsecret valueはInfisicalをcurrent default SoTとする
- current default control planeはself-hosted `https://secrets.rebuildup.dev` とし、APIは `https://secrets.rebuildup.dev/api`
- current defaultで使用するprovider endpoint / project ID / environment/path mapping等のnon-secret pointerをrepositoryからdiscoverableにする
- wrapper / CI / runtimeはprovider endpointを明示し、managed Infisical Cloudへ暗黙fallbackしない
- required key / type / validation / non-secret metadataはrepository-controlled schemaとして保持する
- normal local workflowはCLI-firstとし、runtime injectionを優先する
- plaintext `.env` をcanonical storeにしない
- human / agent / CIはidentityを分離し、project / environment / path / actionをleast privilegeにする
- GitHub Actionsは利用可能ならOIDC + scoped Machine Identityを使用し、long-lived master credentialをdefaultにしない
- generic CIへproduction secretを渡さない
- NixOS / dotfiles / bootstrap等 encrypted secret-in-Git がexplicit requirementならSOPS等へdeviateできる
- provider-specific procedureは `secrets-management` Skillへprogressive disclosureする

### Quality / evidence

- project-specific adaptive quality profileをcompileする
- validation evidenceをcurrent artifact/SHAへbindする
- worker / integration / release gateの責務を分ける
- fixed universal required status check名は前提にしない

## Constitutional mapping

### Identity Integrity

- resolved immutable SHAへsnapshot/result/validationをpin
- predecessor change後にaffected validationを再実行
- execution generation/fencingでstale continuationを区別

### Authority Integrity

- PR readinessとmerge authorizationを分離
- merge method固定やrepository settingの整合からauthorizationを導出しない
- release/product/irreversible decisionは定義済みauthority boundaryへ従う

### Evidence Integrity

- current SHAのvalidation evidenceを使用
- false greenを禁止
- PR/release readinessはapplicable evidenceへ基づく

### Mutable Ownership Safety

- worktree-only isolationを認めない
- concurrent implementation workerはmutable runtimeを安全に分離
- DB/Redis/queue/port等のshared mutable stateを別途調停

### Organizational Continuity

- Issue / PR / Git ref / committed docs / immutable resultをdurable recovery sourceにする
- native conversation resumeをcanonical recovery stateにしない

### Canonical Consistency

- source / implementation / review / release-planning responsibilityをfield ownershipで分離
- 同一factの二重canonical化を避ける

### Progress

- 自明なimplementation decisionを不要にoperatorへ返さない
- review/validation完了後はauthorization等の実blockerがなければ次stateへ進める
- safety mechanismがdelivery deadlockを作る場合はOperating Modelをre-evaluateする

## Deviation

このprofileの具体的なtool/cadence/topologyから外れる場合でも、該当するConstitutional guaranteeを維持できれば許容します。

explicit user/project decisionとして固定されたrelease scope/version/public contract等は、単なるdefaultとは区別します。

## Re-evaluate / remove

次の場合はprofile全体または一部を見直します。

- agent/runtimeが同等以上のisolation/recovery/review semanticsをより単純に提供する
- GitHub/Linear/Worktrunk/miseの役割を別systemが置換する
- release branch modelがcontinuous delivery等に対して逆効果になる
- weekly cadenceがproject objectiveへ合わない
- eval/実績から特定procedureの追加価値が消えた


## Project-specific reconciliation

- this repository currently uses `master` as released/integrated ref; project-init's `main` default is intentionally adapted to `master` until a separate branch migration decision is made.
- After Effects SDK template placement/build constraints remain project-specific.
- Bun is only Agent Skills tooling and does not imply a product build-system migration.

## Agent Skills lifecycle

- install/reconcile: `bunx skills add rebuildup/project-init --skill '*' --agent claude-code opencode codex -y`
- fresh clone: `bunx skills install`
- continuous update: `bunx skills update -p -y`
- project-local only; commit CLI-generated `skills-lock.json`; do not hand-edit upstream-managed Skills
Loading