{
  "generated_at": "2026-04-10T10:31:25.553Z",
  "system": {
    "id": "topolo-bugfix",
    "name": "Topolo BugFix",
    "slug": "topolo-bugfix",
    "kind": "application",
    "summary": "Bug analysis and issue-resolution tooling inside the Topolo portfolio.",
    "aliases": [],
    "lifecycle": "active",
    "last_verified": "2026-04-07",
    "owners": [
      "ai-platform"
    ],
    "repo_paths": [
      "PlatformApplications/TopoloBugFix"
    ],
    "service_ids": [],
    "visibility": "public",
    "api_contract": {
      "type": "curated",
      "source": "PlatformApplications/TopoloBugFix",
      "notes": "Application exists in repo but has no registered OpenAPI spec in the current audit."
    },
    "primary_hosts": [],
    "doc_paths": [
      "applications/bugfix",
      "internal/apps/bugfix"
    ],
    "dependencies": [
      "topolo-auth",
      "topolo-nexus"
    ],
    "public_hub_url": "/systems/topolo-bugfix",
    "internal_hub_url": null,
    "application_api_url": "/reference/apps/topolo-bugfix",
    "generated_openapi_url": null,
    "machine_urls": {
      "system": "/machine/systems/topolo-bugfix.json",
      "application": "/machine/applications/topolo-bugfix.json"
    }
  },
  "docs": {
    "public": [
      {
        "id": "applications/bugfix.mdx",
        "title": "Topolo BugFix",
        "summary": "Public overview of BugFix, including AI-assisted bug analysis, fix generation, and Nexus-backed provider usage.",
        "audience": "public",
        "tags": [
          "bugs",
          "ai",
          "automation",
          "github"
        ],
        "url": "/applications/bugfix.mdx",
        "last_verified": "2026-04-07"
      }
    ],
    "internal": [],
    "runbooks": []
  },
  "authority": {
    "owners": [
      "ai-platform"
    ],
    "repo_paths": [
      "PlatformApplications/TopoloBugFix"
    ],
    "service_ids": [],
    "dependencies": [
      "topolo-auth",
      "topolo-nexus"
    ],
    "aliases": []
  },
  "interfaces": {
    "contract_type": "curated",
    "contract_source": "PlatformApplications/TopoloBugFix",
    "contract_source_exists": true,
    "openapi": null,
    "readme": {
      "path": "PlatformApplications/TopoloBugFix/README.md",
      "intro": [
        "Canonical documentation for BugFix lives in `PlatformApplications/TopoloDocs`.",
        "Use this repository for implementation only. Public flow coverage, AI execution boundaries, deployment shape, and operational guidance are canonical in the docs application rather than in repo-local guides."
      ],
      "headings": [
        "Topolo BugFix"
      ],
      "routeHighlights": [],
      "commandHighlights": []
    }
  },
  "auth": {
    "depends_on_topolo_auth": true,
    "api_key_scopes": [],
    "service_permissions": []
  },
  "runtime": {
    "primary_hosts": [],
    "repo_entries": [
      "PlatformApplications/TopoloBugFix/README.md",
      "PlatformApplications/TopoloBugFix/deploy.sh",
      "PlatformApplications/TopoloBugFix/docs/",
      "PlatformApplications/TopoloBugFix/package-lock.json",
      "PlatformApplications/TopoloBugFix/package.json",
      "PlatformApplications/TopoloBugFix/scripts/",
      "PlatformApplications/TopoloBugFix/src/",
      "PlatformApplications/TopoloBugFix/topolo.cloudcontrol.json",
      "PlatformApplications/TopoloBugFix/wrangler.toml"
    ],
    "wrangler_surfaces": [
      {
        "path": "PlatformApplications/TopoloBugFix/wrangler.toml",
        "observabilityEnabled": false,
        "environments": [
          "production"
        ],
        "routes": [
          "bugfix-staging.topolo.app",
          "bugfix.topolo.app"
        ],
        "vars": [
          "AUTH_URL",
          "ENVIRONMENT",
          "GITHUB_API_URL",
          "GITHUB_REPO_OWNER",
          "NEXUS_GATEWAY_URL"
        ],
        "bindings": [
          {
            "kind": "d1",
            "binding": "DB",
            "sourcePath": "PlatformApplications/TopoloBugFix/wrangler.toml",
            "target": "1f992a7b-2ea9-4fa5-bcad-f057a67e3235"
          },
          {
            "kind": "d1",
            "binding": "DB",
            "environment": "production",
            "sourcePath": "PlatformApplications/TopoloBugFix/wrangler.toml",
            "target": "a2f8cb8a-0b65-4df9-9018-3b2642f06afe"
          }
        ],
        "cronTriggers": [],
        "workerName": "topolo-bugfix-staging",
        "main": "src/index.js",
        "compatibilityDate": "2025-07-04"
      }
    ],
    "packages": [
      {
        "path": "PlatformApplications/TopoloBugFix/package.json",
        "name": "topolo-bugfix",
        "scripts": [
          "dev",
          "deploy",
          "deploy:dry-run",
          "deploy:staging",
          "deploy:prod",
          "lint",
          "build",
          "db:create",
          "db:migrate",
          "db:migrate:prod",
          "smoke:report-status"
        ],
        "scriptCommands": [
          {
            "name": "dev",
            "command": "wrangler dev"
          },
          {
            "name": "deploy",
            "command": "wrangler deploy"
          },
          {
            "name": "deploy:dry-run",
            "command": "npx --yes wrangler@4 deploy --dry-run --config wrangler.toml"
          },
          {
            "name": "deploy:staging",
            "command": "wrangler deploy"
          },
          {
            "name": "deploy:prod",
            "command": "wrangler deploy --env production"
          },
          {
            "name": "lint",
            "command": "find src -name '*.js' -print0 | xargs -0 -n1 node --check"
          },
          {
            "name": "build",
            "command": "node --check src/index.js"
          },
          {
            "name": "db:create",
            "command": "wrangler d1 create topolo-bugfix-db"
          },
          {
            "name": "db:migrate",
            "command": "wrangler d1 execute topolo-bugfix-db --file=./scripts/schema.sql && wrangler d1 execute topolo-bugfix-db --file=./scripts/002_settings.sql && wrangler d1 execute topolo-bugfix-db --file=./scripts/003_review_queue.sql"
          },
          {
            "name": "db:migrate:prod",
            "command": "wrangler d1 execute topolo-bugfix-db-prod --file=./scripts/schema.sql --env production && wrangler d1 execute topolo-bugfix-db-prod --file=./scripts/002_settings.sql --env production && wrangler d1 execute topolo-bugfix-db-prod --file=./scripts/003_review_queue.sql --env production"
          },
          {
            "name": "smoke:report-status",
            "command": "node scripts/smoke-report-status.js"
          }
        ]
      }
    ]
  },
  "data": {
    "env_vars": [
      "AUTH_URL",
      "ENVIRONMENT",
      "GITHUB_API_URL",
      "GITHUB_REPO_OWNER",
      "NEXUS_GATEWAY_URL"
    ],
    "bindings": [
      {
        "kind": "d1",
        "binding": "DB",
        "sourcePath": "PlatformApplications/TopoloBugFix/wrangler.toml",
        "target": "1f992a7b-2ea9-4fa5-bcad-f057a67e3235"
      },
      {
        "kind": "d1",
        "binding": "DB",
        "environment": "production",
        "sourcePath": "PlatformApplications/TopoloBugFix/wrangler.toml",
        "target": "a2f8cb8a-0b65-4df9-9018-3b2642f06afe"
      }
    ],
    "queue_bindings": [],
    "storage_kinds": [
      "d1"
    ],
    "workflow_signals": [
      "PlatformApplications/TopoloBugFix/package.json :: db:migrate",
      "PlatformApplications/TopoloBugFix/package.json :: db:migrate:prod"
    ]
  },
  "deployment": {
    "commands": [
      {
        "name": "deploy",
        "command": "PlatformApplications/TopoloBugFix/package.json :: wrangler deploy"
      },
      {
        "name": "deploy:dry-run",
        "command": "PlatformApplications/TopoloBugFix/package.json :: npx --yes wrangler@4 deploy --dry-run --config wrangler.toml"
      },
      {
        "name": "deploy:staging",
        "command": "PlatformApplications/TopoloBugFix/package.json :: wrangler deploy"
      },
      {
        "name": "deploy:prod",
        "command": "PlatformApplications/TopoloBugFix/package.json :: wrangler deploy --env production"
      },
      {
        "name": "build",
        "command": "PlatformApplications/TopoloBugFix/package.json :: node --check src/index.js"
      }
    ],
    "routes": [
      "bugfix-staging.topolo.app",
      "bugfix.topolo.app"
    ],
    "environments": [
      "production"
    ],
    "assets_directories": [],
    "observability_enabled": false
  },
  "debugging": {
    "failure_modes": [
      "No Auth service ID is registered for this system.",
      "No primary host is registered in the system registry."
    ],
    "entrypoints": [
      "PlatformApplications/TopoloBugFix/wrangler.toml",
      "PlatformApplications/TopoloBugFix",
      "PlatformApplications/TopoloBugFix/README.md",
      "PlatformApplications/TopoloBugFix/package.json"
    ]
  }
}