{"agent":"claude","input":"A Linear issue labeled agent says: \"Add role-based access control. Add an admin area at /admin with a dashboard page that only the admin user can open; the demo user must get a 403 and a guest must be sent to the login page. Show the Admin link in the navigation only to users who can open it.\" Do this work in this Yii2 repository. Read composer.json, config/web.php, config/console.php, config/test.php, config/__autocomplete.php, config/db.php, models/User.php, controllers/SiteController.php, commands/HelloController.php, views/layouts/_header.php, codeception.yml and the tests directory first. Install PHP 8.2 or later and Composer if the sandbox lacks them and run composer install; do not commit the cookie validation key it writes into config/web.php. Choose between yii\\rbac\\PhpManager and DbManager from what the app already uses and explain the choice. Configure authManager in the web, console and test configs. Add a console command rbac/init that rebuilds permissions, a member role, an admin role that inherits from it, and the assignments for the two existing users, and commit the files it generates. Add an AdminController guarded by AccessControl with the permission as its role, and hide the navigation link behind Yii::$app->user->can(). Write functional tests for admin, demo and guest using amLoggedInAs, and unit tests for checkAccess and for running rbac/init twice. Run composer tests, composer static and composer cs. Open a pull request that links back to the issue, lists roles, permissions and assignments in a table, and quotes the three command outputs.","resources":[{"url":"https://github.com/your-org/your-app"}]}