Metadata-Version: 2.5
Name: ai-engineering-standard
Version: 2.2.1
Summary: AI development, training, and agent engineering standards with an installable CLI.
Author: AIEngineeringStandard
License: MIT License
        
        Copyright (c) 2026 eaglesjo
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agents,ai,cli,engineering,llm,ml,standards
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# AI Engineering Standard

<p align="center"><strong>AI Development, Training & Agent Engineering Standards</strong></p>
<p align="center"><strong>v2.2.1 — Safer Installer Lifecycle</strong></p>

<p align="center">
  <a href="https://github.com/eaglesjo/AIEngineeringStandard/releases"><img src="https://img.shields.io/github/v/release/eaglesjo/AIEngineeringStandard?label=release" alt="Release"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-yellow.svg" alt="MIT License"></a>
</p>

**Language:** [한국어](i18n/ko/README.md)

## What is AI Engineering Standard?

AI Engineering Standard is a reusable engineering standard for AI-assisted development, model training, experimentation, LLM/Vision workflows, general ML/DL workflows, and AI coding agents.

Version 2 establishes a machine-readable architecture and policy contract, explicit agent/Skill routing, environment-aware runtime behavior, cross-platform installation lifecycle controls, Korean localization quality gates, executable conformance checks, and dependency-compatibility alignment rules. Version 2.1 extends this foundation with framework-neutral multi-agent contracts for Agent, Agent Role, Agent Contract, Work Unit, Handoff, Evidence, Evaluation, and Acceptance. The 2.2 series provides the versioned PyPI package and cross-platform CLI as the primary consumer installation interface.

## Independent repository model

This repository is the **single source of truth for development, validation, and release**.

```mermaid
flowchart TD
    A[Feature / Fix / Docs] --> B[Pull Request]
    B --> C[Local Validation Gate]
    B --> D[GitHub Actions CI]
    C --> E[main]
    D --> E
    E --> F[Version Tag]
    F --> G[GitHub Release]
```

Local validation and GitHub Actions CI verify the same repository state before changes reach `main`. GitHub Actions is an automated verification and bounded execution mechanism; it is not a second source of truth or a replacement repository.

There is no separate private repository, development repository, staging repository, or promotion/export step.

## ChatGPT Web agent setup (GitHub-connected)

To let a ChatGPT conversation work with this repository, configure the ChatGPT-side GitHub connection and the GitHub App connection where both are available. These are separate setup steps; installing one does not prove the other is configured.

1. In ChatGPT, open the [Plugins/connected GitHub setup page](https://chatgpt.com/plugins) and install or connect the GitHub integration available to your account. Product navigation and labels may vary.
2. On GitHub, install the [ChatGPT Codex Connector GitHub App](https://github.com/apps/chatgpt-codex-connector) and grant it access to this repository. Prefer selecting only the repositories the agent needs. If it is already installed for selected repositories, add this repository to that installation's access list.
3. If an organization policy requires approval, ask an organization administrator to approve the integration or App installation.
4. Start a normal ChatGPT conversation, provide this repository URL, and ask the agent to inspect the repository and report which read/write, sandbox, and Actions capabilities are actually available before making changes.

The two connections provide different, complementary access paths. They do not automatically grant shell access, workflow-dispatch permission, release permission, or package-publishing permission. The agent must verify actual capabilities and repository authorization instead of assuming setup succeeded. If one integration is unavailable, it should state the specific limitation and use only a verified supported path.


## 2.1 architecture

Version 2.1 extends the 2.0 foundation without replacing it. The canonical unit is the Work Unit, with explicit Agent/Role contracts, Handoffs, Evidence, Evaluation, and Acceptance. Contract definitions live under `core/contracts/2.1/`; architecture guidance lives under `docs/architecture/2.1/`.

Version 2.0.0, 2.0.1, and 2.0.2 remain preserved as historical release provenance. Starting with 2.0.1, development and release are performed directly in this repository under the independent release contract.

## Quick start

Install the published package; consumer projects do not need to clone this repository.

### Recommended: pipx

```bash
pipx install ai-engineering-standard==2.2.1
ai-engineering-standard install --language ko --domain all
```

Preview without writing:

```bash
ai-engineering-standard install --language ko --domain all --dry-run
```

### Alternative: pip

```bash
python -m pip install ai-engineering-standard==2.2.1
ai-engineering-standard install --language ko --domain all
```

The package provides one cross-platform CLI for installation, state inspection, update/reconciliation, validation, and safe uninstall. Shell and PowerShell installer scripts remain development/source-tree compatibility entrypoints rather than the primary consumer interface.

Available domains are `common`, `ml`, `llm`, `vision`, `colab`, and `all`. The canonical source language is English, with Korean as the only supported localized locale. Supported locales are defined by `i18n/languages.json`; the installer derives its accepted locale set from that catalog.

## v2.2.0 release smoke test

The published PyPI package was smoke-tested in an isolated Python 3.14 virtual environment on macOS using version `2.2.0`.

Tested flow:

```bash
python3 -m venv /tmp/aes-v220-test
source /tmp/aes-v220-test/bin/activate
python -m pip install ai-engineering-standard==2.2.0
ai-engineering-standard --version

mkdir -p /tmp/aes-v220-consumer
ai-engineering-standard install \
  --target /tmp/aes-v220-consumer \
  --language ko \
  --domain common \
  --policy overwrite
ai-engineering-standard status --target /tmp/aes-v220-consumer --json
ai-engineering-standard validate --target /tmp/aes-v220-consumer
```

Observed result:

- Package installation and CLI version check succeeded (`ai-engineering-standard 2.2.0`).
- Korean `common` domain installation completed with 18 files.
- Status and validation reported `installed: true`, version `2.2.0`, language `ko`, domain `common`, `missing: 0`, and `modified: 0`.

This is a smoke test of the published package's installation and validation flow for Python 3.14, Korean, and the `common` domain. It does not claim that every domain or locale combination was tested.

## v2.2.1 changes

- Make installer updates transactional, including rollback when obsolete-file cleanup fails.
- Preserve user-modified files that become obsolete and refuse destructive uninstall before removing files.
- Expose `validate` as a supported CLI command.
- Expand packaged CLI lifecycle CI to exercise real updates across supported test locales and domains.

## Installation lifecycle

Successful installs record ownership and hashes in `.codingstandard/installation.json`. The installer supports state inspection, update/reconciliation, safe uninstall, and explicit force mode for recovery.

See [`INSTALL.md`](INSTALL.md) for the complete installation contract.

## Release links

- [GitHub Release v2.2.1](https://github.com/eaglesjo/AIEngineeringStandard/releases/tag/v2.2.1)
- [PyPI package v2.2.1](https://pypi.org/project/ai-engineering-standard/2.2.1/)
- [GitHub Actions release workflow](https://github.com/eaglesjo/AIEngineeringStandard/blob/main/.github/workflows/publish-package.yml)
