5.4 KiB
5.4 KiB
Codex Guide
Workspace reference: GSP-WORKSPACE.md
This file is the first stop for future Codex sessions working in this repository.
Repository Layout
/
Agent_Linux/
Agent-Windows/
Panel/
Website/
docs/
What To Read First
docs/architecture/REPOSITORY_OVERVIEW.mddocs/architecture/PANEL_AGENT_FLOW.mddocs/architecture/API_REFERENCE.mddocs/architecture/PANEL_AGENT_COMMANDS.mddocs/architecture/MODULE_DEPENDENCIES.mddocs/architecture/LIBRARY_REFERENCE.mddocs/modules/MODULE_INDEX.mddocs/modules/GAMEMANAGER.mddocs/features/STATUS_SYSTEM.mddocs/features/XML_SYSTEM.mddocs/modules/SCHEDULER.mddocs/features/SCHEDULER_ACTIONS.mddocs/modules/SERVER_CONTENT_MANAGER.mddocs/features/USER_API.mddocs/decisions/docs/games/
Important Files By Topic
Startup Logic
Panel/modules/gamemanager/home_handling_functions.phpPanel/modules/gamemanager/start_server.phpPanel/modules/gamemanager/restart_server.phpPanel/modules/config_games/schema_server_config.xmlPanel/modules/config_games/server_config_parser.phpPanel/includes/lib_remote.phpAgent_Linux/ogp_agent.plAgent-Windows/OGP64/OGP/ogp_agent.pl
Status Logic
Panel/includes/lib_remote.phpPanel/modules/gamemanager/home_handling_functions.phpPanel/modules/gamemanager/server_monitor.phpAgent_Linux/ogp_agent.plAgent-Windows/OGP64/OGP/ogp_agent.pl
Scheduler Logic
Panel/modules/cron/module.phpPanel/modules/cron/cron.phpPanel/modules/cron/shared_cron_functions.phpAgent_Linux/ogp_agent.plAgent-Windows/OGP64/OGP/ogp_agent.pl
Workshop / Server Content Logic
Panel/modules/addonsmanager/module.phpPanel/modules/addonsmanager/addons_manager.phpPanel/modules/addonsmanager/user_addons.phpPanel/modules/steam_workshop/module.phpPanel/modules/steam_workshop/main.phpPanel/modules/steam_workshop/monitor_buttons.php
XML Definitions
Panel/modules/config_games/schema_server_config.xmlPanel/modules/config_games/xml_config_creator.phpPanel/modules/config_games/set_params.phpPanel/modules/config_games/cli-params.phpPanel/modules/config_games/config_servers.php
Agent Communication
Panel/includes/lib_remote.phpAgent_Linux/ogp_agent.plAgent-Windows/OGP64/OGP/ogp_agent.pl
Decisions And Historical Reports
docs/architecture/AI_GSP_ARCHITECTURE.mddocs/decisions/0001-screen-vs-tmux.mddocs/decisions/0002-status-detection.mddocs/decisions/0003-companion-programs.mddocs/decisions/0004-workshop-system.mddocs/decisions/0005-control-path-layout.mddocs/decisions/0006-installers.mddocs/decisions/COMPANION_PROGRAMS_DESIGN.mddocs/decisions/SCHEDULER_ACTIONS_DESIGN.mddocs/decisions/STEAM_WORKSHOP_DESIGN.mddocs/development/GSP_PLATFORM_IMPROVEMENT_REPORT.md
Common Development Workflows
Debug a start/stop/restart issue
- Read
docs/modules/GAMEMANAGER.md. - Check
Panel/includes/lib_remote.php. - Check
Panel/modules/gamemanager/home_handling_functions.php. - Check the matching
ogp_agent.pl. - Compare session/process/port logic in both agents.
Debug a status issue
- Read
docs/features/STATUS_SYSTEM.md. - Check
remote_server_statusinPanel/includes/lib_remote.php. - Check
server_status_without_decryptin both agents. - Check game XML query definitions in
config_games.
Debug scheduler behavior
- Read
docs/modules/SCHEDULER.md. - Check
Panel/modules/cron/cron.php. - Check scheduler subroutines in both agents.
- Verify whether the action is customer-safe or admin-only.
Debug Workshop or add-on behavior
- Read
docs/modules/SERVER_CONTENT_MANAGER.md. - Check
Panel/modules/addonsmanager/module.php. - Check the user/admin content pages.
- Check whether the action should be treated as install, update, or uninstall.
Debug Panel or Agent updates
- Read
docs/modules/UPDATE.md. - Check
Panel/modules/update/update.php. - Check
Panel/modules/administration/panel_update.php. - Check
Panel/includes/lib_remote.phponly if a shared helper is actually needed. - Remember that the active Panel update page updates the Panel only.
- Website and agent updates are separate workflows and should not be reintroduced into the Panel update page.
- Never let updater logic delete server homes, game install folders, user data, agent
Cfg/, logs, uploads, backups, or runtime PID files.
Things Already Investigated
The repository has already been mapped in these areas:
- module inventory
- panel-agent remote library
- Linux and Windows agent
screenuse - status model direction
- game XML startup and query variables
- current Server Content Manager structure
- current scheduler structure
- module-level roles and dependency patterns
- preserved investigation reports have been moved into the docs tree
Things Intentionally Not Yet Implemented
This documentation-only pass does not implement:
- lifecycle code changes
- status model code changes
- scheduler redesign
- Workshop/content redesign
- backup system replacement
- file manager or FTP rewrites
- billing/provisioning changes
Practical Rule for Future Sessions
Before scanning code broadly, read the docs layer first. Only open source files when the documentation does not already answer the question.