Skip to content

Fix Awal review findings#2

Merged
gqnxx merged 1 commit into
mainfrom
codex/fix-awal-review
May 24, 2026
Merged

Fix Awal review findings#2
gqnxx merged 1 commit into
mainfrom
codex/fix-awal-review

Conversation

@gqnxx
Copy link
Copy Markdown
Contributor

@gqnxx gqnxx commented May 24, 2026

What changed

  • Flags README package scripts even when package.json is missing.
  • Parses yarn run dev as the dev script instead of run.
  • Detects Python os.environ["KEY"] env usage.
  • Cleans the README footer: no CTO wording, clear Mara ownership, creator account added.

Why

These were the review gaps from the first Awal pass. Without them, Awal could miss broken first-run instructions in repos with missing package manifests, Yarn commands, or Python env access.

Validation

  • PYTHONPATH=src python3 -m unittest discover -s tests
  • python3 -m compileall src tests
  • PYTHONPATH=src python3 -m awal examples/clean-app
  • PYTHONPATH=src python3 -m awal examples/broken-app --fail-on high
  • python3 -m pip wheel . -w /tmp/awal-fix-wheel

@justAbdulaziz10 please review before making it final.

@gqnxx gqnxx requested a review from justAbdulaziz10 May 24, 2026 13:38
@gqnxx gqnxx marked this pull request as ready for review May 24, 2026 13:42
@gqnxx gqnxx merged commit 94c75ce into main May 24, 2026
4 checks passed
@gqnxx gqnxx deleted the codex/fix-awal-review branch May 24, 2026 13:43
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1905393f17

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/awal/scanner.py
if script is not None:
script_name, display = script
if script_name not in surface.package_scripts:
if not surface.has_package_json:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Resolve package.json relative to command directory

This new missing_package_manifest check assumes every npm/pnpm/yarn script command should be backed by a root-level package.json, which creates false high-severity blocks for valid README flows that first cd into a subdirectory (for example, cd web then npm run dev with web/package.json). I verified this in the current code path: the scanner reports missing_package_manifest even when the script exists in the target subproject, so monorepo or multi-package repos are now incorrectly flagged as broken.

Useful? React with 👍 / 👎.

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