claude-repo-native-agent-lab

Demo Project (intentionally imperfect)

A tiny “greeting service” used as the default scan target for the Readiness Report demo. It is never executed by the scanner; Python files are only syntax-compiled.

Expected scan result (as shipped)

Check Expected Why
readme_present pass this file
tests_present warn no tests/ directory on purpose
python_compiles fail app.py has a deliberate syntax error (missing ) in greet)
no_env_file pass only .env.example (fake placeholders) is present
dependency_manifest pass requirements.txt
hardcoded_secrets warn app.py assigns a fake API key literal; the report shows it masked

Make it pass

  1. In app.py, change def greet(name: str -> str: to def greet(name: str) -> str:.
  2. Replace the hardcoded API key line with API_KEY = os.environ.get("DEMO_API_KEY", "").
  3. Add tests/test_app.py with a test for greet.
  4. Re-run python agent.py scan --target samples/demo_project and compare the reports.

Use git checkout samples/demo_project to restore the imperfect version.