Skip to content

Conversation

@nirukk52
Copy link
Owner

@nirukk52 nirukk52 commented Nov 11, 2025

Enforce founder_rules logging standards by replacing all console.log/console.error calls with encore.dev/log. Added proper logger instance with module and actor context for better observability.


Note

Switches backend/agent/cli/demo.ts from console logging to encore.dev/log with a contextual logger and structured fields.

  • Backend
    • Logging standardization in backend/agent/cli/demo.ts:
      • Replace all console.log/console.error with encore.dev/log.
      • Introduce contextual logger log.with({ module: "demo-cli", actor: "demo" }) and use logger.info throughout.
      • Emit structured fields for key events (e.g., runId, stepOrdinal, deviceRuntimeContextId, appPresenceStatus).
      • Preserve existing flow; no behavioral changes beyond logging instrumentation.

Written by Cursor Bugbot for commit ed4b868. This will update automatically on new commits. Configure here.

nirukk52 and others added 4 commits November 10, 2025 20:21
- Fixed E2E test hangs by racing navigation + API calls with Promise.all()
- Replaced 3-test suite with single deterministic run-validation test
- Added data-testid attributes to run-events and discovered-screens
- Updated frontend development + debugging skills with E2E patterns
- Integrated spec-kit as submodule for spec-driven development
- Added Appium startup script for automated mobile testing

Test result: ✅ 1 passed (5.7s)
Resolves: BUG-015, BUG-014 validation
Enforce founder_rules logging standards by replacing all console.log/console.error calls with encore.dev/log. Added proper logger instance with module and actor context for better observability.
@vercel
Copy link

vercel bot commented Nov 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
screengraph Ready Ready Preview Comment Nov 11, 2025 8:50am

if (require.main === module) {
runDemo().catch((err) => {
console.error("Demo failed:", err);
log.error("Demo failed", { err: String(err) });
Copy link

Choose a reason for hiding this comment

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

Bug: Align Logging with Founder Rules (Bugbot Rules)

The error logging violates founder_rules logging standards by calling log.error directly without required contextual fields. According to the rules, all log calls must include module and actor fields via log.with(). The error should use a contextual logger instance (e.g., const logger = log.with({ module: "demo-cli", actor: "demo" }); logger.error(...)) to match the standards used elsewhere in the file.

Fix in Cursor Fix in Web

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.

3 participants