**Motivations:** Same tee naming as lecoffre_ng_test deploy.sh when SITE_CODE is set.
**Correctives:** deploy_<env>_<site>_kogus_<ts>.log when site env is set; header includes site=.
**Evolutions:** kogus docs IMPORT_V1 + agents-scripts-split log path wording.
**Page affectées:** deploy/lib/deploy-log.sh, projects/kogus/docs.
**Motivations:**
- Push-by-script should stage, commit, and push without implicit full monorepo builds; compilation must be explicit.
**Root causes:**
- pousse.sh always ran npm build for each build_dir before git add, coupling push duration and Next lock issues to every push.
**Correctives:**
- Add --build flag to run the previous build loop; default skips builds and prints guidance.
- Update push-by-script agent (step 4 bis, closure types), deploy-pprod-or-prod note, cloture-lint wording, agents-scripts-split.
**Evolutions:**
- Documented alternative: manual builds per build_dirs or single pousse.sh --build <<MSG.
**Pages affectées:**
- deploy/pousse.sh, .smartIde/agents/push-by-script.md, deploy-pprod-or-prod.md, cloture-lint.mdc, projects/kogus/docs/agents-scripts-split.md
- deploy-conf-handling: default_site_code -> SITE_* when unset; symlink
notary|enso|genealogie/<env> to ../<env> when flat <env>/ exists.
- orchestrator and deploy-by-script-to: run before handoff to LeCoffre.
- lecoffreio docs/Deployment.md: document behavior (-f: path was gitignored).
Read deploy.default_site_code from project conf and inject NEXT_PUBLIC_SITE_CODE when building front-common.
Also align lecoffreio build_dirs and version paths with back-common/front-common/ressources-common.
- deploy-by-script-to.sh: skip checkout/reset/pprod|prod for project lecoffreio
- deploy-by-script.md: env from script arg; host test for lecoffreio
- deploy-pprod-or-prod.md: document lecoffreio vs other projects step 3
**Etat initial**
- Fiche fix non versionnée dans le dépôt app (docs/ ignoré par .gitignore).
**Motivation du changement**
- Tracer la correction import-v1 env-full dans projects/lecoffreio/docs/fixKnowledge.
**Resolution**
- Ajout de import-v1-ssh-run-quoting-env-full.md.
**Root cause**
- Alignement doc traçabilité avec correctif déployé (lecoffre_ng_test).
**Fonctionnalités impactées**
- Aucune (documentation).
**Code modifié**
- Aucun.
**Documentation modifiée**
- projects/lecoffreio/docs/fixKnowledge/import-v1-ssh-run-quoting-env-full.md
**Configurations modifiées**
- Aucune.
**Fichiers dans déploy modifiés**
- Aucun.
**Fichiers dans logs impactés**
- Aucun.
**Bases de données et autres sources modifiées**
- Aucune.
**Modifications hors projet**
- Aucune.
**fichiers dans .cursor/ modifiés**
- Aucun.
**fichiers dans .secrets/ modifiés**
- Aucun.
**nouvelle sous sous version dans VERSION**
- N/A (pas de VERSION sur ia_dev).
**CHANGELOG.md mise à jour (oui/non)**
- non
Etat initial
- Agents and project docs still referenced --skipSetupHost, --import-v1 on CLI, and optional log flags.
Motivation du changement
- Align ia_dev agents and mirrored docs with LeCoffre deploy.sh (setup via run-setup-host.sh, business flags in deploy.conf only, logs always on).
Resolution
- Add .cursor/agents/setup-host.md; update change-to-all-branches, deploy-by-script, deploy-pprod-or-prod; refresh agents-scripts-split and WORKFLOWS for lecoffreio and ia_dev projects.
Root cause
- Documentation drift after deploy CLI and pipeline changes.
Fonctionnalités impactées
- Cursor agent instructions only (no runtime code path change in this commit beyond files listed).
Code modifié
- .cursor/agents/*.md, deploy/*.sh, deploy/lib/*.sh, projects/*/docs/*.md as staged.
Documentation modifiée
- projects/lecoffreio/docs/agents-scripts-split.md, WORKFLOWS_AND_COMPONENTS.md; projects/ia_dev/docs/* (same).
Configurations modifiées
- none.
Fichiers dans déploy modifiés
- deploy/change-to-all-branches.sh, deploy-by-script-to.sh, deploy.sh, lib/README.md, deploy-conf-handling.sh, deploy-methodology.sh, orchestrator.sh (pre-existing session changes + doc alignment).
Fichiers dans logs impactés
- none.
Bases de données et autres sources modifiées
- none.
Modifications hors projet
- none.
fichiers dans .cursor/ modifiés
- .cursor/agents/setup-host.md (new), change-to-all-branches.md, deploy-by-script.md, deploy-pprod-or-prod.md.
fichiers dans .secrets/ modifiés
- none.
nouvelle sous sous version dans VERSION
- N/A (ia_dev repo has no VERSION file).
CHANGELOG.md mise à jour (oui/non)
- non
**Motivations:**
- Single generic orchestration in ia_dev while business logic stays in each project repo
**Root causes:**
- N/A (evolution)
**Correctifs:**
- N/A
**Evolutions:**
- Add orchestrator.sh (deploy.hooks.phases or fallback deploy.deploy_script_path)
- Add deploy.sh <project_id> <env> [options] as canonical entry from ia_dev root
- run-project-hooks.sh execs orchestrator.sh for backward compatibility
- change-to-all-branches.sh and deploy-by-script-to.sh invoke orchestrator.sh when IA_PROJECT_ID is set
- Document orchestration in README.md and deploy/lib/README.md
**Pages affectées:**
- README.md, deploy/orchestrator.sh, deploy/deploy.sh, deploy/run-project-hooks.sh, deploy/change-to-all-branches.sh, deploy/deploy-by-script-to.sh, deploy/lib/README.md
**Motivations:**
- Align master with current codebase (token from projects/<id>/.secrets/<env>/ia_token)
- Id resolution by mail To or by API token; no slug
**Root causes:**
- Token moved from conf.json to .secrets/<env>/ia_token; env from directory name
**Correctifs:**
- Server and scripts resolve project+env by scanning all projects and envs
**Evolutions:**
- tickets-fetch-inbox routes by To address; notary-ai agents and API doc updated
**Pages affectées:**
- ai_working_help/server.js, docs, project_config.py, lib/project_config.sh
- projects/README.md, lecoffreio/docs/API.md, gitea-issues/tickets-fetch-inbox.py