Skip to content

refactor: Phase 1+2 — project-level output structure, 78→79 sync, gitignore fixes#179

Merged
Wool-xing merged 8 commits into
mainfrom
refactor/phase2-project-output
Jun 2, 2026
Merged

refactor: Phase 1+2 — project-level output structure, 78→79 sync, gitignore fixes#179
Wool-xing merged 8 commits into
mainfrom
refactor/phase2-project-output

Conversation

@Wool-xing
Copy link
Copy Markdown
Owner

Summary

  • Phase 2: Project-level output nesting — workspace/测试报告/{PROJECT_NAME}/{run_id}/ via utils/paths.py canonical path helper
  • Path consolidation: Merge 执行日志/ into 测试报告/ (single output root)
  • Utils count sync: Update all 78→79 metadata across 16 files (paths.py brought count to 79)
  • AI framework gate: Pre-commit hook validates absence of disallowed frameworks in pip install output
  • Standalone CLI path: sys.path.insert(0, ...) for utils that run outside pytest
  • gitignore overhaul: Replace broken /** + ! negation with explicit directory patterns; exclude .claude/agents/, .claude/skills/, workspace/automotive/, and 7 other untracked workspace dirs
  • Stop tracking: .vscode/ (IDE config), workspace/audit/V1.43-health-check.md (auto-generated), workspace/automotive/can_plan.json (test output data)

Test plan

  • git check-ignore verified: .vscode/, workspace/测试报告/ subdirectories, workspace/automotive/ all excluded
  • .pre-commit-config.yaml utils count check uses 79 (expected + actual match)
  • All 16 doc files reference 79 utils
  • PROJECT_NAME=myapp pytest --collect-only returns 0 errors
  • python -c "from utils.paths import get_output_dir, current_run_id; print(get_output_dir('test'))" produces workspace/测试报告/default/test

xiaoxing0135 added 8 commits June 3, 2026 01:48
- CLAUDE.md: add hard AI agent STOP gate with 3 Do-NOT rules
- CLAUDE.md: document standalone CLI (tagent) as first-class path
- install.py: add copy_runtime to deploy MCP/CLI modules
- install.py: restructure workspace dirs — remove 执行日志/charters,
  flatten into 测试报告/ + 截图/
- install.py: finish() shows both CLI and AI collaboration paths
Systematic path normalization across entire codebase (86 files):
- Eliminate legacy workspace/执行日志/ directory; all outputs under workspace/测试报告/
- install.py: 截图/ → screenshots/ under 测试报告/
- .gitignore: update ignore/whitelist rules for new paths
- Add AGENTS.md (Cursor/Windsurf) and .github/copilot-instructions.md for multi-AI-tool compatibility
- Update all agent docs, skill docs, config files, runtime orchestrator, and utils
…esting

All workspace output now organized by project: baselines/history at
project level (persistent), everything else per-run (isolated via
current_run_id). Created utils/paths.py as canonical path helper.
79 files changed across Python utils, runtime orchestrator, markdown
docs, CI/CD, and config.
15 files updated — AGENTS.md, CLAUDE.md, README (en+zh),
copilot-instructions, 6 charter/getting-started docs, web-demo README,
.pre-commit-config.yaml error message.
Added to .gitignore:
- .claude/agents/, .claude/skills/ — deployment copies, not source
- workspace/测试用例/, 测试计划/, 需求分析/, 执行日志/, audit/ — outputs
- workspace/测试报告/*/ → workspace/测试报告/** — catch root-level files too
…erns

/** pattern cannot be overridden by ! negation in git. Replaced with
explicit directory names for root files, legacy dirs, run_id dirs,
and project-level output subdirectories. Baselines naturally excluded
from ignore rules (they should be tracked).
…output

Removed from tracking (kept locally):
- .vscode/ — IDE config with machine-specific paths
- workspace/audit/V1.43-health-check.md — auto-generated health check
- workspace/automotive/can_plan.json — test output data

Added workspace/automotive/ to .gitignore.
@Wool-xing Wool-xing merged commit 4b17998 into main Jun 2, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant